diff options
| author | Lang Hames <lhames@gmail.com> | 2018-09-23 21:30:05 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2018-09-23 21:30:05 +0000 |
| commit | bfd93e5ff6cc8909546aa021d71b2f70b93210d2 (patch) | |
| tree | c677eb5b20dfd6d46916120ae37e1923e8266622 /llvm | |
| parent | f3f3dd584a6b72572e96454f47a20c382c98b23c (diff) | |
| download | bcm5719-llvm-bfd93e5ff6cc8909546aa021d71b2f70b93210d2.tar.gz bcm5719-llvm-bfd93e5ff6cc8909546aa021d71b2f70b93210d2.zip | |
[ORC] Add some debugging output to Core.h/Core.cpp
Core now logs when materialization units are dispatched or return to JITDylibs.
llvm-svn: 342853
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/ExecutionEngine/Orc/Core.h | 7 | ||||
| -rw-r--r-- | llvm/lib/ExecutionEngine/Orc/Core.cpp | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/Core.h b/llvm/include/llvm/ExecutionEngine/Orc/Core.h index f7a92ae0fdd..6440d8197d4 100644 --- a/llvm/include/llvm/ExecutionEngine/Orc/Core.h +++ b/llvm/include/llvm/ExecutionEngine/Orc/Core.h @@ -18,6 +18,7 @@ #include "llvm/ExecutionEngine/JITSymbol.h" #include "llvm/ExecutionEngine/Orc/SymbolStringPool.h" #include "llvm/IR/Module.h" +#include "llvm/Support/Debug.h" #include <list> #include <map> @@ -25,6 +26,8 @@ #include <set> #include <vector> +#define DEBUG_TYPE "orc" + namespace llvm { namespace orc { @@ -736,6 +739,8 @@ public: /// Materialize the given unit. void dispatchMaterialization(JITDylib &JD, std::unique_ptr<MaterializationUnit> MU) { + LLVM_DEBUG(dbgs() << "For " << JD.getName() << " compiling " + << MU->getSymbols() << "\n"); DispatchMaterialization(JD, std::move(MU)); } @@ -832,4 +837,6 @@ private: } // End namespace orc } // End namespace llvm +#undef DEBUG_TYPE // "orc" + #endif // LLVM_EXECUTIONENGINE_ORC_CORE_H diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp index 780e2fb9802..b1a82e89c6f 100644 --- a/llvm/lib/ExecutionEngine/Orc/Core.cpp +++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp @@ -18,6 +18,8 @@ #include <future> #endif +#define DEBUG_TYPE "orc" + namespace llvm { namespace orc { @@ -334,6 +336,8 @@ void MaterializationResponsibility::replace( for (auto &KV : MU->getSymbols()) SymbolFlags.erase(KV.first); + LLVM_DEBUG(dbgs() << "For " << JD.getName() << " replacing " << MU->getSymbols() << "\n"); + JD.replace(std::move(MU)); } |

