[ORC] Add more utilities to aid debugging output.
authorLang Hames <lhames@gmail.com>
Fri, 28 Sep 2018 21:49:53 +0000 (21:49 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 28 Sep 2018 21:49:53 +0000 (21:49 +0000)
commit3e709d5f785aa67f93e33c49a94b2806e4456bd3
treece2aa92a81dce12775d1098a4bcd98d1536c4e8a
parentd47b5c7bedf2c2439628c4ba7212c00db5f97854
[ORC] Add more utilities to aid debugging output.

(1) A const accessor for the LLVMContext held by a ThreadSafeContext.

(2) A const accessor for the ThreadSafeModules held by an IRMaterializationUnit.

(3) A const MaterializationResponsibility reference to IRTransformLayer2's
    transform function. This makes IRTransformLayer2 useful for JIT debugging
    (since it can inspect JIT state through the responsibility argument) as well
    as program transformations.

llvm-svn: 343365
llvm/include/llvm/ExecutionEngine/Orc/IRTransformLayer.h
llvm/include/llvm/ExecutionEngine/Orc/Layer.h
llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h
llvm/lib/ExecutionEngine/Orc/IRTransformLayer.cpp
llvm/tools/lli/lli.cpp