|
LLVM 24.0.0git
|
#include "Target/PowerPC/PPCSubtarget.h"
Public Types | |
| enum | POPCNTDKind { POPCNTD_Unavailable , POPCNTD_Slow , POPCNTD_Fast } |
Protected Attributes | |
| const PPCOptions & | CLOpts |
| Align | StackAlignment |
| stackAlignment - The minimum alignment known to hold of the stack frame on entry to the function and which must be maintained by every function. | |
| InstrItineraryData | InstrItins |
| Selected instruction itineraries (one entry per itinerary class.) | |
| unsigned | CPUDirective |
| Which cpu directive was used. | |
| bool | IsLittleEndian |
| PPCABI | TargetABI = PPC_ABI_UNKNOWN |
| The selected ABI variant. | |
| POPCNTDKind | HasPOPCNTD |
| const PPCTargetMachine & | TM |
| PPCFrameLowering | FrameLowering |
| PPCInstrInfo | InstrInfo |
| PPCTargetLowering | TLInfo |
| std::unique_ptr< const SelectionDAGTargetInfo > | TSInfo |
| std::unique_ptr< CallLowering > | CallLoweringInfo |
| GlobalISel related APIs. | |
| std::unique_ptr< LegalizerInfo > | Legalizer |
| std::unique_ptr< RegisterBankInfo > | RegBankInfo |
| std::unique_ptr< InstructionSelector > | InstSelector |
Definition at line 92 of file PPCSubtarget.h.
| Enumerator | |
|---|---|
| POPCNTD_Unavailable | |
| POPCNTD_Slow | |
| POPCNTD_Fast | |
Definition at line 94 of file PPCSubtarget.h.
| PPCSubtarget::PPCSubtarget | ( | const Triple & | TT, |
| StringRef | CPU, | ||
| StringRef | TuneCPU, | ||
| StringRef | FS, | ||
| StringRef | ABIName, | ||
| const PPCTargetMachine & | TM ) |
This constructor initializes the data members to match that of the specified triple.
Definition at line 52 of file PPCSubtarget.cpp.
References CallLoweringInfo, CLOpts, llvm::createPPCInstructionSelector(), FrameLowering, getCLOpts(), getRegisterInfo(), getTargetLowering(), initializeSubtargetDependencies(), InstrInfo, InstSelector, Legalizer, RegBankInfo, TargetABI, TLInfo, TM, and TSInfo.
Referenced by initializeSubtargetDependencies().
|
overridedefault |
|
inline |
Definition at line 299 of file PPCSubtarget.h.
References assert(), and usesFunctionDescriptors().
|
inline |
Definition at line 293 of file PPCSubtarget.h.
References assert(), and usesFunctionDescriptors().
|
inline |
Paired vector stores (STXVP) are enabled by default for -mcpu=future.
Definition at line 183 of file PPCSubtarget.h.
References CLOpts, CPUDirective, llvm::PPC::DIR_PWR_FUTURE, and llvm::valueOr().
|
inlineoverride |
Originally, this function return hasISEL().
Now we always enable it, but may expand the ISEL instruction later.
Definition at line 255 of file PPCSubtarget.h.
|
override |
Pipeliner customization.
Definition at line 154 of file PPCSubtarget.cpp.
|
override |
Scheduling customization.
Definition at line 152 of file PPCSubtarget.cpp.
|
override |
This overrides the PostRAScheduler bit in the SchedModel for each CPU.
Definition at line 161 of file PPCSubtarget.cpp.
|
inlineoverride |
Definition at line 275 of file PPCSubtarget.h.
|
override |
Definition at line 190 of file PPCSubtarget.cpp.
|
override |
Definition at line 163 of file PPCSubtarget.cpp.
|
override |
Definition at line 258 of file PPCSubtarget.cpp.
References CallLoweringInfo.
|
inline |
| CodeModel::Model PPCSubtarget::getCodeModel | ( | const TargetMachine & | TM, |
| const GlobalValue * | GV ) const |
Calculates the effective code model for argument GV.
Definition at line 210 of file PPCSubtarget.cpp.
References assert(), llvm::dyn_cast(), llvm::GlobalAlias::getAliaseeObject(), isAIXABI(), llvm::CodeModel::Large, llvm::CodeModel::Small, and TM.
Referenced by getCodeModel().
|
inline |
getCPUDirective - Returns the -m directive specified for the cpu.
Definition at line 159 of file PPCSubtarget.h.
References CPUDirective.
|
override |
Definition at line 167 of file PPCSubtarget.cpp.
|
inline |
Definition at line 305 of file PPCSubtarget.h.
References assert(), and usesFunctionDescriptors().
|
inlineoverride |
Definition at line 167 of file PPCSubtarget.h.
References FrameLowering.
|
inline |
Definition at line 327 of file PPCSubtarget.h.
|
inline |
Definition at line 339 of file PPCSubtarget.h.
References is64BitELFABI(), and isAIXABI().
|
inlineoverride |
Definition at line 170 of file PPCSubtarget.h.
References InstrInfo.
Referenced by getRegisterInfo().
|
inlineoverride |
getInstrItins - Return the instruction itineraries based on subtarget selection.
Definition at line 163 of file PPCSubtarget.h.
References InstrItins.
|
override |
Definition at line 270 of file PPCSubtarget.cpp.
References InstSelector.
|
override |
Definition at line 266 of file PPCSubtarget.cpp.
References Legalizer.
|
inline |
Definition at line 215 of file PPCSubtarget.h.
|
inline |
Definition at line 219 of file PPCSubtarget.h.
References isAIXABI().
|
override |
Definition at line 262 of file PPCSubtarget.cpp.
References RegBankInfo.
|
inlineoverride |
Definition at line 177 of file PPCSubtarget.h.
References getInstrInfo(), and llvm::PPCInstrInfo::getRegisterInfo().
Referenced by PPCSubtarget(), and llvm::PPCTargetLowering::PPCTargetLowering().
|
inline |
Definition at line 280 of file PPCSubtarget.h.
|
override |
Definition at line 71 of file PPCSubtarget.cpp.
References TSInfo.
|
inline |
getStackAlignment - Returns the minimum alignment known to hold of the stack frame on entry to the function and which must be maintained by every function for this subtarget.
Definition at line 155 of file PPCSubtarget.h.
References StackAlignment.
|
inline |
Definition at line 323 of file PPCSubtarget.h.
|
inlineoverride |
|
inline |
Definition at line 180 of file PPCSubtarget.h.
References TM.
Referenced by computeBasePointerSaveOffset(), and isUsingPCRelativeCalls().
|
inline |
Definition at line 317 of file PPCSubtarget.h.
References assert(), is64BitELFABI(), and isAIXABI().
|
inline |
Definition at line 311 of file PPCSubtarget.h.
References assert(), is64BitELFABI(), and isAIXABI().
|
inline |
Definition at line 233 of file PPCSubtarget.h.
References HasPOPCNTD.
| PPCSubtarget & PPCSubtarget::initializeSubtargetDependencies | ( | StringRef | CPU, |
| StringRef | TuneCPU, | ||
| StringRef | FS ) |
initializeSubtargetDependencies - Initializes using a CPU, a TuneCPU, and feature string so that we can use initializer lists for subtarget initialization.
Definition at line 44 of file PPCSubtarget.cpp.
References PPCSubtarget().
Referenced by PPCSubtarget().
|
inline |
Definition at line 250 of file PPCSubtarget.h.
References isSVR4ABI().
Referenced by computeBasePointerSaveOffset().
|
inline |
Definition at line 249 of file PPCSubtarget.h.
References isSVR4ABI().
Referenced by getGPRAllocationOrderIdx(), getThreadPointerRegister(), getTOCPointerRegister(), and usesFunctionDescriptors().
|
inline |
Definition at line 239 of file PPCSubtarget.h.
Referenced by computeCRSaveOffset(), computeLinkageSize(), computeReturnSaveOffset(), computeTOCSaveOffset(), getCodeModel(), getGPRAllocationOrderIdx(), getRedZoneSize(), getThreadPointerRegister(), getTOCPointerRegister(), isGVIndirectSymbol(), isSVR4ABI(), usesFunctionDescriptors(), and useSoftFloat().
|
inline |
Returns true when the AIX extended Altivec ABI ("vec-extabi") is in effect, allowing use of the nonvolatile vector registers.
Definition at line 245 of file PPCSubtarget.h.
References llvm::PPC_ABI_AIX_EXTABI, and TargetABI.
| bool PPCSubtarget::isELFv2ABI | ( | ) | const |
Definition at line 250 of file PPCSubtarget.cpp.
References llvm::PPC_ABI_ELFv2, and TargetABI.
Referenced by computeLinkageSize(), computeTOCSaveOffset(), GetInitialOffset(), isUsingPCRelativeCalls(), and usesFunctionDescriptors().
| bool PPCSubtarget::isGVIndirectSymbol | ( | const GlobalValue * | GV | ) | const |
True if the GV will be accessed via an indirect symbol.
Definition at line 192 of file PPCSubtarget.cpp.
References llvm::dyn_cast(), isAIXABI(), llvm::CodeModel::Large, and TM.
|
inline |
Definition at line 208 of file PPCSubtarget.h.
References IsLittleEndian.
Referenced by needsSwapsForVSXMemOps().
|
inline |
Definition at line 333 of file PPCSubtarget.h.
|
inline |
Definition at line 240 of file PPCSubtarget.h.
References isAIXABI().
Referenced by is32BitELFABI(), is64BitELFABI(), llvm::PPCInstrInfo::isSignOrZeroExtended(), and llvm::PPCInstrInfo::promoteInstr32To64ForElimEXTSW().
|
inline |
Definition at line 235 of file PPCSubtarget.h.
|
inline |
Definition at line 237 of file PPCSubtarget.h.
|
inline |
Definition at line 236 of file PPCSubtarget.h.
| bool PPCSubtarget::isUsingPCRelativeCalls | ( | ) | const |
Definition at line 252 of file PPCSubtarget.cpp.
References llvm::TargetMachine::getCodeModel(), getTargetMachine(), isELFv2ABI(), and llvm::CodeModel::Medium.
Referenced by callsShareTOCBase().
|
inlineoverride |
Definition at line 331 of file PPCSubtarget.h.
References IsLittleEndian.
|
inline |
Definition at line 229 of file PPCSubtarget.h.
References isLittleEndian().
|
override |
Definition at line 173 of file PPCSubtarget.cpp.
References llvm::MachineSchedPolicy::OnlyBottomUp, and llvm::MachineSchedPolicy::ShouldTrackPressure.
ParseSubtargetFeatures - Parses features string setting specified subtarget options.
Definition of function is auto generated by tblgen.
|
override |
Definition at line 186 of file PPCSubtarget.cpp.
|
override |
Machine Pipeliner customization.
Definition at line 158 of file PPCSubtarget.cpp.
|
inline |
True if the ABI is descriptor based.
Definition at line 287 of file PPCSubtarget.h.
References is64BitELFABI(), isAIXABI(), and isELFv2ABI().
Referenced by descriptorEnvironmentPointerOffset(), descriptorTOCAnchorOffset(), and getEnvironmentPointerRegister().
|
inline |
Definition at line 201 of file PPCSubtarget.h.
References isAIXABI(), and llvm::report_fatal_error().
|
protected |
GlobalISel related APIs.
Definition at line 134 of file PPCSubtarget.h.
Referenced by getCallLowering(), and PPCSubtarget().
|
protected |
Definition at line 101 of file PPCSubtarget.h.
Referenced by enableAutoPairedVecSt(), getCLOpts(), and PPCSubtarget().
|
protected |
Which cpu directive was used.
Definition at line 116 of file PPCSubtarget.h.
Referenced by enableAutoPairedVecSt(), and getCPUDirective().
|
protected |
Definition at line 126 of file PPCSubtarget.h.
Referenced by getFrameLowering(), and PPCSubtarget().
|
protected |
Definition at line 123 of file PPCSubtarget.h.
Referenced by hasPOPCNTD().
|
protected |
Definition at line 127 of file PPCSubtarget.h.
Referenced by getInstrInfo(), and PPCSubtarget().
|
protected |
Selected instruction itineraries (one entry per itinerary class.)
Definition at line 108 of file PPCSubtarget.h.
Referenced by getInstrItineraryData().
|
protected |
Definition at line 137 of file PPCSubtarget.h.
Referenced by getInstructionSelector(), and PPCSubtarget().
|
protected |
Definition at line 118 of file PPCSubtarget.h.
Referenced by isLittleEndian(), and isXRaySupported().
|
protected |
Definition at line 135 of file PPCSubtarget.h.
Referenced by getLegalizerInfo(), and PPCSubtarget().
|
protected |
Definition at line 136 of file PPCSubtarget.h.
Referenced by getRegBankInfo(), and PPCSubtarget().
|
protected |
stackAlignment - The minimum alignment known to hold of the stack frame on entry to the function and which must be maintained by every function.
Definition at line 105 of file PPCSubtarget.h.
Referenced by getStackAlignment().
|
protected |
The selected ABI variant.
Definition at line 121 of file PPCSubtarget.h.
Referenced by isAIXExtendedAltivecABI(), isELFv2ABI(), and PPCSubtarget().
|
protected |
Definition at line 128 of file PPCSubtarget.h.
Referenced by getTargetLowering(), and PPCSubtarget().
|
protected |
Definition at line 125 of file PPCSubtarget.h.
Referenced by getCodeModel(), getTargetMachine(), isGVIndirectSymbol(), and PPCSubtarget().
|
protected |
Definition at line 131 of file PPCSubtarget.h.
Referenced by getSelectionDAGInfo(), and PPCSubtarget().