LLVM API Documentation
#include <PPCSubtarget.h>
Inheritance diagram for llvm::PPCSubtarget:
Public Member Functions | |
PPCSubtarget (const Module &M, const std::string &FS) | |
void | ParseSubtargetFeatures (const std::string &FS, const std::string &CPU) |
unsigned | getStackAlignment () const |
const InstrItineraryData | getInstrItineraryData () const |
bool | hasFSQRT () const |
bool | hasSTFIWX () const |
bool | has64BitRegs () const |
bool | hasAltivec () const |
bool | isAIX () const |
bool | isDarwin () const |
bool | is64Bit () const |
bool | isGigaProcessor () const |
Protected Attributes | |
unsigned | StackAlignment |
InstrItineraryData | InstrItins |
Selected instruction itineraries (one entry per itinerary class.). | |
bool | IsGigaProcessor |
Used by the ISel to turn in optimizations for POWER4-derived architectures. | |
bool | Is64Bit |
bool | Has64BitRegs |
bool | HasAltivec |
bool | HasFSQRT |
bool | HasSTFIWX |
bool | IsAIX |
bool | IsDarwin |
Definition at line 25 of file PPCSubtarget.h.
PPCSubtarget::PPCSubtarget | ( | const Module & | M, | |
const std::string & | FS | |||
) |
This constructor initializes the data members to match that of the specified module.
Definition at line 72 of file PPCSubtarget.cpp.
References llvm::Module::getTargetTriple(), IsAIX, IsDarwin, M, and ParseSubtargetFeatures().
const InstrItineraryData llvm::PPCSubtarget::getInstrItineraryData | ( | ) | const [inline] |
getInstrItins - Return the instruction itineraies based on subtarget selection.
Definition at line 60 of file PPCSubtarget.h.
References InstrItins.
unsigned 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 56 of file PPCSubtarget.h.
References StackAlignment.
bool llvm::PPCSubtarget::has64BitRegs | ( | ) | const [inline] |
bool llvm::PPCSubtarget::hasAltivec | ( | ) | const [inline] |
bool llvm::PPCSubtarget::hasFSQRT | ( | ) | const [inline] |
bool llvm::PPCSubtarget::hasSTFIWX | ( | ) | const [inline] |
bool llvm::PPCSubtarget::is64Bit | ( | ) | const [inline] |
bool llvm::PPCSubtarget::isAIX | ( | ) | const [inline] |
Definition at line 68 of file PPCSubtarget.h.
References IsAIX.
Referenced by llvm::PPCTargetMachine::PPCTargetMachine().
bool llvm::PPCSubtarget::isDarwin | ( | ) | const [inline] |
Definition at line 69 of file PPCSubtarget.h.
References IsDarwin.
Referenced by llvm::PPCTargetMachine::PPCTargetMachine().
bool llvm::PPCSubtarget::isGigaProcessor | ( | ) | const [inline] |
void llvm::PPCSubtarget::ParseSubtargetFeatures | ( | const std::string & | FS, | |
const std::string & | CPU | |||
) |
ParseSubtargetFeatures - Parses features string setting specified subtarget options. Definition of function is auto generated by tblgen.
Referenced by PPCSubtarget().
bool llvm::PPCSubtarget::Has64BitRegs [protected] |
bool llvm::PPCSubtarget::HasAltivec [protected] |
bool llvm::PPCSubtarget::HasFSQRT [protected] |
bool llvm::PPCSubtarget::HasSTFIWX [protected] |
InstrItineraryData llvm::PPCSubtarget::InstrItins [protected] |
Selected instruction itineraries (one entry per itinerary class.).
Definition at line 32 of file PPCSubtarget.h.
Referenced by getInstrItineraryData().
bool llvm::PPCSubtarget::Is64Bit [protected] |
bool llvm::PPCSubtarget::IsAIX [protected] |
bool llvm::PPCSubtarget::IsDarwin [protected] |
bool llvm::PPCSubtarget::IsGigaProcessor [protected] |
Used by the ISel to turn in optimizations for POWER4-derived architectures.
Definition at line 35 of file PPCSubtarget.h.
Referenced by isGigaProcessor().
unsigned 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 29 of file PPCSubtarget.h.
Referenced by getStackAlignment().