17#define DEBUG_TYPE "orc"
37 asm volatile(
"" :::
"memory");
48 dbgs() <<
"Adding debug object to GDB JIT interface "
49 <<
formatv(
"([{0:x16} -- {1:x16}])",
50 reinterpret_cast<uintptr_t
>(ObjAddr),
51 reinterpret_cast<uintptr_t
>(ObjAddr +
Size))
57 E->symfile_size =
Size;
58 E->prev_entry =
nullptr;
61 static std::mutex JITDebugLock;
62 std::lock_guard<std::mutex> Lock(JITDebugLock);
78 using namespace orc::shared;
79 return WrapperFunction<SPSError(SPSExecutorAddrRange,
bool)>::handle(
94 using namespace orc::shared;
95 return WrapperFunction<SPSError(SPSExecutorAddrRange,
bool)>::handle(
101 if (AutoRegisterCode)
#define LLVM_ATTRIBUTE_NOINLINE
LLVM_ATTRIBUTE_NOINLINE - On compilers where we have a directive to do so, mark a method "not for inl...
#define LLVM_ALWAYS_EXPORT
orc::shared::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBAllocAction(const char *ArgData, size_t ArgSize)
orc::shared::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBWrapper(const char *ArgData, size_t ArgSize)
static void appendJITDebugDescriptor(const char *ObjAddr, size_t Size)
LLVM_ABI LLVM_ALWAYS_EXPORT LLVM_ATTRIBUTE_NOINLINE void __jit_debug_register_code()
static constexpr uint32_t JitDescriptorVersion
LLVM_ABI LLVM_ALWAYS_EXPORT struct jit_descriptor __jit_debug_descriptor
static ErrorSuccess success()
Create a success value.
This is an optimization pass for GlobalISel generic memory operations.
auto formatv(bool Validate, const char *Fmt, Ts &&...Vals)
LLVM_ABI raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
struct jit_code_entry * prev_entry
const char * symfile_addr
struct jit_code_entry * next_entry
struct jit_code_entry * relevant_entry
struct jit_code_entry * first_entry
Represents an address range in the exceutor process.