LLVM API Documentation

PPCBranchSelector.cpp File Reference

#include "PPC.h"
#include "PPCInstrBuilder.h"
#include "PPCInstrInfo.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include <map>

Include dependency graph for PPCBranchSelector.cpp:

Go to the source code of this file.

Functions

FunctionPassllvm::createPPCBranchSelectionPass ()
static unsigned getNumBytesForInstruction (MachineInstr *MI)

Variables

std::map< MachineBasicBlock *,
unsigned > 
OffsetMap


Function Documentation

static unsigned getNumBytesForInstruction ( MachineInstr MI  )  [static]

getNumBytesForInstruction - Return the number of bytes of code the specified instruction may be. This returns the maximum number of bytes.

Definition at line 48 of file PPCBranchSelector.cpp.

References llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getSymbolName(), llvm::ISD::INLINEASM, llvm::MachineOperand::isExternalSymbol(), and MI.


Variable Documentation

std::map<MachineBasicBlock*, unsigned> OffsetMap

Definition at line 28 of file PPCBranchSelector.cpp.