|
LLVM 22.0.0git
|
Keeps track of a constant candidate and its uses. More...
#include "llvm/Transforms/Scalar/ConstantHoisting.h"
Public Member Functions | |
| ConstantCandidate (ConstantInt *ConstInt, ConstantExpr *ConstExpr=nullptr) | |
| void | addUser (Instruction *Inst, unsigned Idx, unsigned Cost) |
| Add the user to the use list and update the cost. | |
Public Attributes | |
| ConstantUseListType | Uses |
| ConstantInt * | ConstInt |
| ConstantExpr * | ConstExpr |
| unsigned | CumulativeCost = 0 |
Keeps track of a constant candidate and its uses.
Definition at line 82 of file ConstantHoisting.h.
|
inline |
Definition at line 91 of file ConstantHoisting.h.
|
inline |
Add the user to the use list and update the cost.
Definition at line 95 of file ConstantHoisting.h.
References CumulativeCost, and Uses.
| ConstantExpr* llvm::consthoist::ConstantCandidate::ConstExpr |
Definition at line 88 of file ConstantHoisting.h.
Referenced by ConstantCandidate().
| ConstantInt* llvm::consthoist::ConstantCandidate::ConstInt |
Definition at line 87 of file ConstantHoisting.h.
Referenced by ConstantCandidate().
| unsigned llvm::consthoist::ConstantCandidate::CumulativeCost = 0 |
Definition at line 89 of file ConstantHoisting.h.
Referenced by addUser().
| ConstantUseListType llvm::consthoist::ConstantCandidate::Uses |
Definition at line 83 of file ConstantHoisting.h.
Referenced by addUser().