LLVM 19.0.0git
Public Types | Public Member Functions | List of all members
llvm::sandboxir::BBIterator Class Reference

The BasicBlock::iterator. More...

#include "llvm/SandboxIR/SandboxIR.h"

Public Types

using difference_type = std::ptrdiff_t
 
using value_type = Instruction
 
using pointer = value_type *
 
using reference = value_type &
 
using iterator_category = std::bidirectional_iterator_tag
 

Public Member Functions

 BBIterator ()
 
 BBIterator (llvm::BasicBlock *BB, llvm::BasicBlock::iterator It, Context *Ctx)
 
reference operator* () const
 
BBIteratoroperator++ ()
 
BBIterator operator++ (int)
 
BBIteratoroperator-- ()
 
BBIterator operator-- (int)
 
bool operator== (const BBIterator &Other) const
 
bool operator!= (const BBIterator &Other) const
 
pointer get () const
 \Returns the SBInstruction that corresponds to this iterator, or null if the instruction is not found in the IR-to-SandboxIR tables.
 

Detailed Description

The BasicBlock::iterator.

Definition at line 452 of file SandboxIR.h.

Member Typedef Documentation

◆ difference_type

Definition at line 454 of file SandboxIR.h.

◆ iterator_category

using llvm::sandboxir::BBIterator::iterator_category = std::bidirectional_iterator_tag

Definition at line 458 of file SandboxIR.h.

◆ pointer

Definition at line 456 of file SandboxIR.h.

◆ reference

Definition at line 457 of file SandboxIR.h.

◆ value_type

Definition at line 455 of file SandboxIR.h.

Constructor & Destructor Documentation

◆ BBIterator() [1/2]

llvm::sandboxir::BBIterator::BBIterator ( )
inline

Definition at line 467 of file SandboxIR.h.

◆ BBIterator() [2/2]

llvm::sandboxir::BBIterator::BBIterator ( llvm::BasicBlock BB,
llvm::BasicBlock::iterator  It,
Context Ctx 
)
inline

Definition at line 468 of file SandboxIR.h.

Member Function Documentation

◆ get()

pointer llvm::sandboxir::BBIterator::get ( ) const
inline

\Returns the SBInstruction that corresponds to this iterator, or null if the instruction is not found in the IR-to-SandboxIR tables.

Definition at line 490 of file SandboxIR.h.

◆ operator!=()

bool llvm::sandboxir::BBIterator::operator!= ( const BBIterator Other) const
inline

Definition at line 487 of file SandboxIR.h.

References llvm::Other.

◆ operator*()

reference llvm::sandboxir::BBIterator::operator* ( ) const
inline

Definition at line 470 of file SandboxIR.h.

◆ operator++() [1/2]

BBIterator & BBIterator::operator++ ( )

◆ operator++() [2/2]

BBIterator llvm::sandboxir::BBIterator::operator++ ( int  )
inline

Definition at line 472 of file SandboxIR.h.

◆ operator--() [1/2]

BBIterator & BBIterator::operator-- ( )

◆ operator--() [2/2]

BBIterator llvm::sandboxir::BBIterator::operator-- ( int  )
inline

Definition at line 478 of file SandboxIR.h.

◆ operator==()

bool llvm::sandboxir::BBIterator::operator== ( const BBIterator Other) const
inline

Definition at line 483 of file SandboxIR.h.

References assert(), and llvm::Other.


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