LLVM: include/llvm/DWARFLinker/IndexedValuesMap.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9#ifndef LLVM_DWARFLINKER_INDEXEDVALUESMAP_H
10#define LLVM_DWARFLINKER_INDEXEDVALUESMAP_H
11
14#include
15
16namespace llvm {
18
19
21public:
24 if (Inserted)
26 return It->second;
27 }
28
30
35
37
38protected:
42};
43
44}
45}
46
47#endif
This file defines the DenseMap class.
This file defines the SmallVector class.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
LLVM Value Representation.
This class stores values sequentually and assigns index to the each value.
Definition IndexedValuesMap.h:20
uint64_t getValueIndex(T Value)
Definition IndexedValuesMap.h:22
SmallVector< uint64_t > Values
Definition IndexedValuesMap.h:41
DenseMap< uint64_t, uint64_t > ValueToIndexMapTy
Definition IndexedValuesMap.h:39
bool empty()
Definition IndexedValuesMap.h:36
const SmallVector< T > & getValues() const
Definition IndexedValuesMap.h:29
void clear()
Definition IndexedValuesMap.h:31
ValueToIndexMapTy ValueToIndexMap
Definition IndexedValuesMap.h:40
This is an optimization pass for GlobalISel generic memory operations.