LLVM API Documentation

llvm::ARMSubtarget Class Reference

#include <ARMSubtarget.h>

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

List of all members.

Public Types

enum  { isELF, isDarwin }
enum  { ARM_ABI_APCS, ARM_ABI_AAPCS }

Public Member Functions

 ARMSubtarget (const std::string &TT, const std::string &FS, bool isThumb)
unsigned getMaxInlineSizeThreshold () const
std::string ParseSubtargetFeatures (const std::string &FS, const std::string &CPU)
bool hasV4TOps () const
bool hasV5TOps () const
bool hasV5TEOps () const
bool hasV6Ops () const
bool hasV6T2Ops () const
bool hasV7Ops () const
bool hasVFP2 () const
bool hasVFP3 () const
bool hasNEON () const
bool useNEONForSinglePrecisionFP () const
bool isTargetDarwin () const
bool isTargetELF () const
bool isAPCS_ABI () const
bool isAAPCS_ABI () const
bool isThumb () const
bool isThumb1Only () const
bool isThumb2 () const
bool hasThumb2 () const
bool isR9Reserved () const
const std::string & getCPUString () const
const InstrItineraryData & getInstrItineraryData () const
unsigned getStackAlignment () const
bool GVIsIndirectSymbol (GlobalValue *GV, bool isStatic) const
 GVIsIndirectSymbol - true if the GV will be accessed via an indirect symbol.

Public Attributes

enum llvm::ARMSubtarget:: { ... }  TargetType
enum llvm::ARMSubtarget:: { ... }  TargetABI

Protected Types

enum  ARMArchEnum {
  V4T, V5T, V5TE, V6,
  V6T2, V7A
}
enum  ARMFPEnum { None, VFPv2, VFPv3, NEON }
enum  ThumbTypeEnum { Thumb1, Thumb2 }

Protected Attributes

ARMArchEnum ARMArchVersion
ARMFPEnum ARMFPUType
 ARMFPUType - Floating Point Unit type.
bool UseNEONForSinglePrecisionFP
bool IsThumb
 IsThumb - True if we are in thumb mode, false if in ARM mode.
ThumbTypeEnum ThumbMode
 ThumbMode - Indicates supported Thumb version.
bool IsR9Reserved
 IsR9Reserved - True if R9 is a not available as general purpose register.
unsigned stackAlignment
std::string CPUString
 CPUString - String name of used CPU.
InstrItineraryData InstrItins
 Selected instruction itineraries (one entry per itinerary class.).


Detailed Description

Definition at line 24 of file ARMSubtarget.h.


Member Enumeration Documentation

Enumerator:
V4T 
V5T 
V5TE 
V6 
V6T2 
V7A 

Definition at line 26 of file ARMSubtarget.h.

Enumerator:
None 
VFPv2 
VFPv3 
NEON 

Definition at line 30 of file ARMSubtarget.h.

Enumerator:
Thumb1 
Thumb2 

Definition at line 34 of file ARMSubtarget.h.

anonymous enum

Enumerator:
isELF 
isDarwin 

Definition at line 71 of file ARMSubtarget.h.

anonymous enum

Enumerator:
ARM_ABI_APCS 
ARM_ABI_AAPCS 

Definition at line 75 of file ARMSubtarget.h.


Constructor & Destructor Documentation

ARMSubtarget::ARMSubtarget ( const std::string &  TT,
const std::string &  FS,
bool  isThumb 
)


Member Function Documentation

unsigned llvm::ARMSubtarget::getMaxInlineSizeThreshold (  )  const [inline]

getMaxInlineSizeThreshold - Returns the maximum memset / memcpy size that still makes it profitable to inline the call.

Definition at line 87 of file ARMSubtarget.h.

References isThumb().

std::string llvm::ARMSubtarget::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 ARMSubtarget().

bool llvm::ARMSubtarget::hasV4TOps (  )  const [inline]

Definition at line 97 of file ARMSubtarget.h.

References ARMArchVersion, and V4T.

bool llvm::ARMSubtarget::hasV5TOps (  )  const [inline]

Definition at line 98 of file ARMSubtarget.h.

References ARMArchVersion, and V5T.

Referenced by llvm::ARMTargetLowering::ARMTargetLowering().

bool llvm::ARMSubtarget::hasV5TEOps (  )  const [inline]

Definition at line 99 of file ARMSubtarget.h.

References ARMArchVersion, and V5TE.

bool llvm::ARMSubtarget::hasV6Ops (  )  const [inline]

bool llvm::ARMSubtarget::hasV6T2Ops (  )  const [inline]

Definition at line 101 of file ARMSubtarget.h.

References ARMArchVersion, and V6T2.

bool llvm::ARMSubtarget::hasV7Ops (  )  const [inline]

Definition at line 102 of file ARMSubtarget.h.

References ARMArchVersion, and V7A.

bool llvm::ARMSubtarget::hasVFP2 (  )  const [inline]

bool llvm::ARMSubtarget::hasVFP3 (  )  const [inline]

Definition at line 105 of file ARMSubtarget.h.

References ARMFPUType, and VFPv3.

bool llvm::ARMSubtarget::hasNEON (  )  const [inline]

bool llvm::ARMSubtarget::useNEONForSinglePrecisionFP (  )  const [inline]

Definition at line 107 of file ARMSubtarget.h.

References hasNEON(), and UseNEONForSinglePrecisionFP.

bool llvm::ARMSubtarget::isTargetDarwin (  )  const [inline]

bool llvm::ARMSubtarget::isTargetELF (  )  const [inline]

bool llvm::ARMSubtarget::isAPCS_ABI (  )  const [inline]

Definition at line 113 of file ARMSubtarget.h.

References ARM_ABI_APCS, and TargetABI.

bool llvm::ARMSubtarget::isAAPCS_ABI (  )  const [inline]

Definition at line 114 of file ARMSubtarget.h.

References ARM_ABI_AAPCS, and TargetABI.

Referenced by ARMSubtarget(), and llvm::ARMTargetLowering::ARMTargetLowering().

bool llvm::ARMSubtarget::isThumb (  )  const [inline]

bool llvm::ARMSubtarget::isThumb1Only (  )  const [inline]

bool llvm::ARMSubtarget::isThumb2 (  )  const [inline]

bool llvm::ARMSubtarget::hasThumb2 (  )  const [inline]

Definition at line 119 of file ARMSubtarget.h.

References Thumb2, and ThumbMode.

bool llvm::ARMSubtarget::isR9Reserved (  )  const [inline]

const std::string& llvm::ARMSubtarget::getCPUString (  )  const [inline]

Definition at line 123 of file ARMSubtarget.h.

References CPUString.

Referenced by llvm::ARMTargetLowering::ARMTargetLowering().

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

getInstrItins - Return the instruction itineraies based on subtarget selection.

Definition at line 127 of file ARMSubtarget.h.

References InstrItins.

unsigned llvm::ARMSubtarget::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 132 of file ARMSubtarget.h.

References stackAlignment.

bool ARMSubtarget::GVIsIndirectSymbol ( GlobalValue *  GV,
bool  isStatic 
) const

GVIsIndirectSymbol - true if the GV will be accessed via an indirect symbol.

GVIsIndirectSymbol - true if the GV will be accessed via an indirect symbol.

Definition at line 98 of file ARMSubtarget.cpp.

References llvm::GlobalValue::hasAvailableExternallyLinkage(), llvm::GlobalValue::hasCommonLinkage(), llvm::GlobalValue::hasHiddenVisibility(), llvm::GlobalValue::isDeclaration(), and llvm::GlobalValue::isWeakForLinker().


Member Data Documentation

ARMArchVersion - ARM architecture version: V4T (base), V5T, V5TE, V6, V6T2, V7A.

Definition at line 41 of file ARMSubtarget.h.

Referenced by ARMSubtarget(), hasV4TOps(), hasV5TEOps(), hasV5TOps(), hasV6Ops(), hasV6T2Ops(), and hasV7Ops().

ARMFPUType - Floating Point Unit type.

Definition at line 44 of file ARMSubtarget.h.

Referenced by hasNEON(), hasVFP2(), and hasVFP3().

UseNEONForSinglePrecisionFP - if the NEONFP attribute has been specified. Use the method useNEONForSinglePrecisionFP() to determine if NEON should actually be used.

Definition at line 49 of file ARMSubtarget.h.

Referenced by useNEONForSinglePrecisionFP().

IsThumb - True if we are in thumb mode, false if in ARM mode.

Definition at line 52 of file ARMSubtarget.h.

Referenced by ARMSubtarget(), isThumb(), isThumb1Only(), and isThumb2().

ThumbMode - Indicates supported Thumb version.

Definition at line 55 of file ARMSubtarget.h.

Referenced by ARMSubtarget(), hasThumb2(), isThumb1Only(), and isThumb2().

IsR9Reserved - True if R9 is a not available as general purpose register.

Definition at line 58 of file ARMSubtarget.h.

Referenced by ARMSubtarget(), and isR9Reserved().

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 62 of file ARMSubtarget.h.

Referenced by ARMSubtarget(), and getStackAlignment().

std::string llvm::ARMSubtarget::CPUString [protected]

CPUString - String name of used CPU.

Definition at line 65 of file ARMSubtarget.h.

Referenced by ARMSubtarget(), and getCPUString().

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

Definition at line 68 of file ARMSubtarget.h.

Referenced by getInstrItineraryData().


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