Enables easy lookup of blocks by addresses.

Synopsis

Declared in <llvm/ExecutionEngine/JITLink/JITLink.h>

class BlockAddressMap;

Type Aliases

Name

Description

AddrToBlockMap

Map from block start address to block pointer.

const_iterator

Const iterator over address‐to‐block map entries.

Member Functions

Name

Description

BlockAddressMap [constructor]

Create an empty block address map.

addBlock

Add a block to the map. Returns an error if the block overlaps with any existing block.

addBlockWithoutChecking

Add a block without overlap checking.

addBlocks

Add a range of blocks to the map. Returns an error if any block in the range overlaps with any other block in the range, or with any existing block in the map.

addBlocksWithoutChecking

Add blocks without overlap checking.

begin

Iterates over (Address, Block*) pairs in ascending order of address.

end

Returns an iterator to the end of the address‐to‐block map.

getBlockAt

Returns the block starting at the given address, or nullptr if no such block exists.

getBlockCovering

Returns the block covering the given address, or nullptr if no such block exists.

Static Member Functions

Name

Description

includeAllBlocks

A block predicate that always adds all blocks.

includeNonNull

A block predicate that always includes blocks with non‐null addresses.

Created with MrDocs