class ValueMap

Declaration

template <typename KeyT, typename ValueT, typename Config>
class ValueMap { /* full declaration omitted */ };

Declared at: llvm/include/llvm/IR/ValueMap.h:85

Templates

KeyT
ValueT
Config

Method Overview

Methods

llvm::ValueMap::value_type& FindAndConstruct(
    const KeyT& Key)

Declared at: llvm/include/llvm/IR/ValueMap.h:203

Parameters

const KeyT& Key

int& MD()

Declared at: llvm/include/llvm/IR/ValueMap.h:115

ValueMap<KeyT, ValueT, Config>(
    const llvm::ValueMap::ExtraData& Data,
    unsigned int NumInitBuckets = 64)

Declared at: llvm/include/llvm/IR/ValueMap.h:105

Parameters

const llvm::ValueMap::ExtraData& Data
unsigned int NumInitBuckets = 64

ValueMap<KeyT, ValueT, Config>(
    const ValueMap<KeyT, ValueT, Config>&)

Declared at: llvm/include/llvm/IR/ValueMap.h:109

Parameters

const ValueMap<KeyT, ValueT, Config>&

ValueMap<KeyT, ValueT, Config>(
    ValueMap<KeyT, ValueT, Config>&&)

Declared at: llvm/include/llvm/IR/ValueMap.h:110

Parameters

ValueMap<KeyT, ValueT, Config>&&

ValueMap<KeyT, ValueT, Config>(
    unsigned int NumInitBuckets = 64)

Declared at: llvm/include/llvm/IR/ValueMap.h:103

Parameters

unsigned int NumInitBuckets = 64

inline int begin()

Declared at: llvm/include/llvm/IR/ValueMap.h:135

inline int begin() const

Declared at: llvm/include/llvm/IR/ValueMap.h:137

void clear()

Declared at: llvm/include/llvm/IR/ValueMap.h:146

llvm::ValueMap::size_type count(
    const KeyT& Val) const

Description

Return 1 if the specified key is in the map, 0 otherwise.

Declared at: llvm/include/llvm/IR/ValueMap.h:152

Parameters

const KeyT& Val

bool empty() const

Declared at: llvm/include/llvm/IR/ValueMap.h:140

inline int end() const

Declared at: llvm/include/llvm/IR/ValueMap.h:138

inline int end()

Declared at: llvm/include/llvm/IR/ValueMap.h:136

void erase(int I)

Declared at: llvm/include/llvm/IR/ValueMap.h:199

Parameters

int I

bool erase(const KeyT& Val)

Declared at: llvm/include/llvm/IR/ValueMap.h:191

Parameters

const KeyT& Val

int find(const KeyT& Val)

Declared at: llvm/include/llvm/IR/ValueMap.h:156

Parameters

const KeyT& Val

int find(const KeyT& Val) const

Declared at: llvm/include/llvm/IR/ValueMap.h:159

Parameters

const KeyT& Val

int& getMDMap()

Declared at: llvm/include/llvm/IR/ValueMap.h:120

Optional<llvm::Metadata*> getMappedMD(
    const llvm::Metadata* MD) const

Declared at: llvm/include/llvm/IR/ValueMap.h:123

Parameters

const llvm::Metadata* MD

const void* getPointerIntoBucketsArray() const

Description

getPointerIntoBucketsArray() - Return an opaque pointer into the buckets array. In conjunction with the previous method, this can be used to determine whether an insertion caused the ValueMap to reallocate.

Declared at: llvm/include/llvm/IR/ValueMap.h:221

bool hasMD() const

Declared at: llvm/include/llvm/IR/ValueMap.h:114

template <typename InputIt>
void insert(InputIt I, InputIt E)

Description

insert - Range insertion of pairs.

Declared at: llvm/include/llvm/IR/ValueMap.h:186

Templates

InputIt

Parameters

InputIt I
InputIt E

int insert(std::pair<KeyT, ValueT>&& KV)

Declared at: llvm/include/llvm/IR/ValueMap.h:178

Parameters

std::pair<KeyT, ValueT>&& KV

int insert(const std::pair<KeyT, ValueT>& KV)

Declared at: llvm/include/llvm/IR/ValueMap.h:173

Parameters

const std::pair<KeyT, ValueT>& KV

bool isPointerIntoBucketsArray(
    const void* Ptr) const

Description

isPointerIntoBucketsArray - Return true if the specified pointer points somewhere into the ValueMap's array of buckets (i.e. either to a key or value in the ValueMap).

Declared at: llvm/include/llvm/IR/ValueMap.h:214

Parameters

const void* Ptr

ValueT lookup(const KeyT& Val) const

Description

lookup - Return the entry for the specified key, or a default constructed value if no such entry exists.

Declared at: llvm/include/llvm/IR/ValueMap.h:165

Parameters

const KeyT& Val

void resize(size_t Size)

Description

Grow the map so that it has at least Size buckets. Does not shrink

Declared at: llvm/include/llvm/IR/ValueMap.h:144

Parameters

size_t Size

llvm::ValueMap::size_type size() const

Declared at: llvm/include/llvm/IR/ValueMap.h:141