Skip to content

Commit 98e5547

Browse files
committed
[ORC] Update examples to incorporate changes in ce2207a.
This should fix the builders that were failing due to broken JIT examples after ce2207a.
1 parent debd2dc commit 98e5547

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ class KaleidoscopeJIT {
4545
KaleidoscopeJIT(JITTargetMachineBuilder JTMB, DataLayout DL)
4646
: ObjectLayer(ES,
4747
[]() { return std::make_unique<SectionMemoryManager>(); }),
48-
CompileLayer(ES, ObjectLayer, ConcurrentIRCompiler(std::move(JTMB))),
48+
CompileLayer(ES, ObjectLayer,
49+
std::make_unique<ConcurrentIRCompiler>(std::move(JTMB))),
4950
DL(std::move(DL)), Mangle(ES, this->DL),
5051
Ctx(std::make_unique<LLVMContext>()),
5152
MainJD(ES.createJITDylib("<main>")) {

llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ class KaleidoscopeJIT {
5151
KaleidoscopeJIT(JITTargetMachineBuilder JTMB, DataLayout DL)
5252
: ObjectLayer(ES,
5353
[]() { return std::make_unique<SectionMemoryManager>(); }),
54-
CompileLayer(ES, ObjectLayer, ConcurrentIRCompiler(std::move(JTMB))),
54+
CompileLayer(ES, ObjectLayer,
55+
std::make_unique<ConcurrentIRCompiler>(std::move(JTMB))),
5556
OptimizeLayer(ES, CompileLayer, optimizeModule), DL(std::move(DL)),
5657
Mangle(ES, this->DL), Ctx(std::make_unique<LLVMContext>()),
5758
MainJD(ES.createJITDylib("<main>")) {

llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class SpeculativeJIT {
104104
: ES(std::move(ES)), DL(std::move(DL)),
105105
MainJD(this->ES->createJITDylib("<main>")), LCTMgr(std::move(LCTMgr)),
106106
CompileLayer(*this->ES, ObjLayer,
107-
ConcurrentIRCompiler(std::move(JTMB))),
107+
std::make_unique<ConcurrentIRCompiler>(std::move(JTMB))),
108108
S(Imps, *this->ES),
109109
SpeculateLayer(*this->ES, CompileLayer, S, Mangle, BlockFreqQuery()),
110110
CODLayer(*this->ES, SpeculateLayer, *this->LCTMgr,

0 commit comments

Comments
 (0)