LLVM API Documentation

Public Member Functions
llvm::SparcSubtarget Class Reference

#include <SparcSubtarget.h>

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

List of all members.

Public Member Functions

 SparcSubtarget (const std::string &TT, const std::string &CPU, const std::string &FS, TargetMachine &TM, bool is64bit)
const SparcInstrInfogetInstrInfo () const override
const TargetFrameLoweringgetFrameLowering () const override
const SparcRegisterInfogetRegisterInfo () const override
const SparcTargetLoweringgetTargetLowering () const override
const SparcSelectionDAGInfogetSelectionDAGInfo () const override
const DataLayoutgetDataLayout () const override
bool isV9 () const
bool isVIS () const
bool isVIS2 () const
bool isVIS3 () const
bool useDeprecatedV8Instructions () const
bool hasHardQuad () const
bool usePopc () const
void ParseSubtargetFeatures (StringRef CPU, StringRef FS)
SparcSubtargetinitializeSubtargetDependencies (StringRef CPU, StringRef FS)
bool is64Bit () const
int64_t getStackPointerBias () const
int getAdjustedFrameSize (int stackSize) const

Detailed Description

Definition at line 32 of file SparcSubtarget.h.


Constructor & Destructor Documentation

SparcSubtarget::SparcSubtarget ( const std::string &  TT,
const std::string &  CPU,
const std::string &  FS,
TargetMachine TM,
bool  is64bit 
)

Definition at line 78 of file SparcSubtarget.cpp.


Member Function Documentation

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 85 of file SparcSubtarget.cpp.

References is64Bit(), and llvm::RoundUpToAlignment().

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

const DataLayout* llvm::SparcSubtarget::getDataLayout ( ) const [inline, override]

Definition at line 63 of file SparcSubtarget.h.

Definition at line 51 of file SparcSubtarget.h.

Definition at line 50 of file SparcSubtarget.h.

Definition at line 54 of file SparcSubtarget.h.

References llvm::SparcInstrInfo::getRegisterInfo().

Definition at line 60 of file SparcSubtarget.h.

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 82 of file SparcSubtarget.h.

References is64Bit().

Referenced by llvm::SparcRegisterInfo::eliminateFrameIndex(), getFRAMEADDR(), llvm::SparcTargetLowering::LowerCall_64(), LowerDYNAMIC_STACKALLOC(), and llvm::SparcTargetLowering::LowerFormalArguments_64().

Definition at line 57 of file SparcSubtarget.h.

Definition at line 55 of file SparcSubtarget.cpp.

References ParseSubtargetFeatures().

bool llvm::SparcSubtarget::is64Bit ( ) const [inline]
bool llvm::SparcSubtarget::isV9 ( ) const [inline]
bool llvm::SparcSubtarget::isVIS ( ) const [inline]

Definition at line 66 of file SparcSubtarget.h.

bool llvm::SparcSubtarget::isVIS2 ( ) const [inline]

Definition at line 67 of file SparcSubtarget.h.

bool llvm::SparcSubtarget::isVIS3 ( ) const [inline]

Definition at line 68 of file SparcSubtarget.h.

ParseSubtargetFeatures - Parses features string setting specified subtarget options. Definition of function is auto generated by tblgen.

Referenced by initializeSubtargetDependencies().

Definition at line 69 of file SparcSubtarget.h.

bool llvm::SparcSubtarget::usePopc ( ) const [inline]

Definition at line 71 of file SparcSubtarget.h.

Referenced by llvm::SparcTargetLowering::SparcTargetLowering().


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