Struct BasicBlockPredecessors
A data structure that can be queried to get the predecessors of a block, that is, the set of all blocks that have branches to the block.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Flame.Compiler.Analysis
Assembly: Flame.Compiler.dll
Syntax
public struct BasicBlockPredecessors
Methods
| Improve this Doc View SourceGetPredecessorsOf(BasicBlockTag)
Gets the set of all predecessors of a basic block with a particular tag.
Declaration
public IEnumerable<BasicBlockTag> GetPredecessorsOf(BasicBlockTag block)
Parameters
Type | Name | Description |
---|---|---|
BasicBlockTag | block | The tag of the basic block to examine. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<BasicBlockTag> | A set of predecessors. |
IsPredecessorOf(BasicBlockTag, BasicBlockTag)
Tests if one block is a predecessor of another.
Declaration
public bool IsPredecessorOf(BasicBlockTag potentialPredecessor, BasicBlockTag block)
Parameters
Type | Name | Description |
---|---|---|
BasicBlockTag | potentialPredecessor | The tag of a block that might be a predecessor of |
BasicBlockTag | block | The tag of a basic block in the flow graph. |
Returns
Type | Description |
---|---|
System.Boolean |
|