Class LivenessAnalysis
An analysis that determines which variables are live at any location in a control flow graph.
Inheritance
System.Object
LivenessAnalysis
Implements
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.Analysis
Assembly: Flame.Compiler.dll
Syntax
public sealed class LivenessAnalysis : IFlowGraphAnalysis<ValueLiveness>
Fields
| Improve this Doc View SourceInstance
Gets an instance of the liveness analysis.
Declaration
public static readonly LivenessAnalysis Instance
Field Value
Type | Description |
---|---|
LivenessAnalysis | An instance of the liveness analysis. |
Methods
| Improve this Doc View SourceAnalyze(FlowGraph)
Declaration
public ValueLiveness Analyze(FlowGraph graph)
Parameters
Type | Name | Description |
---|---|---|
FlowGraph | graph |
Returns
Type | Description |
---|---|
ValueLiveness |
AnalyzeWithUpdates(FlowGraph, ValueLiveness, IReadOnlyList<FlowGraphUpdate>)
Declaration
public ValueLiveness AnalyzeWithUpdates(FlowGraph graph, ValueLiveness previousResult, IReadOnlyList<FlowGraphUpdate> updates)
Parameters
Type | Name | Description |
---|---|---|
FlowGraph | graph | |
ValueLiveness | previousResult | |
System.Collections.Generic.IReadOnlyList<FlowGraphUpdate> | updates |
Returns
Type | Description |
---|---|
ValueLiveness |