LLVM API Documentation
#include <ARMInstrInfo.h>
Inheritance diagram for llvm::ARMInstrInfo:


|
|
Definition at line 41 of file ARMInstrInfo.cpp. References llvm::array_lengthof(). |
|
||||||||||||||||||||
|
AnalyzeBranch - Analyze the branching code at the end of MBB, returning true if it cannot be understood (e.g. it's a switch dispatch or isn't implemented for a target). Upon success, this returns false and returns with the following information in various cases: 1. If this block ends with no branches (it just falls through to its succ) just return false, leaving TBB/FBB null. 2. If this block ends with only an unconditional branch, it sets TBB to be the destination block. 3. If this block ends with an conditional branch and it falls through to an successor block, it sets TBB to be the branch destination block and a list of operands that evaluate the condition. These operands can be passed to other TargetInstrInfo methods to create new branches. 4. If this block ends with an conditional branch and an unconditional block, it returns the 'true' destination in TBB, the 'false' destination in FBB, and a list of operands that evaluate the condition. These operands can be passed to other TargetInstrInfo methods to create new branches. Note that RemoveBranch and InsertBranch must be implemented to support cases where this method returns success. Reimplemented from llvm::TargetInstrInfo. Definition at line 334 of file ARMInstrInfo.cpp. References llvm::MachineBasicBlock::begin(), llvm::MachineBasicBlock::end(), llvm::MachineInstr::eraseFromParent(), llvm::MachineOperand::getMBB(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::TargetInstrInfo::isUnpredicatedTerminator(), and llvm::SmallVectorImpl< T >::push_back(). |
|
|
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). Reimplemented from llvm::TargetInstrInfo. Definition at line 783 of file ARMInstrInfo.cpp. References llvm::MachineBasicBlock::back(), llvm::MachineBasicBlock::empty(), and llvm::MachineInstr::getOpcode(). |
|
||||||||||||
|
canFoldMemoryOperand - Returns true if the specified load / store is folding is possible. Reimplemented from llvm::TargetInstrInfo. Definition at line 750 of file ARMInstrInfo.cpp. References llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::ARMRegisterInfo::isLowRegister(), and llvm::SmallVectorImpl< T >::size(). |
|
||||||||||||||||
|
||||||||||||||||||||||||||||
|
copyRegToReg - Add a copy between a pair of registers
Reimplemented from llvm::TargetInstrInfo. Definition at line 462 of file ARMInstrInfo.cpp. References AddDefaultCC(), AddDefaultPred(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::TargetInstrInfo::get(), llvm::MachineFunction::getInfo(), llvm::MachineBasicBlock::getParent(), and llvm::ARMFunctionInfo::isThumbFunction(). |
|
||||||||||||
|
DefinesPredicate - If the specified instruction defines any predicate or condition code register(s) used for predication, returns true as well as the definition predicate(s) by reference. Reimplemented from llvm::TargetInstrInfo. Definition at line 862 of file ARMInstrInfo.cpp. References llvm::MachineInstr::getDesc(), llvm::TargetInstrDesc::getImplicitDefs(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::TargetInstrDesc::hasOptionalDef(), and llvm::MachineOperand::isRegister(). |
|
||||||||||||||||||||
|
foldMemoryOperand - Same as the previous version except it allows folding of any load and store from / to any address, not just from a specific stack slot. Reimplemented from llvm::TargetInstrInfo. Definition at line 202 of file ARMInstrInfo.h. |
|
||||||||||||||||||||
|
foldMemoryOperand - Attempt to fold a load or store of the specified stack slot into the specified machine instruction for the specified operand(s). If this is possible, a new instruction is returned with the specified operand folded, otherwise NULL is returned. The client is responsible for removing the old instruction and adding the new one in the instruction stream. Reimplemented from llvm::TargetInstrInfo. Definition at line 664 of file ARMInstrInfo.cpp. References llvm::MachineInstrBuilder::addFrameIndex(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::TargetInstrInfo::get(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isDead(), llvm::MachineOperand::isKill(), llvm::ARMRegisterInfo::isLowRegister(), and llvm::SmallVectorImpl< T >::size(). |
|
|
|
getPointerRegClass - Return the register class to use to hold pointers. This is used for addressing modes. Reimplemented from llvm::TargetInstrInfo. Definition at line 46 of file ARMInstrInfo.cpp. |
|
|
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). Definition at line 137 of file ARMInstrInfo.h. |
|
||||||||||||||||||||
|
InsertBranch - Insert a branch into the end of the specified MachineBasicBlock. This operands to this method are the same as those returned by AnalyzeBranch. This is invoked in cases where AnalyzeBranch returns success and when an unconditional branch (TBB is non-null, FBB is null, Cond is empty) needs to be inserted. It returns the number of instructions inserted. Reimplemented from llvm::TargetInstrInfo. Definition at line 433 of file ARMInstrInfo.cpp. References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addMBB(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::SmallVectorImpl< T >::empty(), llvm::TargetInstrInfo::get(), llvm::MachineFunction::getInfo(), llvm::MachineBasicBlock::getParent(), llvm::ARMFunctionInfo::isThumbFunction(), and llvm::SmallVectorImpl< T >::size(). |
|
||||||||||||
|
isLoadFromStackSlot - If the specified machine instruction is a direct load from a stack slot, return the virtual or physical register number of the destination along with the FrameIndex of the loaded stack slot. If not, return 0. This predicate must return 0 if the instruction has any side effects other than loading from the stack slot. Reimplemented from llvm::TargetInstrInfo. Definition at line 76 of file ARMInstrInfo.cpp. References llvm::MachineOperand::getImm(), llvm::MachineOperand::getIndex(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isFrameIndex(), llvm::MachineOperand::isImmediate(), and llvm::MachineOperand::isRegister(). |
|
||||||||||||||||
|
Return true if the instruction is a register to register move and leave the source and dest operands in the passed parameters. Reimplemented from llvm::TargetInstrInfo. Definition at line 53 of file ARMInstrInfo.cpp. References llvm::MachineInstr::getDesc(), llvm::TargetInstrDesc::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), and llvm::MachineOperand::isRegister(). |
|
|
isPredicated - Returns true if the instruction is already predicated. Reimplemented from llvm::TargetInstrInfo. Definition at line 810 of file ARMInstrInfo.cpp. References llvm::MachineInstr::findFirstPredOperandIdx(), llvm::MachineOperand::getImm(), and llvm::MachineInstr::getOperand(). |
|
||||||||||||
|
isStoreToStackSlot - If the specified machine instruction is a direct store to a stack slot, return the virtual or physical register number of the source reg along with the FrameIndex of the loaded stack slot. If not, return 0. This predicate must return 0 if the instruction has any side effects other than storing to the stack slot. Reimplemented from llvm::TargetInstrInfo. Definition at line 110 of file ARMInstrInfo.cpp. References llvm::MachineOperand::getImm(), llvm::MachineOperand::getIndex(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isFrameIndex(), llvm::MachineOperand::isImmediate(), and llvm::MachineOperand::isRegister(). |
|
||||||||||||||||||||||||
|
Reimplemented from llvm::TargetInstrInfo. Definition at line 589 of file ARMInstrInfo.cpp. References AddDefaultPred(), ARMInstrAddOperand(), llvm::BuildMI(), llvm::TargetInstrInfo::get(), llvm::MachineFunction::getInfo(), llvm::ARMFunctionInfo::isThumbFunction(), llvm::SmallVectorImpl< T >::push_back(), and llvm::SmallVectorImpl< T >::size(). |
|
||||||||||||||||||||||||
|
Reimplemented from llvm::TargetInstrInfo. Definition at line 567 of file ARMInstrInfo.cpp. References AddDefaultPred(), llvm::MachineInstrBuilder::addFrameIndex(), llvm::MachineInstrBuilder::addImm(), llvm::BuildMI(), llvm::TargetInstrInfo::get(), llvm::MachineFunction::getInfo(), llvm::MachineBasicBlock::getParent(), and llvm::ARMFunctionInfo::isThumbFunction(). |
|
||||||||||||
|
PredicateInstruction - Convert the instruction into a predicated instruction. It returns true if the operation was successful. Reimplemented from llvm::TargetInstrInfoImpl. Definition at line 815 of file ARMInstrInfo.cpp. References llvm::MachineInstr::addOperand(), llvm::MachineInstr::findFirstPredOperandIdx(), llvm::TargetInstrInfo::get(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::setDesc(), llvm::MachineOperand::setImm(), and llvm::MachineOperand::setReg(). |
|
||||||||||||||||||||
|
reMaterialize - Re-issue the specified 'original' instruction at the specific location targeting a new destination register. Reimplemented from llvm::TargetInstrInfoImpl. Definition at line 144 of file ARMInstrInfo.cpp. References llvm::MachineFunction::CloneMachineInstr(), llvm::ARMRegisterInfo::emitLoadConstPool(), llvm::MachineOperand::getImm(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineBasicBlock::getParent(), llvm::MachineOperand::getReg(), llvm::MachineBasicBlock::insert(), and llvm::MachineOperand::setReg(). |
|
|
RemoveBranch - Remove the branching code at the end of the specific MBB. this is only invoked in cases where AnalyzeBranch returns success. It returns the number of instructions that were removed. Reimplemented from llvm::TargetInstrInfo. Definition at line 406 of file ARMInstrInfo.cpp. References llvm::MachineBasicBlock::begin(), llvm::MachineBasicBlock::end(), llvm::MachineFunction::getInfo(), llvm::MachineBasicBlock::getParent(), and llvm::ARMFunctionInfo::isThumbFunction(). |
|
||||||||||||||||
|
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 638 of file ARMInstrInfo.cpp. References llvm::MachineInstr::addOperand(), llvm::MachineFunction::CreateMachineInstr(), llvm::MachineBasicBlock::erase(), llvm::TargetInstrInfo::get(), llvm::MachineFunction::getInfo(), llvm::MachineBasicBlock::getParent(), llvm::ARMFunctionInfo::getVarArgsRegSaveSize(), llvm::MachineBasicBlock::insert(), llvm::ARMFunctionInfo::isThumbFunction(), Reg, and llvm::MachineInstr::setDesc(). |
|
|
ReverseBranchCondition - Reverses the branch condition of the specified condition list, returning false on success and true if it cannot be reversed. Reimplemented from llvm::TargetInstrInfo. Definition at line 804 of file ARMInstrInfo.cpp. |
|
||||||||||||||||
|
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 620 of file ARMInstrInfo.cpp. References llvm::MachineBasicBlock::addLiveIn(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::TargetInstrInfo::get(), llvm::MachineFunction::getInfo(), llvm::MachineBasicBlock::getParent(), llvm::ARMFunctionInfo::isThumbFunction(), and Reg. |
|
||||||||||||||||||||||||||||
|
Reimplemented from llvm::TargetInstrInfo. Definition at line 532 of file ARMInstrInfo.cpp. References AddDefaultPred(), llvm::MachineInstrBuilder::addReg(), ARMInstrAddOperand(), llvm::BuildMI(), llvm::TargetInstrInfo::get(), llvm::MachineFunction::getInfo(), llvm::ARMFunctionInfo::isThumbFunction(), llvm::SmallVectorImpl< T >::push_back(), and llvm::SmallVectorImpl< T >::size(). |
|
||||||||||||||||||||||||||||
|
Reimplemented from llvm::TargetInstrInfo. Definition at line 507 of file ARMInstrInfo.cpp. References AddDefaultPred(), llvm::MachineInstrBuilder::addFrameIndex(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::TargetInstrInfo::get(), llvm::MachineFunction::getInfo(), llvm::MachineBasicBlock::getParent(), and llvm::ARMFunctionInfo::isThumbFunction(). |
|
||||||||||||
|
SubsumesPredicate - Returns true if the first specified predicate subsumes the second, e.g. GE subsumes GT. Reimplemented from llvm::TargetInstrInfo. Definition at line 836 of file ARMInstrInfo.cpp. References llvm::SmallVectorImpl< T >::size(). |