Class BlockBuilder
- Namespace
- Echo.ControlFlow.Serialization.Blocks
- Assembly
- Echo.ControlFlow.dll
Provides a mechanism for transforming a control flow graph into a tree of scopes and basic blocks.
public static class BlockBuilder
- Inheritance
-
BlockBuilder
- Inherited Members
Methods
ConstructBlocks<TInstruction>(ControlFlowGraph<TInstruction>)
Constructs the tree of scopes and basic blocks based on the provided control flow graph.
public static ScopeBlock<TInstruction> ConstructBlocks<TInstruction>(this ControlFlowGraph<TInstruction> cfg) where TInstruction : notnull
Parameters
cfgControlFlowGraph<TInstruction>The control flow graph .
Returns
- ScopeBlock<TInstruction>
The root scope.
Type Parameters
TInstructionThe type of instructions stored in the graph.