LLVM 20.0.0git
|
Creates and manages DebugObjects for JITLink artifacts. More...
#include "llvm/ExecutionEngine/Orc/DebugObjectManagerPlugin.h"
Additional Inherited Members | |
Public Types inherited from llvm::orc::ObjectLinkingLayer::Plugin | |
using | JITLinkSymbolSet = DenseSet< jitlink::Symbol * > |
using | SyntheticSymbolDependenciesMap = DenseMap< SymbolStringPtr, JITLinkSymbolSet > |
Creates and manages DebugObjects for JITLink artifacts.
DebugObjects are created when linking for a MaterializationResponsibility starts. They are pending as long as materialization is in progress.
There can only be one pending DebugObject per MaterializationResponsibility. If materialization fails, pending DebugObjects are discarded.
Once executable code for the MaterializationResponsibility is emitted, the corresponding DebugObject is finalized to target memory and the provided DebugObjectRegistrar is notified. Ownership of DebugObjects remains with the plugin.
Definition at line 48 of file DebugObjectManagerPlugin.h.
llvm::orc::DebugObjectManagerPlugin::DebugObjectManagerPlugin | ( | ExecutionSession & | ES, |
std::unique_ptr< DebugObjectRegistrar > | Target | ||
) |
Definition at line 397 of file DebugObjectManagerPlugin.cpp.
llvm::orc::DebugObjectManagerPlugin::DebugObjectManagerPlugin | ( | ExecutionSession & | ES, |
std::unique_ptr< DebugObjectRegistrar > | Target, | ||
bool | RequireDebugSections, | ||
bool | AutoRegisterCode | ||
) |
Create the plugin to submit DebugObjects for JITLink artifacts.
For all options the recommended setting is true.
RequireDebugSections: Submit debug objects to the executor only if they contain actual debug info. Turning this off may allow minimal debugging based on raw symbol names. Note that this may cause significant memory and transport overhead for objects built with a release configuration.
AutoRegisterCode: Notify the debugger for each new debug object. This is a good default mode, but it may cause significant overhead when adding many modules in sequence. When turning this off, the user has to issue the call to __jit_debug_register_code() on the executor side manually.
Definition at line 390 of file DebugObjectManagerPlugin.cpp.
|
default |
|
overridevirtual |
Reimplemented from llvm::orc::ObjectLinkingLayer::Plugin.
Definition at line 426 of file DebugObjectManagerPlugin.cpp.
References llvm::orc::DebugObject::hasFlags(), llvm::jitlink::PassConfiguration::PostAllocationPasses, llvm::orc::ReportFinalSectionLoadAddresses, llvm::orc::DebugObject::reportSectionTargetMemoryRange(), llvm::jitlink::LinkGraph::sections(), and llvm::Error::success().
|
overridevirtual |
Reimplemented from llvm::orc::ObjectLinkingLayer::Plugin.
Definition at line 447 of file DebugObjectManagerPlugin.cpp.
References llvm::Error::success(), llvm::Expected< T >::takeError(), and llvm::orc::MaterializationResponsibility::withResourceKeyDo().
|
overridevirtual |
Implements llvm::orc::ObjectLinkingLayer::Plugin.
Definition at line 487 of file DebugObjectManagerPlugin.cpp.
References llvm::Error::success().
|
overridevirtual |
Reimplemented from llvm::orc::ObjectLinkingLayer::Plugin.
Definition at line 403 of file DebugObjectManagerPlugin.cpp.
References assert(), llvm::orc::createDebugObjectFromBuffer(), llvm::dbgs(), G, llvm::orc::HasDebugSections, and LLVM_DEBUG.
|
overridevirtual |
Implements llvm::orc::ObjectLinkingLayer::Plugin.
Definition at line 510 of file DebugObjectManagerPlugin.cpp.
References llvm::Error::success().
|
overridevirtual |
Implements llvm::orc::ObjectLinkingLayer::Plugin.
Definition at line 494 of file DebugObjectManagerPlugin.cpp.