class SwitchInst::CaseHandleImpl

Declaration

template <typename SwitchInstT,
          typename ConstantIntT,
          typename BasicBlockT>
class SwitchInst::CaseHandleImpl { /* full declaration omitted */ };

Description

A handle to a particular switch case. It exposes a convenient interface to both the case value and the successor block. We define this as a template and instantiate it to form both a const and non-const handle.

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

Templates

SwitchInstT
ConstantIntT
BasicBlockT

Member Variables

protected SwitchInstT* SI
protected ptrdiff_t Index

Method Overview

Methods

CaseHandleImpl<SwitchInstT,
               ConstantIntT,
               BasicBlockT>()

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

CaseHandleImpl<SwitchInstT,
               ConstantIntT,
               BasicBlockT>(SwitchInstT* SI,
                            ptrdiff_t Index)

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

Parameters

SwitchInstT* SI
ptrdiff_t Index

unsigned int getCaseIndex() const

Description

Returns number of current case.

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

BasicBlockT* getCaseSuccessor() const

Description

Resolves successor for current case.

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

ConstantIntT* getCaseValue() const

Description

Resolves case value for current case.

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

unsigned int getSuccessorIndex() const

Description

Returns successor index for current case successor.

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