Class DefaultAnalyses
Manages a collection of default control-flow graph analyses, which are used when no analysis is explicitly added to a graph.
Inherited Members
Namespace: Flame.Compiler.Analysis
Assembly: Flame.Compiler.dll
Syntax
public static class DefaultAnalyses
Methods
| Edit this page View SourceRegister<T>(IFlowGraphAnalysis<T>)
Registers a default analysis for a particular type of analysis result.
Declaration
public static void Register<T>(IFlowGraphAnalysis<T> analysis)
Parameters
| Type | Name | Description |
|---|---|---|
| IFlowGraphAnalysis<T> | analysis | The analysis to register. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of result produced by the analysis. |
Register<T>(Func<FlowGraph, IFlowGraphAnalysis<T>>)
Registers a function that creates a default analysis for a particular type of analysis result.
Declaration
public static void Register<T>(Func<FlowGraph, IFlowGraphAnalysis<T>> createAnalysis)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<FlowGraph, IFlowGraphAnalysis<T>> | createAnalysis | A function that creates an analysis based on a control-flow graph. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of result produced by the analysis. |