LLVM  6.0.0svn
Namespaces | Functions | Variables
ThumbRegisterInfo.cpp File Reference
#include "ThumbRegisterInfo.h"
#include "ARMBaseInstrInfo.h"
#include "ARMMachineFunctionInfo.h"
#include "ARMSubtarget.h"
#include "MCTargetDesc/ARMAddressingModes.h"
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/RegisterScavenging.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/CodeGen/TargetFrameLowering.h"
#include "llvm/Target/TargetMachine.h"
Include dependency graph for ThumbRegisterInfo.cpp:

Go to the source code of this file.

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 

Functions

static void emitThumb1LoadConstPool (MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, const DebugLoc &dl, unsigned DestReg, unsigned SubIdx, int Val, ARMCC::CondCodes Pred, unsigned PredReg, unsigned MIFlags)
 
static void emitThumb2LoadConstPool (MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, const DebugLoc &dl, unsigned DestReg, unsigned SubIdx, int Val, ARMCC::CondCodes Pred, unsigned PredReg, unsigned MIFlags)
 
static void emitThumbRegPlusImmInReg (MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, const DebugLoc &dl, unsigned DestReg, unsigned BaseReg, int NumBytes, bool CanChangeCC, const TargetInstrInfo &TII, const ARMBaseRegisterInfo &MRI, unsigned MIFlags=MachineInstr::NoFlags)
 emitThumbRegPlusImmInReg - Emits a series of instructions to materialize a destreg = basereg + immediate in Thumb code. More...
 
static void removeOperands (MachineInstr &MI, unsigned i)
 
static unsigned convertToNonSPOpcode (unsigned Opcode)
 convertToNonSPOpcode - Change the opcode to the non-SP version, because we're replacing the frame index with a non-SP register. More...
 

Variables

cl::opt< boolllvm::ReuseFrameIndexVals
 

Function Documentation

◆ convertToNonSPOpcode()

static unsigned convertToNonSPOpcode ( unsigned  Opcode)
static

convertToNonSPOpcode - Change the opcode to the non-SP version, because we're replacing the frame index with a non-SP register.

Definition at line 347 of file ThumbRegisterInfo.cpp.

Referenced by llvm::ThumbRegisterInfo::rewriteFrameIndex().

◆ emitThumb1LoadConstPool()

static void emitThumb1LoadConstPool ( MachineBasicBlock MBB,
MachineBasicBlock::iterator MBBI,
const DebugLoc dl,
unsigned  DestReg,
unsigned  SubIdx,
int  Val,
ARMCC::CondCodes  Pred,
unsigned  PredReg,
unsigned  MIFlags 
)
static

◆ emitThumb2LoadConstPool()

static void emitThumb2LoadConstPool ( MachineBasicBlock MBB,
MachineBasicBlock::iterator MBBI,
const DebugLoc dl,
unsigned  DestReg,
unsigned  SubIdx,
int  Val,
ARMCC::CondCodes  Pred,
unsigned  PredReg,
unsigned  MIFlags 
)
static

◆ emitThumbRegPlusImmInReg()

static void emitThumbRegPlusImmInReg ( MachineBasicBlock MBB,
MachineBasicBlock::iterator MBBI,
const DebugLoc dl,
unsigned  DestReg,
unsigned  BaseReg,
int  NumBytes,
bool  CanChangeCC,
const TargetInstrInfo TII,
const ARMBaseRegisterInfo MRI,
unsigned  MIFlags = MachineInstr::NoFlags 
)
static

◆ removeOperands()

static void removeOperands ( MachineInstr MI,
unsigned  i 
)
static