|
LLVM
7.0.0
|
Keeps track of a constant candidate and its uses. More...
#include "llvm/Transforms/Scalar/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 = 0 |
Keeps track of a constant candidate and its uses.
Definition at line 75 of file ConstantHoisting.h.
|
inline |
Definition at line 80 of file ConstantHoisting.h.
|
inline |
Add the user to the use list and update the cost.
Definition at line 83 of file ConstantHoisting.h.
References llvm::consthoist::ConstantUser::ConstantUser(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
| ConstantInt* llvm::consthoist::ConstantCandidate::ConstInt |
Definition at line 77 of file ConstantHoisting.h.
Referenced by calculateOffsetDiff().
| unsigned llvm::consthoist::ConstantCandidate::CumulativeCost = 0 |
Definition at line 78 of file ConstantHoisting.h.
| ConstantUseListType llvm::consthoist::ConstantCandidate::Uses |
Definition at line 76 of file ConstantHoisting.h.
1.8.13