[PATCH] D85921: [ORC] In LLLazyJIT provide public access to the CompileOnDemandLayer
Stefan Gränitz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 13 12:04:51 PDT 2020
sgraenitz created this revision.
sgraenitz added a reviewer: lhames.
Herald added a project: LLVM.
sgraenitz requested review of this revision.
This is analog to how LLJIT provides public access to all its layers.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85921
Files:
llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
Index: llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
===================================================================
--- llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
+++ llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
@@ -238,6 +238,9 @@
CODLayer->setPartitionFunction(std::move(Partition));
}
+ /// Returns a reference to the on-demand layer.
+ CompileOnDemandLayer &getCompileOnDemandLayer() { return *CODLayer; }
+
/// Add a module to be lazily compiled to JITDylib JD.
Error addLazyIRModule(JITDylib &JD, ThreadSafeModule M);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85921.285455.patch
Type: text/x-patch
Size: 553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200813/8068f391/attachment.bin>
More information about the llvm-commits
mailing list