Home
last modified time | relevance | path

Searched refs:WorklistMap (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DGISelWorkList.h29 DenseMap<MachineInstr *, unsigned> WorklistMap; variable
36 GISelWorkList() : WorklistMap(N) {} in GISelWorkList()
38 bool empty() const { return WorklistMap.empty(); } in empty()
40 unsigned size() const { return WorklistMap.size(); } in size()
62 assert(WorklistMap.empty() && "Expecting empty worklistmap"); in finalize()
64 WorklistMap.reserve(Worklist.size()); in finalize()
66 if (!WorklistMap.try_emplace(Worklist[i], i).second) in finalize()
78 if (WorklistMap.try_emplace(I, Worklist.size()).second) in insert()
85 assert((Finalized || WorklistMap.empty()) && "Neither finalized nor empty"); in remove()
87 auto It = WorklistMap.find(I); in remove()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DInstructionWorklist.h27 DenseMap<Instruction *, unsigned> WorklistMap; variable
62 if (WorklistMap.insert(std::make_pair(I, Worklist.size())).second) { in push()
81 WorklistMap.reserve(Size); in reserve()
86 DenseMap<Instruction *, unsigned>::iterator It = WorklistMap.find(I); in remove()
87 if (It != WorklistMap.end()) { in remove()
90 WorklistMap.erase(It); in remove()
100 WorklistMap.erase(I); in removeOne()
124 assert(WorklistMap.empty() && "Worklist empty, but map not?"); in zap()
128 WorklistMap.clear(); in zap()