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 (unsigned Size, unsigned Align)
unsigned getJumpTableIndex (const std::vector< MachineBasicBlock * > &DestBBs)
bool isEmpty () const
const std::vector
< MachineJumpTableEntry > & 
getJumpTables () const
void RemoveJumpTable (unsigned Idx)
bool ReplaceMBBInJumpTables (MachineBasicBlock *Old, MachineBasicBlock *New)
unsigned getEntrySize () const
unsigned getAlignment () const
 getAlignment - returns the target's preferred alignment for jump tables
void print (std::ostream &OS) const
void print (std::ostream *OS) const
void dump () const


Detailed Description

Definition at line 42 of file MachineJumpTableInfo.h.


Constructor & Destructor Documentation

llvm::MachineJumpTableInfo::MachineJumpTableInfo ( unsigned  Size,
unsigned  Align 
) [inline]

Definition at line 47 of file MachineJumpTableInfo.h.


Member Function Documentation

unsigned MachineJumpTableInfo::getJumpTableIndex ( const std::vector< MachineBasicBlock * > &  DestBBs  ) 

getJumpTableIndex - Create a new jump table or return an existing one.

getJumpTableIndex - Create a new jump table entry in the jump table info or return an existing one.

Definition at line 446 of file MachineFunction.cpp.

bool llvm::MachineJumpTableInfo::isEmpty (  )  const [inline]

isEmpty - Return true if there are no jump tables.

Definition at line 56 of file MachineJumpTableInfo.h.

const std::vector<MachineJumpTableEntry>& llvm::MachineJumpTableInfo::getJumpTables (  )  const [inline]

void llvm::MachineJumpTableInfo::RemoveJumpTable ( unsigned  Idx  )  [inline]

RemoveJumpTable - Mark the specific index as being dead. This will cause it to not be emitted.

Definition at line 64 of file MachineJumpTableInfo.h.

bool llvm::MachineJumpTableInfo::ReplaceMBBInJumpTables ( MachineBasicBlock Old,
MachineBasicBlock New 
) [inline]

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

Definition at line 70 of file MachineJumpTableInfo.h.

References MadeChange, and llvm::MachineJumpTableEntry::MBBs.

unsigned llvm::MachineJumpTableInfo::getEntrySize (  )  const [inline]

getEntrySize - Returns the size of an individual field in a jump table.

Definition at line 86 of file MachineJumpTableInfo.h.

Referenced by GetJumpTableSizeInBytes(), llvm::X86ATTAsmPrinter::printPICJumpTableEntry(), and llvm::AsmPrinter::printPICJumpTableEntry().

unsigned llvm::MachineJumpTableInfo::getAlignment (  )  const [inline]

getAlignment - returns the target's preferred alignment for jump tables

Definition at line 89 of file MachineJumpTableInfo.h.

Referenced by llvm::AsmPrinter::EmitJumpTableInfo().

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 458 of file MachineFunction.cpp.

Referenced by dump(), print(), and llvm::MachineFunction::print().

void llvm::MachineJumpTableInfo::print ( std::ostream *  OS  )  const [inline]

Definition at line 95 of file MachineJumpTableInfo.h.

References print().

void MachineJumpTableInfo::dump (  )  const

dump - Call print(std::cerr) to be called from the debugger.

Definition at line 467 of file MachineFunction.cpp.

References llvm::cerr(), and print().


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.