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

#include <SparcSubtarget.h>

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

Public Member Functions

 SparcSubtarget (const Triple &TT, const std::string &CPU, const std::string &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
 
bool isV9 () const
 
bool isLeon () const
 
bool isVIS () const
 
bool isVIS2 () const
 
bool isVIS3 () const
 
bool useDeprecatedV8Instructions () const
 
bool hasHardQuad () const
 
bool usePopc () const
 
bool useSoftFloat () const
 
bool hasUmacSmac () const
 
bool performSDIVReplace () const
 
bool hasLeonCasa () const
 
bool insertNOPLoad () const
 
bool fixFSMULD () const
 
bool replaceFMULS () const
 
bool fixAllFDIVSQRT () const
 
bool detectRoundChange () const
 
void ParseSubtargetFeatures (StringRef CPU, StringRef FS)
 ParseSubtargetFeatures - Parses features string setting specified subtarget options. More...
 
SparcSubtargetinitializeSubtargetDependencies (StringRef CPU, 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]. More...
 
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. More...
 
bool isTargetLinux () const
 

Detailed Description

Definition at line 32 of file SparcSubtarget.h.

Constructor & Destructor Documentation

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

Definition at line 64 of file SparcSubtarget.cpp.

Member Function Documentation

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

Definition at line 97 of file SparcSubtarget.h.

bool SparcSubtarget::enableMachineScheduler ( ) const
override

Definition at line 97 of file SparcSubtarget.cpp.

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

Definition at line 96 of file SparcSubtarget.h.

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

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

Definition at line 94 of file SparcSubtarget.h.

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

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

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

Definition at line 64 of file SparcSubtarget.h.

Referenced by LowerDYNAMIC_STACKALLOC().

const SparcInstrInfo* llvm::SparcSubtarget::getInstrInfo ( ) const
inlineoverride
const SparcRegisterInfo* llvm::SparcSubtarget::getRegisterInfo ( ) const
inlineoverride
const SelectionDAGTargetInfo* llvm::SparcSubtarget::getSelectionDAGInfo ( ) const
inlineoverride

Definition at line 73 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 108 of file SparcSubtarget.h.

References is64Bit().

Referenced by getFRAMEADDR(), llvm::SparcFrameLowering::getFrameIndexReference(), llvm::SparcTargetLowering::LowerCall_64(), LowerDYNAMIC_STACKALLOC(), and llvm::SparcTargetLowering::LowerFormalArguments_64().

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

Definition at line 70 of file SparcSubtarget.h.

bool llvm::SparcSubtarget::hasHardQuad ( ) const
inline
bool llvm::SparcSubtarget::hasLeonCasa ( ) const
inline

Definition at line 92 of file SparcSubtarget.h.

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

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

Definition at line 90 of file SparcSubtarget.h.

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

Definition at line 29 of file SparcSubtarget.cpp.

References ParseSubtargetFeatures().

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

Definition at line 93 of file SparcSubtarget.h.

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

Definition at line 80 of file SparcSubtarget.h.

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

Definition at line 81 of file SparcSubtarget.h.

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

Definition at line 82 of file SparcSubtarget.h.

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

Definition at line 83 of file SparcSubtarget.h.

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

ParseSubtargetFeatures - Parses features string setting specified subtarget options.

Definition of function is auto generated by tblgen.

Referenced by initializeSubtargetDependencies().

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

Definition at line 91 of file SparcSubtarget.h.

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

Definition at line 95 of file SparcSubtarget.h.

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

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

Definition at line 84 of file SparcSubtarget.h.

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

Definition at line 86 of file SparcSubtarget.h.

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

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

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