|
LLVM 24.0.0git
|
#include "Target/Sparc/SparcInstrInfo.h"
Definition at line 38 of file SparcInstrInfo.h.
|
explicit |
Definition at line 32 of file SparcInstrInfo.cpp.
|
override |
Definition at line 271 of file SparcInstrInfo.cpp.
References Cond, llvm::MachineInstr::eraseFromParent(), llvm::MachineOperand::getMBB(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), I, llvm::isCondBranchOpcode(), llvm::isIndirectBranchOpcode(), llvm::isUncondBranchOpcode(), MBB, parseCondBranch(), and TBB.
|
override |
Definition at line 729 of file SparcInstrInfo.cpp.
References MI.
|
override |
Definition at line 465 of file SparcInstrInfo.cpp.
References llvm::MachineInstrBuilder::addReg(), llvm::MachineInstr::addRegisterDefined(), llvm::MachineInstr::addRegisterKilled(), assert(), llvm::BuildMI(), contains(), DL, llvm::get(), llvm::MachineInstrBuilder::getInstr(), llvm::getKillRegState(), getRegisterInfo(), I, llvm_unreachable, MBB, and TRI.
|
override |
Definition at line 868 of file SparcInstrInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), assert(), llvm::BuildMI(), llvm::get(), MBB, MI, and llvm::Offset.
|
override |
Definition at line 240 of file SparcInstrInfo.cpp.
References llvm_unreachable, and MI.
| Register SparcInstrInfo::getGlobalBaseReg | ( | MachineFunction * | MF | ) | const |
Definition at line 634 of file SparcInstrInfo.cpp.
References llvm::MachineBasicBlock::begin(), llvm::BuildMI(), llvm::MachineFunction::front(), llvm::get(), llvm::SparcMachineFunctionInfo::getGlobalBaseReg(), llvm::MachineFunction::getInfo(), llvm::MachineFunction::getRegInfo(), MBBI, llvm::SparcMachineFunctionInfo::setGlobalBaseReg(), and llvm::MachineInstrBuilder::setOperandDead().
|
override |
Definition at line 36 of file SparcInstrInfo.cpp.
References C().
|
override |
GetInstSize - Return the number of bytes of code the specified instruction may be.
This returns the maximum number of bytes.
Definition at line 691 of file SparcInstrInfo.cpp.
References llvm::get(), llvm::TargetMachine::getCodeModel(), llvm::TargetMachine::getMCAsmInfo(), llvm::MachineFunction::getTarget(), llvm::TargetMachine::isPositionIndependent(), llvm::CodeModel::Large, llvm_unreachable, llvm::CodeModel::Medium, MI, needsUnimp(), and llvm::CodeModel::Small.
Referenced by removeBranch().
|
inline |
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 49 of file SparcInstrInfo.h.
Referenced by copyPhysReg(), and optimizeCompareInstr().
|
override |
Definition at line 354 of file SparcInstrInfo.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addMBB(), llvm::MachineInstrBuilder::addReg(), assert(), llvm::BuildMI(), Cond, DL, llvm::get(), isRegCondBranchOpcode(), MBB, Opc, and TBB.
Determine if the branch target is in range.
Definition at line 428 of file SparcInstrInfo.cpp.
References assert(), llvm::isIntN(), llvm_unreachable, and llvm::Offset.
|
override |
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.
Definition at line 46 of file SparcInstrInfo.cpp.
References llvm::TypeSize::getFixed(), and MI.
|
override |
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.
Definition at line 81 of file SparcInstrInfo.cpp.
References llvm::TypeSize::getFixed(), and MI.
|
override |
Definition at line 595 of file SparcInstrInfo.cpp.
References llvm::MachineInstrBuilder::addFrameIndex(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addMemOperand(), llvm::BuildMI(), DL, llvm::get(), llvm::MachinePointerInfo::getFixedStack(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFunction::getMachineMemOperand(), llvm::MachineFrameInfo::getObjectAlign(), llvm::MachineFrameInfo::getObjectSize(), I, llvm_unreachable, MBB, and llvm::MachineMemOperand::MOLoad.
| bool SparcInstrInfo::needsUnimp | ( | const MachineInstr & | MI, |
| unsigned & | StructSize ) const |
Definition at line 657 of file SparcInstrInfo.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineOperand::isImm(), llvm_unreachable, and MI.
Referenced by getInstSizeInBytes().
|
override |
Definition at line 755 of file SparcInstrInfo.cpp.
References llvm::any_of(), C(), llvm::MachineBasicBlock::end(), llvm::MachineInstr::eraseFromParent(), llvm::get(), llvm::MachineInstr::getParent(), getRegisterInfo(), llvm::MachineRegisterInfo::getUniqueVRegDef(), llvm::MachineRegisterInfo::hasOneNonDBGUse(), I, llvm::SPCC::ICC_E, llvm::SPCC::ICC_NE, MBB, MI, and TRI.
|
override |
Definition at line 394 of file SparcInstrInfo.cpp.
References llvm::Count, getInstSizeInBytes(), I, llvm::isCondBranchOpcode(), llvm::isUncondBranchOpcode(), and MBB.
|
override |
Definition at line 420 of file SparcInstrInfo.cpp.
References assert(), Cond, and GetOppositeBranchCondition().
|
override |
Definition at line 555 of file SparcInstrInfo.cpp.
References llvm::MachineInstrBuilder::addFrameIndex(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addMemOperand(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), DL, llvm::get(), llvm::MachinePointerInfo::getFixedStack(), llvm::MachineFunction::getFrameInfo(), llvm::getKillRegState(), llvm::MachineFunction::getMachineMemOperand(), llvm::MachineFrameInfo::getObjectAlign(), llvm::MachineFrameInfo::getObjectSize(), I, llvm_unreachable, MBB, and llvm::MachineMemOperand::MOStore.