LLVM  10.0.0svn
Static Public Member Functions | Public Attributes | List of all members
llvm::SwitchCG::CaseCluster Struct Reference

A cluster of case labels. More...

#include "llvm/CodeGen/SwitchLoweringUtils.h"

Collaboration diagram for llvm::SwitchCG::CaseCluster:
Collaboration graph
[legend]

Static Public Member Functions

static CaseCluster range (const ConstantInt *Low, const ConstantInt *High, MachineBasicBlock *MBB, BranchProbability Prob)
 
static CaseCluster jumpTable (const ConstantInt *Low, const ConstantInt *High, unsigned JTCasesIndex, BranchProbability Prob)
 
static CaseCluster bitTests (const ConstantInt *Low, const ConstantInt *High, unsigned BTCasesIndex, BranchProbability Prob)
 

Public Attributes

CaseClusterKind Kind
 
const ConstantIntLow
 
const ConstantIntHigh
 
union {
   MachineBasicBlock *   MBB
 
   unsigned   JTCasesIndex
 
   unsigned   BTCasesIndex
 
}; 
 
BranchProbability Prob
 

Detailed Description

A cluster of case labels.

Definition at line 36 of file SwitchLoweringUtils.h.

Member Function Documentation

◆ bitTests()

static CaseCluster llvm::SwitchCG::CaseCluster::bitTests ( const ConstantInt Low,
const ConstantInt High,
unsigned  BTCasesIndex,
BranchProbability  Prob 
)
inlinestatic

◆ jumpTable()

static CaseCluster llvm::SwitchCG::CaseCluster::jumpTable ( const ConstantInt Low,
const ConstantInt High,
unsigned  JTCasesIndex,
BranchProbability  Prob 
)
inlinestatic

Definition at line 57 of file SwitchLoweringUtils.h.

References C, llvm::SwitchCG::CC_JumpTable, High, JTCasesIndex, Kind, Low, and Prob.

◆ range()

static CaseCluster llvm::SwitchCG::CaseCluster::range ( const ConstantInt Low,
const ConstantInt High,
MachineBasicBlock MBB,
BranchProbability  Prob 
)
inlinestatic

Definition at line 46 of file SwitchLoweringUtils.h.

References C, llvm::SwitchCG::CC_Range, High, Kind, Low, MBB, and Prob.

Member Data Documentation

◆ @196

union { ... }

◆ BTCasesIndex

unsigned llvm::SwitchCG::CaseCluster::BTCasesIndex

Definition at line 42 of file SwitchLoweringUtils.h.

Referenced by bitTests().

◆ High

const ConstantInt * llvm::SwitchCG::CaseCluster::High

Definition at line 38 of file SwitchLoweringUtils.h.

Referenced by bitTests(), jumpTable(), and range().

◆ JTCasesIndex

unsigned llvm::SwitchCG::CaseCluster::JTCasesIndex

Definition at line 41 of file SwitchLoweringUtils.h.

Referenced by jumpTable().

◆ Kind

CaseClusterKind llvm::SwitchCG::CaseCluster::Kind

Definition at line 37 of file SwitchLoweringUtils.h.

Referenced by bitTests(), jumpTable(), and range().

◆ Low

const ConstantInt* llvm::SwitchCG::CaseCluster::Low

Definition at line 38 of file SwitchLoweringUtils.h.

Referenced by bitTests(), jumpTable(), range(), and llvm::SwitchCG::sortAndRangeify().

◆ MBB

MachineBasicBlock* llvm::SwitchCG::CaseCluster::MBB

Definition at line 40 of file SwitchLoweringUtils.h.

Referenced by range(), and llvm::SwitchCG::sortAndRangeify().

◆ Prob

BranchProbability llvm::SwitchCG::CaseCluster::Prob

Definition at line 44 of file SwitchLoweringUtils.h.

Referenced by bitTests(), jumpTable(), range(), and llvm::SwitchCG::sortAndRangeify().


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