LLVM API Documentation

Defines | Functions | Variables
MipsOptimizePICCall.cpp File Reference
#include "Mips.h"
#include "MCTargetDesc/MipsBaseInfo.h"
#include "MipsMachineFunction.h"
#include "MipsTargetMachine.h"
#include "llvm/ADT/ScopedHashTable.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/Support/CommandLine.h"
Include dependency graph for MipsOptimizePICCall.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "optimize-mips-pic-call"

Functions

static MachineOperandgetCallTargetRegOpnd (MachineInstr &MI)
 Return the first MachineOperand of MI if it is a used virtual register.
static MVT::SimpleValueType getRegTy (unsigned Reg, MachineFunction &MF)
 Return type of register Reg.
static void setCallTargetReg (MachineBasicBlock *MBB, MachineBasicBlock::iterator I)
static void eraseGPOpnd (MachineInstr &MI)
 Search MI's operands for register GP and erase it.

Variables

static cl::opt< boolLoadTargetFromGOT ("mips-load-target-from-got", cl::init(true), cl::desc("Load target address from GOT"), cl::Hidden)
static cl::opt< boolEraseGPOpnd ("mips-erase-gp-opnd", cl::init(true), cl::desc("Erase GP Operand"), cl::Hidden)

Define Documentation

#define DEBUG_TYPE   "optimize-mips-pic-call"

Definition at line 26 of file MipsOptimizePICCall.cpp.


Function Documentation

static void eraseGPOpnd ( MachineInstr MI) [static]
static MachineOperand* getCallTargetRegOpnd ( MachineInstr MI) [static]
static MVT::SimpleValueType getRegTy ( unsigned  Reg,
MachineFunction MF 
) [static]
static void setCallTargetReg ( MachineBasicBlock MBB,
MachineBasicBlock::iterator  I 
) [static]

Variable Documentation

cl::opt<bool> EraseGPOpnd("mips-erase-gp-opnd", cl::init(true), cl::desc("Erase GP Operand"), cl::Hidden) [static]

Referenced by eraseGPOpnd().

cl::opt<bool> LoadTargetFromGOT("mips-load-target-from-got", cl::init(true), cl::desc("Load target address from GOT"), cl::Hidden) [static]