|
LLVM
4.0.0
|
#include "Mips.h"#include "MCTargetDesc/MipsBaseInfo.h"#include "MCTargetDesc/MipsMCNaCl.h"#include "MipsMachineFunction.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) |
| Iterate over list of Br's operands and search for a MachineBasicBlock operand. More... | |
| static ReverseIter | getNonDebugInstr (ReverseIter B, const 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 33 of file MipsLongBranch.cpp.
|
static |
Definition at line 448 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 118 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 E, llvm::MachineInstr::getDesc(), llvm::MachineOperand::getMBB(), llvm::MCInstrDesc::getNumOperands(), llvm::MachineInstr::getOperand(), I, llvm::MachineOperand::isMBB(), and llvm_unreachable.
| STATISTIC | ( | LongBranches | , |
| "Number of long branches." | |||
| ) |
|
static |
1.8.6