|
LLVM 24.0.0git
|
PPCFunctionInfo - This class is derived from MachineFunction private PowerPC target-specific information for each MachineFunction. More...
#include "Target/PowerPC/PPCMachineFunctionInfo.h"
Public Types | |
| enum | ParamType { FixedType , ShortFloatingPoint , LongFloatingPoint , VectorChar , VectorShort , VectorInt , VectorFloat } |
Additional Inherited Members | |
| Static Public Member Functions inherited from llvm::MachineFunctionInfo | |
| template<typename FuncInfoTy, typename SubtargetTy = TargetSubtargetInfo> | |
| static FuncInfoTy * | create (BumpPtrAllocator &Allocator, const Function &F, const SubtargetTy *STI) |
| Factory function: default behavior is to call new using the supplied allocator. | |
| template<typename Ty> | |
| static Ty * | create (BumpPtrAllocator &Allocator, const Ty &MFI) |
PPCFunctionInfo - This class is derived from MachineFunction private PowerPC target-specific information for each MachineFunction.
Definition at line 26 of file PPCMachineFunctionInfo.h.
| Enumerator | |
|---|---|
| FixedType | |
| ShortFloatingPoint | |
| LongFloatingPoint | |
| VectorChar | |
| VectorShort | |
| VectorInt | |
| VectorFloat | |
Definition at line 28 of file PPCMachineFunctionInfo.h.
|
explicit |
|
inline |
This function associates attributes for each live-in virtual register.
Definition at line 262 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 279 of file PPCMachineFunctionInfo.h.
References Reg.
Referenced by llvm::PPCFrameLowering::spillCalleeSavedRegisters().
| void PPCFunctionInfo::appendParameterType | ( | ParamType | Type | ) |
Definition at line 71 of file PPCMachineFunctionInfo.cpp.
References FixedType, llvm_unreachable, LongFloatingPoint, ShortFloatingPoint, VectorChar, VectorFloat, VectorInt, and VectorShort.
|
overridevirtual |
Make a functionally equivalent copy of this MachineFunctionInfo in MF.
This requires remapping MachineBasicBlock references from the original parent to values in the new function. Targets may assume that virtual register and frame index values are preserved in the new function.
Reimplemented from llvm::MachineFunctionInfo.
Definition at line 23 of file PPCMachineFunctionInfo.cpp.
References llvm::MachineFunction::cloneInfo(), and PPCFunctionInfo().
|
inline |
Definition at line 174 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitPrologue(), and llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized().
|
inline |
Definition at line 274 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 247 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 248 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 168 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::determineCalleeSaves(), llvm::PPCRegisterInfo::eliminateFrameIndex(), llvm::PPCFrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitPrologue(), and llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized().
| MCSymbol * PPCFunctionInfo::getGlobalEPSymbol | ( | MachineFunction & | MF | ) | const |
Definition at line 36 of file PPCMachineFunctionInfo.cpp.
References DL, llvm::MachineFunction::getContext(), llvm::MachineFunction::getDataLayout(), llvm::MachineFunction::getFunctionNumber(), and llvm::MCContext::getOrCreateSymbol().
| MCSymbol * PPCFunctionInfo::getLocalEPSymbol | ( | MachineFunction & | MF | ) | const |
Definition at line 43 of file PPCMachineFunctionInfo.cpp.
References DL, llvm::MachineFunction::getContext(), llvm::MachineFunction::getDataLayout(), llvm::MachineFunction::getFunctionNumber(), and llvm::MCContext::getOrCreateSymbol().
|
inline |
Definition at line 187 of file PPCMachineFunctionInfo.h.
Referenced by CalculateTailCallSPDiff(), and llvm::PPCFrameLowering::emitEpilogue().
|
inline |
Definition at line 278 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::emitEpilogue(), and llvm::PPCFrameLowering::emitPrologue().
| uint32_t PPCFunctionInfo::getParmsType | ( | ) | const |
Definition at line 138 of file PPCMachineFunctionInfo.cpp.
References FixedType, hasVectorParms(), LongFloatingPoint, llvm::XCOFF::TracebackTable::ParmTypeIsDoubleBits, llvm::XCOFF::TracebackTable::ParmTypeIsFixedBits, llvm::XCOFF::TracebackTable::ParmTypeIsFloatingBits, llvm::XCOFF::TracebackTable::ParmTypeIsVectorBits, ShortFloatingPoint, VectorChar, VectorFloat, VectorInt, VectorShort, and llvm::XCOFF::TracebackTable::WidthOfParamType.
|
inline |
Definition at line 177 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitPrologue(), and llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized().
| MCSymbol * PPCFunctionInfo::getPICOffsetSymbol | ( | MachineFunction & | MF | ) | const |
Definition at line 29 of file PPCMachineFunctionInfo.cpp.
References DL, llvm::MachineFunction::getContext(), llvm::MachineFunction::getDataLayout(), llvm::MachineFunction::getFunctionNumber(), and llvm::MCContext::getOrCreateSymbol().
|
inline |
Definition at line 171 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 180 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::emitEpilogue(), and llvm::PPCFrameLowering::emitPrologue().
|
inline |
Definition at line 190 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::emitEpilogue(), and llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized().
| MCSymbol * PPCFunctionInfo::getTOCOffsetSymbol | ( | MachineFunction & | MF | ) | const |
Definition at line 50 of file PPCMachineFunctionInfo.cpp.
References DL, llvm::MachineFunction::getContext(), llvm::MachineFunction::getDataLayout(), llvm::MachineFunction::getFunctionNumber(), and llvm::MCContext::getOrCreateSymbol().
|
inline |
Definition at line 238 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 258 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 244 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 241 of file PPCMachineFunctionInfo.h.
| uint32_t PPCFunctionInfo::getVecExtParmsType | ( | ) | const |
Definition at line 92 of file PPCMachineFunctionInfo.cpp.
References hasVectorParms(), llvm::XCOFF::TracebackTable::ParmTypeIsVectorCharBit, llvm::XCOFF::TracebackTable::ParmTypeIsVectorFloatBit, llvm::XCOFF::TracebackTable::ParmTypeIsVectorIntBit, llvm::XCOFF::TracebackTable::ParmTypeIsVectorShortBit, VectorChar, VectorFloat, VectorInt, VectorShort, and llvm::XCOFF::TracebackTable::WidthOfParamType.
|
inline |
Definition at line 249 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 229 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::emitEpilogue(), and llvm::PPCFrameLowering::needsFP().
|
inline |
Definition at line 214 of file PPCMachineFunctionInfo.h.
Referenced by hasNonRISpills().
|
inline |
Definition at line 211 of file PPCMachineFunctionInfo.h.
Referenced by hasSpills().
|
inline |
Definition at line 250 of file PPCMachineFunctionInfo.h.
Referenced by getParmsType(), and getVecExtParmsType().
|
inline |
Definition at line 232 of file PPCMachineFunctionInfo.h.
Referenced by updateForAIXShLibTLSModelOpt().
|
inline |
Definition at line 236 of file PPCMachineFunctionInfo.h.
Referenced by GetSymbolRef(), and updateForAIXShLibTLSModelOpt().
|
inline |
Definition at line 217 of file PPCMachineFunctionInfo.h.
Referenced by spillsCR().
This function returns true if the specified vreg is a live-in register and sign-extended.
Definition at line 57 of file PPCMachineFunctionInfo.cpp.
Referenced by llvm::PPCInstrInfo::isSignOrZeroExtended().
This function returns true if the specified vreg is a live-in register and zero-extended.
Definition at line 64 of file PPCMachineFunctionInfo.cpp.
Referenced by llvm::PPCInstrInfo::isSignOrZeroExtended().
|
inline |
Definition at line 223 of file PPCMachineFunctionInfo.h.
Referenced by MustSaveLR().
|
inline |
Definition at line 220 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 199 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::emitEpilogue(), and llvm::PPCFrameLowering::emitPrologue().
|
inline |
Definition at line 202 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::determineFrameLayout(), llvm::PPCFrameLowering::emitPrologue(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::PPCFrameLowering::restoreCalleeSavedRegisters(), and llvm::PPCFrameLowering::spillCalleeSavedRegisters().
|
inline |
Definition at line 231 of file PPCMachineFunctionInfo.h.
Referenced by updateForAIXShLibTLSModelOpt().
|
inline |
Definition at line 235 of file PPCMachineFunctionInfo.h.
Referenced by updateForAIXShLibTLSModelOpt().
|
inline |
Definition at line 175 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::determineCalleeSaves().
|
inline |
Definition at line 275 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::determineCalleeSaves().
|
inline |
Definition at line 219 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 169 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::determineCalleeSaves().
|
inline |
Definition at line 228 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 213 of file PPCMachineFunctionInfo.h.
Referenced by fixupFuncForFI().
|
inline |
Definition at line 210 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 222 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 188 of file PPCMachineFunctionInfo.h.
References llvm::size().
|
inline |
MustSaveLR - This is set when the prolog/epilog inserter does its initial scan of the function.
It is true if the LR/LR8 register is ever explicitly defined/clobbered in the machine function (e.g. by calls and movpctolr, which is used in PIC generation), or if the LR stack slot is explicitly referenced by builtin_return_address.
Definition at line 198 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::determineCalleeSaves().
|
inline |
Definition at line 201 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 178 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::determineCalleeSaves().
|
inline |
Definition at line 172 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 183 of file PPCMachineFunctionInfo.h.
|
inline |
We certainly don't want to shrink wrap functions if we've emitted a MovePCtoLR8 as that has to go into the entry, so the prologue definitely has to go into the entry block.
Definition at line 207 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 216 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::spillCalleeSavedRegisters().
|
inline |
Definition at line 191 of file PPCMachineFunctionInfo.h.
References llvm::size().
Referenced by CalculateTailCallSPDiff().
|
inline |
Definition at line 281 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 225 of file PPCMachineFunctionInfo.h.
Referenced by setUsesTOCBasePtr().
|
inline |
Definition at line 239 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 259 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 245 of file PPCMachineFunctionInfo.h.
|
inline |
Definition at line 242 of file PPCMachineFunctionInfo.h.
References llvm::Offset.
|
inline |
Definition at line 208 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::enableShrinkWrapping().
|
inline |
Definition at line 282 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitPrologue(), and llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized().
|
inline |
Definition at line 226 of file PPCMachineFunctionInfo.h.
Referenced by llvm::PPCRegisterInfo::getReservedRegs().