LLVM  4.0.0
Public Types | Public Member Functions | Friends | List of all members
llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle > Class Template Reference

reg_begin/reg_end - Provide iteration support to walk over all definitions and uses of a register within the MachineFunction that corresponds to this MachineRegisterInfo object. More...

#include <MachineRegisterInfo.h>

Inheritance diagram for llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >:
[legend]
Collaboration diagram for llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >:
[legend]

Public Types

typedef std::iterator
< std::forward_iterator_tag,
MachineInstr, ptrdiff_t >
::reference 
reference
 
typedef std::iterator
< std::forward_iterator_tag,
MachineInstr, ptrdiff_t >
::pointer 
pointer
 

Public Member Functions

 defusechain_iterator ()
 
bool operator== (const defusechain_iterator &x) const
 
bool operator!= (const defusechain_iterator &x) const
 
bool atEnd () const
 atEnd - return true if this iterator is equal to reg_end() on the value. More...
 
defusechain_iteratoroperator++ ()
 
defusechain_iterator operator++ (int)
 
unsigned getOperandNo () const
 getOperandNo - Return the operand # of this MachineOperand in its MachineInstr. More...
 
MachineOperandoperator* () const
 
MachineOperandoperator-> () const
 

Friends

class MachineRegisterInfo
 

Detailed Description

template<bool Uses, bool Defs, bool SkipDebug, bool ByOperand, bool ByInstr, bool ByBundle>
class llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >

reg_begin/reg_end - Provide iteration support to walk over all definitions and uses of a register within the MachineFunction that corresponds to this MachineRegisterInfo object.

defusechain_iterator - This class provides iterator support for machine operands in the function that use or define a specific register.

If ReturnUses is true it returns uses of registers, if ReturnDefs is true it returns defs. If neither are true then you are silly and it always returns end(). If SkipDebug is true it skips uses marked Debug when incrementing.

Definition at line 219 of file MachineRegisterInfo.h.

Member Typedef Documentation

template<bool Uses, bool Defs, bool SkipDebug, bool ByOperand, bool ByInstr, bool ByBundle>
typedef std::iterator<std::forward_iterator_tag, MachineInstr, ptrdiff_t>::pointer llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::pointer

Definition at line 875 of file MachineRegisterInfo.h.

template<bool Uses, bool Defs, bool SkipDebug, bool ByOperand, bool ByInstr, bool ByBundle>
typedef std::iterator<std::forward_iterator_tag, MachineInstr, ptrdiff_t>::reference llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::reference

Definition at line 873 of file MachineRegisterInfo.h.

Constructor & Destructor Documentation

template<bool Uses, bool Defs, bool SkipDebug, bool ByOperand, bool ByInstr, bool ByBundle>
llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::defusechain_iterator ( )
inline

Definition at line 877 of file MachineRegisterInfo.h.

Member Function Documentation

template<bool Uses, bool Defs, bool SkipDebug, bool ByOperand, bool ByInstr, bool ByBundle>
bool llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::atEnd ( ) const
inline

atEnd - return true if this iterator is equal to reg_end() on the value.

Definition at line 887 of file MachineRegisterInfo.h.

template<bool Uses, bool Defs, bool SkipDebug, bool ByOperand, bool ByInstr, bool ByBundle>
unsigned llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::getOperandNo ( ) const
inline

getOperandNo - Return the operand # of this MachineOperand in its MachineInstr.

Definition at line 915 of file MachineRegisterInfo.h.

References assert().

Referenced by llvm::FastISel::tryToFoldLoad().

template<bool Uses, bool Defs, bool SkipDebug, bool ByOperand, bool ByInstr, bool ByBundle>
bool llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator!= ( const defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle > &  x) const
inline
template<bool Uses, bool Defs, bool SkipDebug, bool ByOperand, bool ByInstr, bool ByBundle>
MachineOperand& llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator* ( ) const
inline

Definition at line 921 of file MachineRegisterInfo.h.

References assert().

template<bool Uses, bool Defs, bool SkipDebug, bool ByOperand, bool ByInstr, bool ByBundle>
defusechain_iterator& llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator++ ( )
inline

Definition at line 890 of file MachineRegisterInfo.h.

References advance(), assert(), llvm::getBundleStart(), and P.

template<bool Uses, bool Defs, bool SkipDebug, bool ByOperand, bool ByInstr, bool ByBundle>
defusechain_iterator llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator++ ( int  )
inline

Definition at line 909 of file MachineRegisterInfo.h.

template<bool Uses, bool Defs, bool SkipDebug, bool ByOperand, bool ByInstr, bool ByBundle>
MachineOperand* llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator-> ( ) const
inline

Definition at line 926 of file MachineRegisterInfo.h.

References assert().

template<bool Uses, bool Defs, bool SkipDebug, bool ByOperand, bool ByInstr, bool ByBundle>
bool llvm::MachineRegisterInfo::defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle >::operator== ( const defusechain_iterator< Uses, Defs, SkipDebug, ByOperand, ByInstr, ByBundle > &  x) const
inline

Friends And Related Function Documentation

template<bool Uses, bool Defs, bool SkipDebug, bool ByOperand, bool ByInstr, bool ByBundle>
friend class MachineRegisterInfo
friend

Definition at line 850 of file MachineRegisterInfo.h.


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