Class BoxToAlloca
A transform that looks for box instructions that are only ever unboxed and replaces them with alloca instructions. The transform is only applied to box instructions for which the unboxed pointers do not escape.
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.Compiler.Transforms
Assembly: Flame.Compiler.dll
Syntax
public sealed class BoxToAlloca : IntraproceduralOptimization
Fields
| Improve this Doc View SourceInstance
An instance of the box-to-alloca transform.
Declaration
public static readonly BoxToAlloca Instance
Field Value
Type | Description |
---|---|
BoxToAlloca |
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. |