13#ifndef LLVM_EXECUTIONENGINE_ORC_EPCDEBUGOBJECTREGISTRAR_H
14#define LLVM_EXECUTIONENGINE_ORC_EPCDEBUGOBJECTREGISTRAR_H
28class ExecutionSession;
34 bool AutoRegisterCode) = 0;
43 : ES(ES), RegisterFn(RegisterFn) {}
46 bool AutoRegisterCode)
override;
62 std::optional<ExecutorAddr> RegistrationFunctionDylib = std::nullopt);
Lightweight error class with error context and mandatory checking.
Tagged union holding either a T or a Error.
Abstract interface for registering debug objects in the executor process.
virtual Error registerDebugObject(ExecutorAddrRange TargetMem, bool AutoRegisterCode)=0
virtual ~DebugObjectRegistrar()=default
Use ExecutorProcessControl to register debug objects locally or in a remote executor process.
EPCDebugObjectRegistrar(ExecutionSession &ES, ExecutorAddr RegisterFn)
Error registerDebugObject(ExecutorAddrRange TargetMem, bool AutoRegisterCode) override
An ExecutionSession represents a running JIT program.
Represents an address in the executor process.
Expected< std::unique_ptr< EPCDebugObjectRegistrar > > createJITLoaderGDBRegistrar(ExecutionSession &ES, std::optional< ExecutorAddr > RegistrationFunctionDylib=std::nullopt)
Create a ExecutorProcessControl-based DebugObjectRegistrar that emits debug objects to the GDB JIT in...
This is an optimization pass for GlobalISel generic memory operations.
Represents an address range in the exceutor process.