[ORC] Add a utility to support dumping JIT'd objects to disk for debugging.
authorLang Hames <lhames@gmail.com>
Thu, 14 Nov 2019 23:58:21 +0000 (15:58 -0800)
committerLang Hames <lhames@gmail.com>
Fri, 15 Nov 2019 05:27:19 +0000 (21:27 -0800)
commit16f38dda292c6e2963e77f722042a9eb5da56d28
tree412b958c6d721df8ad15a3b014872fc5c8d9292e
parentbc11830c6a67025186d39fd9de6e49b3b570e2bd
[ORC] Add a utility to support dumping JIT'd objects to disk for debugging.

Adds a DumpObjects utility that can be used to dump JIT'd objects to disk.
Instances of DebugObjects may be used by ObjectTransformLayer as no-op
transforms.

This patch also adds an ObjectTransformLayer to LLJIT and an example of how
to use this utility to dump JIT'd objects in LLJIT.
llvm/examples/LLJITExamples/CMakeLists.txt
llvm/examples/LLJITExamples/LLJITDumpObjects/CMakeLists.txt [new file with mode: 0644]
llvm/examples/LLJITExamples/LLJITDumpObjects/LLJITDumpObjects.cpp [new file with mode: 0644]
llvm/include/llvm/ExecutionEngine/Orc/DebugUtils.h [new file with mode: 0644]
llvm/include/llvm/ExecutionEngine/Orc/LLJIT.h
llvm/include/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h
llvm/lib/ExecutionEngine/Orc/CMakeLists.txt
llvm/lib/ExecutionEngine/Orc/CompileUtils.cpp
llvm/lib/ExecutionEngine/Orc/DebugUtils.cpp [new file with mode: 0644]
llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
llvm/lib/ExecutionEngine/Orc/ObjectTransformLayer.cpp