LLVM 20.0.0git
Public Member Functions | List of all members
llvm::BranchInst::succ_op_iterator Struct Reference

Iterator type that casts an operand to a basic block. More...

#include "llvm/IR/Instructions.h"

Inheritance diagram for llvm::BranchInst::succ_op_iterator:
Inheritance graph
[legend]

Public Member Functions

 succ_op_iterator (value_op_iterator I)
 
BasicBlockoperator* () const
 
BasicBlockoperator-> () const
 
- Public Member Functions inherited from llvm::iterator_adaptor_base< succ_op_iterator, value_op_iterator, std::random_access_iterator_tag, BasicBlock *, ptrdiff_t, BasicBlock *, BasicBlock * >
succ_op_iterator & operator+= (difference_type n)
 
succ_op_iterator & operator-= (difference_type n)
 
difference_type operator- (const succ_op_iterator &RHS) const
 
succ_op_iterator & operator++ ()
 
succ_op_iterator & operator-- ()
 
BasicBlockoperator* () const
 
- Public Member Functions inherited from llvm::iterator_facade_base< DerivedT, IteratorCategoryT, T, DifferenceTypeT, PointerT, ReferenceT >
DerivedT operator+ (DifferenceTypeT n) const
 
DerivedT operator- (DifferenceTypeT n) const
 
DerivedT & operator++ ()
 
DerivedT operator++ (int)
 
DerivedT & operator-- ()
 
DerivedT operator-- (int)
 
bool operator!= (const DerivedT &RHS) const
 
bool operator> (const DerivedT &RHS) const
 
bool operator<= (const DerivedT &RHS) const
 
bool operator>= (const DerivedT &RHS) const
 
PointerProxy operator-> () const
 
ReferenceProxy operator[] (DifferenceTypeT n) const
 

Additional Inherited Members

- Public Types inherited from llvm::iterator_adaptor_base< succ_op_iterator, value_op_iterator, std::random_access_iterator_tag, BasicBlock *, ptrdiff_t, BasicBlock *, BasicBlock * >
using difference_type = ptrdiff_t
 
- Public Types inherited from llvm::iterator_facade_base< DerivedT, IteratorCategoryT, T, DifferenceTypeT, PointerT, ReferenceT >
using iterator_category = IteratorCategoryT
 
using value_type = T
 
using difference_type = DifferenceTypeT
 
using pointer = PointerT
 
using reference = ReferenceT
 
- Protected Types inherited from llvm::iterator_facade_base< DerivedT, IteratorCategoryT, T, DifferenceTypeT, PointerT, ReferenceT >
enum  { IsRandomAccess , IsBidirectional }
 
- Protected Member Functions inherited from llvm::iterator_adaptor_base< succ_op_iterator, value_op_iterator, std::random_access_iterator_tag, BasicBlock *, ptrdiff_t, BasicBlock *, BasicBlock * >
 iterator_adaptor_base ()=default
 
 iterator_adaptor_base (value_op_iterator u)
 
const value_op_iteratorwrapped () const
 
- Protected Attributes inherited from llvm::iterator_adaptor_base< succ_op_iterator, value_op_iterator, std::random_access_iterator_tag, BasicBlock *, ptrdiff_t, BasicBlock *, BasicBlock * >
value_op_iterator I
 

Detailed Description

Iterator type that casts an operand to a basic block.

This only makes sense because the successors are stored as adjacent operands for branch instructions.

Definition at line 3044 of file Instructions.h.

Constructor & Destructor Documentation

◆ succ_op_iterator()

llvm::BranchInst::succ_op_iterator::succ_op_iterator ( value_op_iterator  I)
inlineexplicit

Definition at line 3048 of file Instructions.h.

Member Function Documentation

◆ operator*()

BasicBlock * llvm::BranchInst::succ_op_iterator::operator* ( ) const
inline

Definition at line 3050 of file Instructions.h.

References I.

◆ operator->()

BasicBlock * llvm::BranchInst::succ_op_iterator::operator-> ( ) const
inline

Definition at line 3051 of file Instructions.h.

References llvm::operator*().


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