LLVM
8.0.1
|
#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"
Go to the source code of this file.
Namespaces | |
llvm | |
This class represents lattice values for constants. | |
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< bool > | llvm::ReuseFrameIndexVals |
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().
|
static |
Definition at line 62 of file ThumbRegisterInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), C, llvm::DebugLoc::get(), llvm::ConstantInt::get(), llvm::MachineFunction::getConstantPool(), llvm::MachineConstantPool::getConstantPoolIndex(), llvm::Function::getContext(), llvm::getDefRegState(), llvm::MachineFunction::getFunction(), llvm::ARMSubtarget::getInstrInfo(), llvm::Type::getInt32Ty(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getSubtarget(), llvm::MachineInstrBuilder::setMIFlags(), and TII.
Referenced by llvm::ThumbRegisterInfo::emitLoadConstPool().
|
static |
Definition at line 82 of file ThumbRegisterInfo.cpp.
References llvm::MachineInstrBuilder::add(), llvm::ARMCC::AL, llvm::BuildMI(), C, llvm::MCInstrInfo::get(), llvm::ConstantInt::get(), llvm::MachineFunction::getConstantPool(), llvm::MachineConstantPool::getConstantPoolIndex(), llvm::Function::getContext(), llvm::getDefRegState(), llvm::MachineFunction::getFunction(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::Type::getInt32Ty(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getSubtarget(), llvm::predOps(), llvm::MachineInstrBuilder::setMIFlags(), and TII.
Referenced by llvm::ThumbRegisterInfo::emitLoadConstPool().
|
static |
emitThumbRegPlusImmInReg - Emits a series of instructions to materialize a destreg = basereg + immediate in Thumb code.
Materialize the immediate in a register using mov / mvn sequences or load the immediate from a constpool entry.
Definition at line 124 of file ThumbRegisterInfo.cpp.
References llvm::ARM_AM::add, llvm::MachineInstrBuilder::add(), llvm::MachineInstrBuilder::addReg(), llvm::ARMCC::AL, assert(), llvm::BuildMI(), llvm::MachineRegisterInfo::createVirtualRegister(), llvm::ARMBaseRegisterInfo::emitLoadConstPool(), llvm::ARMSubtarget::genExecuteOnly(), llvm::MCInstrInfo::get(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getRegInfo(), llvm::MachineFunction::getSubtarget(), llvm::isARMLowRegister(), llvm::RegState::Kill, llvm::predOps(), llvm::MachineInstrBuilder::setMIFlags(), llvm::ARM_MB::ST, and llvm::t1CondCodeOp().
Referenced by llvm::ThumbRegisterInfo::eliminateFrameIndex(), and llvm::emitThumbRegPlusImmediate().
|
static |
Definition at line 339 of file ThumbRegisterInfo.cpp.
References llvm::MachineInstr::getNumOperands(), and llvm::MachineInstr::RemoveOperand().
Referenced by llvm::ThumbRegisterInfo::eliminateFrameIndex().