LLVM 20.0.0git
|
#include "Target/Sparc/SparcSubtarget.h"
Public Member Functions | |
SparcSubtarget (const StringRef &CPU, const StringRef &TuneCPU, const StringRef &FS, const TargetMachine &TM, bool is64bit) | |
const SparcInstrInfo * | getInstrInfo () const override |
const TargetFrameLowering * | getFrameLowering () const override |
const SparcRegisterInfo * | getRegisterInfo () const override |
const SparcTargetLowering * | getTargetLowering () const override |
const SelectionDAGTargetInfo * | getSelectionDAGInfo () const override |
bool | enableMachineScheduler () const override |
void | ParseSubtargetFeatures (StringRef CPU, StringRef TuneCPU, StringRef FS) |
ParseSubtargetFeatures - Parses features string setting specified subtarget options. | |
SparcSubtarget & | initializeSubtargetDependencies (StringRef CPU, StringRef TuneCPU, StringRef FS) |
bool | is64Bit () const |
int64_t | getStackPointerBias () const |
The 64-bit ABI uses biased stack and frame pointers, so the stack frame of the current function is the area from [sp+BIAS] to [fp+BIAS]. | |
bool | isRegisterReserved (MCPhysReg PhysReg) const |
int | getAdjustedFrameSize (int stackSize) const |
Given a actual stack size as determined by FrameInfo, this function returns adjusted framesize which includes space for register window spills and arguments. | |
bool | isTargetLinux () const |
Definition at line 33 of file SparcSubtarget.h.
SparcSubtarget::SparcSubtarget | ( | const StringRef & | CPU, |
const StringRef & | TuneCPU, | ||
const StringRef & | FS, | ||
const TargetMachine & | TM, | ||
bool | is64bit | ||
) |
Definition at line 49 of file SparcSubtarget.cpp.
|
override |
Definition at line 84 of file SparcSubtarget.cpp.
int SparcSubtarget::getAdjustedFrameSize | ( | int | stackSize | ) | const |
Given a actual stack size as determined by FrameInfo, this function returns adjusted framesize which includes space for register window spills and arguments.
Definition at line 58 of file SparcSubtarget.cpp.
References llvm::alignTo(), and is64Bit().
Referenced by llvm::SparcFrameLowering::emitPrologue().
|
inlineoverride |
Definition at line 57 of file SparcSubtarget.h.
Referenced by LowerDYNAMIC_STACKALLOC().
|
inlineoverride |
Definition at line 56 of file SparcSubtarget.h.
Referenced by llvm::SparcRegisterInfo::eliminateFrameIndex(), llvm::SparcFrameLowering::emitPrologue(), llvm::SparcTargetLowering::expandSelectCC(), llvm::ErrataWorkaround::runOnMachineFunction(), llvm::InsertNOPLoad::runOnMachineFunction(), and llvm::FixAllFDIVSQRT::runOnMachineFunction().
|
inlineoverride |
Definition at line 60 of file SparcSubtarget.h.
References llvm::SparcInstrInfo::getRegisterInfo().
Referenced by llvm::SparcFrameLowering::emitPrologue(), llvm::SparcFrameLowering::getFrameIndexReference(), llvm::SparcTargetLowering::getRegisterByName(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), llvm::SparcTargetLowering::LowerGlobalTLSAddress(), llvm::ErrataWorkaround::runOnMachineFunction(), and llvm::SparcTargetLowering::SparcTargetLowering().
|
inlineoverride |
Definition at line 66 of file SparcSubtarget.h.
|
inline |
The 64-bit ABI uses biased stack and frame pointers, so the stack frame of the current function is the area from [sp+BIAS] to [fp+BIAS].
Definition at line 87 of file SparcSubtarget.h.
References is64Bit().
Referenced by llvm::SparcFrameLowering::emitPrologue(), getFRAMEADDR(), llvm::SparcFrameLowering::getFrameIndexReference(), llvm::SparcTargetLowering::LowerCall_64(), LowerDYNAMIC_STACKALLOC(), and llvm::SparcTargetLowering::LowerFormalArguments_64().
|
inlineoverride |
Definition at line 63 of file SparcSubtarget.h.
SparcSubtarget & SparcSubtarget::initializeSubtargetDependencies | ( | StringRef | CPU, |
StringRef | TuneCPU, | ||
StringRef | FS | ||
) |
Definition at line 29 of file SparcSubtarget.cpp.
References llvm::StringRef::empty(), and ParseSubtargetFeatures().
|
inline |
Definition at line 83 of file SparcSubtarget.h.
Referenced by llvm::SparcTargetLowering::CanLowerReturn(), llvm::SparcInstrInfo::expandPostRAPseudo(), getAdjustedFrameSize(), getFRAMEADDR(), llvm::SparcInstrInfo::getGlobalBaseReg(), llvm::SparcRegisterInfo::getPointerRegClass(), llvm::SparcTargetLowering::getRegForInlineAsmConstraint(), llvm::SparcRegisterInfo::getReservedRegs(), getStackPointerBias(), llvm::SparcTargetLowering::IsEligibleForTailCallOptimization(), llvm::SparcTargetLowering::LowerCall(), LowerDYNAMIC_STACKALLOC(), llvm::SparcTargetLowering::LowerF128Compare(), llvm::SparcTargetLowering::LowerF128Op(), llvm::SparcTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerOperation(), llvm::SparcTargetLowering::LowerReturn(), LowerRETURNADDR(), and llvm::SparcTargetLowering::SparcTargetLowering().
Definition at line 91 of file SparcSubtarget.h.
Referenced by llvm::SparcRegisterInfo::getReservedRegs().
|
inline |
Definition at line 100 of file SparcSubtarget.h.
References llvm::Triple::isOSLinux().
Referenced by llvm::SparcInstrInfo::expandPostRAPseudo(), llvm::SparcTargetLowering::insertSSPDeclarations(), and llvm::SparcTargetLowering::useLoadStackGuardNode().
void llvm::SparcSubtarget::ParseSubtargetFeatures | ( | StringRef | CPU, |
StringRef | TuneCPU, | ||
StringRef | FS | ||
) |
ParseSubtargetFeatures - Parses features string setting specified subtarget options.
Definition of function is auto generated by tblgen.
Referenced by initializeSubtargetDependencies().