class SwitchInst::CaseIteratorImpl

Declaration

template <typename CaseHandleT>
class SwitchInst::CaseIteratorImpl { /* full declaration omitted */ };

Declared at: llvm/include/llvm/IR/Instructions.h:3364

Templates

CaseHandleT

Member Variables

private CaseHandleT Case

Method Overview

Methods

CaseIteratorImpl<CaseHandleT>()

Description

Default constructed iterator is in an invalid state until assigned to a case for a particular switch.

Declared at: llvm/include/llvm/IR/Instructions.h:3375

CaseIteratorImpl<CaseHandleT>(
    llvm::SwitchInst::CaseIteratorImpl::
        SwitchInstT* SI,
    unsigned int CaseNum)

Description

Initializes case iterator for given SwitchInst and for given case number.

Declared at: llvm/include/llvm/IR/Instructions.h:3379

Parameters

llvm::SwitchInst::CaseIteratorImpl::SwitchInstT* SI
unsigned int CaseNum

static CaseIteratorImpl<CaseHandleT>
fromSuccessorIndex(
    llvm::SwitchInst::CaseIteratorImpl::
        SwitchInstT* SI,
    unsigned int SuccessorIndex)

Description

Initializes case iterator for given SwitchInst and for given successor index.

Declared at: llvm/include/llvm/IR/Instructions.h:3383

Parameters

llvm::SwitchInst::CaseIteratorImpl::SwitchInstT* SI
unsigned int SuccessorIndex

CaseIteratorImpl<
    llvm::SwitchInst::ConstCaseHandle>
operator CaseIteratorImpl() const

Description

Support converting to the const variant. This will be a no-op for const variant.

Declared at: llvm/include/llvm/IR/Instructions.h:3393