[llvm] 6bf74a9 - [ORC] In LLLazyJIT provide public access to the CompileOnDemandLayer
Stefan Gränitz via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 14 02:35:06 PDT 2020
Author: Stefan Gränitz
Date: 2020-08-14T11:34:44+02:00
New Revision: 6bf74a924fe9312e6dc4ced20259ce25d55dd764
URL: https://github.com/llvm/llvm-project/commit/6bf74a924fe9312e6dc4ced20259ce25d55dd764
DIFF: https://github.com/llvm/llvm-project/commit/6bf74a924fe9312e6dc4ced20259ce25d55dd764.diff
LOG: [ORC] In LLLazyJIT provide public access to the CompileOnDemandLayer
This is analog to how LLJIT provides public access to all its layers.
Differential Revision: https://reviews.llvm.org/D85921
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h b/llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
index c256be984344..46c91ecbcd78 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
@@ -238,6 +238,9 @@ class LLLazyJIT : public LLJIT {
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);
More information about the llvm-commits
mailing list