Worklist of MachineInstrs similar to InstCombineWorkList.
Synopsis
Declared in <llvm/CodeGen/GlobalISel/GISelWorkList.h>
template<unsigned int N>
class GISelWorkList;
Description
The main difference with something like a SetVector is that erasing an element doesn't move all elements over one place ‐ instead just nulls out the element of the vector.
FIXME: Does it make sense to factor out common code with the instcombinerWorkList?
Member Functions
Name |
Description |
|
Construct an empty worklist with map reserved for N entries. |
Remove all instructions from the worklist. |
|
Insert an instruction without updating the worklist map (deferred). |
|
Return true if the worklist contains no instructions. |
|
Build the worklist map from instructions added via deferred_insert. |
|
Add the specified instruction to the worklist if it isn't already in it. |
|
Remove and return the last non‐null instruction from the worklist. |
|
Remove I from the worklist if it exists. |
|
Return the number of instructions currently in the worklist. |
Created with MrDocs