LLVM API Documentation
#include <IVUsers.h>
Public Member Functions | |
IVStrideUse (IVUsers *P, Instruction *U, Value *O) | |
Instruction * | getUser () const |
getUser - Return the user instruction for this use. | |
void | setUser (Instruction *NewUser) |
setUser - Assign a new user instruction for this use. | |
Value * | getOperandValToReplace () const |
void | setOperandValToReplace (Value *Op) |
const PostIncLoopSet & | getPostIncLoops () const |
void | transformToPostInc (const Loop *L) |
Friends | |
class | IVUsers |
IVStrideUse - Keep track of one use of a strided induction variable. The Expr member keeps track of the expression, User is the actual user instruction of the operand, and 'OperandValToReplace' is the operand of the User that is the use.
llvm::IVStrideUse::IVStrideUse | ( | IVUsers * | P, |
Instruction * | U, | ||
Value * | O | ||
) | [inline] |
Value* llvm::IVStrideUse::getOperandValToReplace | ( | ) | const [inline] |
getOperandValToReplace - Return the Value of the operand in the user instruction that this IVStrideUse is representing.
Definition at line 55 of file IVUsers.h.
Referenced by llvm::IVUsers::getExpr(), and llvm::IVUsers::getReplacementExpr().
const PostIncLoopSet& llvm::IVStrideUse::getPostIncLoops | ( | ) | const [inline] |
getPostIncLoops - Return the set of loops for which the expression has been adjusted to use post-inc mode.
Definition at line 67 of file IVUsers.h.
Referenced by llvm::IVUsers::getExpr().
Instruction* llvm::IVStrideUse::getUser | ( | ) | const [inline] |
getUser - Return the user instruction for this use.
Definition at line 44 of file IVUsers.h.
References llvm::ValueHandleBase::getValPtr().
Referenced by llvm::IVUsers::getExpr().
void llvm::IVStrideUse::setOperandValToReplace | ( | Value * | Op | ) | [inline] |
void llvm::IVStrideUse::setUser | ( | Instruction * | NewUser | ) | [inline] |
setUser - Assign a new user instruction for this use.
Definition at line 49 of file IVUsers.h.
References llvm::CallbackVH::setValPtr().
void IVStrideUse::transformToPostInc | ( | const Loop * | L | ) |
transformToPostInc - Transform the expression to post-inc form for the given loop.
Definition at line 348 of file IVUsers.cpp.
References llvm::SmallPtrSetImpl< PtrType >::insert().