LLVM API Documentation

llvm::PPCSubtarget Class Reference

#include <PPCSubtarget.h>

Inheritance diagram for llvm::PPCSubtarget:

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

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 25 of file PPCSubtarget.h.


Constructor & Destructor Documentation

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


Member Function Documentation

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]

Definition at line 65 of file PPCSubtarget.h.

References Has64BitRegs.

bool llvm::PPCSubtarget::hasAltivec (  )  const [inline]

Definition at line 66 of file PPCSubtarget.h.

References HasAltivec.

bool llvm::PPCSubtarget::hasFSQRT (  )  const [inline]

Definition at line 63 of file PPCSubtarget.h.

References HasFSQRT.

bool llvm::PPCSubtarget::hasSTFIWX (  )  const [inline]

Definition at line 64 of file PPCSubtarget.h.

References HasSTFIWX.

bool llvm::PPCSubtarget::is64Bit (  )  const [inline]

Definition at line 70 of file PPCSubtarget.h.

References Is64Bit.

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]

Definition at line 71 of file PPCSubtarget.h.

References IsGigaProcessor.

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


Member Data Documentation

bool llvm::PPCSubtarget::Has64BitRegs [protected]

Definition at line 37 of file PPCSubtarget.h.

Referenced by has64BitRegs().

bool llvm::PPCSubtarget::HasAltivec [protected]

Definition at line 38 of file PPCSubtarget.h.

Referenced by hasAltivec().

bool llvm::PPCSubtarget::HasFSQRT [protected]

Definition at line 39 of file PPCSubtarget.h.

Referenced by hasFSQRT().

bool llvm::PPCSubtarget::HasSTFIWX [protected]

Definition at line 40 of file PPCSubtarget.h.

Referenced by hasSTFIWX().

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]

Definition at line 36 of file PPCSubtarget.h.

Referenced by is64Bit().

bool llvm::PPCSubtarget::IsAIX [protected]

Definition at line 41 of file PPCSubtarget.h.

Referenced by isAIX(), and PPCSubtarget().

bool llvm::PPCSubtarget::IsDarwin [protected]

Definition at line 42 of file PPCSubtarget.h.

Referenced by isDarwin(), and PPCSubtarget().

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


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