LLVM API Documentation

llvm::IVStrideUse Class Reference

#include <IVUsers.h>

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

List of all members.

Public Member Functions

 IVStrideUse (IVUsersOfOneStride *parent, const SCEV *offset, 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.
IVUsersOfOneStride * getParent () const
const SCEV * getOffset () const
void setOffset (const SCEV *Val)
 setOffset - Assign a new offset to this use.
Value * getOperandValToReplace () const
void setOperandValToReplace (Value *Op)
bool isUseOfPostIncrementedValue () const
void setIsUseOfPostIncrementedValue (bool Val)


Detailed Description

IVStrideUse - Keep track of one use of a strided induction variable, where the stride is stored externally. The Offset member keeps track of the offset from the IV, User is the actual user of the operand, and 'OperandValToReplace' is the operand of the User that is the use.

Definition at line 34 of file IVUsers.h.


Constructor & Destructor Documentation

llvm::IVStrideUse::IVStrideUse ( IVUsersOfOneStride *  parent,
const SCEV *  offset,
Instruction *  U,
Value *  O 
) [inline]

Definition at line 36 of file IVUsers.h.


Member Function Documentation

Instruction* llvm::IVStrideUse::getUser (  )  const [inline]

getUser - Return the user instruction for this use.

Definition at line 45 of file IVUsers.h.

References llvm::ValueHandleBase::getValPtr().

Referenced by llvm::IVUsers::getReplacementExpr().

void llvm::IVStrideUse::setUser ( Instruction *  NewUser  )  [inline]

setUser - Assign a new user instruction for this use.

Definition at line 50 of file IVUsers.h.

References llvm::CallbackVH::setValPtr().

IVUsersOfOneStride* llvm::IVStrideUse::getParent (  )  const [inline]

getParent - Return a pointer to the IVUsersOfOneStride that owns this IVStrideUse.

Definition at line 56 of file IVUsers.h.

Referenced by llvm::IVUsers::getReplacementExpr().

const SCEV* llvm::IVStrideUse::getOffset (  )  const [inline]

getOffset - Return the offset to add to a theoeretical induction variable that starts at zero and counts up by the stride to compute the value for the use. This always has the same type as the stride.

Definition at line 61 of file IVUsers.h.

Referenced by llvm::IVUsers::getReplacementExpr().

void llvm::IVStrideUse::setOffset ( const SCEV *  Val  )  [inline]

setOffset - Assign a new offset to this use.

Definition at line 64 of file IVUsers.h.

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 70 of file IVUsers.h.

void llvm::IVStrideUse::setOperandValToReplace ( Value *  Op  )  [inline]

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

Definition at line 76 of file IVUsers.h.

bool llvm::IVStrideUse::isUseOfPostIncrementedValue (  )  const [inline]

isUseOfPostIncrementedValue - True if this should use the post-incremented version of this IV, not the preincremented version. This can only be set in special cases, such as the terminating setcc instruction for a loop or uses dominated by the loop.

Definition at line 84 of file IVUsers.h.

Referenced by llvm::IVUsers::getReplacementExpr().

void llvm::IVStrideUse::setIsUseOfPostIncrementedValue ( bool  Val  )  [inline]

setIsUseOfPostIncrmentedValue - set the flag that indicates whether this is a post-increment use.

Definition at line 90 of file IVUsers.h.


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