LLVM  6.0.0svn
Classes | Public Types | Public Member Functions | List of all members
llvm::TerminatorInst::SuccIterator< Term, BB > Class Template Reference

#include "llvm/IR/InstrTypes.h"

Inheritance diagram for llvm::TerminatorInst::SuccIterator< Term, BB >:
Inheritance graph
[legend]
Collaboration diagram for llvm::TerminatorInst::SuccIterator< Term, BB >:
Collaboration graph
[legend]

Public Types

using pointer = typename super::pointer
 
using reference = typename super::reference
 

Public Member Functions

 SuccIterator (Term T)
 
 SuccIterator (Term T, bool)
 
unsigned getSuccessorIndex () const
 This is used to interface between code that wants to operate on terminator instructions directly. More...
 
bool operator== (const Self &x) const
 
bool operator!= (const Self &x) const
 
reference operator* () const
 
pointer operator-> () const
 
Self & operator++ ()
 
Self operator++ (int)
 
Self & operator-- ()
 
Self operator-- (int)
 
bool operator< (const Self &x) const
 
bool operator<= (const Self &x) const
 
bool operator>= (const Self &x) const
 
bool operator> (const Self &x) const
 
Self & operator+= (int Right)
 
Self operator+ (int Right) const
 
Self & operator-= (int Right)
 
Self operator- (int Right) const
 
int operator- (const Self &x) const
 
SuccessorProxy operator[] (int offset)
 
BB * getSource ()
 Get the source BB of this iterator. More...
 

Detailed Description

template<class Term, class BB>
class llvm::TerminatorInst::SuccIterator< Term, BB >

Definition at line 102 of file InstrTypes.h.

Member Typedef Documentation

◆ pointer

template<class Term , class BB >
using llvm::TerminatorInst::SuccIterator< Term, BB >::pointer = typename super::pointer

Definition at line 108 of file InstrTypes.h.

◆ reference

template<class Term , class BB >
using llvm::TerminatorInst::SuccIterator< Term, BB >::reference = typename super::reference

Definition at line 109 of file InstrTypes.h.

Constructor & Destructor Documentation

◆ SuccIterator() [1/2]

template<class Term , class BB >
llvm::TerminatorInst::SuccIterator< Term, BB >::SuccIterator ( Term  T)
inlineexplicit

Definition at line 144 of file InstrTypes.h.

◆ SuccIterator() [2/2]

template<class Term , class BB >
llvm::TerminatorInst::SuccIterator< Term, BB >::SuccIterator ( Term  T,
bool   
)
inline

Definition at line 146 of file InstrTypes.h.

Member Function Documentation

◆ getSource()

template<class Term , class BB >
BB* llvm::TerminatorInst::SuccIterator< Term, BB >::getSource ( )
inline

Get the source BB of this iterator.

Definition at line 244 of file InstrTypes.h.

References assert().

◆ getSuccessorIndex()

template<class Term , class BB >
unsigned llvm::TerminatorInst::SuccIterator< Term, BB >::getSuccessorIndex ( ) const
inline

This is used to interface between code that wants to operate on terminator instructions directly.

Definition at line 161 of file InstrTypes.h.

Referenced by llvm::DOTGraphTraits< const Function * >::getEdgeAttributes(), llvm::BranchProbabilityInfo::getEdgeProbability(), llvm::DOTGraphTraits< const Function * >::getEdgeSourceLabel(), and llvm::SplitCriticalEdge().

◆ operator!=()

template<class Term , class BB >
bool llvm::TerminatorInst::SuccIterator< Term, BB >::operator!= ( const Self &  x) const
inline

◆ operator*()

template<class Term , class BB >
reference llvm::TerminatorInst::SuccIterator< Term, BB >::operator* ( ) const
inline

◆ operator+()

template<class Term , class BB >
Self llvm::TerminatorInst::SuccIterator< Term, BB >::operator+ ( int  Right) const
inline

Definition at line 220 of file InstrTypes.h.

References llvm::Right.

Referenced by llvm::TerminatorInst::SuccIterator< Term, BB >::operator-().

◆ operator++() [1/2]

template<class Term , class BB >
Self& llvm::TerminatorInst::SuccIterator< Term, BB >::operator++ ( )
inline

Definition at line 169 of file InstrTypes.h.

◆ operator++() [2/2]

template<class Term , class BB >
Self llvm::TerminatorInst::SuccIterator< Term, BB >::operator++ ( int  )
inline

Definition at line 174 of file InstrTypes.h.

◆ operator+=()

template<class Term , class BB >
Self& llvm::TerminatorInst::SuccIterator< Term, BB >::operator+= ( int  Right)
inline

Definition at line 213 of file InstrTypes.h.

References assert(), and llvm::Right.

Referenced by llvm::TerminatorInst::SuccIterator< Term, BB >::operator-=().

◆ operator-() [1/2]

template<class Term , class BB >
Self llvm::TerminatorInst::SuccIterator< Term, BB >::operator- ( int  Right) const
inline

◆ operator-() [2/2]

template<class Term , class BB >
int llvm::TerminatorInst::SuccIterator< Term, BB >::operator- ( const Self &  x) const
inline

Definition at line 230 of file InstrTypes.h.

References assert().

◆ operator--() [1/2]

template<class Term , class BB >
Self& llvm::TerminatorInst::SuccIterator< Term, BB >::operator-- ( )
inline

Definition at line 180 of file InstrTypes.h.

◆ operator--() [2/2]

template<class Term , class BB >
Self llvm::TerminatorInst::SuccIterator< Term, BB >::operator-- ( int  )
inline

Definition at line 184 of file InstrTypes.h.

◆ operator-=()

template<class Term , class BB >
Self& llvm::TerminatorInst::SuccIterator< Term, BB >::operator-= ( int  Right)
inline

◆ operator->()

template<class Term , class BB >
pointer llvm::TerminatorInst::SuccIterator< Term, BB >::operator-> ( ) const
inline

◆ operator<()

template<class Term , class BB >
bool llvm::TerminatorInst::SuccIterator< Term, BB >::operator< ( const Self &  x) const
inline

Definition at line 190 of file InstrTypes.h.

References assert().

◆ operator<=()

template<class Term , class BB >
bool llvm::TerminatorInst::SuccIterator< Term, BB >::operator<= ( const Self &  x) const
inline

Definition at line 196 of file InstrTypes.h.

References assert().

◆ operator==()

template<class Term , class BB >
bool llvm::TerminatorInst::SuccIterator< Term, BB >::operator== ( const Self &  x) const
inline

◆ operator>()

template<class Term , class BB >
bool llvm::TerminatorInst::SuccIterator< Term, BB >::operator> ( const Self &  x) const
inline

Definition at line 207 of file InstrTypes.h.

References assert().

◆ operator>=()

template<class Term , class BB >
bool llvm::TerminatorInst::SuccIterator< Term, BB >::operator>= ( const Self &  x) const
inline

Definition at line 201 of file InstrTypes.h.

References assert().

◆ operator[]()

template<class Term , class BB >
SuccessorProxy llvm::TerminatorInst::SuccIterator< Term, BB >::operator[] ( int  offset)
inline

Definition at line 237 of file InstrTypes.h.


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