13 #ifndef LLVM_EXECUTIONENGINE_JITLINK_JITLINKMEMORYMANAGER_H 14 #define LLVM_EXECUTIONENGINE_JITLINK_JITLINKMEMORYMANAGER_H 37 uint64_t ZeroFillSize)
38 : Alignment(Alignment), ContentSize(ContentSize),
39 ZeroFillSize(ZeroFillSize) {
46 uint64_t Alignment = 0;
47 size_t ContentSize = 0;
48 uint64_t ZeroFillSize = 0;
78 virtual Error deallocate() = 0;
98 #endif // LLVM_EXECUTIONENGINE_JITLINK_JITLINK_H std::function< void(Error)> FinalizeContinuation
virtual Expected< std::unique_ptr< Allocation > > allocate(const SegmentsRequestMap &Request)=0
Create an Allocation object.
This class represents lattice values for constants.
size_t getContentSize() const
uint64_t getAlignment() const
virtual ~JITLinkMemoryManager()
Tagged union holding either a T or a Error.
Manages allocations of JIT memory.
uint64_t JITTargetAddress
Represents an address in the target process's address space.
A JITLinkMemoryManager that allocates in-process memory.
MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memo...
constexpr bool isPowerOf2_32(uint32_t Value)
Return true if the argument is a power of two > 0.
SegmentRequest(uint64_t Alignment, size_t ContentSize, uint64_t ZeroFillSize)
uint64_t getZeroFillSize() const
Represents an allocation created by the memory manager.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Lightweight error class with error context and mandatory checking.