llvm.org GIT mirror llvm / 30bfbc3
[Kaleidoscope][BuildingAJIT] Split up the code-block describing the substitution of OptimizeLayer for CompileLayer in Chapter 2. Hopefully this will read a little more clearly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271868 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 3 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
9696 return RuntimeDyld::SymbolInfo(nullptr);
9797 },
9898 // ...
99
100 .. code-block:: c++
101
102 // ...
99103 // Add the set to the JIT with the resolver we created above and a newly
100104 // created SectionMemoryManager.
101105 return OptimizeLayer.addModuleSet(std::move(Ms),
103107 std::move(Resolver));
104108 // ...
105109
110 .. code-block:: c++
111
106112 // ...
107113 return OptimizeLayer.findSymbol(MangledNameStream.str(), true);
108114 // ...
115
116 .. code-block:: c++
109117
110118 // ...
111119 OptimizeLayer.removeModuleSet(H);