LLVM 20.0.0git
|
Iterator for Instruction
s in a `BasicBlock.
More...
#include "llvm/SandboxIR/BasicBlock.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 |
BBIterator & | operator++ () |
BBIterator | operator++ (int) |
BBIterator & | operator-- () |
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. | |
BasicBlock * | getNodeParent () const |
\Returns the parent BB. | |
Iterator for Instruction
s in a `BasicBlock.
\Returns an sandboxir::Instruction & when derereferenced.
Definition at line 23 of file BasicBlock.h.
using llvm::sandboxir::BBIterator::difference_type = std::ptrdiff_t |
Definition at line 25 of file BasicBlock.h.
using llvm::sandboxir::BBIterator::iterator_category = std::bidirectional_iterator_tag |
Definition at line 29 of file BasicBlock.h.
Definition at line 27 of file BasicBlock.h.
Definition at line 28 of file BasicBlock.h.
Definition at line 26 of file BasicBlock.h.
|
inline |
Definition at line 38 of file BasicBlock.h.
|
inline |
Definition at line 39 of file BasicBlock.h.
|
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 61 of file BasicBlock.h.
BasicBlock * llvm::sandboxir::BBIterator::getNodeParent | ( | ) | const |
\Returns the parent BB.
Definition at line 43 of file BasicBlock.cpp.
References llvm::sandboxir::Context::getValue().
Referenced by llvm::sandboxir::SchedBundle::cluster(), and llvm::sandboxir::InsertPosition::getBasicBlock().
|
inline |
Definition at line 58 of file BasicBlock.h.
References llvm::Other.
|
inline |
Definition at line 41 of file BasicBlock.h.
BBIterator & llvm::sandboxir::BBIterator::operator++ | ( | ) |
Definition at line 16 of file BasicBlock.cpp.
References assert(), llvm::BasicBlock::end(), llvm::sandboxir::Instruction::getNumOfIRInstrs(), and llvm::sandboxir::Context::getValue().
|
inline |
Definition at line 43 of file BasicBlock.h.
BBIterator & llvm::sandboxir::BBIterator::operator-- | ( | ) |
Definition at line 29 of file BasicBlock.cpp.
References assert(), and llvm::BasicBlock::begin().
|
inline |
Definition at line 49 of file BasicBlock.h.
|
inline |
Definition at line 54 of file BasicBlock.h.
References assert(), and llvm::Other.