LLVM 20.0.0git
Public Member Functions | List of all members
llvm::SparcSubtarget Class Reference

#include "Target/Sparc/SparcSubtarget.h"

Inheritance diagram for llvm::SparcSubtarget:
Inheritance graph
[legend]

Public Member Functions

 SparcSubtarget (const StringRef &CPU, const StringRef &TuneCPU, const StringRef &FS, const TargetMachine &TM, bool is64bit)
 
const SparcInstrInfogetInstrInfo () const override
 
const TargetFrameLoweringgetFrameLowering () const override
 
const SparcRegisterInfogetRegisterInfo () const override
 
const SparcTargetLoweringgetTargetLowering () const override
 
const SelectionDAGTargetInfogetSelectionDAGInfo () const override
 
bool enableMachineScheduler () const override
 
void ParseSubtargetFeatures (StringRef CPU, StringRef TuneCPU, StringRef FS)
 ParseSubtargetFeatures - Parses features string setting specified subtarget options.
 
SparcSubtargetinitializeSubtargetDependencies (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
 

Detailed Description

Definition at line 33 of file SparcSubtarget.h.

Constructor & Destructor Documentation

◆ SparcSubtarget()

SparcSubtarget::SparcSubtarget ( const StringRef CPU,
const StringRef TuneCPU,
const StringRef FS,
const TargetMachine TM,
bool  is64bit 
)

Definition at line 49 of file SparcSubtarget.cpp.

Member Function Documentation

◆ enableMachineScheduler()

bool SparcSubtarget::enableMachineScheduler ( ) const
override

Definition at line 84 of file SparcSubtarget.cpp.

◆ getAdjustedFrameSize()

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().

◆ getFrameLowering()

const TargetFrameLowering * llvm::SparcSubtarget::getFrameLowering ( ) const
inlineoverride

Definition at line 57 of file SparcSubtarget.h.

Referenced by LowerDYNAMIC_STACKALLOC().

◆ getInstrInfo()

const SparcInstrInfo * llvm::SparcSubtarget::getInstrInfo ( ) const
inlineoverride

◆ getRegisterInfo()

const SparcRegisterInfo * llvm::SparcSubtarget::getRegisterInfo ( ) const
inlineoverride

◆ getSelectionDAGInfo()

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

Definition at line 66 of file SparcSubtarget.h.

◆ getStackPointerBias()

int64_t llvm::SparcSubtarget::getStackPointerBias ( ) const
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().

◆ getTargetLowering()

const SparcTargetLowering * llvm::SparcSubtarget::getTargetLowering ( ) const
inlineoverride

Definition at line 63 of file SparcSubtarget.h.

◆ initializeSubtargetDependencies()

SparcSubtarget & SparcSubtarget::initializeSubtargetDependencies ( StringRef  CPU,
StringRef  TuneCPU,
StringRef  FS 
)

Definition at line 29 of file SparcSubtarget.cpp.

References llvm::StringRef::empty(), and ParseSubtargetFeatures().

◆ is64Bit()

bool llvm::SparcSubtarget::is64Bit ( ) const
inline

◆ isRegisterReserved()

bool llvm::SparcSubtarget::isRegisterReserved ( MCPhysReg  PhysReg) const
inline

Definition at line 91 of file SparcSubtarget.h.

Referenced by llvm::SparcRegisterInfo::getReservedRegs().

◆ isTargetLinux()

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

◆ ParseSubtargetFeatures()

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().


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