LLVM API Documentation
#include "Mips.h"
#include "MCTargetDesc/MipsBaseInfo.h"
#include "MipsTargetMachine.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/IR/Function.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetRegisterInfo.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "mips-long-branch" |
Functions | |
STATISTIC (LongBranches,"Number of long branches.") | |
static MachineBasicBlock * | getTargetMBB (const MachineInstr &Br) |
static ReverseIter | getNonDebugInstr (ReverseIter B, ReverseIter E) |
static void | emitGPDisp (MachineFunction &F, const MipsInstrInfo *TII) |
Variables | |
static cl::opt< bool > | SkipLongBranch ("skip-mips-long-branch", cl::init(false), cl::desc("MIPS: Skip long branch pass."), cl::Hidden) |
static cl::opt< bool > | ForceLongBranch ("force-mips-long-branch", cl::init(false), cl::desc("MIPS: Expand all branches to long format."), cl::Hidden) |
#define DEBUG_TYPE "mips-long-branch" |
Definition at line 19 of file MipsLongBranch.cpp.
|
static |
Definition at line 400 of file MipsLongBranch.cpp.
References llvm::MachineInstrBuilder::addExternalSymbol(), llvm::MachineBasicBlock::begin(), llvm::BuildMI(), llvm::MachineBasicBlock::findDebugLoc(), llvm::MachineFunction::front(), llvm::MipsII::MO_ABS_HI, llvm::MipsII::MO_ABS_LO, and llvm::MachineBasicBlock::removeLiveIn().
|
static |
Definition at line 119 of file MipsLongBranch.cpp.
|
static |
Iterate over list of Br's operands and search for a MachineBasicBlock operand.
Definition at line 105 of file MipsLongBranch.cpp.
References llvm::MachineInstr::getDesc(), llvm::MachineOperand::getMBB(), llvm::MCInstrDesc::getNumOperands(), llvm::MachineInstr::getOperand(), I, and llvm::MachineOperand::isMBB().
STATISTIC | ( | LongBranches | , |
"Number of long branches." | |||
) |
|
static |