|
LLVM
4.0.0
|
InstCombineWorklist - This is the worklist management logic for InstCombine. More...
#include <InstCombineWorklist.h>
Public Member Functions | |
| InstCombineWorklist ()=default | |
| InstCombineWorklist (InstCombineWorklist &&)=default | |
| InstCombineWorklist & | operator= (InstCombineWorklist &&)=default |
| bool | isEmpty () const |
| void | Add (Instruction *I) |
| Add - Add the specified instruction to the worklist if it isn't already in it. More... | |
| void | AddValue (Value *V) |
| void | AddInitialGroup (ArrayRef< Instruction * > List) |
| AddInitialGroup - Add the specified batch of stuff in reverse order. More... | |
| void | Remove (Instruction *I) |
| Instruction * | RemoveOne () |
| void | AddUsersToWorkList (Instruction &I) |
| AddUsersToWorkList - When an instruction is simplified, add all users of the instruction to the work lists because they might get more simplified now. More... | |
| void | Zap () |
| Zap - check that the worklist is empty and nuke the backing store for the map if it is large. More... | |
InstCombineWorklist - This is the worklist management logic for InstCombine.
Definition at line 27 of file InstCombineWorklist.h.
|
default |
|
default |
|
inline |
Add - Add the specified instruction to the worklist if it isn't already in it.
Definition at line 41 of file InstCombineWorklist.h.
References llvm::dbgs(), and DEBUG.
Referenced by AddUsersToWorkList(), AddValue(), combineInstructionsOverFunction(), GetShiftedValue(), processUMulZExtIdiom(), llvm::InstCombiner::visitLoadInst(), and llvm::InstCombiner::visitStoreInst().
|
inline |
AddInitialGroup - Add the specified batch of stuff in reverse order.
which should only be done when the worklist is empty and when the group has no duplicates.
Definition at line 56 of file InstCombineWorklist.h.
References assert(), llvm::dbgs(), DEBUG, I, llvm::reverse(), and llvm::ArrayRef< T >::size().
Referenced by AddReachableCodeToWorklist().
|
inline |
AddUsersToWorkList - 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 89 of file InstCombineWorklist.h.
References Add(), and llvm::Value::users().
|
inline |
Definition at line 48 of file InstCombineWorklist.h.
|
inline |
Definition at line 37 of file InstCombineWorklist.h.
|
default |
|
inline |
Definition at line 69 of file InstCombineWorklist.h.
|
inline |
Definition at line 79 of file InstCombineWorklist.h.
References I.
|
inline |
Zap - check that the worklist is empty and nuke the backing store for the map if it is large.
Definition at line 97 of file InstCombineWorklist.h.
References assert().
1.8.6