Class Optimization
Describes a method body optimization.
Inheritance
System.Object
Optimization
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.Pipeline
Assembly: Flame.Compiler.dll
Syntax
public abstract class Optimization
Properties
| Improve this Doc View SourceIsCheckpoint
Tells if this optimization checkpoints its result. The optimizer takes care to always return the latest checkpointed method body is returned when a method's optimized method body is requested.
Declaration
public abstract bool IsCheckpoint { get; }
Property Value
Type | Description |
---|---|
System.Boolean | Tells if this optimization performs a checkpoint. |
Methods
| Improve this Doc View SourceApplyAsync(MethodBody, OptimizationState)
Applies the optimization to a method body.
Declaration
public abstract Task<MethodBody> ApplyAsync(MethodBody body, OptimizationState state)
Parameters
Type | Name | Description |
---|---|---|
MethodBody | body | A method body holder to optimize. |
OptimizationState | state | State associated with optimizations. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<MethodBody> | A task that produces an optimized method body. |