class JITLinkMemoryManager::FinalizedAlloc

Declaration

class JITLinkMemoryManager::FinalizedAlloc { /* full declaration omitted */ };

Description

Represents a finalized allocation. Finalized allocations must be passed to the JITLinkMemoryManager:deallocate method prior to being destroyed. The interpretation of the Address associated with the finalized allocation is up to the memory manager implementation. Common options are using the base address of the allocation, or the address of a memory management object that tracks the allocation.

Declared at: llvm/include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h:55

Member Variables

private orc::ExecutorAddr A = {InvalidAddr}
private static const uint64_t InvalidAddr = ~unsigned long(0)

Method Overview

Methods

FinalizedAlloc()

Declared at: llvm/include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h:61

FinalizedAlloc(orc::ExecutorAddr A)

Declared at: llvm/include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h:62

Parameters

orc::ExecutorAddr A

FinalizedAlloc(
    const llvm::jitlink::JITLinkMemoryManager::
        FinalizedAlloc&)

Declared at: llvm/include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h:66

Parameters

const llvm::jitlink::JITLinkMemoryManager:: FinalizedAlloc&

FinalizedAlloc(
    llvm::jitlink::JITLinkMemoryManager::
        FinalizedAlloc&& Other)

Declared at: llvm/include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h:67

Parameters

llvm::jitlink::JITLinkMemoryManager:: FinalizedAlloc&& Other

orc::ExecutorAddr getAddress() const

Description

Returns the address associated with this finalized allocation. The allocation is unmodified.

Declared at: llvm/include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h:88

bool operator bool() const

Description

FinalizedAllocs convert to false for default-constructed, and true otherwise. Default-constructed allocs need not be deallocated.

Declared at: llvm/include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h:84

orc::ExecutorAddr release()

Description

Returns the address associated with this finalized allocation and resets this object to the default state. This should only be used by allocators when deallocating memory.

Declared at: llvm/include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h:93

~FinalizedAlloc()

Declared at: llvm/include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h:77