LLVM API Documentation

llvm::SPUSubtarget Class Reference

#include <SPUSubtarget.h>

Inheritance diagram for llvm::SPUSubtarget:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SPUSubtarget (const TargetMachine &TM, const Module &M, const std::string &FS)
void ParseSubtargetFeatures (const std::string &FS, const std::string &CPU)
void SetJITMode ()
unsigned getStackAlignment () const
const InstrItineraryDatagetInstrItineraryData () const
bool usingLargeMem () const
 Use large memory addressing predicate.
const char * getTargetDataString () const

Protected Attributes

const TargetMachineTM
unsigned StackAlignment
InstrItineraryData InstrItins
 Selected instruction itineraries (one entry per itinerary class.).
unsigned ProcDirective
bool UseLargeMem


Detailed Description

Definition at line 34 of file SPUSubtarget.h.


Constructor & Destructor Documentation

SPUSubtarget::SPUSubtarget ( const TargetMachine TM,
const Module M,
const std::string &  FS 
)

This constructor initializes the data members to match that of the specified module.

Definition at line 22 of file SPUSubtarget.cpp.

References ParseSubtargetFeatures().


Member Function Documentation

void llvm::SPUSubtarget::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 SPUSubtarget().

void SPUSubtarget::SetJITMode (  ) 

SetJITMode - This is called to inform the subtarget info that we are producing code for the JIT.

SetJITMode - This is called to inform the subtarget info that we are producing code for the JIT.

Definition at line 39 of file SPUSubtarget.cpp.

unsigned llvm::SPUSubtarget::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 71 of file SPUSubtarget.h.

References StackAlignment.

const InstrItineraryData& llvm::SPUSubtarget::getInstrItineraryData (  )  const [inline]

getInstrItins - Return the instruction itineraies based on subtarget selection.

Definition at line 75 of file SPUSubtarget.h.

References InstrItins.

bool llvm::SPUSubtarget::usingLargeMem (  )  const [inline]

Use large memory addressing predicate.

Definition at line 80 of file SPUSubtarget.h.

References UseLargeMem.

Referenced by LowerCALL(), LowerConstantPool(), LowerGlobalAddress(), LowerJumpTable(), and llvm::SPUTargetLowering::PerformDAGCombine().

const char* llvm::SPUSubtarget::getTargetDataString (  )  const [inline]

getTargetDataString - Return the pointer size and type alignment properties of this subtarget.

Definition at line 86 of file SPUSubtarget.h.


Member Data Documentation

Definition at line 36 of file SPUSubtarget.h.

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 40 of file SPUSubtarget.h.

Referenced by getStackAlignment().

Selected instruction itineraries (one entry per itinerary class.).

Definition at line 43 of file SPUSubtarget.h.

Referenced by getInstrItineraryData().

Which SPU processor (this isn't really used, but it's there to keep the C compiler happy)

Definition at line 47 of file SPUSubtarget.h.

Use (assume) large memory -- effectively disables the LQA/STQA instructions that assume 259K local store.

Definition at line 51 of file SPUSubtarget.h.

Referenced by usingLargeMem().


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.