Class AllocaToRegister
The "alloca to register" transformation, which tries to eliminate alloca instructions whose addresses do not escape.
Inherited Members
Namespace: Flame.Compiler.Transforms
Assembly: Flame.Compiler.dll
Syntax
public sealed class AllocaToRegister : IntraproceduralOptimization
Fields
| Edit this page View SourceInstance
An instance of the alloca-to-register transform.
Declaration
public static readonly AllocaToRegister Instance
Field Value
| Type | Description |
|---|---|
| AllocaToRegister |
Methods
| Edit this page View SourceApply(FlowGraph)
Applies the alloca to register transformation to a flow graph.
Declaration
public override FlowGraph Apply(FlowGraph graph)
Parameters
| Type | Name | Description |
|---|---|---|
| FlowGraph | graph | A flow graph to transform. |
Returns
| Type | Description |
|---|---|
| FlowGraph | A transformed flow graph. |