Skip to content

Commit

Permalink
[ORC] Fix SpeculativeJIT example after 7da6342 (ORC dispatch unificat…
Browse files Browse the repository at this point in the history
…ion).

Fixes the bot failure at
https://lab.llvm.org/buildbot/#/builders/272/builds/14788.

Coding my way home: 6.48551S, 128.21109W
  • Loading branch information
lhames committed Apr 24, 2024
1 parent 945eeb2 commit e400e90
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ class SpeculativeJIT {
if (!DL)
return DL.takeError();

auto EPC = SelfExecutorProcessControl::Create();
auto EPC = SelfExecutorProcessControl::Create(
nullptr,
std::make_unique<DynamicThreadPoolTaskDispatcher>(std::nullopt));
if (!EPC)
return EPC.takeError();

Expand Down Expand Up @@ -116,14 +118,6 @@ class SpeculativeJIT {
std::move(ISMBuilder)) {
MainJD.addGenerator(std::move(ProcessSymbolsGenerator));
this->CODLayer.setImplMap(&Imps);
this->ES->setDispatchTask(
[this](std::unique_ptr<Task> T) {
CompileThreads.async(
[UnownedT = T.release()]() {
std::unique_ptr<Task> T(UnownedT);
T->run();
});
});
ExitOnErr(S.addSpeculationRuntime(MainJD, Mangle));
LocalCXXRuntimeOverrides CXXRuntimeoverrides;
ExitOnErr(CXXRuntimeoverrides.enable(MainJD, Mangle));
Expand Down

0 comments on commit e400e90

Please sign in to comment.