20#ifndef LLVM_ADT_INDEXEDMAP_H
21#define LLVM_ADT_INDEXEDMAP_H
30template <
typename T,
typename ToIndexT =
identity<
unsigned>>
32 using IndexT =
typename ToIndexT::argument_type;
48 assert(toIndex_(n) < storage_.
size() &&
"index out of bounds!");
49 return storage_[toIndex_(n)];
53 assert(toIndex_(n) < storage_.
size() &&
"index out of bounds!");
54 return storage_[toIndex_(n)];
62 storage_.
resize(s, nullVal_);
70 unsigned NewSize = toIndex_(n) + 1;
71 if (NewSize > storage_.
size())
76 return toIndex_(n) < storage_.
size();
80 return storage_.
size();
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This file defines the SmallVector class.
StorageT::size_type size() const
void resize(typename StorageT::size_type s)
StorageT::reference operator[](IndexT n)
void reserve(typename StorageT::size_type s)
StorageT::const_reference operator[](IndexT n) const
bool inBounds(IndexT n) const
void reserve(size_type N)
This is an optimization pass for GlobalISel generic memory operations.