File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
llvm/examples/SpeculativeJIT Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ class SpeculativeJIT {
4949 if (!DL)
5050 return DL.takeError ();
5151
52- auto EPC = SelfExecutorProcessControl::Create ();
52+ auto EPC = SelfExecutorProcessControl::Create (
53+ nullptr ,
54+ std::make_unique<DynamicThreadPoolTaskDispatcher>(std::nullopt ));
5355 if (!EPC)
5456 return EPC.takeError ();
5557
@@ -116,14 +118,6 @@ class SpeculativeJIT {
116118 std::move (ISMBuilder)) {
117119 MainJD.addGenerator (std::move (ProcessSymbolsGenerator));
118120 this ->CODLayer .setImplMap (&Imps);
119- this ->ES ->setDispatchTask (
120- [this ](std::unique_ptr<Task> T) {
121- CompileThreads.async (
122- [UnownedT = T.release ()]() {
123- std::unique_ptr<Task> T (UnownedT);
124- T->run ();
125- });
126- });
127121 ExitOnErr (S.addSpeculationRuntime (MainJD, Mangle));
128122 LocalCXXRuntimeOverrides CXXRuntimeoverrides;
129123 ExitOnErr (CXXRuntimeoverrides.enable (MainJD, Mangle));
You can’t perform that action at this time.
0 commit comments