17#define DEBUG_TYPE "orc"
38 asm volatile(
"" :::
"memory");
49 dbgs() <<
"Adding debug object to GDB JIT interface "
50 <<
formatv(
"([{0:x16} -- {1:x16}])",
51 reinterpret_cast<uintptr_t
>(ObjAddr),
52 reinterpret_cast<uintptr_t
>(ObjAddr +
Size))
58 E->symfile_size =
Size;
59 E->prev_entry =
nullptr;
62 static std::mutex JITDebugLock;
63 std::lock_guard<std::mutex> Lock(JITDebugLock);
79 using namespace orc::shared;
80 return WrapperFunction<SPSError(SPSExecutorAddrRange,
bool)>::handle(
95 using namespace orc::shared;
96 return WrapperFunction<SPSError(SPSExecutorAddrRange,
bool)>::handle(
102 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
LLVM_ALWAYS_EXPORT LLVM_ATTRIBUTE_NOINLINE void __jit_debug_register_code()
static void appendJITDebugDescriptor(const char *ObjAddr, size_t Size)
orc::shared::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBAllocAction(const char *Data, size_t Size)
orc::shared::CWrapperFunctionResult llvm_orc_registerJITLoaderGDBWrapper(const char *Data, uint64_t Size)
LLVM_ALWAYS_EXPORT struct jit_descriptor __jit_debug_descriptor
static constexpr uint32_t JitDescriptorVersion
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)
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.