| 
    LLVM 22.0.0git
    
   | 
 
A handle to a particular switch case. More...
#include "llvm/IR/Instructions.h"
Public Member Functions | |
| ConstantIntT * | getCaseValue () const | 
| Resolves case value for current case.   | |
| BasicBlockT * | getCaseSuccessor () const | 
| Resolves successor for current case.   | |
| unsigned | getCaseIndex () const | 
| Returns number of current case.   | |
| unsigned | getSuccessorIndex () const | 
| Returns successor index for current case successor.   | |
| bool | operator== (const CaseHandleImpl &RHS) const | 
Protected Types | |
| using | SwitchInstType = SwitchInstT | 
Protected Member Functions | |
| CaseHandleImpl ()=default | |
| CaseHandleImpl (SwitchInstT *SI, ptrdiff_t Index) | |
Protected Attributes | |
| SwitchInstT * | SI | 
| ptrdiff_t | Index | 
Friends | |
| class | SwitchInst::CaseIteratorImpl< CaseHandleImpl< SwitchInstT, ConstantIntT, BasicBlockT > > | 
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.
Definition at line 3240 of file Instructions.h.
      
  | 
  protected | 
Definition at line 3247 of file Instructions.h.
      
  | 
  protecteddefault | 
      
  | 
  inlineprotected | 
Definition at line 3253 of file Instructions.h.
      
  | 
  inline | 
Returns number of current case.
Definition at line 3272 of file Instructions.h.
Referenced by handleSwitchExpect().
      
  | 
  inline | 
Resolves successor for current case.
Definition at line 3264 of file Instructions.h.
Referenced by unswitchTrivialSwitch().
      
  | 
  inline | 
Resolves case value for current case.
Definition at line 3257 of file Instructions.h.
Referenced by llvm::sandboxir::SwitchInst::findCaseValue(), llvm::SwitchInst::findCaseValue(), and unswitchTrivialSwitch().
      
  | 
  inline | 
Returns successor index for current case successor.
Definition at line 3275 of file Instructions.h.
Referenced by unswitchTrivialSwitch().
      
  | 
  inline | 
Definition at line 3282 of file Instructions.h.
      
  | 
  friend | 
Definition at line 3527 of file Instructions.h.
      
  | 
  protected | 
Definition at line 3250 of file Instructions.h.
      
  | 
  protected | 
Definition at line 3249 of file Instructions.h.