diff options
| author | Lang Hames <lhames@gmail.com> | 2016-07-15 01:39:49 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2016-07-15 01:39:49 +0000 |
| commit | 7cd3ac724c3ec35fb239c55c2845c1f166fce5e6 (patch) | |
| tree | 01fa27177548883afc741f5f1fd3bd7ce43157bc /llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4 | |
| parent | aa2db889847114c6348c113e6215560ff2346cc2 (diff) | |
| download | bcm5719-llvm-7cd3ac724c3ec35fb239c55c2845c1f166fce5e6.tar.gz bcm5719-llvm-7cd3ac724c3ec35fb239c55c2845c1f166fce5e6.zip | |
[Kaleidoscope][BuildingAJIT] Start filling in text for chapter 3.
llvm-svn: 275518
Diffstat (limited to 'llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4')
| -rw-r--r-- | llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h index b856bb5e4f3..d14c2b1805f 100644 --- a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h +++ b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h @@ -66,8 +66,6 @@ class KaleidoscopeJIT { private: std::unique_ptr<TargetMachine> TM; const DataLayout DL; - std::unique_ptr<JITCompileCallbackManager> CompileCallbackMgr; - std::unique_ptr<IndirectStubsManager> IndirectStubsMgr; ObjectLinkingLayer<> ObjectLayer; IRCompileLayer<decltype(ObjectLayer)> CompileLayer; @@ -76,19 +74,22 @@ private: IRTransformLayer<decltype(CompileLayer), OptimizeFunction> OptimizeLayer; + std::unique_ptr<JITCompileCallbackManager> CompileCallbackMgr; + std::unique_ptr<IndirectStubsManager> IndirectStubsMgr; + public: typedef decltype(OptimizeLayer)::ModuleSetHandleT ModuleHandle; KaleidoscopeJIT() : TM(EngineBuilder().selectTarget()), DL(TM->createDataLayout()), - CompileCallbackMgr( - orc::createLocalCompileCallbackManager(TM->getTargetTriple(), 0)), CompileLayer(ObjectLayer, SimpleCompiler(*TM)), OptimizeLayer(CompileLayer, [this](std::unique_ptr<Module> M) { return optimizeModule(std::move(M)); - }) { + }), + CompileCallbackMgr( + orc::createLocalCompileCallbackManager(TM->getTargetTriple(), 0)) { auto IndirectStubsMgrBuilder = orc::createLocalIndirectStubsManagerBuilder(TM->getTargetTriple()); IndirectStubsMgr = IndirectStubsMgrBuilder(); |

