LLVM API Documentation
#include <MachineJumpTableInfo.h>
Collaboration diagram for llvm::MachineJumpTableInfo:
Public Member Functions | |
MachineJumpTableInfo (const TargetData *td) | |
unsigned | getJumpTableIndex (std::vector< MachineBasicBlock * > &DestBBs) |
bool | isEmpty () const |
const std::vector< MachineJumpTableEntry > & | getJumpTables () const |
unsigned | getEntrySize () const |
getEntrySize - returns the size of an individual field in a jump table | |
unsigned | getAlignment () const |
getAlignment - returns the target's preferred alignment for jump tables | |
void | print (std::ostream &OS) const |
void | dump () const |
Definition at line 39 of file MachineJumpTableInfo.h.
llvm::MachineJumpTableInfo::MachineJumpTableInfo | ( | const TargetData * | td | ) | [inline] |
Definition at line 43 of file MachineJumpTableInfo.h.
unsigned MachineJumpTableInfo::getJumpTableIndex | ( | std::vector< MachineBasicBlock * > & | DestBBs | ) |
getJumpTableIndex - Create a new jump table or return an existing one.
Definition at line 319 of file MachineFunction.cpp.
Referenced by llvm::SelectionDAGLowering::visitSwitch().
bool llvm::MachineJumpTableInfo::isEmpty | ( | ) | const [inline] |
isEmpty - Return true if there are no jump tables.
Definition at line 51 of file MachineJumpTableInfo.h.
const std::vector<MachineJumpTableEntry>& llvm::MachineJumpTableInfo::getJumpTables | ( | ) | const [inline] |
Definition at line 53 of file MachineJumpTableInfo.h.
Referenced by llvm::AsmPrinter::EmitJumpTableInfo().
unsigned MachineJumpTableInfo::getEntrySize | ( | ) | const |
getEntrySize - returns the size of an individual field in a jump table
Definition at line 339 of file MachineFunction.cpp.
References llvm::TargetData::getPointerSize(), and TD.
unsigned MachineJumpTableInfo::getAlignment | ( | ) | const |
getAlignment - returns the target's preferred alignment for jump tables
Definition at line 343 of file MachineFunction.cpp.
References llvm::TargetData::getPointerAlignment(), and TD.
void MachineJumpTableInfo::print | ( | std::ostream & | OS | ) | const |
print - Used by the MachineFunction printer to print information about jump tables. Implemented in MachineFunction.cpp
Definition at line 330 of file MachineFunction.cpp.
Referenced by dump(), and llvm::MachineFunction::print().
void MachineJumpTableInfo::dump | ( | ) | const |
dump - Call print(std::cerr) to be called from the debugger.
Definition at line 347 of file MachineFunction.cpp.
References print().