CompilerContext.cs 706 B

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