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. More... | |
void | setUser (Instruction *NewUser) |
setUser - Assign a new user instruction for this use. More... | |
Value * | getOperandValToReplace () const |
void | setOperandValToReplace (Value *Op) |
const PostIncLoopSet & | getPostIncLoops () const |
void | transformToPostInc (const Loop *L) |
![]() | |
CallbackVH () | |
CallbackVH (Value *P) | |
operator Value * () const | |
virtual void | allUsesReplacedWith (Value *) |
![]() | |
ValueHandleBase (HandleBaseKind Kind) | |
ValueHandleBase (HandleBaseKind Kind, Value *V) | |
ValueHandleBase (HandleBaseKind Kind, const ValueHandleBase &RHS) | |
~ValueHandleBase () | |
Value * | operator= (Value *RHS) |
Value * | operator= (const ValueHandleBase &RHS) |
Value * | operator-> () const |
Value & | operator* () const |
![]() | |
IVStrideUse * | getPrevNode () |
Get the previous node, or 0 for the list head. More... | |
const IVStrideUse * | getPrevNode () const |
Get the previous node, or 0 for the list head. More... | |
IVStrideUse * | getNextNode () |
Get the next node, or 0 for the list tail. More... | |
const IVStrideUse * | getNextNode () const |
Get the next node, or 0 for the list tail. More... | |
Friends | |
class | IVUsers |
Additional Inherited Members | |
![]() | |
static void | ValueIsDeleted (Value *V) |
static void | ValueIsRAUWd (Value *Old, Value *New) |
![]() | |
enum | HandleBaseKind { Assert, Callback, Tracking, Weak } |
![]() | |
CallbackVH (const CallbackVH &RHS) | |
virtual | ~CallbackVH () |
void | setValPtr (Value *P) |
![]() | |
Value * | getValPtr () const |
void | setValPtrInt (unsigned K) |
unsigned | getValPtrInt () const |
![]() | |
ilist_node () | |
![]() | |
static bool | isValid (Value *V) |
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.
|
inline |
|
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().
|
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().
|
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().
|
inline |
|
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 326 of file IVUsers.cpp.
References llvm::SmallPtrSet< PtrType, SmallSize >::insert().