LLVM API Documentation
#include <Thumb1InstrInfo.h>
Definition at line 25 of file Thumb1InstrInfo.h.
| Thumb1InstrInfo::Thumb1InstrInfo | ( | const ARMSubtarget & | STI | ) | [explicit] |
Definition at line 25 of file Thumb1InstrInfo.cpp.
| bool Thumb1InstrInfo::BlockHasNoFallThrough | ( | const MachineBasicBlock & | MBB | ) | const [virtual] |
BlockHasNoFallThrough - Return true if the specified block does not fall-through into its successor block. This is primarily used when a branch is unanalyzable. It is useful for things like unconditional indirect branches (jump tables).
Implements llvm::ARMBaseInstrInfo.
Definition at line 33 of file Thumb1InstrInfo.cpp.
References llvm::MachineBasicBlock::back(), llvm::MachineBasicBlock::empty(), and llvm::MachineInstr::getOpcode().
| const Thumb1RegisterInfo& llvm::Thumb1InstrInfo::getRegisterInfo | ( | ) | const [inline, virtual] |
getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As such, whenever a client has an instance of instruction info, it should always be able to get register info as well (through this method).
Implements llvm::ARMBaseInstrInfo.
Definition at line 41 of file Thumb1InstrInfo.h.
| bool Thumb1InstrInfo::spillCalleeSavedRegisters | ( | MachineBasicBlock & | MBB, | |
| MachineBasicBlock::iterator | MI, | |||
| const std::vector< CalleeSavedInfo > & | CSI | |||
| ) | const [virtual] |
spillCalleeSavedRegisters - Issues instruction(s) to spill all callee saved registers and returns true if it isn't possible / profitable to do so by issuing a series of store instructions via storeRegToStackSlot(). Returns false otherwise.
Reimplemented from llvm::TargetInstrInfo.
Definition at line 148 of file Thumb1InstrInfo.cpp.
References llvm::AddDefaultPred(), llvm::MachineBasicBlock::addLiveIn(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::MachineBasicBlock::end(), llvm::DebugLoc::getUnknownLoc(), llvm::RegState::Kill, and Reg.
| bool Thumb1InstrInfo::restoreCalleeSavedRegisters | ( | MachineBasicBlock & | MBB, | |
| MachineBasicBlock::iterator | MI, | |||
| const std::vector< CalleeSavedInfo > & | CSI | |||
| ) | const [virtual] |
restoreCalleeSavedRegisters - Issues instruction(s) to restore all callee saved registers and returns true if it isn't possible / profitable to do so by issuing a series of load instructions via loadRegToStackSlot(). Returns false otherwise.
Reimplemented from llvm::TargetInstrInfo.
Definition at line 169 of file Thumb1InstrInfo.cpp.
References llvm::AddDefaultPred(), llvm::MachineInstrBuilder::addReg(), AFI, llvm::BuildMI(), llvm::MachineBasicBlock::erase(), llvm::getDefRegState(), llvm::MachineFunction::getInfo(), llvm::MachineBasicBlock::getParent(), llvm::ARMFunctionInfo::getVarArgsRegSaveSize(), llvm::MachineBasicBlock::insert(), MF, and Reg.
| bool Thumb1InstrInfo::copyRegToReg | ( | MachineBasicBlock & | MBB, | |
| MachineBasicBlock::iterator | MI, | |||
| unsigned | DestReg, | |||
| unsigned | SrcReg, | |||
| const TargetRegisterClass * | DestRC, | |||
| const TargetRegisterClass * | SrcRC | |||
| ) | const [virtual] |
copyRegToReg - Emit instructions to copy between a pair of registers. It returns false if the target does not how to copy between the specified registers.
Reimplemented from llvm::ARMBaseInstrInfo.
Definition at line 50 of file Thumb1InstrInfo.cpp.
References llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::MachineBasicBlock::end(), and llvm::DebugLoc::getUnknownLoc().
| void Thumb1InstrInfo::storeRegToStackSlot | ( | MachineBasicBlock & | MBB, | |
| MachineBasicBlock::iterator | MI, | |||
| unsigned | SrcReg, | |||
| bool | isKill, | |||
| int | FrameIndex, | |||
| const TargetRegisterClass * | RC | |||
| ) | const [virtual] |
storeRegToStackSlot - Store the specified register of the given register class to the specified stack frame index. The store instruction is to be added to the given machine basic block before the specified machine instruction. If isKill is true, the register operand is the last use and must be marked kill.
Reimplemented from llvm::ARMBaseInstrInfo.
Definition at line 113 of file Thumb1InstrInfo.cpp.
References llvm::AddDefaultPred(), llvm::BuildMI(), llvm::MachineBasicBlock::end(), llvm::getKillRegState(), llvm::DebugLoc::getUnknownLoc(), llvm::isARMLowRegister(), and llvm::TargetRegisterInfo::isPhysicalRegister().
| void Thumb1InstrInfo::loadRegFromStackSlot | ( | MachineBasicBlock & | MBB, | |
| MachineBasicBlock::iterator | MI, | |||
| unsigned | DestReg, | |||
| int | FrameIndex, | |||
| const TargetRegisterClass * | RC | |||
| ) | const [virtual] |
loadRegFromStackSlot - Load the specified register of the given register class from the specified stack frame index. The load instruction is to be added to the given machine basic block before the specified machine instruction.
Reimplemented from llvm::ARMBaseInstrInfo.
Definition at line 131 of file Thumb1InstrInfo.cpp.
References llvm::AddDefaultPred(), llvm::BuildMI(), llvm::MachineBasicBlock::end(), llvm::DebugLoc::getUnknownLoc(), llvm::isARMLowRegister(), and llvm::TargetRegisterInfo::isPhysicalRegister().
| bool Thumb1InstrInfo::canFoldMemoryOperand | ( | const MachineInstr * | MI, | |
| const SmallVectorImpl< unsigned > & | Ops | |||
| ) | const [virtual] |
canFoldMemoryOperand - Returns true for the specified load / store if folding is possible.
Reimplemented from llvm::ARMBaseInstrInfo.
Definition at line 80 of file Thumb1InstrInfo.cpp.
References llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::isARMLowRegister(), llvm::TargetRegisterInfo::isPhysicalRegister(), and llvm::SmallVectorImpl< T >::size().
| MachineInstr * Thumb1InstrInfo::foldMemoryOperandImpl | ( | MachineFunction & | MF, | |
| MachineInstr * | MI, | |||
| const SmallVectorImpl< unsigned > & | Ops, | |||
| int | FrameIndex | |||
| ) | const [virtual] |
foldMemoryOperandImpl - Target-dependent implementation for foldMemoryOperand. Target-independent code in foldMemoryOperand will take care of adding a MachineMemOperand to the newly created instruction.
Reimplemented from llvm::ARMBaseInstrInfo.
Definition at line 205 of file Thumb1InstrInfo.cpp.
References llvm::AddDefaultPred(), llvm::MachineInstrBuilder::addFrameIndex(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::RegState::Define, llvm::getDeadRegState(), llvm::MachineInstr::getDebugLoc(), llvm::getKillRegState(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::isARMLowRegister(), llvm::MachineOperand::isDead(), llvm::MachineOperand::isKill(), llvm::TargetRegisterInfo::isPhysicalRegister(), and llvm::SmallVectorImpl< T >::size().
| MachineInstr* llvm::Thumb1InstrInfo::foldMemoryOperandImpl | ( | MachineFunction & | MF, | |
| MachineInstr * | MI, | |||
| const SmallVectorImpl< unsigned > & | Ops, | |||
| MachineInstr * | LoadMI | |||
| ) | const [inline, virtual] |
foldMemoryOperandImpl - Target-dependent implementation for foldMemoryOperand. Target-independent code in foldMemoryOperand will take care of adding a MachineMemOperand to the newly created instruction.
Reimplemented from llvm::ARMBaseInstrInfo.
Definition at line 73 of file Thumb1InstrInfo.h.