1
2
3
4
5
6 #include <cmajor/cmmid/CmsxBackEnd.hpp>
7 #include <cmajor/cmsxbe/Interface.hpp>
8
9 namespace cmajor { namespace mid {
10
11 void CmsxBackEnd::Init()
12 {
13 }
14
15 void CmsxBackEnd::Done()
16 {
17 }
18
19 cmajor::ir::EmittingContext* CmsxBackEnd::CreateEmittingContext(int optimizationLevel)
20 {
21 return CmsxbeCreateEmittingContext(optimizationLevel);
22 }
23
24 void CmsxBackEnd::DestroyEmittingContext(cmajor::ir::EmittingContext* emittingContext)
25 {
26 CmsxbeDestroyEmittingContext(emittingContext);
27 }
28
29 cmajor::ir::Emitter* CmsxBackEnd::CreateEmitter(cmajor::ir::EmittingContext* emittingContext)
30 {
31 return CmsxbeCreateEmitter(emittingContext);
32 }
33
34 void CmsxBackEnd::DestroyEmitter(cmajor::ir::Emitter* emitter)
35 {
36 CmsxbeDestroyEmitter(emitter);
37 }
38
39 } }