LLVM API Documentation
#include <SystemZRegisterInfo.h>
Definition at line 35 of file SystemZRegisterInfo.h.
| SystemZRegisterInfo::SystemZRegisterInfo | ( | SystemZTargetMachine & | tm, | |
| const SystemZInstrInfo & | tii | |||
| ) |
Definition at line 30 of file SystemZRegisterInfo.cpp.
| const unsigned * SystemZRegisterInfo::getCalleeSavedRegs | ( | const MachineFunction * | MF = 0 |
) | const |
| const TargetRegisterClass *const * SystemZRegisterInfo::getCalleeSavedRegClasses | ( | const MachineFunction * | MF = 0 |
) | const |
Definition at line 51 of file SystemZRegisterInfo.cpp.
| BitVector SystemZRegisterInfo::getReservedRegs | ( | const MachineFunction & | MF | ) | const |
Definition at line 66 of file SystemZRegisterInfo.cpp.
References hasFP(), and llvm::BitVector::set().
| bool llvm::SystemZRegisterInfo::hasReservedCallFrame | ( | MachineFunction & | MF | ) | const [inline] |
Definition at line 49 of file SystemZRegisterInfo.h.
| bool SystemZRegisterInfo::hasFP | ( | const MachineFunction & | MF | ) | const |
needsFP - Return true if the specified function should have a dedicated frame pointer register. This is true if the function has variable sized allocas or if frame pointer elimination is disabled.
Definition at line 78 of file SystemZRegisterInfo.cpp.
References llvm::MachineFunction::getFrameInfo(), llvm::MachineFrameInfo::hasVarSizedObjects(), MFI, and llvm::NoFramePointerElim.
Referenced by eliminateFrameIndex(), emitPrologue(), and getReservedRegs().
| int SystemZRegisterInfo::getFrameIndexOffset | ( | MachineFunction & | MF, | |
| int | FI | |||
| ) | const |
Definition at line 89 of file SystemZRegisterInfo.cpp.
References llvm::SystemZMachineFunctionInfo::getCalleeSavedFrameSize(), llvm::MachineFunction::getFrameInfo(), llvm::TargetMachine::getFrameInfo(), llvm::MachineFunction::getInfo(), llvm::MachineFrameInfo::getObjectOffset(), llvm::MachineFrameInfo::getOffsetAdjustment(), llvm::TargetFrameInfo::getOffsetOfLocalArea(), llvm::MachineFrameInfo::getStackSize(), llvm::MachineFunction::getTarget(), llvm::MachineFrameInfo::hasCalls(), MFI, and Offset.
Referenced by eliminateFrameIndex().
| void SystemZRegisterInfo::eliminateCallFramePseudoInstr | ( | MachineFunction & | MF, | |
| MachineBasicBlock & | MBB, | |||
| MachineBasicBlock::iterator | I | |||
| ) | const |
| void SystemZRegisterInfo::eliminateFrameIndex | ( | MachineBasicBlock::iterator | II, | |
| int | SPAdj, | |||
| RegScavenger * | RS = NULL | |||
| ) | const |
Definition at line 110 of file SystemZRegisterInfo.cpp.
References llvm::MachineOperand::ChangeToImmediate(), llvm::MachineOperand::ChangeToRegister(), FrameIndex, getFrameIndexOffset(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getIndex(), llvm::SystemZInstrInfo::getMemoryInstr(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineBasicBlock::getParent(), llvm::MachineInstr::getParent(), hasFP(), llvm::MachineOperand::isFI(), MF, MI, Offset, llvm::MachineInstr::setDesc(), and TII.
| void SystemZRegisterInfo::processFunctionBeforeCalleeSavedScan | ( | MachineFunction & | MF, | |
| RegScavenger * | RS | |||
| ) | const |
Definition at line 142 of file SystemZRegisterInfo.cpp.
References llvm::array_lengthof(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFrameInfo::getObjectIndexEnd(), llvm::MachineFunction::getRegInfo(), llvm::MachineFrameInfo::hasCalls(), llvm::MachineFrameInfo::hasVarSizedObjects(), llvm::MachineRegisterInfo::isPhysRegUsed(), MRI, and llvm::MachineRegisterInfo::setPhysRegUsed().
| void SystemZRegisterInfo::emitPrologue | ( | MachineFunction & | MF | ) | const |
Definition at line 207 of file SystemZRegisterInfo.cpp.
References llvm::MachineFunction::begin(), llvm::MachineBasicBlock::begin(), llvm::BuildMI(), E, emitSPUpdate(), llvm::MachineFunction::end(), llvm::MachineBasicBlock::end(), llvm::MachineFunction::front(), llvm::TargetInstrInfo::get(), llvm::SystemZMachineFunctionInfo::getCalleeSavedFrameSize(), llvm::MachineFunction::getFrameInfo(), llvm::TargetMachine::getFrameInfo(), llvm::MachineFunction::getInfo(), llvm::TargetFrameInfo::getOffsetOfLocalArea(), llvm::MachineFunction::getRegInfo(), llvm::MachineFrameInfo::getStackSize(), llvm::MachineFunction::getTarget(), llvm::DebugLoc::getUnknownLoc(), llvm::MachineFrameInfo::hasCalls(), hasFP(), llvm::MachineRegisterInfo::isPhysRegUsed(), MBB, MBBI, MFI, llvm::next(), and TII.
| void SystemZRegisterInfo::emitEpilogue | ( | MachineFunction & | MF, | |
| MachineBasicBlock & | MBB | |||
| ) | const |
Definition at line 254 of file SystemZRegisterInfo.cpp.
References llvm::MachineBasicBlock::begin(), llvm::MachineOperand::ChangeToImmediate(), emitSPUpdate(), llvm::MachineBasicBlock::end(), llvm::TargetMachine::getFrameInfo(), llvm::MachineFunction::getFrameInfo(), llvm::MachineOperand::getImm(), llvm::MachineFunction::getInfo(), llvm::MachineInstr::getNumOperands(), llvm::TargetFrameInfo::getOffsetOfLocalArea(), llvm::MachineInstr::getOperand(), llvm::MachineFunction::getRegInfo(), llvm::MachineFrameInfo::getStackSize(), llvm::MachineFunction::getTarget(), llvm::MachineFrameInfo::hasCalls(), llvm::MachineOperand::isImm(), llvm::MachineRegisterInfo::isPhysRegUsed(), MBBI, MFI, MI, Offset, PI, llvm::prior(), llvm::PIC16ISD::RET, and TII.
| unsigned SystemZRegisterInfo::getRARegister | ( | ) | const |
Definition at line 316 of file SystemZRegisterInfo.cpp.
| unsigned SystemZRegisterInfo::getFrameRegister | ( | MachineFunction & | MF | ) | const |
Definition at line 321 of file SystemZRegisterInfo.cpp.
| unsigned SystemZRegisterInfo::getEHExceptionRegister | ( | ) | const |
Definition at line 326 of file SystemZRegisterInfo.cpp.
| unsigned SystemZRegisterInfo::getEHHandlerRegister | ( | ) | const |
Definition at line 331 of file SystemZRegisterInfo.cpp.
Definition at line 336 of file SystemZRegisterInfo.cpp.
Definition at line 36 of file SystemZRegisterInfo.h.
Definition at line 37 of file SystemZRegisterInfo.h.
Referenced by eliminateFrameIndex(), emitEpilogue(), and emitPrologue().