Class LocalMemorySSAAnalysis
A very simple, block-local memory SSA analysis.
Implements
Inherited Members
Namespace: Flame.Compiler.Analysis
Assembly: Flame.Compiler.dll
Syntax
public sealed class LocalMemorySSAAnalysis : IFlowGraphAnalysis<MemorySSA>
Fields
| Edit this page View SourceInstance
An instance of the local memory SSA analysis.
Declaration
public static readonly LocalMemorySSAAnalysis Instance
Field Value
| Type | Description |
|---|---|
| LocalMemorySSAAnalysis |
Methods
| Edit this page View SourceAnalyze(FlowGraph)
Analyzes a flow graph from scratch.
Declaration
public MemorySSA Analyze(FlowGraph graph)
Parameters
| Type | Name | Description |
|---|---|---|
| FlowGraph | graph | The flow graph to analyze. |
Returns
| Type | Description |
|---|---|
| MemorySSA | The analysis' output. |
AnalyzeWithUpdates(FlowGraph, MemorySSA, IReadOnlyList<FlowGraphUpdate>)
Analyzes a flow graph based on the flow graph, the previous result, and a list of updates that were applied to the graph since the previous result.
Declaration
public MemorySSA AnalyzeWithUpdates(FlowGraph graph, MemorySSA previousResult, IReadOnlyList<FlowGraphUpdate> updates)
Parameters
| Type | Name | Description |
|---|---|---|
| FlowGraph | graph | The current version of the flow graph to analyze. |
| MemorySSA | previousResult | A previous result produced by this analysis. |
| IReadOnlyList<FlowGraphUpdate> | updates | A list of updates that were applied to the flow graph since the previous result was computed. |
Returns
| Type | Description |
|---|---|
| MemorySSA | The analysis' output, which must be equal to a call to
|