LLVM API Documentation

llvm::MachineJumpTableInfo Class Reference

#include <MachineJumpTableInfo.h>

Collaboration diagram for llvm::MachineJumpTableInfo:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 39 of file MachineJumpTableInfo.h.


Constructor & Destructor Documentation

llvm::MachineJumpTableInfo::MachineJumpTableInfo ( const TargetData td  )  [inline]

Definition at line 43 of file MachineJumpTableInfo.h.


Member Function Documentation

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().


The documentation for this class was generated from the following files: