LLVM  8.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 103 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 109 of file InstrTypes.h.

◆ reference

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

Definition at line 110 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 145 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 147 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 245 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 162 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 221 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 170 of file InstrTypes.h.

◆ operator++() [2/2]

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

Definition at line 175 of file InstrTypes.h.

◆ operator+=()

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

Definition at line 214 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 231 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 181 of file InstrTypes.h.

◆ operator--() [2/2]

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

Definition at line 185 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 191 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 197 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 208 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 202 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 238 of file InstrTypes.h.


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