class MachineJumpTableInfo

Declaration

class MachineJumpTableInfo { /* full declaration omitted */ };

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:42

Member Variables

private llvm::MachineJumpTableInfo::JTEntryKind EntryKind
private std::vector<MachineJumpTableEntry> JumpTables

Method Overview

Methods

MachineJumpTableInfo(
    llvm::MachineJumpTableInfo::JTEntryKind Kind)

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:82

Parameters

llvm::MachineJumpTableInfo::JTEntryKind Kind

void RemoveJumpTable(unsigned int Idx)

Description

RemoveJumpTable - Mark the specific index as being dead. This will prevent it from being emitted.

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:105

Parameters

unsigned int Idx

bool RemoveMBBFromJumpTables(
    llvm::MachineBasicBlock* MBB)

Description

RemoveMBBFromJumpTables - If MBB is present in any jump tables, remove it.

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:110

Parameters

llvm::MachineBasicBlock* MBB

bool ReplaceMBBInJumpTable(
    unsigned int Idx,
    llvm::MachineBasicBlock* Old,
    llvm::MachineBasicBlock* New)

Description

ReplaceMBBInJumpTable - If Old is a target of the jump tables, update the jump table to branch to New instead.

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:118

Parameters

unsigned int Idx
llvm::MachineBasicBlock* Old
llvm::MachineBasicBlock* New

bool ReplaceMBBInJumpTables(
    llvm::MachineBasicBlock* Old,
    llvm::MachineBasicBlock* New)

Description

ReplaceMBBInJumpTables - If Old is the target of any jump tables, update the jump tables to branch to New instead.

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:114

Parameters

llvm::MachineBasicBlock* Old
llvm::MachineBasicBlock* New

unsigned int createJumpTableIndex(
    const std::vector<MachineBasicBlock*>&
        DestBBs)

Description

createJumpTableIndex - Create a new jump table.

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:93

Parameters

const std::vector<MachineBasicBlock*>& DestBBs

void dump() const

Description

dump - Call to stderr.

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:128

unsigned int getEntryAlignment(
    const llvm::DataLayout& TD) const

Description

getEntryAlignment - Return the alignment of each entry in the jump table.

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:89

Parameters

const llvm::DataLayout& TD

llvm::MachineJumpTableInfo::JTEntryKind
getEntryKind() const

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:84

unsigned int getEntrySize(
    const llvm::DataLayout& TD) const

Description

getEntrySize - Return the size of each entry in the jump table.

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:87

Parameters

const llvm::DataLayout& TD

const std::vector<MachineJumpTableEntry>&
getJumpTables() const

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:99

bool isEmpty() const

Description

isEmpty - Return true if there are no jump tables.

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:97

void print(llvm::raw_ostream& OS) const

Description

print - Used by the MachineFunction printer to print information about jump tables. Implemented in MachineFunction.cpp

Declared at: llvm/include/llvm/CodeGen/MachineJumpTableInfo.h:124

Parameters

llvm::raw_ostream& OS