LLVM  10.0.0
Public Types | Public Member Functions | Protected Attributes | List of all members
llvm::PPCSubtarget Class Reference

#include "Target/PowerPC/PPCSubtarget.h"

Inheritance diagram for llvm::PPCSubtarget:
[legend]
Collaboration diagram for llvm::PPCSubtarget:
[legend]

Public Types

enum  POPCNTDKind { POPCNTD_Unavailable, POPCNTD_Slow, POPCNTD_Fast }
 

Public Member Functions

 PPCSubtarget (const Triple &TT, const std::string &CPU, const std::string &FS, const PPCTargetMachine &TM)
 This constructor initializes the data members to match that of the specified triple. More...
 
void ParseSubtargetFeatures (StringRef CPU, StringRef FS)
 ParseSubtargetFeatures - Parses features string setting specified subtarget options. More...
 
Align getStackAlignment () const
 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. More...
 
unsigned getDarwinDirective () const
 getDarwinDirective - Returns the -m directive specified for the cpu. More...
 
unsigned getCPUDirective () const
 getCPUDirective - Returns the -m directive specified for the cpu. More...
 
const InstrItineraryData * getInstrItineraryData () const override
 getInstrItins - Return the instruction itineraries based on subtarget selection. More...
 
const PPCFrameLowering * getFrameLowering () const override
 
const PPCInstrInfo * getInstrInfo () const override
 
const PPCTargetLowering * getTargetLowering () const override
 
const SelectionDAGTargetInfo * getSelectionDAGInfo () const override
 
const PPCRegisterInfo * getRegisterInfo () const override
 
const PPCTargetMachine & getTargetMachine () const
 
PPCSubtarget & initializeSubtargetDependencies (StringRef CPU, StringRef FS)
 initializeSubtargetDependencies - Initializes using a CPU and feature string so that we can use initializer lists for subtarget initialization. More...
 
bool isPPC64 () const
 isPPC64 - Return true if we are generating code for 64-bit pointer mode. More...
 
bool has64BitSupport () const
 has64BitSupport - Return true if the selected CPU supports 64-bit instructions, regardless of whether we are in 32-bit or 64-bit mode. More...
 
bool useSoftFloat () const
 
bool use64BitRegs () const
 use64BitRegs - Return true if in 64-bit mode or if we should use 64-bit registers in 32-bit mode when possible. More...
 
bool useCRBits () const
 useCRBits - Return true if we should store and manipulate i1 values in the individual condition register bits. More...
 
bool hasLazyResolverStub (const GlobalValue *GV) const
 hasLazyResolverStub - Return true if accesses to the specified global have to go through a dyld lazy resolution stub. More...
 
bool isLittleEndian () const
 
bool hasFCPSGN () const
 
bool hasFSQRT () const
 
bool hasFRE () const
 
bool hasFRES () const
 
bool hasFRSQRTE () const
 
bool hasFRSQRTES () const
 
bool hasRecipPrec () const
 
bool hasSTFIWX () const
 
bool hasLFIWAX () const
 
bool hasFPRND () const
 
bool hasFPCVT () const
 
bool hasAltivec () const
 
bool hasSPE () const
 
bool hasFPU () const
 
bool hasQPX () const
 
bool hasVSX () const
 
bool needsTwoConstNR () const
 
bool hasP8Vector () const
 
bool hasP8Altivec () const
 
bool hasP8Crypto () const
 
bool hasP9Vector () const
 
bool hasP9Altivec () const
 
bool hasMFOCRF () const
 
bool hasISEL () const
 
bool hasBPERMD () const
 
bool hasExtDiv () const
 
bool hasCMPB () const
 
bool hasLDBRX () const
 
bool isBookE () const
 
bool hasOnlyMSYNC () const
 
bool isPPC4xx () const
 
bool isPPC6xx () const
 
bool isSecurePlt () const
 
bool vectorsUseTwoUnits () const
 
bool isE500 () const
 
bool isFeatureMFTB () const
 
bool allowsUnalignedFPAccess () const
 
bool isDeprecatedDST () const
 
bool hasICBT () const
 
bool hasInvariantFunctionDescriptors () const
 
bool usePPCPreRASchedStrategy () const
 
bool usePPCPostRASchedStrategy () const
 
bool hasPartwordAtomics () const
 
bool hasDirectMove () const
 
bool isQPXStackUnaligned () const
 
Align getPlatformStackAlignment () const
 
unsigned getRedZoneSize () const
 
bool hasHTM () const
 
bool hasFloat128 () const
 
bool isISA3_0 () const
 
bool useLongCalls () const
 
bool needsSwapsForVSXMemOps () const
 
POPCNTDKind hasPOPCNTD () const
 
const Triple & getTargetTriple () const
 
bool isDarwin () const
 isDarwin - True if this is any darwin platform. More...
 
bool isBGQ () const
 isBGQ - True if this is a BG/Q platform. More...
 
bool isTargetELF () const
 
bool isTargetMachO () const
 
bool isTargetLinux () const
 
bool isDarwinABI () const
 
bool isAIXABI () const
 
bool isSVR4ABI () const
 
bool isELFv2ABI () const
 
bool is64BitELFABI () const
 
bool is32BitELFABI () const
 
bool enableEarlyIfConversion () const override
 Originally, this function return hasISEL(). More...
 
bool enableMachineScheduler () const override
 Scheduling customization. More...
 
bool enableMachinePipeliner () const override
 Pipeliner customization. More...
 
bool useDFAforSMS () const override
 Machine Pipeliner customization. More...
 
bool enablePostRAScheduler () const override
 This overrides the PostRAScheduler bit in the SchedModel for each CPU. More...
 
AntiDepBreakMode getAntiDepBreakMode () const override
 
void getCriticalPathRCs (RegClassVector &CriticalPathRCs) const override
 
void overrideSchedPolicy (MachineSchedPolicy &Policy, unsigned NumRegionInstrs) const override
 
bool useAA () const override
 
bool enableSubRegLiveness () const override
 
bool isGVIndirectSymbol (const GlobalValue *GV) const
 True if the GV will be accessed via an indirect symbol. More...
 
bool usesFunctionDescriptors () const
 True if the ABI is descriptor based. More...
 
unsigned descriptorTOCAnchorOffset () const
 
unsigned descriptorEnvironmentPointerOffset () const
 
MCRegister getEnvironmentPointerRegister () const
 
MCRegister getTOCPointerRegister () const
 
MCRegister getStackPointerRegister () const
 
bool isXRaySupported () const override
 

Protected Attributes

Triple TargetTriple
 TargetTriple - What processor and OS we're targeting. More...
 
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. More...
 
InstrItineraryData InstrItins
 Selected instruction itineraries (one entry per itinerary class.) More...
 
unsigned CPUDirective
 Which cpu directive was used. More...
 
bool HasMFOCRF
 Used by the ISel to turn in optimizations for POWER4-derived architectures. More...
 
bool Has64BitSupport
 
bool Use64BitRegs
 
bool UseCRBits
 
bool HasHardFloat
 
bool IsPPC64
 
bool HasAltivec
 
bool HasFPU
 
bool HasSPE
 
bool HasQPX
 
bool HasVSX
 
bool NeedsTwoConstNR
 
bool HasP8Vector
 
bool HasP8Altivec
 
bool HasP8Crypto
 
bool HasP9Vector
 
bool HasP9Altivec
 
bool HasFCPSGN
 
bool HasFSQRT
 
bool HasFRE
 
bool HasFRES
 
bool HasFRSQRTE
 
bool HasFRSQRTES
 
bool HasRecipPrec
 
bool HasSTFIWX
 
bool HasLFIWAX
 
bool HasFPRND
 
bool HasFPCVT
 
bool HasISEL
 
bool HasBPERMD
 
bool HasExtDiv
 
bool HasCMPB
 
bool HasLDBRX
 
bool IsBookE
 
bool HasOnlyMSYNC
 
bool IsE500
 
bool IsPPC4xx
 
bool IsPPC6xx
 
bool FeatureMFTB
 
bool AllowsUnalignedFPAccess
 
bool DeprecatedDST
 
bool HasLazyResolverStubs
 
bool IsLittleEndian
 
bool HasICBT
 
bool HasInvariantFunctionDescriptors
 
bool HasPartwordAtomics
 
bool HasDirectMove
 
bool HasHTM
 
bool HasFloat128
 
bool IsISA3_0
 
bool UseLongCalls
 
bool SecurePlt
 
bool VectorsUseTwoUnits
 
bool UsePPCPreRASchedStrategy
 
bool UsePPCPostRASchedStrategy
 
POPCNTDKind HasPOPCNTD
 
bool IsQPXStackUnaligned
 When targeting QPX running a stock PPC64 Linux kernel where the stack alignment has not been changed, we need to keep the 16-byte alignment of the stack. More...
 
const PPCTargetMachine & TM
 
PPCFrameLowering FrameLowering
 
PPCInstrInfo InstrInfo
 
PPCTargetLowering TLInfo
 
SelectionDAGTargetInfo TSInfo
 

Detailed Description

Definition at line 68 of file PPCSubtarget.h.

Member Enumeration Documentation

◆ POPCNTDKind

Enumerator
POPCNTD_Unavailable 
POPCNTD_Slow 
POPCNTD_Fast 

Definition at line 70 of file PPCSubtarget.h.

Constructor & Destructor Documentation

◆ PPCSubtarget()

PPCSubtarget::PPCSubtarget ( const Triple &  TT,
const std::string &  CPU,
const std::string &  FS,
const PPCTargetMachine &  TM 
)

Member Function Documentation

◆ allowsUnalignedFPAccess()

bool llvm::PPCSubtarget::allowsUnalignedFPAccess ( ) const
inline

Definition at line 278 of file PPCSubtarget.h.

◆ descriptorEnvironmentPointerOffset()

unsigned llvm::PPCSubtarget::descriptorEnvironmentPointerOffset ( ) const
inline

Definition at line 369 of file PPCSubtarget.h.

References assert().

Referenced by prepareDescriptorIndirectCall().

◆ descriptorTOCAnchorOffset()

unsigned llvm::PPCSubtarget::descriptorTOCAnchorOffset ( ) const
inline

Definition at line 363 of file PPCSubtarget.h.

References assert().

Referenced by prepareDescriptorIndirectCall().

◆ enableEarlyIfConversion()

bool llvm::PPCSubtarget::enableEarlyIfConversion ( ) const
inlineoverride

Originally, this function return hasISEL().

Now we always enable it, but may expand the ISEL instruction later.

Definition at line 334 of file PPCSubtarget.h.

◆ enableMachinePipeliner()

bool PPCSubtarget::enableMachinePipeliner ( ) const
override

Pipeliner customization.

Definition at line 195 of file PPCSubtarget.cpp.

References CPUDirective, llvm::PPC::DIR_PWR9, and EnableMachinePipeliner.

◆ enableMachineScheduler()

bool PPCSubtarget::enableMachineScheduler ( ) const
override

Scheduling customization.

Definition at line 193 of file PPCSubtarget.cpp.

Referenced by llvm::PPCTargetLowering::PPCTargetLowering().

◆ enablePostRAScheduler()

bool PPCSubtarget::enablePostRAScheduler ( ) const
override

This overrides the PostRAScheduler bit in the SchedModel for each CPU.

Definition at line 202 of file PPCSubtarget.cpp.

◆ enableSubRegLiveness()

bool PPCSubtarget::enableSubRegLiveness ( ) const
override

Definition at line 231 of file PPCSubtarget.cpp.

References UseSubRegLiveness.

◆ getAntiDepBreakMode()

PPCGenSubtargetInfo::AntiDepBreakMode PPCSubtarget::getAntiDepBreakMode ( ) const
override

Definition at line 204 of file PPCSubtarget.cpp.

◆ getCPUDirective()

unsigned llvm::PPCSubtarget::getCPUDirective ( ) const
inline

◆ getCriticalPathRCs()

void PPCSubtarget::getCriticalPathRCs ( RegClassVector &  CriticalPathRCs) const
override

Definition at line 208 of file PPCSubtarget.cpp.

References isPPC64().

◆ getDarwinDirective()

unsigned llvm::PPCSubtarget::getDarwinDirective ( ) const
inline

getDarwinDirective - Returns the -m directive specified for the cpu.

Definition at line 174 of file PPCSubtarget.h.

◆ getEnvironmentPointerRegister()

MCRegister llvm::PPCSubtarget::getEnvironmentPointerRegister ( ) const
inline

Definition at line 375 of file PPCSubtarget.h.

References assert().

Referenced by buildCallOperands(), and prepareDescriptorIndirectCall().

◆ getFrameLowering()

const PPCFrameLowering* llvm::PPCSubtarget::getFrameLowering ( ) const
inlineoverride

◆ getInstrInfo()

const PPCInstrInfo* llvm::PPCSubtarget::getInstrInfo ( ) const
inlineoverride

◆ getInstrItineraryData()

const InstrItineraryData* llvm::PPCSubtarget::getInstrItineraryData ( ) const
inlineoverride

getInstrItins - Return the instruction itineraries based on subtarget selection.

Definition at line 182 of file PPCSubtarget.h.

◆ getPlatformStackAlignment()

Align llvm::PPCSubtarget::getPlatformStackAlignment ( ) const
inline

Definition at line 290 of file PPCSubtarget.h.

References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align.

Referenced by PPCSubtarget().

◆ getRedZoneSize()

unsigned llvm::PPCSubtarget::getRedZoneSize ( ) const
inline

◆ getRegisterInfo()

const PPCRegisterInfo* llvm::PPCSubtarget::getRegisterInfo ( ) const
inlineoverride

◆ getSelectionDAGInfo()

const SelectionDAGTargetInfo* llvm::PPCSubtarget::getSelectionDAGInfo ( ) const
inlineoverride

Definition at line 193 of file PPCSubtarget.h.

◆ getStackAlignment()

Align llvm::PPCSubtarget::getStackAlignment ( ) const
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 171 of file PPCSubtarget.h.

◆ getStackPointerRegister()

MCRegister llvm::PPCSubtarget::getStackPointerRegister ( ) const
inline

Definition at line 387 of file PPCSubtarget.h.

Referenced by buildCallOperands(), and truncateScalarIntegerArg().

◆ getTargetLowering()

const PPCTargetLowering* llvm::PPCSubtarget::getTargetLowering ( ) const
inlineoverride

Definition at line 190 of file PPCSubtarget.h.

◆ getTargetMachine()

const PPCTargetMachine& llvm::PPCSubtarget::getTargetMachine ( ) const
inline

◆ getTargetTriple()

const Triple& llvm::PPCSubtarget::getTargetTriple ( ) const
inline

Definition at line 313 of file PPCSubtarget.h.

◆ getTOCPointerRegister()

MCRegister llvm::PPCSubtarget::getTOCPointerRegister ( ) const
inline

Definition at line 381 of file PPCSubtarget.h.

References assert(), and R2.

Referenced by buildCallOperands(), prepareDescriptorIndirectCall(), and truncateScalarIntegerArg().

◆ has64BitSupport()

bool llvm::PPCSubtarget::has64BitSupport ( ) const
inline

has64BitSupport - Return true if the selected CPU supports 64-bit instructions, regardless of whether we are in 32-bit or 64-bit mode.

Definition at line 216 of file PPCSubtarget.h.

Referenced by PPCSubtarget(), and llvm::PPCTargetLowering::PPCTargetLowering().

◆ hasAltivec()

bool llvm::PPCSubtarget::hasAltivec ( ) const
inline

◆ hasBPERMD()

bool llvm::PPCSubtarget::hasBPERMD ( ) const
inline

Definition at line 266 of file PPCSubtarget.h.

◆ hasCMPB()

bool llvm::PPCSubtarget::hasCMPB ( ) const
inline

Definition at line 268 of file PPCSubtarget.h.

Referenced by mayUseP9Setb().

◆ hasDirectMove()

bool llvm::PPCSubtarget::hasDirectMove ( ) const
inline

◆ hasExtDiv()

bool llvm::PPCSubtarget::hasExtDiv ( ) const
inline

Definition at line 267 of file PPCSubtarget.h.

◆ hasFCPSGN()

bool llvm::PPCSubtarget::hasFCPSGN ( ) const
inline

Definition at line 242 of file PPCSubtarget.h.

Referenced by llvm::PPCTargetLowering::PPCTargetLowering().

◆ hasFloat128()

bool llvm::PPCSubtarget::hasFloat128 ( ) const
inline

Definition at line 304 of file PPCSubtarget.h.

◆ hasFPCVT()

bool llvm::PPCSubtarget::hasFPCVT ( ) const
inline

Definition at line 252 of file PPCSubtarget.h.

Referenced by llvm::PPCTargetLowering::PPCTargetLowering().

◆ hasFPRND()

bool llvm::PPCSubtarget::hasFPRND ( ) const
inline

Definition at line 251 of file PPCSubtarget.h.

Referenced by llvm::PPCTargetLowering::PPCTargetLowering().

◆ hasFPU()

bool llvm::PPCSubtarget::hasFPU ( ) const
inline

Definition at line 255 of file PPCSubtarget.h.

◆ hasFRE()

bool llvm::PPCSubtarget::hasFRE ( ) const
inline

Definition at line 244 of file PPCSubtarget.h.

Referenced by llvm::PPCTargetLowering::PPCTargetLowering().

◆ hasFRES()

bool llvm::PPCSubtarget::hasFRES ( ) const
inline

Definition at line 245 of file PPCSubtarget.h.

Referenced by llvm::PPCTargetLowering::PPCTargetLowering().

◆ hasFRSQRTE()

bool llvm::PPCSubtarget::hasFRSQRTE ( ) const
inline

Definition at line 246 of file PPCSubtarget.h.

Referenced by llvm::PPCTargetLowering::PPCTargetLowering().

◆ hasFRSQRTES()

bool llvm::PPCSubtarget::hasFRSQRTES ( ) const
inline

Definition at line 247 of file PPCSubtarget.h.

Referenced by llvm::PPCTargetLowering::PPCTargetLowering().

◆ hasFSQRT()

bool llvm::PPCSubtarget::hasFSQRT ( ) const
inline

Definition at line 243 of file PPCSubtarget.h.

Referenced by llvm::PPCTargetLowering::PPCTargetLowering().

◆ hasHTM()

bool llvm::PPCSubtarget::hasHTM ( ) const
inline

Definition at line 303 of file PPCSubtarget.h.

◆ hasICBT()

bool llvm::PPCSubtarget::hasICBT ( ) const
inline

Definition at line 280 of file PPCSubtarget.h.

◆ hasInvariantFunctionDescriptors()

bool llvm::PPCSubtarget::hasInvariantFunctionDescriptors ( ) const
inline

Definition at line 281 of file PPCSubtarget.h.

Referenced by prepareDescriptorIndirectCall().

◆ hasISEL()

bool llvm::PPCSubtarget::hasISEL ( ) const
inline

Definition at line 265 of file PPCSubtarget.h.

◆ hasLazyResolverStub()

bool PPCSubtarget::hasLazyResolverStub ( const GlobalValue *  GV) const

hasLazyResolverStub - Return true if accesses to the specified global have to go through a dyld lazy resolution stub.

Return true if accesses to the specified global have to go through a dyld lazy resolution stub.

This means that an extra load is required to get the address of the global.

Definition at line 180 of file PPCSubtarget.cpp.

References llvm::GlobalValue::getParent(), llvm::GlobalValue::hasCommonLinkage(), HasLazyResolverStubs, llvm::GlobalValue::isDeclarationForLinker(), llvm::TargetMachine::shouldAssumeDSOLocal(), and TM.

Referenced by getLabelAccessInfo().

◆ hasLDBRX()

bool llvm::PPCSubtarget::hasLDBRX ( ) const
inline

Definition at line 269 of file PPCSubtarget.h.

◆ hasLFIWAX()

bool llvm::PPCSubtarget::hasLFIWAX ( ) const
inline

Definition at line 250 of file PPCSubtarget.h.

Referenced by llvm::PPCTargetLowering::PPCTargetLowering().

◆ hasMFOCRF()

bool llvm::PPCSubtarget::hasMFOCRF ( ) const
inline

Definition at line 264 of file PPCSubtarget.h.

◆ hasOnlyMSYNC()

bool llvm::PPCSubtarget::hasOnlyMSYNC ( ) const
inline

Definition at line 271 of file PPCSubtarget.h.

◆ hasP8Altivec()

bool llvm::PPCSubtarget::hasP8Altivec ( ) const
inline

◆ hasP8Crypto()

bool llvm::PPCSubtarget::hasP8Crypto ( ) const
inline

Definition at line 261 of file PPCSubtarget.h.

◆ hasP8Vector()

bool llvm::PPCSubtarget::hasP8Vector ( ) const
inline

◆ hasP9Altivec()

bool llvm::PPCSubtarget::hasP9Altivec ( ) const
inline

◆ hasP9Vector()

bool llvm::PPCSubtarget::hasP9Vector ( ) const
inline

◆ hasPartwordAtomics()

bool llvm::PPCSubtarget::hasPartwordAtomics ( ) const
inline

Definition at line 286 of file PPCSubtarget.h.

◆ hasPOPCNTD()

POPCNTDKind llvm::PPCSubtarget::hasPOPCNTD ( ) const
inline

◆ hasQPX()

bool llvm::PPCSubtarget::hasQPX ( ) const
inline

◆ hasRecipPrec()

bool llvm::PPCSubtarget::hasRecipPrec ( ) const
inline

Definition at line 248 of file PPCSubtarget.h.

Referenced by getEstimateRefinementSteps().

◆ hasSPE()

bool llvm::PPCSubtarget::hasSPE ( ) const
inline

◆ hasSTFIWX()

bool llvm::PPCSubtarget::hasSTFIWX ( ) const
inline

Definition at line 249 of file PPCSubtarget.h.

◆ hasVSX()

bool llvm::PPCSubtarget::hasVSX ( ) const
inline

◆ initializeSubtargetDependencies()

PPCSubtarget & PPCSubtarget::initializeSubtargetDependencies ( StringRef  CPU,
StringRef  FS 
)

initializeSubtargetDependencies - Initializes using a CPU and feature string so that we can use initializer lists for subtarget initialization.

Definition at line 47 of file PPCSubtarget.cpp.

◆ is32BitELFABI()

bool llvm::PPCSubtarget::is32BitELFABI ( ) const
inline

◆ is64BitELFABI()

bool llvm::PPCSubtarget::is64BitELFABI ( ) const
inline

◆ isAIXABI()

bool llvm::PPCSubtarget::isAIXABI ( ) const
inline

◆ isBGQ()

bool llvm::PPCSubtarget::isBGQ ( ) const
inline

isBGQ - True if this is a BG/Q platform.

Definition at line 318 of file PPCSubtarget.h.

References llvm::Triple::BGQ, and llvm::Triple::getVendor().

◆ isBookE()

bool llvm::PPCSubtarget::isBookE ( ) const
inline

Definition at line 270 of file PPCSubtarget.h.

◆ isDarwin()

bool llvm::PPCSubtarget::isDarwin ( ) const
inline

◆ isDarwinABI()

bool llvm::PPCSubtarget::isDarwinABI ( ) const
inline

◆ isDeprecatedDST()

bool llvm::PPCSubtarget::isDeprecatedDST ( ) const
inline

Definition at line 279 of file PPCSubtarget.h.

◆ isE500()

bool llvm::PPCSubtarget::isE500 ( ) const
inline

Definition at line 276 of file PPCSubtarget.h.

◆ isELFv2ABI()

bool PPCSubtarget::isELFv2ABI ( ) const

◆ isFeatureMFTB()

bool llvm::PPCSubtarget::isFeatureMFTB ( ) const
inline

Definition at line 277 of file PPCSubtarget.h.

◆ isGVIndirectSymbol()

bool PPCSubtarget::isGVIndirectSymbol ( const GlobalValue *  GV) const

True if the GV will be accessed via an indirect symbol.

Definition at line 235 of file PPCSubtarget.cpp.

References llvm::TargetMachine::getCodeModel(), llvm::GlobalValue::getParent(), llvm::CodeModel::Large, llvm::TargetMachine::shouldAssumeDSOLocal(), and TM.

◆ isISA3_0()

bool llvm::PPCSubtarget::isISA3_0 ( ) const
inline

◆ isLittleEndian()

bool llvm::PPCSubtarget::isLittleEndian ( ) const
inline

◆ isPPC4xx()

bool llvm::PPCSubtarget::isPPC4xx ( ) const
inline

Definition at line 272 of file PPCSubtarget.h.

◆ isPPC64()

bool PPCSubtarget::isPPC64 ( ) const

isPPC64 - Return true if we are generating code for 64-bit pointer mode.

Definition at line 245 of file PPCSubtarget.cpp.

References llvm::PPCTargetMachine::isPPC64(), and TM.

Referenced by llvm::PPCFrameLowering::addScavengingSpillSlot(), buildCallOperands(), llvm::PPCFrameLowering::canUseAsEpilogue(), CC_AIX(), combineADDToADDZE(), computeBasePointerSaveOffset(), computeFramePointerSaveOffset(), computeLinkageSize(), computeReturnSaveOffset(), computeTOCSaveOffset(), llvm::PPCFrameLowering::determineCalleeSaves(), llvm::PPCFrameLowering::eliminateCallFramePseudoInstr(), llvm::PPCFrameLowering::emitEpilogue(), llvm::PPCFrameLowering::emitPrologue(), EmitTailCallStoreFPAndRetAddr(), llvm::PPCInstrInfo::FoldImmediate(), llvm::PPCTargetLowering::getByValTypeAlignment(), llvm::PPCFrameLowering::getCalleeSavedSpillSlots(), getCriticalPathRCs(), llvm::PPCTTIImpl::getIntImmCostInst(), llvm::PPCTargetLowering::getPICJumpTableRelocBase(), llvm::PPCTargetLowering::getPICJumpTableRelocBaseExpr(), llvm::PPCTTIImpl::getRegisterBitWidth(), llvm::PPCTargetLowering::isJumpTableRelative(), mayUseP9Setb(), llvm::PPCInstrInfo::optimizeCompareInstr(), PeepholePPC64ZExtGather(), llvm::PPCTargetLowering::PPCTargetLowering(), llvm::PPCInstrInfo::PredicateInstruction(), prepareDescriptorIndirectCall(), llvm::PPCFrameLowering::processFunctionBeforeFrameFinalized(), llvm::PPCFrameLowering::replaceFPWithRealFP(), llvm::PPCFrameLowering::restoreCalleeSavedRegisters(), llvm::PPCTargetLowering::SelectAddressRegImm(), llvm::PPCTargetLowering::SelectAddressRegRegOnly(), setUsesTOCBasePtr(), llvm::PPCFrameLowering::spillCalleeSavedRegisters(), and truncateScalarIntegerArg().

◆ isPPC6xx()

bool llvm::PPCSubtarget::isPPC6xx ( ) const
inline

Definition at line 273 of file PPCSubtarget.h.

◆ isQPXStackUnaligned()

bool llvm::PPCSubtarget::isQPXStackUnaligned ( ) const
inline

Definition at line 289 of file PPCSubtarget.h.

◆ isSecurePlt()

bool llvm::PPCSubtarget::isSecurePlt ( ) const
inline

Definition at line 274 of file PPCSubtarget.h.

Referenced by GetSymbolRef(), and mayUseP9Setb().

◆ isSVR4ABI()

bool llvm::PPCSubtarget::isSVR4ABI ( ) const
inline

◆ isTargetELF()

bool llvm::PPCSubtarget::isTargetELF ( ) const
inline

Definition at line 320 of file PPCSubtarget.h.

References llvm::Triple::isOSBinFormatELF().

Referenced by mayUseP9Setb().

◆ isTargetLinux()

bool llvm::PPCSubtarget::isTargetLinux ( ) const
inline

Definition at line 322 of file PPCSubtarget.h.

References llvm::Triple::isOSLinux().

◆ isTargetMachO()

bool llvm::PPCSubtarget::isTargetMachO ( ) const
inline

Definition at line 321 of file PPCSubtarget.h.

References llvm::Triple::isOSBinFormatMachO().

◆ isXRaySupported()

bool llvm::PPCSubtarget::isXRaySupported ( ) const
inlineoverride

Definition at line 391 of file PPCSubtarget.h.

◆ needsSwapsForVSXMemOps()

bool llvm::PPCSubtarget::needsSwapsForVSXMemOps ( ) const
inline

Definition at line 307 of file PPCSubtarget.h.

◆ needsTwoConstNR()

bool llvm::PPCSubtarget::needsTwoConstNR ( ) const
inline

Definition at line 258 of file PPCSubtarget.h.

◆ overrideSchedPolicy()

void PPCSubtarget::overrideSchedPolicy ( MachineSchedPolicy &  Policy,
unsigned  NumRegionInstrs 
) const
override

◆ ParseSubtargetFeatures()

void llvm::PPCSubtarget::ParseSubtargetFeatures ( StringRef  CPU,
StringRef  FS 
)

ParseSubtargetFeatures - Parses features string setting specified subtarget options.

Definition of function is auto generated by tblgen.

Referenced by PPCSubtarget().

◆ use64BitRegs()

bool llvm::PPCSubtarget::use64BitRegs ( ) const
inline

use64BitRegs - Return true if in 64-bit mode or if we should use 64-bit registers in 32-bit mode when possible.

This can only true if has64BitSupport() returns true.

Definition at line 227 of file PPCSubtarget.h.

Referenced by llvm::PPCTargetLowering::PPCTargetLowering().

◆ useAA()

bool PPCSubtarget::useAA ( ) const
override

Definition at line 227 of file PPCSubtarget.cpp.

◆ useCRBits()

bool llvm::PPCSubtarget::useCRBits ( ) const
inline

useCRBits - Return true if we should store and manipulate i1 values in the individual condition register bits.

Definition at line 231 of file PPCSubtarget.h.

Referenced by computeBranchTargetAndInversion(), llvm::PPCTargetLowering::getSetCCResultType(), getVCmpInst(), mayUseP9Setb(), and llvm::PPCTargetLowering::PPCTargetLowering().

◆ useDFAforSMS()

bool PPCSubtarget::useDFAforSMS ( ) const
override

Machine Pipeliner customization.

Definition at line 199 of file PPCSubtarget.cpp.

◆ useLongCalls()

bool llvm::PPCSubtarget::useLongCalls ( ) const
inline

Definition at line 306 of file PPCSubtarget.h.

◆ usePPCPostRASchedStrategy()

bool llvm::PPCSubtarget::usePPCPostRASchedStrategy ( ) const
inline

Definition at line 285 of file PPCSubtarget.h.

Referenced by createPPCPostMachineScheduler().

◆ usePPCPreRASchedStrategy()

bool llvm::PPCSubtarget::usePPCPreRASchedStrategy ( ) const
inline

Definition at line 284 of file PPCSubtarget.h.

Referenced by createPPCMachineScheduler().

◆ usesFunctionDescriptors()

bool llvm::PPCSubtarget::usesFunctionDescriptors ( ) const
inline

True if the ABI is descriptor based.

Definition at line 357 of file PPCSubtarget.h.

Referenced by buildCallOperands(), isIndirectCall(), and transformCallee().

◆ useSoftFloat()

bool llvm::PPCSubtarget::useSoftFloat ( ) const
inline

◆ vectorsUseTwoUnits()

bool llvm::PPCSubtarget::vectorsUseTwoUnits ( ) const
inline

Definition at line 275 of file PPCSubtarget.h.

Referenced by llvm::PPCTTIImpl::vectorCostAdjustment().

Member Data Documentation

◆ AllowsUnalignedFPAccess

bool llvm::PPCSubtarget::AllowsUnalignedFPAccess
protected

Definition at line 127 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ CPUDirective

unsigned llvm::PPCSubtarget::CPUDirective
protected

Which cpu directive was used.

Definition at line 88 of file PPCSubtarget.h.

Referenced by enableMachinePipeliner(), and PPCSubtarget().

◆ DeprecatedDST

bool llvm::PPCSubtarget::DeprecatedDST
protected

Definition at line 128 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ FeatureMFTB

bool llvm::PPCSubtarget::FeatureMFTB
protected

Definition at line 126 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ FrameLowering

PPCFrameLowering llvm::PPCSubtarget::FrameLowering
protected

Definition at line 152 of file PPCSubtarget.h.

◆ Has64BitSupport

bool llvm::PPCSubtarget::Has64BitSupport
protected

Definition at line 92 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasAltivec

bool llvm::PPCSubtarget::HasAltivec
protected

Definition at line 97 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasBPERMD

bool llvm::PPCSubtarget::HasBPERMD
protected

Definition at line 117 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasCMPB

bool llvm::PPCSubtarget::HasCMPB
protected

Definition at line 119 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasDirectMove

bool llvm::PPCSubtarget::HasDirectMove
protected

Definition at line 134 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasExtDiv

bool llvm::PPCSubtarget::HasExtDiv
protected

Definition at line 118 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasFCPSGN

bool llvm::PPCSubtarget::HasFCPSGN
protected

Definition at line 108 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasFloat128

bool llvm::PPCSubtarget::HasFloat128
protected

Definition at line 136 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasFPCVT

bool llvm::PPCSubtarget::HasFPCVT
protected

Definition at line 115 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasFPRND

bool llvm::PPCSubtarget::HasFPRND
protected

Definition at line 114 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasFPU

bool llvm::PPCSubtarget::HasFPU
protected

Definition at line 98 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasFRE

bool llvm::PPCSubtarget::HasFRE
protected

Definition at line 110 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasFRES

bool llvm::PPCSubtarget::HasFRES
protected

Definition at line 110 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasFRSQRTE

bool llvm::PPCSubtarget::HasFRSQRTE
protected

Definition at line 110 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasFRSQRTES

bool llvm::PPCSubtarget::HasFRSQRTES
protected

Definition at line 110 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasFSQRT

bool llvm::PPCSubtarget::HasFSQRT
protected

Definition at line 109 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasHardFloat

bool llvm::PPCSubtarget::HasHardFloat
protected

Definition at line 95 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasHTM

bool llvm::PPCSubtarget::HasHTM
protected

Definition at line 135 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasICBT

bool llvm::PPCSubtarget::HasICBT
protected

Definition at line 131 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasInvariantFunctionDescriptors

bool llvm::PPCSubtarget::HasInvariantFunctionDescriptors
protected

Definition at line 132 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasISEL

bool llvm::PPCSubtarget::HasISEL
protected

Definition at line 116 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasLazyResolverStubs

bool llvm::PPCSubtarget::HasLazyResolverStubs
protected

Definition at line 129 of file PPCSubtarget.h.

Referenced by hasLazyResolverStub(), and PPCSubtarget().

◆ HasLDBRX

bool llvm::PPCSubtarget::HasLDBRX
protected

Definition at line 120 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasLFIWAX

bool llvm::PPCSubtarget::HasLFIWAX
protected

Definition at line 113 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasMFOCRF

bool llvm::PPCSubtarget::HasMFOCRF
protected

Used by the ISel to turn in optimizations for POWER4-derived architectures.

Definition at line 91 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasOnlyMSYNC

bool llvm::PPCSubtarget::HasOnlyMSYNC
protected

Definition at line 122 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasP8Altivec

bool llvm::PPCSubtarget::HasP8Altivec
protected

Definition at line 104 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasP8Crypto

bool llvm::PPCSubtarget::HasP8Crypto
protected

Definition at line 105 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasP8Vector

bool llvm::PPCSubtarget::HasP8Vector
protected

Definition at line 103 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasP9Altivec

bool llvm::PPCSubtarget::HasP9Altivec
protected

Definition at line 107 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasP9Vector

bool llvm::PPCSubtarget::HasP9Vector
protected

Definition at line 106 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasPartwordAtomics

bool llvm::PPCSubtarget::HasPartwordAtomics
protected

Definition at line 133 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasPOPCNTD

POPCNTDKind llvm::PPCSubtarget::HasPOPCNTD
protected

Definition at line 144 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasQPX

bool llvm::PPCSubtarget::HasQPX
protected

Definition at line 100 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasRecipPrec

bool llvm::PPCSubtarget::HasRecipPrec
protected

Definition at line 111 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasSPE

bool llvm::PPCSubtarget::HasSPE
protected

Definition at line 99 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasSTFIWX

bool llvm::PPCSubtarget::HasSTFIWX
protected

Definition at line 112 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ HasVSX

bool llvm::PPCSubtarget::HasVSX
protected

Definition at line 101 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ InstrInfo

PPCInstrInfo llvm::PPCSubtarget::InstrInfo
protected

Definition at line 153 of file PPCSubtarget.h.

◆ InstrItins

InstrItineraryData llvm::PPCSubtarget::InstrItins
protected

Selected instruction itineraries (one entry per itinerary class.)

Definition at line 85 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ IsBookE

bool llvm::PPCSubtarget::IsBookE
protected

Definition at line 121 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ IsE500

bool llvm::PPCSubtarget::IsE500
protected

Definition at line 123 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ IsISA3_0

bool llvm::PPCSubtarget::IsISA3_0
protected

Definition at line 137 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ IsLittleEndian

bool llvm::PPCSubtarget::IsLittleEndian
protected

Definition at line 130 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ IsPPC4xx

bool llvm::PPCSubtarget::IsPPC4xx
protected

Definition at line 124 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ IsPPC64

bool llvm::PPCSubtarget::IsPPC64
protected

Definition at line 96 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ IsPPC6xx

bool llvm::PPCSubtarget::IsPPC6xx
protected

Definition at line 125 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ IsQPXStackUnaligned

bool llvm::PPCSubtarget::IsQPXStackUnaligned
protected

When targeting QPX running a stock PPC64 Linux kernel where the stack alignment has not been changed, we need to keep the 16-byte alignment of the stack.

Definition at line 149 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ NeedsTwoConstNR

bool llvm::PPCSubtarget::NeedsTwoConstNR
protected

Definition at line 102 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ SecurePlt

bool llvm::PPCSubtarget::SecurePlt
protected

Definition at line 139 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ StackAlignment

Align llvm::PPCSubtarget::StackAlignment
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 82 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ TargetTriple

Triple llvm::PPCSubtarget::TargetTriple
protected

TargetTriple - What processor and OS we're targeting.

Definition at line 78 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ TLInfo

PPCTargetLowering llvm::PPCSubtarget::TLInfo
protected

Definition at line 154 of file PPCSubtarget.h.

◆ TM

const PPCTargetMachine& llvm::PPCSubtarget::TM
protected

Definition at line 151 of file PPCSubtarget.h.

Referenced by hasLazyResolverStub(), isELFv2ABI(), isGVIndirectSymbol(), and isPPC64().

◆ TSInfo

SelectionDAGTargetInfo llvm::PPCSubtarget::TSInfo
protected

Definition at line 155 of file PPCSubtarget.h.

◆ Use64BitRegs

bool llvm::PPCSubtarget::Use64BitRegs
protected

Definition at line 93 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ UseCRBits

bool llvm::PPCSubtarget::UseCRBits
protected

Definition at line 94 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ UseLongCalls

bool llvm::PPCSubtarget::UseLongCalls
protected

Definition at line 138 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ UsePPCPostRASchedStrategy

bool llvm::PPCSubtarget::UsePPCPostRASchedStrategy
protected

Definition at line 142 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ UsePPCPreRASchedStrategy

bool llvm::PPCSubtarget::UsePPCPreRASchedStrategy
protected

Definition at line 141 of file PPCSubtarget.h.

Referenced by PPCSubtarget().

◆ VectorsUseTwoUnits

bool llvm::PPCSubtarget::VectorsUseTwoUnits
protected

Definition at line 140 of file PPCSubtarget.h.

Referenced by PPCSubtarget().


The documentation for this class was generated from the following files: