LLVM 20.0.0git
|
#include "llvm/ExecutionEngine/Orc/OrcABISupport.h"
Static Public Member Functions | |
static void | writeTrampolines (char *TrampolineBlockWorkingMem, ExecutorAddr TrampolineBlockTargetAddress, ExecutorAddr ResolverAddr, unsigned NumTrampolines) |
Write the requested number of trampolines into the given memory, which must be big enough to hold 1 pointer, plus NumTrampolines trampolines. | |
static void | writeResolverCode (char *ResolverBlockWorkingMem, ExecutorAddr ResolverBlockTargetAddress, ExecutorAddr ReentryFnAddr, ExecutorAddr ReentryCtxAddr, bool isBigEndian) |
Write the resolver code into the given memory. | |
static void | writeIndirectStubsBlock (char *StubsBlockWorkingMem, ExecutorAddr StubsBlockTargetAddress, ExecutorAddr PointersBlockTargetAddress, unsigned NumStubs) |
Write NumStubs indirect stubs to working memory at StubsBlockWorkingMem. | |
Static Public Attributes | |
static constexpr unsigned | PointerSize = 4 |
static constexpr unsigned | TrampolineSize = 20 |
static constexpr unsigned | StubSize = 8 |
static constexpr unsigned | StubToPointerMaxDisplacement = 1 << 31 |
static constexpr unsigned | ResolverCodeSize = 0xfc |
Definition at line 239 of file OrcABISupport.h.
|
static |
Write NumStubs indirect stubs to working memory at StubsBlockWorkingMem.
Stubs will be written as if linked at StubsBlockTargetAddress, with the Nth stub using the Nth pointer in memory starting at PointersBlockTargetAddress.
Definition at line 643 of file OrcABISupport.cpp.
References assert(), llvm::orc::ExecutorAddr::getValue(), and I.
|
static |
Write the resolver code into the given memory.
The user is responsible for allocating the memory and setting permissions.
ReentryFnAddr should be the address of a function whose signature matches void* (*)(void *TrampolineAddr, void *ReentryCtxAddr). The ReentryCtxAddr argument of writeResolverCode will be passed as the second argument to the function at ReentryFnAddr.
Definition at line 512 of file OrcABISupport.cpp.
References llvm::orc::ExecutorAddr::getValue(), and isBigEndian().
Referenced by llvm::orc::OrcMips32Le::writeResolverCode(), and llvm::orc::OrcMips32Be::writeResolverCode().
|
static |
Write the requested number of trampolines into the given memory, which must be big enough to hold 1 pointer, plus NumTrampolines trampolines.
Definition at line 618 of file OrcABISupport.cpp.
References assert(), llvm::orc::ExecutorAddr::getValue(), and I.
|
staticconstexpr |
Definition at line 241 of file OrcABISupport.h.
|
staticconstexpr |
Definition at line 245 of file OrcABISupport.h.
|
staticconstexpr |
Definition at line 243 of file OrcABISupport.h.
|
staticconstexpr |
Definition at line 244 of file OrcABISupport.h.
|
staticconstexpr |
Definition at line 242 of file OrcABISupport.h.