LLVM: llvm::InstructionWorklist Class Reference (original) (raw)

InstructionWorklist - This is the worklist management logic for InstCombine and other simplification passes. More...

#include "[llvm/Transforms/Utils/InstructionWorklist.h](InstructionWorklist%5F8h%5Fsource.html)"

Public Member Functions
InstructionWorklist ()=default
InstructionWorklist (InstructionWorklist &&)=default
InstructionWorklist & operator= (InstructionWorklist &&)=default
bool isEmpty () const
void add (Instruction *I)
Add instruction to the worklist.
void addValue (Value *V)
Add value to the worklist if it is an instruction.
void push (Instruction *I)
Push the instruction onto the worklist stack.
void pushValue (Value *V)
Instruction * popDeferred ()
void reserve (size_t Size)
void remove (Instruction *I)
Remove I from the worklist if it exists.
Instruction * removeOne ()
void pushUsersToWorkList (Instruction &I)
When an instruction is simplified, add all users of the instruction to the work lists because they might get more simplified now.
void handleUseCountDecrement (Value *V)
Should be called after decrementing the use-count on V.
void zap ()
Check that the worklist is empty and nuke the backing store for the map.

InstructionWorklist - This is the worklist management logic for InstCombine and other simplification passes.

Definition at line 25 of file InstructionWorklist.h.

llvm::InstructionWorklist::InstructionWorklist ( ) default

Referenced by InstructionWorklist(), and operator=().

InstructionWorklist() [2/2]

References InstructionWorklist().

add()

void llvm::InstructionWorklist::add ( Instruction * I) inline

addValue()

void llvm::InstructionWorklist::addValue ( Value * V) inline

handleUseCountDecrement()

void llvm::InstructionWorklist::handleUseCountDecrement ( Value * V) inline

isEmpty()

bool llvm::InstructionWorklist::isEmpty ( ) const inline

operator=()

References InstructionWorklist().

popDeferred()

Instruction * llvm::InstructionWorklist::popDeferred ( ) inline

push()

void llvm::InstructionWorklist::push ( Instruction * I) inline

pushUsersToWorkList()

void llvm::InstructionWorklist::pushUsersToWorkList ( Instruction & I) inline

When an instruction is simplified, add all users of the instruction to the work lists because they might get more simplified now.

Definition at line 106 of file InstructionWorklist.h.

References llvm::cast(), I, and push().

pushValue()

void llvm::InstructionWorklist::pushValue ( Value * V) inline

remove()

void llvm::InstructionWorklist::remove ( Instruction * I) inline

removeOne()

Instruction * llvm::InstructionWorklist::removeOne ( ) inline

reserve()

void llvm::InstructionWorklist::reserve ( size_t Size) inline

zap()

void llvm::InstructionWorklist::zap ( ) inline

The documentation for this class was generated from the following file: