aboutsummaryrefslogblamecommitdiff
path: root/src/ARMeilleure/Translation/CompilerContext.cs
blob: 5b10686b31769e1f1a86ab8a73407c7f3c9dc48b (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                             
                                   

                                            
                                                  



                                               

                                       
         
                                        
                                            
                              
         
 
using ARMeilleure.IntermediateRepresentation;

namespace ARMeilleure.Translation
{
    readonly struct CompilerContext
    {
        public ControlFlowGraph Cfg { get; }

        public OperandType[] FuncArgTypes { get; }
        public OperandType FuncReturnType { get; }

        public CompilerOptions Options { get; }

        public CompilerContext(
            ControlFlowGraph cfg,
            OperandType[] funcArgTypes,
            OperandType funcReturnType,
            CompilerOptions options)
        {
            Cfg = cfg;
            FuncArgTypes = funcArgTypes;
            FuncReturnType = funcReturnType;
            Options = options;
        }
    }
}