LLVM 23.0.0git
llvm::sandboxir::BrInstCommon Class Reference

Both UncondBrInst and CondBrInst inherit from this to avoid duplication of the successor iterators and successors(). More...

#include "llvm/SandboxIR/Instruction.h"

Inheritance diagram for llvm::sandboxir::BrInstCommon:
[legend]

Protected Types

template<typename LLVMBrTy>
using sb_succ_op_iterator
template<typename LLVMBrTy>
using const_sb_succ_op_iterator

Protected Member Functions

template<typename LLVMBrTy>
iterator_range< sb_succ_op_iterator< LLVMBrTy > > successors (llvm::Value *Val, Context &Ctx)
template<typename LLVMBrTy>
iterator_range< const_sb_succ_op_iterator< LLVMBrTy > > successors (llvm::Value *Val, Context &Ctx) const

Detailed Description

Both UncondBrInst and CondBrInst inherit from this to avoid duplication of the successor iterators and successors().

Does not hold any state.

Definition at line 1023 of file Instruction.h.

Member Typedef Documentation

◆ const_sb_succ_op_iterator

template<typename LLVMBrTy>
using llvm::sandboxir::BrInstCommon::const_sb_succ_op_iterator
protected
Initial value:
mapped_iterator<typename LLVMBrTy::const_succ_iterator,
ConstLLVMBBToSBBB>

Definition at line 1055 of file Instruction.h.

◆ sb_succ_op_iterator

template<typename LLVMBrTy>
using llvm::sandboxir::BrInstCommon::sb_succ_op_iterator
protected

Member Function Documentation

◆ successors() [1/2]

◆ successors() [2/2]

template<typename LLVMBrTy>
iterator_range< const_sb_succ_op_iterator< LLVMBrTy > > llvm::sandboxir::BrInstCommon::successors ( llvm::Value * Val,
Context & Ctx ) const
inlineprotected

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