CompilerContext.cs
1 using ARMeilleure.IntermediateRepresentation; 2 3 namespace ARMeilleure.Translation 4 { 5 readonly struct CompilerContext 6 { 7 public ControlFlowGraph Cfg { get; } 8 9 public OperandType[] FuncArgTypes { get; } 10 public OperandType FuncReturnType { get; } 11 12 public CompilerOptions Options { get; } 13 14 public CompilerContext( 15 ControlFlowGraph cfg, 16 OperandType[] funcArgTypes, 17 OperandType funcReturnType, 18 CompilerOptions options) 19 { 20 Cfg = cfg; 21 FuncArgTypes = funcArgTypes; 22 FuncReturnType = funcReturnType; 23 Options = options; 24 } 25 } 26 }