LLVM API Documentation

Public Member Functions | Friends
llvm::IVStrideUse Class Reference

#include <IVUsers.h>

Inheritance diagram for llvm::IVStrideUse:
Inheritance graph
[legend]
Collaboration diagram for llvm::IVStrideUse:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IVStrideUse (IVUsers *P, Instruction *U, Value *O)
InstructiongetUser () const
 getUser - Return the user instruction for this use.
void setUser (Instruction *NewUser)
 setUser - Assign a new user instruction for this use.
ValuegetOperandValToReplace () const
void setOperandValToReplace (Value *Op)
const PostIncLoopSetgetPostIncLoops () const
void transformToPostInc (const Loop *L)

Friends

class IVUsers

Detailed Description

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.

Definition at line 36 of file IVUsers.h.


Constructor & Destructor Documentation

llvm::IVStrideUse::IVStrideUse ( IVUsers P,
Instruction U,
Value O 
) [inline]

Definition at line 39 of file IVUsers.h.


Member Function Documentation

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().

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().

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().

setOperandValToReplace - Assign a new Value as the operand value to replace.

Definition at line 61 of file IVUsers.h.

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().

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().


Friends And Related Function Documentation

friend class IVUsers [friend]

Definition at line 37 of file IVUsers.h.


The documentation for this class was generated from the following files: