Class DefaultAnalyses
Manages a collection of default control-flow graph analyses, which are used when no analysis is explicitly added to a graph.
Inheritance
System.Object
DefaultAnalyses
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 static class DefaultAnalyses
Methods
| Improve this Doc 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 |
---|---|---|
System.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. |