Class CanonicalizeArrayInit
An intraprocedural transform that recognizes the InitializeArray array initialization idiom and canonicalizes it as a sequence of direct initialization instructions.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Flame.Clr
Assembly: Flame.Clr.dll
Syntax
public sealed class CanonicalizeArrayInit : IntraproceduralOptimization
Constructors
| Improve this Doc View SourceCanonicalizeArrayInit(IType)
Creates an array initialization canonicalization transform.
Declaration
public CanonicalizeArrayInit(IType indexType)
Parameters
| Type | Name | Description |
|---|---|---|
| IType | indexType | The type used for indexing arrays. |
Properties
| Improve this Doc View SourceIndexType
Gets the type used for indexing arrays.
Declaration
public IType IndexType { get; }
Property Value
| Type | Description |
|---|---|
| IType | An index type. |
Methods
| Improve this Doc View SourceApply(FlowGraph)
Applies this intraprocedural optimization to a flow graph.
Declaration
public override FlowGraph Apply(FlowGraph graph)
Parameters
| Type | Name | Description |
|---|---|---|
| FlowGraph | graph | The flow graph to transform. |
Returns
| Type | Description |
|---|---|
| FlowGraph | A transformed flow graph. |