20 #ifndef LLVM_ADT_INDEXEDMAP_H 21 #define LLVM_ADT_INDEXEDMAP_H 29 template <
typename T,
typename ToIndexT =
identity<
unsigned>>
31 using IndexT =
typename ToIndexT::argument_type;
47 assert(toIndex_(n) < storage_.
size() &&
"index out of bounds!");
48 return storage_[toIndex_(n)];
52 assert(toIndex_(n) < storage_.
size() &&
"index out of bounds!");
53 return storage_[toIndex_(n)];
61 storage_.
resize(s, nullVal_);
69 unsigned NewSize = toIndex_(n) + 1;
70 if (NewSize > storage_.
size())
75 return toIndex_(n) < storage_.
size();
79 return storage_.
size();
85 #endif // LLVM_ADT_INDEXEDMAP_H StorageT::size_type size() const
This class represents lattice values for constants.
StorageT::reference operator[](IndexT n)
void reserve(size_type N)
typename SuperClass::size_type size_type
bool inBounds(IndexT n) const
void resize(typename StorageT::size_type s)
void reserve(typename StorageT::size_type s)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StorageT::const_reference operator[](IndexT n) const