Exemplo n.º 1
0
 /// <summary>
 /// Creates alignment information for global pointer and view types.
 /// </summary>
 public readonly AnalysisValue <int>?TryProvide(TypeNode typeNode) =>
 typeNode is IAddressSpaceType
     ? AnalysisValue.Create(GlobalAlignment, typeNode)
     : (AnalysisValue <int>?)null;
Exemplo n.º 2
0
 /// <summary>
 /// Creates initial analysis data.
 /// </summary>
 public AnalysisValue <int> CreateData(Value node) =>
 AnalysisValue.Create(GetInitialAlignment(node), node.Type);
Exemplo n.º 3
0
 /// <summary>
 /// Returns the value of <see cref="Value"/> for all input nodes.
 /// </summary>
 public readonly AnalysisValue <T> this[Value value] =>
 AnalysisValue.Create(Value, value.Type);