aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Translation/CompilerContext.cs
blob: cfe5ad1e50858b19ecdaead63ee2b194ec85989c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using ARMeilleure.IntermediateRepresentation;

namespace ARMeilleure.Translation
{
    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;
        }
    }
}