|
LLVM
4.0.0
|
Keeps track of a constant candidate and its uses. More...
#include <ConstantHoisting.h>
Public Member Functions | |
| ConstantCandidate (ConstantInt *ConstInt) | |
| void | addUser (Instruction *Inst, unsigned Idx, unsigned Cost) |
| Add the user to the use list and update the cost. More... | |
Public Attributes | |
| ConstantUseListType | Uses |
| ConstantInt * | ConstInt |
| unsigned | CumulativeCost |
Keeps track of a constant candidate and its uses.
Definition at line 61 of file ConstantHoisting.h.
|
inline |
Definition at line 66 of file ConstantHoisting.h.
|
inline |
Add the user to the use list and update the cost.
Definition at line 70 of file ConstantHoisting.h.
References CumulativeCost, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), and Uses.
| ConstantInt* llvm::consthoist::ConstantCandidate::ConstInt |
Definition at line 63 of file ConstantHoisting.h.
| unsigned llvm::consthoist::ConstantCandidate::CumulativeCost |
Definition at line 64 of file ConstantHoisting.h.
Referenced by addUser().
| ConstantUseListType llvm::consthoist::ConstantCandidate::Uses |
Definition at line 62 of file ConstantHoisting.h.
Referenced by addUser().
1.8.6