LLVM 22.0.0git
|
IVStrideUse - Keep track of one use of a strided induction variable. More...
#include "llvm/Analysis/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 |
getOperandValToReplace - Return the Value of the operand in the user instruction that this IVStrideUse is representing. | |
void | setOperandValToReplace (Value *Op) |
setOperandValToReplace - Assign a new Value as the operand value to replace. | |
const PostIncLoopSet & | getPostIncLoops () const |
getPostIncLoops - Return the set of loops for which the expression has been adjusted to use post-inc mode. | |
void | transformToPostInc (const Loop *L) |
transformToPostInc - Transform the expression to post-inc form for the given loop. | |
Public Member Functions inherited from llvm::CallbackVH | |
CallbackVH () | |
CallbackVH (Value *P) | |
CallbackVH (const Value *P) | |
operator Value * () const | |
virtual void | allUsesReplacedWith (Value *) |
Callback for Value RAUW. | |
Public Member Functions inherited from llvm::ValueHandleBase | |
ValueHandleBase (HandleBaseKind Kind) | |
ValueHandleBase (HandleBaseKind Kind, Value *V) | |
~ValueHandleBase () | |
Value * | operator= (Value *RHS) |
Value * | operator= (const ValueHandleBase &RHS) |
Value * | operator-> () const |
Value & | operator* () const |
Public Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< IVStrideUse, Options... >::type > | |
self_iterator | getIterator () |
reverse_self_iterator | getReverseIterator () |
std::enable_if_t< T::is_sentinel_tracking_explicit, bool > | isSentinel () const |
Check whether this is the sentinel node. | |
Public Member Functions inherited from llvm::ilist_detail::node_parent_access< ilist_node_impl< ilist_detail::compute_node_options< IVStrideUse, Options... >::type >, ilist_detail::compute_node_options< IVStrideUse, Options... >::type::parent_ty > | |
const ilist_detail::compute_node_options< IVStrideUse, Options... >::type::parent_ty * | getParent () const |
void | setParent (ilist_detail::compute_node_options< IVStrideUse, Options... >::type::parent_ty *Parent) |
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.
|
inline |
Definition at line 38 of file IVUsers.h.
References llvm::CallbackVH::CallbackVH(), IVUsers, and P.
|
inline |
getOperandValToReplace - Return the Value of the operand in the user instruction that this IVStrideUse is representing.
Definition at line 54 of file IVUsers.h.
Referenced by 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 66 of file IVUsers.h.
Referenced by llvm::IVUsers::getExpr().
|
inline |
getUser - Return the user instruction for this use.
Definition at line 43 of file IVUsers.h.
References llvm::cast(), and llvm::ValueHandleBase::getValPtr().
|
inline |
|
inline |
setUser - Assign a new user instruction for this use.
Definition at line 48 of file IVUsers.h.
References llvm::CallbackVH::setValPtr().
transformToPostInc - Transform the expression to post-inc form for the given loop.
Definition at line 365 of file IVUsers.cpp.
|
friend |
Definition at line 36 of file IVUsers.h.
References IVUsers.
Referenced by IVStrideUse(), and IVUsers.