10 #ifndef LLVM_GISEL_WORKLIST_H 11 #define LLVM_GISEL_WORKLIST_H 35 unsigned size()
const {
return WorklistMap.
size(); }
47 auto It = WorklistMap.
find(
I);
48 if (It == WorklistMap.
end())
return;
51 Worklist[It->second] =
nullptr;
53 WorklistMap.
erase(It);
61 assert(I &&
"Pop back on empty worklist");
void push_back(const T &Elt)
Compute iterated dominance frontiers using a linear time algorithm.
iterator find(const_arg_type_t< KeyT > Val)
bool erase(const KeyT &Val)
std::pair< iterator, bool > try_emplace(KeyT &&Key, Ts &&... Args)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
LLVM_NODISCARD T pop_back_val()
MachineInstr * pop_back_val()
void insert(MachineInstr *I)
Add - Add the specified instruction to the worklist if it isn't already in it.
Representation of each machine instruction.
LLVM_NODISCARD bool empty() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())