10 #ifndef LLVM_GISEL_WORKLIST_H 11 #define LLVM_GISEL_WORKLIST_H 22 class MachineFunction;
41 unsigned size()
const {
return WorklistMap.
size(); }
51 auto It = WorklistMap.
find(
I);
52 if (It == WorklistMap.
end())
return;
55 Worklist[It->second] =
nullptr;
57 WorklistMap.
erase(It);
70 assert(I &&
"Pop back on empty worklist");
This class represents lattice values for constants.
void push_back(const T &Elt)
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 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())