1
2
3
4
5
6 #ifndef CMAJOR_CODEGEN_EMITTING_CONTEXT_INCLUDED
7 #define CMAJOR_CODEGEN_EMITTING_CONTEXT_INCLUDED
8 #include <cmajor/codegen/CodeGenApi.hpp>
9 #include <cmajor/ir/EmittingContext.hpp>
10
11 namespace cmajor { namespace codegen {
12
13 class EmittingContext
14 {
15 public:
16 EmittingContext(int optimizationLevel);
17 ~EmittingContext();
18 cmajor::ir::EmittingContext* GetBaseEmittingContext() { return baseEmittingContext; }
19 private:
20 cmajor::ir::EmittingContext* baseEmittingContext;
21 };
22
23 } }
24
25 #endif // CMAJOR_CODEGEN_CODEGENERATOR_INCLUDED