19#define DEBUG_TYPE "orc"
61 asm volatile(
"" :::
"memory");
72 dbgs() <<
"Adding debug object to GDB JIT interface "
73 <<
formatv(
"([{0:x16} -- {1:x16}])",
74 reinterpret_cast<uintptr_t
>(ObjAddr),
75 reinterpret_cast<uintptr_t
>(ObjAddr +
Size))
80 E->symfile_addr = ObjAddr;
81 E->symfile_size =
Size;
82 E->prev_entry =
nullptr;
85 static std::mutex JITDebugLock;
86 std::lock_guard<std::mutex> Lock(JITDebugLock);
90 E->next_entry = NextEntry;
102 using namespace orc::shared;
103 return WrapperFunction<SPSError(SPSExecutorAddrRange,
bool)>::handle(
109 if (AutoRegisterCode)
118 using namespace orc::shared;
119 return WrapperFunction<SPSError(SPSExecutorAddrRange,
bool)>::handle(
125 if (AutoRegisterCode)
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
#define LLVM_ATTRIBUTE_NOINLINE
LLVM_ATTRIBUTE_NOINLINE - On compilers where we have a directive to do so, mark a method "not for inl...
struct jit_descriptor __jit_debug_descriptor
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)
static constexpr uint32_t JitDescriptorVersion
static ErrorSuccess success()
Create a success value.
This is an optimization pass for GlobalISel generic memory operations.
auto formatv(const char *Fmt, Ts &&... Vals) -> formatv_object< decltype(std::make_tuple(detail::build_format_adapter(std::forward< 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.