LLVM API Documentation
#include <ARMSubtarget.h>
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.). | |
Definition at line 24 of file ARMSubtarget.h.
enum llvm::ARMSubtarget::ARMArchEnum [protected] |
enum llvm::ARMSubtarget::ARMFPEnum [protected] |
enum llvm::ARMSubtarget::ThumbTypeEnum [protected] |
| anonymous enum |
| anonymous enum |
| ARMSubtarget::ARMSubtarget | ( | const std::string & | TT, | |
| const std::string & | FS, | |||
| bool | isThumb | |||
| ) |
This constructor initializes the data members to match that of the specified triple.
Definition at line 25 of file ARMSubtarget.cpp.
References ARM_ABI_AAPCS, ARMArchVersion, CPUString, llvm::FloatABI::Default, llvm::FloatABIType, Idx, isAAPCS_ABI(), isDarwin, IsR9Reserved, isTargetDarwin(), IsThumb, ParseSubtargetFeatures(), ReserveR9, llvm::FloatABI::Soft, stackAlignment, TargetABI, TargetType, Thumb2, ThumbMode, V5T, V5TE, V6, V6T2, and V7A.
| 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] |
| 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] |
| bool llvm::ARMSubtarget::hasV6Ops | ( | ) | const [inline] |
Definition at line 100 of file ARMSubtarget.h.
References ARMArchVersion, and V6.
Referenced by llvm::ARMTargetLowering::allowsUnalignedMemoryAccesses(), and llvm::ARMTargetLowering::ARMTargetLowering().
| bool llvm::ARMSubtarget::hasV6T2Ops | ( | ) | const [inline] |
| bool llvm::ARMSubtarget::hasV7Ops | ( | ) | const [inline] |
| bool llvm::ARMSubtarget::hasVFP2 | ( | ) | const [inline] |
Definition at line 104 of file ARMSubtarget.h.
References ARMFPUType, and VFPv2.
Referenced by llvm::ARMTargetLowering::ARMTargetLowering(), isLegalAddressImmediate(), and isLegalT2AddressImmediate().
| bool llvm::ARMSubtarget::hasVFP3 | ( | ) | const [inline] |
| bool llvm::ARMSubtarget::hasNEON | ( | ) | const [inline] |
Definition at line 106 of file ARMSubtarget.h.
References ARMFPUType, and NEON.
Referenced by llvm::ARMBaseTargetMachine::addPreRegAlloc(), llvm::ARMTargetLowering::ARMTargetLowering(), LowerShift(), PerformExtendCombine(), PerformShiftCombine(), and useNEONForSinglePrecisionFP().
| bool llvm::ARMSubtarget::useNEONForSinglePrecisionFP | ( | ) | const [inline] |
Definition at line 107 of file ARMSubtarget.h.
References hasNEON(), and UseNEONForSinglePrecisionFP.
| bool llvm::ARMSubtarget::isTargetDarwin | ( | ) | const [inline] |
Definition at line 110 of file ARMSubtarget.h.
References isDarwin, and TargetType.
Referenced by llvm::ARMTargetLowering::allowsUnalignedMemoryAccesses(), ARMSubtarget(), llvm::ARMTargetLowering::ARMTargetLowering(), llvm::ARMBaseRegisterInfo::emitEpilogue(), llvm::Thumb1RegisterInfo::emitPrologue(), llvm::ARMBaseRegisterInfo::emitPrologue(), llvm::ARMBaseRegisterInfo::getAllocationOrder(), llvm::X86ATTAsmPrinter::getAnalysisUsage(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegClasses(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegs(), llvm::ARMBaseRegisterInfo::getFrameRegister(), llvm::ARMBaseRegisterInfo::getReservedRegs(), llvm::ARMBaseRegisterInfo::isReservedReg(), llvm::ARMTargetLowering::LowerOperation(), movePastCSLoadStoreOps(), and llvm::ARMBaseRegisterInfo::processFunctionBeforeCalleeSavedScan().
| bool llvm::ARMSubtarget::isTargetELF | ( | ) | const [inline] |
Definition at line 111 of file ARMSubtarget.h.
References isELF, and TargetType.
Referenced by llvm::Thumb1RegisterInfo::emitPrologue(), llvm::ARMBaseRegisterInfo::emitPrologue(), and llvm::X86ATTAsmPrinter::getAnalysisUsage().
| bool llvm::ARMSubtarget::isAPCS_ABI | ( | ) | const [inline] |
| 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] |
Definition at line 116 of file ARMSubtarget.h.
References IsThumb.
Referenced by llvm::ARMBaseTargetMachine::addPreRegAlloc(), llvm::ARMTargetLowering::ARMTargetLowering(), getMaxInlineSizeThreshold(), and llvm::ARMTargetLowering::LowerAsmOperandForConstraint().
| bool llvm::ARMSubtarget::isThumb1Only | ( | ) | const [inline] |
Definition at line 117 of file ARMSubtarget.h.
References IsThumb, Thumb1, and ThumbMode.
Referenced by llvm::ARMBaseTargetMachine::addPreEmitPass(), llvm::ARMTargetLowering::ARMTargetLowering(), llvm::ARMBaseRegisterInfo::getCalleeSavedRegClasses(), llvm::ARMTargetLowering::getPostIndexedAddressParts(), llvm::ARMTargetLowering::getPreIndexedAddressParts(), llvm::ARMTargetLowering::getRegForInlineAsmConstraint(), isLegalAddressImmediate(), llvm::ARMTargetLowering::isLegalAddressingMode(), llvm::ARMTargetLowering::LowerAsmOperandForConstraint(), LowerBR_CC(), LowerSELECT_CC(), and LowerShift().
| bool llvm::ARMSubtarget::isThumb2 | ( | ) | const [inline] |
Definition at line 118 of file ARMSubtarget.h.
References IsThumb, Thumb2, and ThumbMode.
Referenced by llvm::ARMBaseTargetMachine::addPreEmitPass(), llvm::ARMTargetLowering::ARMTargetLowering(), llvm::ARMTargetLowering::getPostIndexedAddressParts(), llvm::ARMTargetLowering::getPreIndexedAddressParts(), isLegalAddressImmediate(), llvm::ARMTargetLowering::isLegalAddressingMode(), and llvm::ARMTargetLowering::LowerAsmOperandForConstraint().
| bool llvm::ARMSubtarget::hasThumb2 | ( | ) | const [inline] |
| bool llvm::ARMSubtarget::isR9Reserved | ( | ) | const [inline] |
Definition at line 121 of file ARMSubtarget.h.
References IsR9Reserved.
Referenced by llvm::ARMBaseRegisterInfo::getAllocationOrder(), llvm::ARMBaseRegisterInfo::getReservedRegs(), and llvm::ARMBaseRegisterInfo::isReservedReg().
| 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().
ARMArchEnum llvm::ARMSubtarget::ARMArchVersion [protected] |
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().
ARMFPEnum llvm::ARMSubtarget::ARMFPUType [protected] |
bool llvm::ARMSubtarget::UseNEONForSinglePrecisionFP [protected] |
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().
bool llvm::ARMSubtarget::IsThumb [protected] |
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().
ThumbTypeEnum llvm::ARMSubtarget::ThumbMode [protected] |
ThumbMode - Indicates supported Thumb version.
Definition at line 55 of file ARMSubtarget.h.
Referenced by ARMSubtarget(), hasThumb2(), isThumb1Only(), and isThumb2().
bool llvm::ARMSubtarget::IsR9Reserved [protected] |
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().
unsigned llvm::ARMSubtarget::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 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().
InstrItineraryData llvm::ARMSubtarget::InstrItins [protected] |
Selected instruction itineraries (one entry per itinerary class.).
Definition at line 68 of file ARMSubtarget.h.
Referenced by getInstrItineraryData().
| enum { ... } llvm::ARMSubtarget::TargetType |
Referenced by ARMSubtarget(), isTargetDarwin(), and isTargetELF().
| enum { ... } llvm::ARMSubtarget::TargetABI |
Referenced by ARMSubtarget(), isAAPCS_ABI(), and isAPCS_ABI().