1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[ORC] Update SpeculativeJIT example for dispatchTask changes in 5344c88dcb2.

This commit is contained in:
Lang Hames 2021-05-10 09:20:59 -07:00
parent db4cc8e963
commit 575b51688a

View File

@ -112,14 +112,12 @@ private:
std::move(ISMBuilder)) {
MainJD.addGenerator(std::move(ProcessSymbolsGenerator));
this->CODLayer.setImplMap(&Imps);
this->ES->setDispatchMaterialization(
[this](std::unique_ptr<MaterializationUnit> MU,
std::unique_ptr<MaterializationResponsibility> MR) {
this->ES->setDispatchTask(
[this](std::unique_ptr<Task> T) {
CompileThreads.async(
[UnownedMU = MU.release(), UnownedMR = MR.release()]() {
std::unique_ptr<MaterializationUnit> MU(UnownedMU);
std::unique_ptr<MaterializationResponsibility> MR(UnownedMR);
MU->materialize(std::move(MR));
[UnownedT = T.release()]() {
std::unique_ptr<Task> T(UnownedT);
T->run();
});
});
ExitOnErr(S.addSpeculationRuntime(MainJD, Mangle));