LLVM API Documentation
#include <Thumb2RegisterInfo.h>
Public Member Functions | |
Thumb2RegisterInfo (const ARMSubtarget &STI) | |
void | emitLoadConstPool (MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI, DebugLoc dl, unsigned DestReg, unsigned SubIdx, int Val, ARMCC::CondCodes Pred=ARMCC::AL, unsigned PredReg=0, unsigned MIFlags=MachineInstr::NoFlags) const override |
Definition at line 24 of file Thumb2RegisterInfo.h.
Definition at line 28 of file Thumb2RegisterInfo.cpp.
void Thumb2RegisterInfo::emitLoadConstPool | ( | MachineBasicBlock & | MBB, |
MachineBasicBlock::iterator & | MBBI, | ||
DebugLoc | dl, | ||
unsigned | DestReg, | ||
unsigned | SubIdx, | ||
int | Val, | ||
ARMCC::CondCodes | Pred = ARMCC::AL , |
||
unsigned | PredReg = 0 , |
||
unsigned | MIFlags = MachineInstr::NoFlags |
||
) | const [override, virtual] |
emitLoadConstPool - Emits a load from constpool to materialize the specified immediate.
Reimplemented from llvm::ARMBaseRegisterInfo.
Definition at line 35 of file Thumb2RegisterInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), llvm::ARMCC::AL, llvm::BuildMI(), llvm::CallingConv::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::MachineInstrBuilder::setMIFlags(), and TII.