clang 17.0.0git
|
Exposes information about the current target. More...
#include "clang/Basic/TargetInfo.h"
Classes | |
struct | AddlRegName |
struct | BranchProtectionInfo |
struct | ConstraintInfo |
struct | GCCRegAlias |
Public Types | |
enum | BuiltinVaListKind { CharPtrBuiltinVaList = 0 , VoidPtrBuiltinVaList , AArch64ABIBuiltinVaList , PNaClABIBuiltinVaList , PowerABIBuiltinVaList , X86_64ABIBuiltinVaList , AAPCSABIBuiltinVaList , SystemZBuiltinVaList , HexagonBuiltinVaList } |
The different kinds of __builtin_va_list types defined by the target implementation. More... | |
enum | CallingConvCheckResult { CCCR_OK , CCCR_Warning , CCCR_Ignore , CCCR_Error } |
enum | CallingConvKind { CCK_Default , CCK_ClangABI4OrPS4 , CCK_MicrosoftWin64 } |
![]() | |
enum | IntType { NoInt = 0 , SignedChar , UnsignedChar , SignedShort , UnsignedShort , SignedInt , UnsignedInt , SignedLong , UnsignedLong , SignedLongLong , UnsignedLongLong } |
===-— Target Data Type Query Methods ----------------------------—===// More... | |
Public Member Functions | |
virtual | ~TargetInfo () |
TargetOptions & | getTargetOpts () const |
Retrieve the target options. | |
IntType | getSizeType () const |
IntType | getSignedSizeType () const |
IntType | getIntMaxType () const |
IntType | getUIntMaxType () const |
IntType | getPtrDiffType (LangAS AddrSpace) const |
IntType | getUnsignedPtrDiffType (LangAS AddrSpace) const |
IntType | getIntPtrType () const |
IntType | getUIntPtrType () const |
IntType | getWCharType () const |
IntType | getWIntType () const |
IntType | getChar16Type () const |
IntType | getChar32Type () const |
IntType | getInt64Type () const |
IntType | getUInt64Type () const |
IntType | getInt16Type () const |
IntType | getUInt16Type () const |
IntType | getSigAtomicType () const |
IntType | getProcessIDType () const |
bool | doUnsignedFixedPointTypesHavePadding () const |
In the event this target uses the same number of fractional bits for its unsigned types as it does with its signed counterparts, there will be exactly one bit of padding. | |
unsigned | getTypeWidth (IntType T) const |
Return the width (in bits) of the specified integer type enum. | |
virtual IntType | getIntTypeByWidth (unsigned BitWidth, bool IsSigned) const |
Return integer type with specified width. | |
virtual IntType | getLeastIntTypeByWidth (unsigned BitWidth, bool IsSigned) const |
Return the smallest integer type with at least the specified width. | |
FloatModeKind | getRealTypeByWidth (unsigned BitWidth, FloatModeKind ExplicitType) const |
Return floating point type with specified width. | |
unsigned | getTypeAlign (IntType T) const |
Return the alignment (in bits) of the specified integer type enum. | |
uint64_t | getPointerWidth (LangAS AddrSpace) const |
Return the width of pointers on this target, for the specified address space. | |
uint64_t | getPointerAlign (LangAS AddrSpace) const |
virtual uint64_t | getMaxPointerWidth () const |
Return the maximum width of pointers on this target. | |
virtual uint64_t | getNullPointerValue (LangAS AddrSpace) const |
Get integer value for null pointer. | |
unsigned | getBoolWidth () const |
Return the size of '_Bool' and C++ 'bool' for this target, in bits. | |
unsigned | getBoolAlign () const |
Return the alignment of '_Bool' and C++ 'bool' for this target. | |
unsigned | getCharWidth () const |
unsigned | getCharAlign () const |
unsigned | getShortWidth () const |
Return the size of 'signed short' and 'unsigned short' for this target, in bits. | |
unsigned | getShortAlign () const |
Return the alignment of 'signed short' and 'unsigned short' for this target. | |
unsigned | getIntWidth () const |
getIntWidth/Align - Return the size of 'signed int' and 'unsigned int' for this target, in bits. | |
unsigned | getIntAlign () const |
unsigned | getLongWidth () const |
getLongWidth/Align - Return the size of 'signed long' and 'unsigned long' for this target, in bits. | |
unsigned | getLongAlign () const |
unsigned | getLongLongWidth () const |
getLongLongWidth/Align - Return the size of 'signed long long' and 'unsigned long long' for this target, in bits. | |
unsigned | getLongLongAlign () const |
unsigned | getInt128Align () const |
getInt128Align() - Returns the alignment of Int128. | |
unsigned | getShortAccumWidth () const |
getShortAccumWidth/Align - Return the size of 'signed short _Accum' and 'unsigned short _Accum' for this target, in bits. | |
unsigned | getShortAccumAlign () const |
unsigned | getAccumWidth () const |
getAccumWidth/Align - Return the size of 'signed _Accum' and 'unsigned _Accum' for this target, in bits. | |
unsigned | getAccumAlign () const |
unsigned | getLongAccumWidth () const |
getLongAccumWidth/Align - Return the size of 'signed long _Accum' and 'unsigned long _Accum' for this target, in bits. | |
unsigned | getLongAccumAlign () const |
unsigned | getShortFractWidth () const |
getShortFractWidth/Align - Return the size of 'signed short _Fract' and 'unsigned short _Fract' for this target, in bits. | |
unsigned | getShortFractAlign () const |
unsigned | getFractWidth () const |
getFractWidth/Align - Return the size of 'signed _Fract' and 'unsigned _Fract' for this target, in bits. | |
unsigned | getFractAlign () const |
unsigned | getLongFractWidth () const |
getLongFractWidth/Align - Return the size of 'signed long _Fract' and 'unsigned long _Fract' for this target, in bits. | |
unsigned | getLongFractAlign () const |
unsigned | getShortAccumScale () const |
getShortAccumScale/IBits - Return the number of fractional/integral bits in a 'signed short _Accum' type. | |
unsigned | getShortAccumIBits () const |
unsigned | getAccumScale () const |
getAccumScale/IBits - Return the number of fractional/integral bits in a 'signed _Accum' type. | |
unsigned | getAccumIBits () const |
unsigned | getLongAccumScale () const |
getLongAccumScale/IBits - Return the number of fractional/integral bits in a 'signed long _Accum' type. | |
unsigned | getLongAccumIBits () const |
unsigned | getUnsignedShortAccumScale () const |
getUnsignedShortAccumScale/IBits - Return the number of fractional/integral bits in a 'unsigned short _Accum' type. | |
unsigned | getUnsignedShortAccumIBits () const |
unsigned | getUnsignedAccumScale () const |
getUnsignedAccumScale/IBits - Return the number of fractional/integral bits in a 'unsigned _Accum' type. | |
unsigned | getUnsignedAccumIBits () const |
unsigned | getUnsignedLongAccumScale () const |
getUnsignedLongAccumScale/IBits - Return the number of fractional/integral bits in a 'unsigned long _Accum' type. | |
unsigned | getUnsignedLongAccumIBits () const |
unsigned | getShortFractScale () const |
getShortFractScale - Return the number of fractional bits in a 'signed short _Fract' type. | |
unsigned | getFractScale () const |
getFractScale - Return the number of fractional bits in a 'signed _Fract' type. | |
unsigned | getLongFractScale () const |
getLongFractScale - Return the number of fractional bits in a 'signed long _Fract' type. | |
unsigned | getUnsignedShortFractScale () const |
getUnsignedShortFractScale - Return the number of fractional bits in a 'unsigned short _Fract' type. | |
unsigned | getUnsignedFractScale () const |
getUnsignedFractScale - Return the number of fractional bits in a 'unsigned _Fract' type. | |
unsigned | getUnsignedLongFractScale () const |
getUnsignedLongFractScale - Return the number of fractional bits in a 'unsigned long _Fract' type. | |
virtual bool | hasInt128Type () const |
Determine whether the __int128 type is supported on this target. | |
virtual bool | hasBitIntType () const |
Determine whether the _BitInt type is supported on this target. | |
virtual size_t | getMaxBitIntWidth () const |
virtual bool | hasLegalHalfType () const |
Determine whether _Float16 is supported on this target. | |
virtual bool | allowHalfArgsAndReturns () const |
Whether half args and returns are supported. | |
virtual bool | hasFloat128Type () const |
Determine whether the __float128 type is supported on this target. | |
virtual bool | hasFloat16Type () const |
Determine whether the _Float16 type is supported on this target. | |
virtual bool | hasBFloat16Type () const |
Determine whether the _BFloat16 type is supported on this target. | |
virtual bool | hasFullBFloat16Type () const |
Determine whether the BFloat type is fully supported on this target, i.e arithemtic operations. | |
virtual bool | hasIbm128Type () const |
Determine whether the __ibm128 type is supported on this target. | |
virtual bool | hasLongDoubleType () const |
Determine whether the long double type is supported on this target. | |
virtual bool | hasFPReturn () const |
Determine whether return of a floating point value is supported on this target. | |
virtual bool | hasStrictFP () const |
Determine whether constrained floating point is supported on this target. | |
unsigned | getSuitableAlign () const |
Return the alignment that is the largest alignment ever used for any scalar/SIMD data type on the target machine you are compiling for (including types with an extended alignment requirement). | |
unsigned | getDefaultAlignForAttributeAligned () const |
Return the default alignment for attribute((aligned)) on this target, to be used if no alignment value is specified. | |
virtual unsigned | getMinGlobalAlign (uint64_t) const |
getMinGlobalAlign - Return the minimum alignment of a global variable, unless its alignment is explicitly reduced via attributes. | |
unsigned | getNewAlign () const |
Return the largest alignment for which a suitably-sized allocation with '::operator new(size_t)' is guaranteed to produce a correctly-aligned pointer. | |
unsigned | getWCharWidth () const |
getWCharWidth/Align - Return the size of 'wchar_t' for this target, in bits. | |
unsigned | getWCharAlign () const |
unsigned | getChar16Width () const |
getChar16Width/Align - Return the size of 'char16_t' for this target, in bits. | |
unsigned | getChar16Align () const |
unsigned | getChar32Width () const |
getChar32Width/Align - Return the size of 'char32_t' for this target, in bits. | |
unsigned | getChar32Align () const |
unsigned | getHalfWidth () const |
getHalfWidth/Align/Format - Return the size/align/format of 'half'. | |
unsigned | getHalfAlign () const |
const llvm::fltSemantics & | getHalfFormat () const |
unsigned | getFloatWidth () const |
getFloatWidth/Align/Format - Return the size/align/format of 'float'. | |
unsigned | getFloatAlign () const |
const llvm::fltSemantics & | getFloatFormat () const |
unsigned | getBFloat16Width () const |
getBFloat16Width/Align/Format - Return the size/align/format of '__bf16'. | |
unsigned | getBFloat16Align () const |
const llvm::fltSemantics & | getBFloat16Format () const |
unsigned | getDoubleWidth () const |
getDoubleWidth/Align/Format - Return the size/align/format of 'double'. | |
unsigned | getDoubleAlign () const |
const llvm::fltSemantics & | getDoubleFormat () const |
unsigned | getLongDoubleWidth () const |
getLongDoubleWidth/Align/Format - Return the size/align/format of 'long double'. | |
unsigned | getLongDoubleAlign () const |
const llvm::fltSemantics & | getLongDoubleFormat () const |
unsigned | getFloat128Width () const |
getFloat128Width/Align/Format - Return the size/align/format of '__float128'. | |
unsigned | getFloat128Align () const |
const llvm::fltSemantics & | getFloat128Format () const |
unsigned | getIbm128Width () const |
getIbm128Width/Align/Format - Return the size/align/format of '__ibm128'. | |
unsigned | getIbm128Align () const |
const llvm::fltSemantics & | getIbm128Format () const |
virtual const char * | getLongDoubleMangling () const |
Return the mangled code of long double. | |
virtual const char * | getFloat128Mangling () const |
Return the mangled code of __float128. | |
virtual const char * | getIbm128Mangling () const |
Return the mangled code of __ibm128. | |
virtual const char * | getBFloat16Mangling () const |
Return the mangled code of bfloat. | |
virtual LangOptions::FPEvalMethodKind | getFPEvalMethod () const |
Return the value for the C99 FLT_EVAL_METHOD macro. | |
virtual bool | supportSourceEvalMethod () const |
unsigned | getLargeArrayMinWidth () const |
unsigned | getLargeArrayAlign () const |
unsigned | getMaxAtomicPromoteWidth () const |
Return the maximum width lock-free atomic operation which will ever be supported for the given target. | |
unsigned | getMaxAtomicInlineWidth () const |
Return the maximum width lock-free atomic operation which can be inlined given the supported features of the given target. | |
virtual void | setMaxAtomicWidth () |
Set the maximum inline or promote width lock-free atomic operation for the given target. | |
virtual bool | hasBuiltinAtomic (uint64_t AtomicSizeInBits, uint64_t AlignmentInBits) const |
Returns true if the given target supports lock-free atomic operations at the specified width and alignment. | |
unsigned | getMaxVectorAlign () const |
Return the maximum vector alignment supported for the given target. | |
unsigned | getMaxOpenCLWorkGroupSize () const |
virtual unsigned | getExnObjectAlignment () const |
Return the alignment (in bits) of the thrown exception object. | |
unsigned | getIntMaxTWidth () const |
Return the size of intmax_t and uintmax_t for this target, in bits. | |
virtual unsigned | getUnwindWordWidth () const |
virtual unsigned | getRegisterWidth () const |
Return the "preferred" register width on this target. | |
const char * | getUserLabelPrefix () const |
Returns the default value of the USER_LABEL_PREFIX macro, which is the prefix given to user symbols by default. | |
const char * | getMCountName () const |
Returns the name of the mcount instrumentation function. | |
bool | useSignedCharForObjCBool () const |
Check if the Objective-C built-in boolean type should be signed char. | |
void | noSignedCharForObjCBool () |
bool | useBitFieldTypeAlignment () const |
Check whether the alignment of bit-field types is respected when laying out structures. | |
bool | useZeroLengthBitfieldAlignment () const |
Check whether zero length bitfields should force alignment of the next member. | |
bool | useLeadingZeroLengthBitfield () const |
Check whether zero length bitfield alignment is respected if they are leading members. | |
unsigned | getZeroLengthBitfieldBoundary () const |
Get the fixed alignment value in bits for a member that follows a zero length bitfield. | |
unsigned | getMaxAlignedAttribute () const |
Get the maximum alignment in bits for a static variable with aligned attribute. | |
bool | useExplicitBitFieldAlignment () const |
Check whether explicit bitfield alignment attributes should be. | |
bool | hasAlignMac68kSupport () const |
Check whether this target support '#pragma options align=mac68k'. | |
const char * | getTypeConstantSuffix (IntType T) const |
Return the constant suffix for the specified integer type enum. | |
bool | useObjCFPRetForRealType (FloatModeKind T) const |
Check whether the given real type should use the "fpret" flavor of Objective-C message passing on this target. | |
bool | useObjCFP2RetForComplexLongDouble () const |
Check whether _Complex long double should use the "fp2ret" flavor of Objective-C message passing on this target. | |
virtual bool | useFP16ConversionIntrinsics () const |
Check whether llvm intrinsics such as llvm.convert.to.fp16 should be used to convert to and from __fp16. | |
bool | useAddressSpaceMapMangling () const |
Specify if mangling based on address space map should be used or not for language specific address spaces. | |
virtual void | getTargetDefines (const LangOptions &Opts, MacroBuilder &Builder) const =0 |
===-— Other target property query methods -----------------------—===// | |
virtual ArrayRef< Builtin::Info > | getTargetBuiltins () const =0 |
Return information about target-specific builtins for the current primary target, and info about which builtins are non-portable across the current set of primary and secondary targets. | |
virtual std::optional< std::pair< unsigned, unsigned > > | getVScaleRange (const LangOptions &LangOpts) const |
Returns target-specific min and max values VScale_Range. | |
virtual bool | isCLZForZeroUndef () const |
The __builtin_clz* and __builtin_ctz* built-in functions are specified to have undefined results for zero inputs, but on targets that support these operations in a way that provides well-defined results for zero without loss of performance, it is a good idea to avoid optimizing based on that undef behavior. | |
virtual BuiltinVaListKind | getBuiltinVaListKind () const =0 |
Returns the kind of __builtin_va_list type that should be used with this target. | |
bool | hasBuiltinMSVaList () const |
Returns whether or not type __builtin_ms_va_list type is available on this target. | |
bool | isRenderScriptTarget () const |
Returns true for RenderScript. | |
bool | hasAArch64SVETypes () const |
Returns whether or not the AArch64 SVE built-in types are available on this target. | |
bool | hasRISCVVTypes () const |
Returns whether or not the RISC-V V built-in types are available on this target. | |
bool | allowAMDGPUUnsafeFPAtomics () const |
Returns whether or not the AMDGPU unsafe floating point atomics are allowed. | |
uint32_t | getARMCDECoprocMask () const |
For ARM targets returns a mask defining which coprocessors are configured as Custom Datapath. | |
bool | isValidClobber (StringRef Name) const |
Returns whether the passed in string is a valid clobber in an inline asm statement. | |
virtual bool | isValidGCCRegisterName (StringRef Name) const |
Returns whether the passed in string is a valid register name according to GCC. | |
StringRef | getNormalizedGCCRegisterName (StringRef Name, bool ReturnCanonical=false) const |
Returns the "normalized" GCC register name. | |
virtual bool | isSPRegName (StringRef) const |
virtual StringRef | getConstraintRegister (StringRef Constraint, StringRef Expression) const |
Extracts a register from the passed constraint (if it is a single-register constraint) and the asm label expression related to a variable in the input or output list of an inline asm statement. | |
virtual bool | validateGlobalRegisterVariable (StringRef RegName, unsigned RegSize, bool &HasSizeMismatch) const |
Validate register name used for global register variables. | |
bool | validateOutputConstraint (ConstraintInfo &Info) const |
bool | validateInputConstraint (MutableArrayRef< ConstraintInfo > OutputConstraints, ConstraintInfo &info) const |
virtual bool | validateOutputSize (const llvm::StringMap< bool > &FeatureMap, StringRef, unsigned) const |
virtual bool | validateInputSize (const llvm::StringMap< bool > &FeatureMap, StringRef, unsigned) const |
virtual bool | validateConstraintModifier (StringRef, char, unsigned, std::string &) const |
virtual bool | validateAsmConstraint (const char *&Name, TargetInfo::ConstraintInfo &info) const =0 |
bool | resolveSymbolicName (const char *&Name, ArrayRef< ConstraintInfo > OutputConstraints, unsigned &Index) const |
virtual std::string | convertConstraint (const char *&Constraint) const |
virtual std::optional< std::string > | handleAsmEscapedChar (char C) const |
Replace some escaped characters with another string based on target-specific rules. | |
virtual std::string_view | getClobbers () const =0 |
Returns a string of target-specific clobbers, in LLVM format. | |
virtual bool | isNan2008 () const |
Returns true if NaN encoding is IEEE 754-2008. | |
const llvm::Triple & | getTriple () const |
Returns the target triple of the primary target. | |
virtual std::optional< std::string > | getTargetID () const |
Returns the target ID if supported. | |
const char * | getDataLayoutString () const |
virtual bool | hasProtectedVisibility () const |
Does this target support "protected" visibility? | |
virtual bool | shouldDLLImportComdatSymbols () const |
Does this target aim for semantic compatibility with Microsoft C++ code using dllimport/export attributes? | |
virtual bool | hasPS4DLLImportExport () const |
virtual void | adjust (DiagnosticsEngine &Diags, LangOptions &Opts) |
Set forced language options. | |
virtual void | adjustTargetOptions (const CodeGenOptions &CGOpts, TargetOptions &TargetOpts) const |
Adjust target options based on codegen options. | |
virtual bool | initFeatureMap (llvm::StringMap< bool > &Features, DiagnosticsEngine &Diags, StringRef CPU, const std::vector< std::string > &FeatureVec) const |
Initialize the map with the default set of target features for the CPU this should include all legal feature strings on the target. | |
virtual StringRef | getABI () const |
Get the ABI currently in use. | |
TargetCXXABI | getCXXABI () const |
Get the C++ ABI currently in use. | |
virtual bool | setCPU (const std::string &Name) |
Target the specified CPU. | |
virtual void | fillValidCPUList (SmallVectorImpl< StringRef > &Values) const |
Fill a SmallVectorImpl with the valid values to setCPU. | |
virtual void | fillValidTuneCPUList (SmallVectorImpl< StringRef > &Values) const |
Fill a SmallVectorImpl with the valid values for tuning CPU. | |
virtual bool | isValidCPUName (StringRef Name) const |
brief Determine whether this TargetInfo supports the given CPU name. | |
virtual bool | isValidTuneCPUName (StringRef Name) const |
brief Determine whether this TargetInfo supports the given CPU name for | |
virtual ParsedTargetAttr | parseTargetAttr (StringRef Str) const |
virtual bool | supportsTargetAttributeTune () const |
brief Determine whether this TargetInfo supports tune in target attribute. | |
virtual bool | setABI (const std::string &Name) |
Use the specified ABI. | |
virtual bool | setFPMath (StringRef Name) |
Use the specified unit for FP math. | |
virtual bool | hasFeatureEnabled (const llvm::StringMap< bool > &Features, StringRef Name) const |
Check if target has a given feature enabled. | |
virtual void | setFeatureEnabled (llvm::StringMap< bool > &Features, StringRef Name, bool Enabled) const |
Enable or disable a specific target feature; the feature name must be valid. | |
virtual bool | isValidFeatureName (StringRef Feature) const |
Determine whether this TargetInfo supports the given feature. | |
virtual bool | doesFeatureAffectCodeGen (StringRef Feature) const |
Returns true if feature has an impact on target code generation. | |
virtual StringRef | getFeatureDependencies (StringRef Feature) const |
For given feature return dependent ones. | |
virtual bool | isBranchProtectionSupportedArch (StringRef Arch) const |
Determine if the Architecture in this TargetInfo supports branch protection. | |
virtual bool | validateBranchProtection (StringRef Spec, StringRef Arch, BranchProtectionInfo &BPI, StringRef &Err) const |
Determine if this TargetInfo supports the given branch protection specification. | |
virtual bool | handleTargetFeatures (std::vector< std::string > &Features, DiagnosticsEngine &Diags) |
Perform initialization based on the user configured set of features (e.g., +sse4). | |
virtual bool | hasFeature (StringRef Feature) const |
Determine whether the given target has the given feature. | |
bool | supportsMultiVersioning () const |
Identify whether this target supports multiversioning of functions, which requires support for cpu_supports and cpu_is functionality. | |
bool | supportsIFunc () const |
Identify whether this target supports IFuncs. | |
virtual bool | validateCpuSupports (StringRef Name) const |
virtual unsigned | multiVersionSortPriority (StringRef Name) const |
virtual unsigned | multiVersionFeatureCost () const |
virtual bool | validateCpuIs (StringRef Name) const |
virtual bool | validateCPUSpecificCPUDispatch (StringRef Name) const |
virtual char | CPUSpecificManglingCharacter (StringRef Name) const |
virtual StringRef | getCPUSpecificTuneName (StringRef Name) const |
virtual void | getCPUSpecificCPUDispatchFeatures (StringRef Name, llvm::SmallVectorImpl< StringRef > &Features) const |
virtual std::optional< unsigned > | getCPUCacheLineSize () const |
unsigned | getRegParmMax () const |
bool | isTLSSupported () const |
Whether the target supports thread-local storage. | |
unsigned | getMaxTLSAlign () const |
Return the maximum alignment (in bits) of a TLS variable. | |
bool | isVLASupported () const |
Whether target supports variable-length arrays. | |
bool | isSEHTrySupported () const |
Whether the target supports SEH __try. | |
bool | hasNoAsmVariants () const |
Return true if {|} are normal characters in the asm string. | |
virtual int | getEHDataRegisterNumber (unsigned RegNo) const |
Return the register number that __builtin_eh_return_regno would return with the specified argument. | |
virtual const char * | getStaticInitSectionSpecifier () const |
Return the section to use for C++ static initialization functions. | |
const LangASMap & | getAddressSpaceMap () const |
unsigned | getTargetAddressSpace (LangAS AS) const |
virtual LangAS | getOpenCLBuiltinAddressSpace (unsigned AS) const |
Map from the address space field in builtin description strings to the language address space. | |
virtual LangAS | getCUDABuiltinAddressSpace (unsigned AS) const |
Map from the address space field in builtin description strings to the language address space. | |
virtual std::optional< LangAS > | getConstantAddressSpace () const |
Return an AST address space which can be used opportunistically for constant global memory. | |
virtual const llvm::omp::GV & | getGridValue () const |
StringRef | getPlatformName () const |
Retrieve the name of the platform as it is used in the availability attribute. | |
VersionTuple | getPlatformMinVersion () const |
Retrieve the minimum desired version of the platform, to which the program should be compiled. | |
bool | isBigEndian () const |
bool | isLittleEndian () const |
virtual bool | supportsExtendIntArgs () const |
Whether the option -fextend-arguments={32,64} is supported on the target. | |
virtual bool | checkArithmeticFenceSupported () const |
Controls if __arithmetic_fence is supported in the targeted backend. | |
virtual CallingConv | getDefaultCallingConv () const |
Gets the default calling convention for the given target and declaration context. | |
virtual CallingConvCheckResult | checkCallingConvention (CallingConv CC) const |
Determines whether a given calling convention is valid for the target. | |
virtual CallingConvKind | getCallingConvKind (bool ClangABICompat4) const |
virtual bool | areDefaultedSMFStillPOD (const LangOptions &) const |
Controls whether explicitly defaulted (= default ) special member functions disqualify something from being POD-for-the-purposes-of-layout. | |
virtual bool | hasSjLjLowering () const |
Controls if __builtin_longjmp / __builtin_setjmp can be lowered to llvm.eh.sjlj.longjmp / llvm.eh.sjlj.setjmp. | |
virtual bool | checkCFProtectionBranchSupported (DiagnosticsEngine &Diags) const |
Check if the target supports CFProtection branch. | |
virtual bool | checkCFProtectionReturnSupported (DiagnosticsEngine &Diags) const |
Check if the target supports CFProtection return. | |
virtual bool | allowsLargerPreferedTypeAlignment () const |
Whether target allows to overalign ABI-specified preferred alignment. | |
virtual bool | defaultsToAIXPowerAlignment () const |
Whether target defaults to the power alignment rules of AIX. | |
virtual void | setSupportedOpenCLOpts () |
Set supported OpenCL extensions and optional core features. | |
virtual void | supportAllOpenCLOpts (bool V=true) |
virtual void | setCommandLineOpenCLOpts () |
Set supported OpenCL extensions as written on command line. | |
llvm::StringMap< bool > & | getSupportedOpenCLOpts () |
Get supported OpenCL extensions and optional core features. | |
const llvm::StringMap< bool > & | getSupportedOpenCLOpts () const |
Get const supported OpenCL extensions and optional core features. | |
virtual LangAS | getOpenCLTypeAddrSpace (OpenCLTypeKind TK) const |
Get address space for OpenCL type. | |
virtual unsigned | getVtblPtrAddressSpace () const |
virtual std::optional< unsigned > | getDWARFAddressSpace (unsigned AddressSpace) const |
const llvm::VersionTuple & | getSDKVersion () const |
virtual bool | validateTarget (DiagnosticsEngine &Diags) const |
Check the target is valid after it is fully initialized. | |
virtual bool | validateOpenCLTarget (const LangOptions &Opts, DiagnosticsEngine &Diags) const |
Check that OpenCL target has valid options setting based on OpenCL version. | |
virtual void | setAuxTarget (const TargetInfo *Aux) |
virtual bool | allowDebugInfoForExternalRef () const |
Whether target allows debuginfo types for decl only variables/functions. | |
const llvm::Triple * | getDarwinTargetVariantTriple () const |
Returns the darwin target variant triple, the variant of the deployment target for which the code is being compiled. | |
const std::optional< VersionTuple > | getDarwinTargetVariantSDKVersion () const |
Returns the version of the darwin target variant SDK which was used during the compilation if one was specified, or an empty version otherwise. | |
Static Public Member Functions | |
static TargetInfo * | CreateTargetInfo (DiagnosticsEngine &Diags, const std::shared_ptr< TargetOptions > &Opts) |
Construct a target for the given options. | |
static IntType | getCorrespondingUnsignedType (IntType T) |
static bool | isTypeSigned (IntType T) |
Returns true if the type is signed; false otherwise. | |
static const char * | getTypeName (IntType T) |
Return the user string for the specified integer type enum. | |
static const char * | getTypeFormatModifier (IntType T) |
Return the printf format modifier for the specified integer type enum. | |
Protected Member Functions | |
TargetInfo (const llvm::Triple &T) | |
void | resetDataLayout (StringRef DL, const char *UserLabelPrefix="") |
void | copyAuxTarget (const TargetInfo *Aux) |
Copy type and layout related info. | |
virtual uint64_t | getPointerWidthV (LangAS AddrSpace) const |
virtual uint64_t | getPointerAlignV (LangAS AddrSpace) const |
virtual enum IntType | getPtrDiffTypeV (LangAS AddrSpace) const |
virtual ArrayRef< const char * > | getGCCRegNames () const =0 |
virtual ArrayRef< GCCRegAlias > | getGCCRegAliases () const =0 |
virtual ArrayRef< AddlRegName > | getGCCAddlRegNames () const |
Exposes information about the current target.
Definition at line 205 of file TargetInfo.h.
The different kinds of __builtin_va_list types defined by the target implementation.
Enumerator | |
---|---|
CharPtrBuiltinVaList | typedef char* __builtin_va_list; |
VoidPtrBuiltinVaList | typedef void* __builtin_va_list; |
AArch64ABIBuiltinVaList | __builtin_va_list as defined by the AArch64 ABI http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055a/IHI0055A_aapcs64.pdf |
PNaClABIBuiltinVaList | __builtin_va_list as defined by the PNaCl ABI: http://www.chromium.org/nativeclient/pnacl/bitcode-abi#TOC-Machine-Types |
PowerABIBuiltinVaList | __builtin_va_list as defined by the Power ABI: https://www.power.org /resources/downloads/Power-Arch-32-bit-ABI-supp-1.0-Embedded.pdf |
X86_64ABIBuiltinVaList | __builtin_va_list as defined by the x86-64 ABI: http://refspecs.linuxbase.org/elf/x86_64-abi-0.21.pdf |
AAPCSABIBuiltinVaList | __builtin_va_list as defined by ARM AAPCS ABI http://infocenter.arm.com |
SystemZBuiltinVaList | |
HexagonBuiltinVaList |
Definition at line 290 of file TargetInfo.h.
Enumerator | |
---|---|
CCCR_OK | |
CCCR_Warning | |
CCCR_Ignore | |
CCCR_Error |
Definition at line 1569 of file TargetInfo.h.
Enumerator | |
---|---|
CCK_Default | |
CCK_ClangABI4OrPS4 | |
CCK_MicrosoftWin64 |
Definition at line 1589 of file TargetInfo.h.
|
protected |
Definition at line 54 of file TargetInfo.cpp.
References clang::TransferrableTargetInfo::AccumAlign, clang::TransferrableTargetInfo::AccumScale, clang::TransferrableTargetInfo::AccumWidth, AddrSpaceMap, AllowAMDGPUUnsafeFPAtomics, ARMCDECoprocMask, BigEndian, clang::TransferrableTargetInfo::BoolAlign, clang::TransferrableTargetInfo::BoolWidth, clang::TransferrableTargetInfo::Char16Type, clang::TransferrableTargetInfo::Char32Type, ComplexLongDoubleUsesFP2Ret, DefaultAddrSpaceMap, clang::TransferrableTargetInfo::DefaultAlignForAttributeAligned, clang::TransferrableTargetInfo::DoubleAlign, clang::TransferrableTargetInfo::DoubleFormat, clang::TransferrableTargetInfo::DoubleWidth, clang::TransferrableTargetInfo::Float128Align, clang::TransferrableTargetInfo::Float128Format, clang::TransferrableTargetInfo::FloatAlign, clang::TransferrableTargetInfo::FloatFormat, clang::TransferrableTargetInfo::FloatWidth, clang::TransferrableTargetInfo::FractAlign, clang::TransferrableTargetInfo::FractWidth, clang::TransferrableTargetInfo::HalfAlign, HalfArgsAndReturns, clang::TransferrableTargetInfo::HalfFormat, clang::TransferrableTargetInfo::HalfWidth, HasAArch64SVETypes, HasAlignMac68kSupport, HasBFloat16, HasBuiltinMSVaList, HasFloat128, HasFloat16, HasFPReturn, HasFullBFloat16, HasIbm128, HasLegalHalfType, HasLongDouble, HasRISCVVTypes, HasStrictFP, clang::TransferrableTargetInfo::Ibm128Align, clang::TransferrableTargetInfo::Ibm128Format, clang::TransferrableTargetInfo::Int128Align, clang::TransferrableTargetInfo::Int16Type, clang::TransferrableTargetInfo::Int64Type, clang::TransferrableTargetInfo::IntAlign, clang::TransferrableTargetInfo::IntMaxType, clang::TransferrableTargetInfo::IntPtrType, clang::TransferrableTargetInfo::IntWidth, IsRenderScriptTarget, clang::TransferrableTargetInfo::LargeArrayAlign, clang::TransferrableTargetInfo::LargeArrayMinWidth, clang::TransferrableTargetInfo::LongAccumAlign, clang::TransferrableTargetInfo::LongAccumScale, clang::TransferrableTargetInfo::LongAccumWidth, clang::TransferrableTargetInfo::LongAlign, clang::TransferrableTargetInfo::LongDoubleAlign, clang::TransferrableTargetInfo::LongDoubleFormat, clang::TransferrableTargetInfo::LongDoubleWidth, clang::TransferrableTargetInfo::LongFractAlign, clang::TransferrableTargetInfo::LongFractWidth, clang::TransferrableTargetInfo::LongLongAlign, clang::TransferrableTargetInfo::LongLongWidth, clang::TransferrableTargetInfo::LongWidth, clang::TransferrableTargetInfo::MaxAlignedAttribute, MaxAtomicInlineWidth, MaxAtomicPromoteWidth, MaxBitIntWidth, MaxOpenCLWorkGroupSize, clang::TransferrableTargetInfo::MaxTLSAlign, clang::TransferrableTargetInfo::MaxVectorAlign, MCountName, clang::TransferrableTargetInfo::MinGlobalAlign, clang::TransferrableTargetInfo::NewAlign, NoAsmVariants, clang::TransferrableTargetInfo::PaddingOnUnsignedFixedPoint, PlatformMinVersion, PlatformName, clang::TransferrableTargetInfo::PointerAlign, clang::TransferrableTargetInfo::PointerWidth, clang::TransferrableTargetInfo::ProcessIDType, clang::TransferrableTargetInfo::PtrDiffType, RealTypeUsesObjCFPRetMask, RegParmMax, clang::TargetCXXABI::set(), clang::TransferrableTargetInfo::ShortAccumAlign, clang::TransferrableTargetInfo::ShortAccumScale, clang::TransferrableTargetInfo::ShortAccumWidth, clang::TransferrableTargetInfo::ShortFractAlign, clang::TransferrableTargetInfo::ShortFractWidth, clang::TransferrableTargetInfo::SigAtomicType, clang::TransferrableTargetInfo::SignedInt, clang::TransferrableTargetInfo::SignedLong, clang::TransferrableTargetInfo::SignedLongLong, clang::TransferrableTargetInfo::SignedShort, clang::TransferrableTargetInfo::SizeType, SSERegParmMax, clang::TransferrableTargetInfo::SuitableAlign, TheCXXABI, TLSSupported, clang::TransferrableTargetInfo::UnsignedInt, clang::TransferrableTargetInfo::UnsignedLong, clang::TransferrableTargetInfo::UnsignedShort, UseAddrSpaceMapMangling, clang::TransferrableTargetInfo::UseBitFieldTypeAlignment, clang::TransferrableTargetInfo::UseExplicitBitFieldAlignment, clang::TransferrableTargetInfo::UseLeadingZeroLengthBitfield, UserLabelPrefix, clang::TransferrableTargetInfo::UseSignedCharForObjCBool, clang::TransferrableTargetInfo::UseZeroLengthBitfieldAlignment, VLASupported, clang::TransferrableTargetInfo::WCharType, clang::TransferrableTargetInfo::WIntType, and clang::TransferrableTargetInfo::ZeroLengthBitfieldBoundary.
|
virtual |
Definition at line 187 of file TargetInfo.cpp.
|
virtual |
Set forced language options.
adjust - Set forced language options.
Apply changes to the target information with respect to certain language options which change the target configuration and adjust the language based on the target options where applicable.
Reimplemented in clang::targets::AMDGPUTargetInfo, clang::targets::PPCTargetInfo, and clang::targets::BaseSPIRTargetInfo.
Definition at line 391 of file TargetInfo.cpp.
References AddrSpaceMap, checkArithmeticFenceSupported(), clang::TransferrableTargetInfo::DoubleAlign, clang::TransferrableTargetInfo::DoubleFormat, clang::TransferrableTargetInfo::DoubleWidth, FakeAddrSpaceMap, clang::TransferrableTargetInfo::FloatAlign, clang::TransferrableTargetInfo::FloatFormat, clang::TransferrableTargetInfo::FloatWidth, getCharWidth(), getMaxPointerWidth(), clang::LangOptions::getOpenCLCompatibleVersion(), getSupportedOpenCLOpts(), getTriple(), clang::TransferrableTargetInfo::HalfAlign, clang::TransferrableTargetInfo::HalfFormat, clang::TransferrableTargetInfo::HalfWidth, hasFeatureEnabled(), clang::TransferrableTargetInfo::Int64Type, clang::TransferrableTargetInfo::IntAlign, clang::TransferrableTargetInfo::IntMaxType, clang::TransferrableTargetInfo::IntPtrType, clang::TransferrableTargetInfo::IntWidth, clang::TransferrableTargetInfo::LongAlign, clang::TransferrableTargetInfo::LongDoubleAlign, clang::TransferrableTargetInfo::LongDoubleFormat, clang::TransferrableTargetInfo::LongDoubleWidth, clang::TransferrableTargetInfo::LongLongAlign, clang::TransferrableTargetInfo::LongLongWidth, clang::TransferrableTargetInfo::LongWidth, MaxBitIntWidth, clang::TransferrableTargetInfo::NewAlign, clang::TransferrableTargetInfo::PaddingOnUnsignedFixedPoint, clang::TransferrableTargetInfo::PtrDiffType, clang::DiagnosticsEngine::Report(), clang::TransferrableTargetInfo::SignedChar, clang::TransferrableTargetInfo::SignedInt, clang::TransferrableTargetInfo::SignedLong, clang::TransferrableTargetInfo::SignedLongLong, clang::TransferrableTargetInfo::SignedShort, clang::TransferrableTargetInfo::SizeType, clang::TransferrableTargetInfo::UnsignedChar, clang::TransferrableTargetInfo::UnsignedInt, clang::TransferrableTargetInfo::UnsignedLong, clang::TransferrableTargetInfo::UnsignedShort, clang::TransferrableTargetInfo::UseBitFieldTypeAlignment, and clang::TransferrableTargetInfo::WCharType.
Referenced by clang::targets::AMDGPUTargetInfo::adjust(), clang::targets::PPCTargetInfo::adjust(), clang::CompilerInstance::createPreprocessor(), and clang::CompilerInstance::createTarget().
|
inlinevirtual |
Adjust target options based on codegen options.
Definition at line 1257 of file TargetInfo.h.
Referenced by clang::CompilerInstance::createTarget().
|
inline |
Returns whether or not the AMDGPU unsafe floating point atomics are allowed.
Definition at line 989 of file TargetInfo.h.
References AllowAMDGPUUnsafeFPAtomics.
|
inlinevirtual |
Whether target allows debuginfo types for decl only variables/functions.
Reimplemented in clang::targets::BPFTargetInfo.
Definition at line 1698 of file TargetInfo.h.
Referenced by clang::Sema::ActOnUninitializedDecl().
|
inlinevirtual |
Whether half args and returns are supported.
Definition at line 645 of file TargetInfo.h.
References HalfArgsAndReturns.
Referenced by clang::Sema::BuildFunctionType(), clang::Sema::CheckFunctionReturnType(), and GetFullTypeForDeclarator().
|
inlinevirtual |
Whether target allows to overalign ABI-specified preferred alignment.
Reimplemented in clang::targets::CSKYTargetInfo, clang::targets::MSP430TargetInfo, clang::targets::VETargetInfo, clang::targets::MCUX86_32TargetInfo, and clang::targets::XCoreTargetInfo.
Definition at line 1620 of file TargetInfo.h.
Referenced by clang::ASTContext::getPreferredTypeAlign().
|
virtual |
Controls whether explicitly defaulted (= default
) special member functions disqualify something from being POD-for-the-purposes-of-layout.
Historically, Clang didn't consider these acceptable for POD, but GCC does. So in newer Clang ABIs they are acceptable for POD to be compatible with GCC/Itanium ABI, and remains disqualifying for targets that need Clang backwards compatibility rather than GCC/Itanium ABI compatibility.
Definition at line 589 of file TargetInfo.cpp.
References clang::LangOptions::Ver15.
|
inlinevirtual |
Controls if __arithmetic_fence is supported in the targeted backend.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::SPIRTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1558 of file TargetInfo.h.
Referenced by adjust().
|
inlinevirtual |
Determines whether a given calling convention is valid for the target.
A calling convention can either be accepted, produce a warning and be substituted with the default calling convention, or (someday) produce an error (such as using thiscall on a non-instance function).
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARMTargetInfo, clang::targets::BPFTargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::PPC64TargetInfo, clang::targets::BaseSPIRTargetInfo, clang::targets::SystemZTargetInfo, clang::targets::VETargetInfo, clang::targets::X86TargetInfo, clang::targets::MCUX86_32TargetInfo, and clang::targets::X86_64TargetInfo.
Definition at line 1580 of file TargetInfo.h.
References clang::CC_C, CCCR_OK, and CCCR_Warning.
Referenced by clang::Sema::CheckCallingConvAttr(), and repeatForLambdaConversionFunctionCallingConvs().
|
virtual |
Check if the target supports CFProtection branch.
Reimplemented in clang::targets::X86TargetInfo.
Definition at line 195 of file TargetInfo.cpp.
References clang::DiagnosticsEngine::Report().
Referenced by clang::CodeGen::CodeGenModule::Release().
|
virtual |
Check if the target supports CFProtection return.
Reimplemented in clang::targets::X86TargetInfo.
Definition at line 201 of file TargetInfo.cpp.
References clang::DiagnosticsEngine::Report().
Referenced by clang::CodeGen::CodeGenModule::Release().
|
inlinevirtual |
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARMTargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::M68kTargetInfo, clang::targets::MipsTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SystemZTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1174 of file TargetInfo.h.
Referenced by clang::targets::AArch64TargetInfo::convertConstraint(), clang::targets::LoongArchTargetInfo::convertConstraint(), clang::targets::RISCVTargetInfo::convertConstraint(), and SimplifyConstraint().
|
protected |
Copy type and layout related info.
Definition at line 988 of file TargetInfo.cpp.
References clang::Target.
Referenced by clang::targets::AMDGPUTargetInfo::setAuxTarget().
|
inlinevirtual |
Reimplemented in clang::targets::X86TargetInfo.
Definition at line 1433 of file TargetInfo.h.
|
static |
Construct a target for the given options.
CreateTargetInfo - Return the target info object for the specified target options.
Opts | - The options to use to initialize the target. The target may modify the options to canonicalize the target feature information to match what the backend expects. |
Definition at line 772 of file Targets.cpp.
References clang::targets::AllocateTarget(), clang::DiagnosticsEngine::Report(), and clang::Target.
Referenced by clang::createChainedIncludesSource(), and clang::CompilerInstance::createTarget().
|
inlinevirtual |
Whether target defaults to the power
alignment rules of AIX.
Definition at line 1623 of file TargetInfo.h.
Referenced by clang::ASTContext::getPreferredTypeAlign().
|
inlinevirtual |
Returns true if feature has an impact on target code generation.
Reimplemented in clang::targets::AArch64TargetInfo.
Definition at line 1344 of file TargetInfo.h.
Referenced by clang::Sema::checkTargetClonesAttrString().
|
inline |
In the event this target uses the same number of fractional bits for its unsigned types as it does with its signed counterparts, there will be exactly one bit of padding.
Return true if unsigned fixed point types have padding for this target.
Definition at line 408 of file TargetInfo.h.
References clang::TransferrableTargetInfo::PaddingOnUnsignedFixedPoint.
|
inlinevirtual |
Fill a SmallVectorImpl with the valid values to setCPU.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARMTargetInfo, clang::targets::AVRTargetInfo, clang::targets::BPFTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LanaiTargetInfo, clang::targets::MipsTargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcTargetInfo, clang::targets::SparcV9TargetInfo, clang::targets::SystemZTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1284 of file TargetInfo.h.
Referenced by fillValidTuneCPUList().
|
inlinevirtual |
Fill a SmallVectorImpl with the valid values for tuning CPU.
Reimplemented in clang::targets::RISCVTargetInfo, clang::targets::SystemZTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1287 of file TargetInfo.h.
References fillValidCPUList().
|
inlinevirtual |
Get the ABI currently in use.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::ARMTargetInfo, clang::targets::AVRTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::MipsTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SystemZTargetInfo, clang::targets::WebAssemblyTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1269 of file TargetInfo.h.
Referenced by clang::CodeGen::CodeGenModule::getTargetCodeGenInfo(), isAAPCS(), and clang::CodeGen::CodeGenModule::Release().
|
inline |
Definition at line 504 of file TargetInfo.h.
References clang::TransferrableTargetInfo::AccumAlign.
|
inline |
Definition at line 536 of file TargetInfo.h.
References clang::TransferrableTargetInfo::AccumScale, and clang::TransferrableTargetInfo::AccumWidth.
Referenced by getUnsignedAccumIBits().
|
inline |
getAccumScale/IBits - Return the number of fractional/integral bits in a 'signed _Accum' type.
Definition at line 535 of file TargetInfo.h.
References clang::TransferrableTargetInfo::AccumScale.
|
inline |
getAccumWidth/Align - Return the size of 'signed _Accum' and 'unsigned _Accum' for this target, in bits.
Definition at line 503 of file TargetInfo.h.
References clang::TransferrableTargetInfo::AccumWidth.
|
inline |
Definition at line 1510 of file TargetInfo.h.
References AddrSpaceMap.
Referenced by getTargetAddressSpace().
|
inline |
For ARM targets returns a mask defining which coprocessors are configured as Custom Datapath.
Definition at line 993 of file TargetInfo.h.
References ARMCDECoprocMask.
Referenced by clang::targets::ARMTargetInfo::getTargetDefines().
|
inline |
Definition at line 726 of file TargetInfo.h.
References clang::TransferrableTargetInfo::BFloat16Align.
|
inline |
Definition at line 727 of file TargetInfo.h.
References clang::TransferrableTargetInfo::BFloat16Format.
Referenced by clang::ASTContext::getFloatTypeSemantics().
|
inlinevirtual |
Return the mangled code of bfloat.
Reimplemented in clang::targets::AArch64TargetInfo, and clang::targets::ARMTargetInfo.
Definition at line 768 of file TargetInfo.h.
|
inline |
getBFloat16Width/Align/Format - Return the size/align/format of '__bf16'.
Definition at line 725 of file TargetInfo.h.
References clang::TransferrableTargetInfo::BFloat16Width.
|
inline |
Return the alignment of '_Bool' and C++ 'bool' for this target.
Definition at line 465 of file TargetInfo.h.
References clang::TransferrableTargetInfo::BoolAlign.
|
inline |
Return the size of '_Bool' and C++ 'bool' for this target, in bits.
Definition at line 462 of file TargetInfo.h.
References clang::TransferrableTargetInfo::BoolWidth.
Referenced by InitializePredefinedMacros().
|
pure virtual |
Returns the kind of __builtin_va_list type that should be used with this target.
Implemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARCTargetInfo, clang::targets::ARMTargetInfo, clang::targets::AVRTargetInfo, clang::targets::BPFTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::DirectXTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LanaiTargetInfo, clang::targets::Le64TargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::M68kTargetInfo, clang::targets::MipsTargetInfo, clang::targets::MSP430TargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::PNaClTargetInfo, clang::targets::NaClMips32TargetInfo, clang::targets::PPC32TargetInfo, clang::targets::PPC64TargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcTargetInfo, clang::targets::BaseSPIRTargetInfo, clang::targets::SystemZTargetInfo, clang::targets::TCETargetInfo, clang::targets::VETargetInfo, clang::targets::X86_32TargetInfo, clang::targets::X86_64TargetInfo, and clang::targets::XCoreTargetInfo.
Referenced by clang::Sema::BuildVAArgExpr(), and clang::ASTContext::getBuiltinVaListDecl().
|
virtual |
Definition at line 582 of file TargetInfo.cpp.
References CCK_ClangABI4OrPS4, CCK_Default, getCXXABI(), and getTriple().
Referenced by clang::Sema::CheckCompletedCXXClass().
|
inline |
Definition at line 707 of file TargetInfo.h.
References clang::TransferrableTargetInfo::Char16Type, and getTypeAlign().
|
inline |
Definition at line 374 of file TargetInfo.h.
References clang::TransferrableTargetInfo::Char16Type.
Referenced by InitializePredefinedMacros().
|
inline |
getChar16Width/Align - Return the size of 'char16_t' for this target, in bits.
Definition at line 706 of file TargetInfo.h.
References clang::TransferrableTargetInfo::Char16Type, and getTypeWidth().
Referenced by EvaluateValue().
|
inline |
Definition at line 712 of file TargetInfo.h.
References clang::TransferrableTargetInfo::Char32Type, and getTypeAlign().
|
inline |
Definition at line 375 of file TargetInfo.h.
References clang::TransferrableTargetInfo::Char32Type.
Referenced by InitializePredefinedMacros().
|
inline |
getChar32Width/Align - Return the size of 'char32_t' for this target, in bits.
Definition at line 711 of file TargetInfo.h.
References clang::TransferrableTargetInfo::Char32Type, and getTypeWidth().
Referenced by EvaluateValue().
|
inline |
Definition at line 468 of file TargetInfo.h.
Referenced by clang::CodeGen::CGObjCRuntime::EmitValueForIvarAtOffset(), getTypeAlign(), and roundUpSizeToCharAlignment().
|
inline |
Definition at line 467 of file TargetInfo.h.
Referenced by clang::Sema::ActOnEnumBody(), adjust(), clang::CharLiteralParser::CharLiteralParser(), DefineTypeSizeof(), EvaluateValue(), clang::interp::Context::getCharBit(), clang::ASTContext::getDeclAlign(), getIntTypeByWidth(), getLeastIntTypeByWidth(), getTypeConstantSuffix(), getTypeWidth(), hasBuiltinAtomic(), InitializePredefinedMacros(), InitializeStandardPredefinedMacros(), and parseModeAttrArg().
|
pure virtual |
Returns a string of target-specific clobbers, in LLVM format.
Implemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARCTargetInfo, clang::targets::ARMTargetInfo, clang::targets::AVRTargetInfo, clang::targets::BPFTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::DirectXTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LanaiTargetInfo, clang::targets::Le64TargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::M68kTargetInfo, clang::targets::MipsTargetInfo, clang::targets::MSP430TargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::PNaClTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcTargetInfo, clang::targets::BaseSPIRTargetInfo, clang::targets::SystemZTargetInfo, clang::targets::TCETargetInfo, clang::targets::VETargetInfo, clang::targets::X86TargetInfo, and clang::targets::XCoreTargetInfo.
Referenced by emitPPCLoadReserveIntrinsic(), and EmitX86BitTestIntrinsic().
|
inlinevirtual |
Return an AST address space which can be used opportunistically for constant global memory.
It must be possible to convert pointers into this address space to LangAS::Default. If no such address space exists, this may return std::nullopt, and such optimizations will be disabled.
Reimplemented in clang::targets::AMDGPUTargetInfo.
Definition at line 1533 of file TargetInfo.h.
References clang::Default.
|
inlinevirtual |
Extracts a register from the passed constraint (if it is a single-register constraint) and the asm label expression related to a variable in the input or output list of an inline asm statement.
This function is used by Sema in order to diagnose conflicts between the clobber list and the input/output lists.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::ARMTargetInfo, clang::targets::RISCVTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1023 of file TargetInfo.h.
Definition at line 387 of file TargetInfo.h.
References clang::TransferrableTargetInfo::SignedChar, clang::TransferrableTargetInfo::SignedInt, clang::TransferrableTargetInfo::SignedLong, clang::TransferrableTargetInfo::SignedLongLong, clang::TransferrableTargetInfo::SignedShort, clang::TransferrableTargetInfo::UnsignedChar, clang::TransferrableTargetInfo::UnsignedInt, clang::TransferrableTargetInfo::UnsignedLong, clang::TransferrableTargetInfo::UnsignedLongLong, and clang::TransferrableTargetInfo::UnsignedShort.
Referenced by getUInt16Type(), getUInt64Type(), getUIntMaxType(), getUIntPtrType(), and getUnsignedPtrDiffType().
|
inlinevirtual |
Reimplemented in clang::targets::X86TargetInfo.
Definition at line 1456 of file TargetInfo.h.
|
inlinevirtual |
Reimplemented in clang::targets::X86TargetInfo.
Definition at line 1448 of file TargetInfo.h.
Referenced by clang::ASTContext::getFunctionFeatureMap().
|
inlinevirtual |
Reimplemented in clang::targets::X86TargetInfo.
Definition at line 1440 of file TargetInfo.h.
Map from the address space field in builtin description strings to the language address space.
Reimplemented in clang::targets::AMDGPUTargetInfo.
Definition at line 1525 of file TargetInfo.h.
References clang::getLangASFromTargetAS().
Referenced by clang::ASTContext::getLangASForBuiltinAddressSpace().
|
inline |
Get the C++ ABI currently in use.
Definition at line 1272 of file TargetInfo.h.
References TheCXXABI.
Referenced by clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFinishFunctionBody(), clang::Sema::ActOnPragmaMSSeg(), clang::Sema::ActOnStartOfFunctionDef(), clang::Sema::ActOnUninitializedDecl(), clang::Sema::ActOnVariableDeclarator(), clang::Sema::AddImplicitlyDeclaredMembersToClass(), clang::Sema::AddInitializerToDecl(), clang::Sema::adjustMemberFunctionCC(), ApplyNonVirtualAndVirtualOffset(), clang::CodeGen::CodeGenPGO::assignRegionCounters(), basicGVALinkageForFunction(), basicGVALinkageForVariable(), BuildAppleKextVirtualCall(), clang::Sema::BuildArrayType(), canEmitDelegateCallArgs(), clang::Sema::CheckAddressOfOperand(), checkAttributesAfterMerging(), clang::Sema::CheckBaseSpecifier(), clang::Sema::checkClassLevelDLLAttribute(), clang::Sema::CheckCompletedCXXClass(), clang::Sema::CheckCompleteDestructorVariant(), clang::Sema::CheckCXXThrowOperand(), checkForMultipleExportedDefaultConstructors(), computeKeyFunction(), clang::ASTContext::createDeviceMangleContext(), clang::ASTContext::createMangleContext(), clang::Sema::DefaultLvalueConversion(), clang::Sema::DefineUsedVTables(), clang::CodeGen::CGCXXABI::EmitCtorCompleteObjectHandler(), clang::Sema::FixOverloadedFunctionReference(), clang::ASTNameGenerator::Implementation::getAllManglings(), getCallingConvKind(), getCallingConvMangling(), getConstantArrayInfoInChars(), clang::ASTContext::getCXXABIKind(), clang::CodeGen::CodeGenModule::getFunctionLinkage(), clang::ASTContext::getVTableContext(), hasInAllocaArgs(), clang::CodeGen::CodeGenTypes::inheritingCtorHasParams(), InitDeviceMC(), clang::Sema::InstantiateDefaultCtorDefaultArgs(), clang::Sema::InstantiateFunctionDefinition(), clang::Type::isIncompleteType(), clang::FunctionDecl::isMSExternInline(), isMsLayout(), clang::ASTContext::isMSStaticDataMemberInlineDefinition(), isStdBuiltin(), isVarDeclStrongDefinition(), clang::CodeGen::CodeGenVTables::isVTableExternal(), clang::MangleContext::mangleName(), clang::Sema::MarkBaseAndMemberDestructorsReferenced(), clang::Sema::MarkFunctionReferenced(), clang::Sema::MarkVTableUsed(), clang::Sema::PerformImplicitConversion(), ReferenceDllExportedMembers(), shouldEmitVTableThunk(), TryReinterpretCast(), TryStaticMemberPointerUpcast(), UseRelativeLayout(), and clang::Sema::VerifyBitField().
|
inline |
Returns the version of the darwin target variant SDK which was used during the compilation if one was specified, or an empty version otherwise.
Definition at line 1708 of file TargetInfo.h.
References clang::TargetOptions::DarwinTargetVariantSDKVersion, and getTargetOpts().
|
inline |
Returns the darwin target variant triple, the variant of the deployment target for which the code is being compiled.
Definition at line 1702 of file TargetInfo.h.
References DarwinTargetVariantTriple.
Referenced by isTargetVariantEnvironment(), and isTargetVariantOS().
|
inline |
Definition at line 1206 of file TargetInfo.h.
References DataLayoutString.
Referenced by clang::CodeGenAction::ExecuteAction().
|
inline |
Return the default alignment for attribute((aligned)) on this target, to be used if no alignment value is specified.
Definition at line 682 of file TargetInfo.h.
References clang::TransferrableTargetInfo::DefaultAlignForAttributeAligned.
Referenced by getExnObjectAlignment(), and clang::ASTContext::getTargetDefaultAlignForAttributeAligned().
|
inlinevirtual |
Gets the default calling convention for the given target and declaration context.
Reimplemented in clang::targets::BaseSPIRTargetInfo, clang::targets::X86TargetInfo, and clang::targets::X86_64TargetInfo.
Definition at line 1562 of file TargetInfo.h.
References clang::CC_C.
Referenced by clang::ASTContext::getDefaultCallingConvention().
|
inline |
Definition at line 731 of file TargetInfo.h.
References clang::TransferrableTargetInfo::DoubleAlign.
|
inline |
Definition at line 732 of file TargetInfo.h.
References clang::TransferrableTargetInfo::DoubleFormat.
Referenced by clang::ASTContext::getFloatTypeSemantics(), and InitializePredefinedMacros().
|
inline |
getDoubleWidth/Align/Format - Return the size/align/format of 'double'.
Definition at line 730 of file TargetInfo.h.
References clang::TransferrableTargetInfo::DoubleWidth.
Referenced by getRealTypeByWidth(), and InitializePredefinedMacros().
|
inlinevirtual |
AddressSpace
to be converted in order to be used, then return the corresponding target specific DWARF address space.Reimplemented in clang::targets::AMDGPUTargetInfo, clang::targets::NVPTXTargetInfo, and clang::targets::BaseSPIRTargetInfo.
Definition at line 1674 of file TargetInfo.h.
Return the register number that __builtin_eh_return_regno would return with the specified argument.
This corresponds with TargetLowering's getExceptionPointerRegister and getExceptionSelectorRegister in the backend.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::ARMTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::MipsTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcTargetInfo, clang::targets::SystemZTargetInfo, clang::targets::X86_32TargetInfo, clang::targets::X86_64TargetInfo, and clang::targets::XCoreTargetInfo.
Definition at line 1501 of file TargetInfo.h.
|
inlinevirtual |
Return the alignment (in bits) of the thrown exception object.
This is only meaningful for targets that allocate C++ exceptions in a system runtime, such as those using the Itanium C++ ABI.
Definition at line 809 of file TargetInfo.h.
References getDefaultAlignForAttributeAligned().
Referenced by clang::ASTContext::getExnObjectAlignment().
|
inlinevirtual |
For given feature return dependent ones.
Reimplemented in clang::targets::AArch64TargetInfo.
Definition at line 1349 of file TargetInfo.h.
|
inline |
Definition at line 745 of file TargetInfo.h.
References clang::TransferrableTargetInfo::Float128Align.
|
inline |
Definition at line 746 of file TargetInfo.h.
References clang::TransferrableTargetInfo::Float128Format.
Referenced by clang::ASTContext::getFloatTypeSemantics().
|
inlinevirtual |
Return the mangled code of __float128.
Reimplemented in clang::targets::PPCTargetInfo.
Definition at line 760 of file TargetInfo.h.
|
inline |
getFloat128Width/Align/Format - Return the size/align/format of '__float128'.
Definition at line 744 of file TargetInfo.h.
|
inline |
Definition at line 721 of file TargetInfo.h.
References clang::TransferrableTargetInfo::FloatAlign.
|
inline |
Definition at line 722 of file TargetInfo.h.
References clang::TransferrableTargetInfo::FloatFormat.
Referenced by clang::ASTContext::getFloatTypeSemantics(), and InitializePredefinedMacros().
|
inline |
getFloatWidth/Align/Format - Return the size/align/format of 'float'.
Definition at line 720 of file TargetInfo.h.
References clang::TransferrableTargetInfo::FloatWidth.
Referenced by getRealTypeByWidth(), and InitializePredefinedMacros().
|
inlinevirtual |
Return the value for the C99 FLT_EVAL_METHOD macro.
Reimplemented in clang::targets::X86TargetInfo.
Definition at line 771 of file TargetInfo.h.
References clang::LangOptions::FEM_Source.
|
inline |
Definition at line 519 of file TargetInfo.h.
References clang::TransferrableTargetInfo::FractAlign.
|
inline |
getFractScale - Return the number of fractional bits in a 'signed _Fract' type.
Definition at line 583 of file TargetInfo.h.
References clang::TransferrableTargetInfo::FractWidth.
Referenced by getUnsignedFractScale().
|
inline |
getFractWidth/Align - Return the size of 'signed _Fract' and 'unsigned _Fract' for this target, in bits.
Definition at line 518 of file TargetInfo.h.
References clang::TransferrableTargetInfo::FractWidth.
|
inlineprotectedvirtual |
Reimplemented in clang::targets::AVRTargetInfo, clang::targets::PPCTargetInfo, clang::targets::SystemZTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1728 of file TargetInfo.h.
Referenced by clang::targets::PPCTargetInfo::getGCCAddlRegNames(), getNormalizedGCCRegisterName(), and isValidGCCRegisterName().
|
protectedpure virtual |
Implemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARCTargetInfo, clang::targets::ARMTargetInfo, clang::targets::AVRTargetInfo, clang::targets::BPFTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::DirectXTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LanaiTargetInfo, clang::targets::Le64TargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::M68kTargetInfo, clang::targets::MipsTargetInfo, clang::targets::MSP430TargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::PNaClTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcTargetInfo, clang::targets::BaseSPIRTargetInfo, clang::targets::SystemZTargetInfo, clang::targets::TCETargetInfo, clang::targets::VETargetInfo, clang::targets::X86TargetInfo, and clang::targets::XCoreTargetInfo.
Referenced by getNormalizedGCCRegisterName(), and isValidGCCRegisterName().
|
protectedpure virtual |
Implemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARCTargetInfo, clang::targets::ARMTargetInfo, clang::targets::AVRTargetInfo, clang::targets::BPFTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::DirectXTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LanaiTargetInfo, clang::targets::Le64TargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::M68kTargetInfo, clang::targets::MipsTargetInfo, clang::targets::MSP430TargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::PNaClTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcTargetInfo, clang::targets::BaseSPIRTargetInfo, clang::targets::SystemZTargetInfo, clang::targets::TCETargetInfo, clang::targets::VETargetInfo, clang::targets::X86TargetInfo, and clang::targets::XCoreTargetInfo.
Referenced by getNormalizedGCCRegisterName(), and isValidGCCRegisterName().
|
inlinevirtual |
Reimplemented in clang::targets::AMDGPUTargetInfo, and clang::targets::NVPTXTargetInfo.
Definition at line 1539 of file TargetInfo.h.
Referenced by emitInterWarpCopyFunction(), clang::CodeGen::CGOpenMPRuntimeGPU::emitTeamsOutlinedFunction(), getNVPTXLaneID(), and getNVPTXWarpID().
|
inline |
Definition at line 716 of file TargetInfo.h.
References clang::TransferrableTargetInfo::HalfAlign.
|
inline |
Definition at line 717 of file TargetInfo.h.
References clang::TransferrableTargetInfo::HalfFormat.
Referenced by clang::ASTContext::getFloatTypeSemantics(), and InitializePredefinedMacros().
|
inline |
getHalfWidth/Align/Format - Return the size/align/format of 'half'.
Definition at line 715 of file TargetInfo.h.
References clang::TransferrableTargetInfo::HalfWidth.
Referenced by getRealTypeByWidth().
|
inline |
Definition at line 753 of file TargetInfo.h.
References clang::TransferrableTargetInfo::Ibm128Align.
|
inline |
Definition at line 754 of file TargetInfo.h.
References clang::TransferrableTargetInfo::Ibm128Format.
Referenced by clang::ASTContext::getFloatTypeSemantics().
|
inlinevirtual |
Return the mangled code of __ibm128.
Reimplemented in clang::targets::PPCTargetInfo.
Definition at line 763 of file TargetInfo.h.
|
inline |
getIbm128Width/Align/Format - Return the size/align/format of '__ibm128'.
Definition at line 752 of file TargetInfo.h.
|
inline |
getInt128Align() - Returns the alignment of Int128.
Definition at line 494 of file TargetInfo.h.
References clang::TransferrableTargetInfo::Int128Align.
|
inline |
Definition at line 380 of file TargetInfo.h.
References clang::TransferrableTargetInfo::Int16Type.
Referenced by DefineExactWidthIntType().
|
inline |
Definition at line 376 of file TargetInfo.h.
References clang::TransferrableTargetInfo::Int64Type.
Referenced by DecodeTypeFromStr(), DefineExactWidthIntType(), and DefineExactWidthIntTypeSize().
|
inline |
Definition at line 481 of file TargetInfo.h.
References clang::TransferrableTargetInfo::IntAlign.
Referenced by getTypeAlign().
|
inline |
Return the size of intmax_t and uintmax_t for this target, in bits.
Definition at line 822 of file TargetInfo.h.
References getTypeWidth(), and clang::TransferrableTargetInfo::IntMaxType.
Referenced by clang::Sema::ActOnNumericConstant().
|
inline |
Definition at line 357 of file TargetInfo.h.
References clang::TransferrableTargetInfo::IntMaxType.
Referenced by clang::ASTContext::getIntMaxType(), and InitializePredefinedMacros().
|
inline |
Definition at line 368 of file TargetInfo.h.
References clang::TransferrableTargetInfo::IntPtrType.
Referenced by clang::ASTContext::getIntPtrType(), and InitializePredefinedMacros().
|
virtual |
Return integer type with specified width.
Reimplemented in clang::targets::AVRTargetInfo.
Definition at line 285 of file TargetInfo.cpp.
References getCharWidth(), getIntWidth(), getLongLongWidth(), getLongWidth(), getShortWidth(), clang::TransferrableTargetInfo::NoInt, clang::TransferrableTargetInfo::SignedChar, clang::TransferrableTargetInfo::SignedInt, clang::TransferrableTargetInfo::SignedLong, clang::TransferrableTargetInfo::SignedLongLong, clang::TransferrableTargetInfo::SignedShort, clang::TransferrableTargetInfo::UnsignedChar, clang::TransferrableTargetInfo::UnsignedInt, clang::TransferrableTargetInfo::UnsignedLong, clang::TransferrableTargetInfo::UnsignedLongLong, and clang::TransferrableTargetInfo::UnsignedShort.
Referenced by DecodeTypeFromStr(), and clang::ASTContext::getIntTypeForBitwidth().
|
inline |
getIntWidth/Align - Return the size of 'signed int' and 'unsigned int' for this target, in bits.
Definition at line 480 of file TargetInfo.h.
References clang::TransferrableTargetInfo::IntWidth.
Referenced by clang::Sema::ActOnEnumBody(), clang::Sema::ActOnGNUNullExpr(), clang::Sema::ActOnIntegerConstant(), clang::Sema::ActOnNumericConstant(), clang::Sema::BuildCXXNew(), clang::CharLiteralParser::CharLiteralParser(), clang::Sema::CheckEnumConstant(), clang::CodeGen::CodeGenModule::EmitMainVoidAlias(), EvaluateValue(), getIntTypeByWidth(), getLeastIntTypeByWidth(), clang::targets::MipsTargetInfo::getTargetDefines(), getTypeConstantSuffix(), getTypeWidth(), and InitializePredefinedMacros().
|
inline |
Definition at line 780 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LargeArrayAlign.
Referenced by clang::ASTContext::getDeclAlign().
|
inline |
Definition at line 779 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LargeArrayMinWidth.
Referenced by clang::ASTContext::getDeclAlign().
|
virtual |
Return the smallest integer type with at least the specified width.
Reimplemented in clang::targets::AVRTargetInfo.
Definition at line 300 of file TargetInfo.cpp.
References getCharWidth(), getIntWidth(), getLongLongWidth(), getLongWidth(), getShortWidth(), clang::TransferrableTargetInfo::NoInt, clang::TransferrableTargetInfo::SignedChar, clang::TransferrableTargetInfo::SignedInt, clang::TransferrableTargetInfo::SignedLong, clang::TransferrableTargetInfo::SignedLongLong, clang::TransferrableTargetInfo::SignedShort, clang::TransferrableTargetInfo::UnsignedChar, clang::TransferrableTargetInfo::UnsignedInt, clang::TransferrableTargetInfo::UnsignedLong, clang::TransferrableTargetInfo::UnsignedLongLong, and clang::TransferrableTargetInfo::UnsignedShort.
Referenced by DefineFastIntType(), and DefineLeastWidthIntType().
|
inline |
Definition at line 509 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongAccumAlign.
|
inline |
Definition at line 541 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongAccumScale, and clang::TransferrableTargetInfo::LongAccumWidth.
Referenced by getUnsignedLongAccumIBits().
|
inline |
getLongAccumScale/IBits - Return the number of fractional/integral bits in a 'signed long _Accum' type.
Definition at line 540 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongAccumScale.
|
inline |
getLongAccumWidth/Align - Return the size of 'signed long _Accum' and 'unsigned long _Accum' for this target, in bits.
Definition at line 508 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongAccumWidth.
|
inline |
Definition at line 486 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongAlign.
Referenced by getTypeAlign().
|
inline |
Definition at line 737 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongDoubleAlign.
|
inline |
Definition at line 738 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongDoubleFormat.
Referenced by clang::Sema::BuildAtomicExpr(), clang::ento::SMTConstraintManager::canReasonAbout(), clang::ASTContext::getFloatTypeSemantics(), getRealTypeByWidth(), and InitializePredefinedMacros().
|
inlinevirtual |
Return the mangled code of long double.
Reimplemented in clang::targets::PPCTargetInfo, clang::targets::SystemZTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 757 of file TargetInfo.h.
|
inline |
getLongDoubleWidth/Align/Format - Return the size/align/format of 'long double'.
Definition at line 736 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongDoubleWidth.
Referenced by InitializePredefinedMacros().
|
inline |
Definition at line 524 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongFractAlign.
|
inline |
getLongFractScale - Return the number of fractional bits in a 'signed long _Fract' type.
Definition at line 587 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongFractWidth.
Referenced by getUnsignedLongFractScale().
|
inline |
getLongFractWidth/Align - Return the size of 'signed long _Fract' and 'unsigned long _Fract' for this target, in bits.
Definition at line 523 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongFractWidth.
|
inline |
Definition at line 491 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongLongAlign.
Referenced by getTypeAlign().
|
inline |
getLongLongWidth/Align - Return the size of 'signed long long' and 'unsigned long long' for this target, in bits.
Definition at line 490 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongLongWidth.
Referenced by clang::Sema::ActOnEnumBody(), clang::Sema::ActOnGNUNullExpr(), clang::Sema::ActOnNumericConstant(), getIntTypeByWidth(), getLeastIntTypeByWidth(), getTypeWidth(), and InitializePredefinedMacros().
|
inline |
getLongWidth/Align - Return the size of 'signed long' and 'unsigned long' for this target, in bits.
Definition at line 485 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongWidth.
Referenced by clang::Sema::ActOnEnumBody(), clang::Sema::ActOnGNUNullExpr(), clang::Sema::ActOnNumericConstant(), DecodeTypeFromStr(), clang::CodeGen::CodeGenModule::GetAddrOfConstantCFString(), getIntTypeByWidth(), getLeastIntTypeByWidth(), clang::targets::MipsTargetInfo::getTargetDefines(), getTypeWidth(), and InitializePredefinedMacros().
|
inline |
Get the maximum alignment in bits for a static variable with aligned attribute.
Definition at line 888 of file TargetInfo.h.
References clang::TransferrableTargetInfo::MaxAlignedAttribute.
Referenced by clang::ASTContext::getDeclAlign().
|
inline |
Return the maximum width lock-free atomic operation which can be inlined given the supported features of the given target.
Definition at line 787 of file TargetInfo.h.
References MaxAtomicInlineWidth.
Referenced by clang::ASTContext::AtomicUsesUnsupportedLibcall(), and hasBuiltinAtomic().
|
inline |
Return the maximum width lock-free atomic operation which will ever be supported for the given target.
Definition at line 784 of file TargetInfo.h.
References MaxAtomicPromoteWidth.
|
inlinevirtual |
Reimplemented in clang::targets::X86_32TargetInfo, and clang::targets::X86_64TargetInfo.
Definition at line 627 of file TargetInfo.h.
References MaxBitIntWidth.
Referenced by clang::Sema::ActOnNumericConstant(), clang::Sema::BuildBitIntType(), and InitializePredefinedMacros().
|
inline |
Definition at line 804 of file TargetInfo.h.
References MaxOpenCLWorkGroupSize.
|
inlinevirtual |
Return the maximum width of pointers on this target.
Reimplemented in clang::targets::AMDGPUTargetInfo.
Definition at line 453 of file TargetInfo.h.
References clang::TransferrableTargetInfo::PointerWidth.
Referenced by adjust(), clang::ASTContext::getConstantArrayType(), and clang::CodeGen::initializationPatternFor().
|
inline |
Return the maximum alignment (in bits) of a TLS variable.
Gets the maximum alignment (in bits) of a TLS variable on this target. Returns zero if there is no such constraint.
Definition at line 1475 of file TargetInfo.h.
References clang::TransferrableTargetInfo::MaxTLSAlign.
Referenced by clang::Sema::AddAlignedAttr(), and clang::Sema::CheckThreadLocalForLargeAlignment().
|
inline |
Return the maximum vector alignment supported for the given target.
Definition at line 802 of file TargetInfo.h.
References clang::TransferrableTargetInfo::MaxVectorAlign.
|
inline |
Returns the name of the mcount instrumentation function.
Definition at line 846 of file TargetInfo.h.
References MCountName.
|
inlinevirtual |
getMinGlobalAlign - Return the minimum alignment of a global variable, unless its alignment is explicitly reduced via attributes.
Reimplemented in clang::targets::CSKYTargetInfo.
Definition at line 688 of file TargetInfo.h.
References clang::TransferrableTargetInfo::MinGlobalAlign.
|
inline |
Return the largest alignment for which a suitably-sized allocation with '::operator new(size_t)' is guaranteed to produce a correctly-aligned pointer.
Definition at line 695 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongDoubleAlign, clang::TransferrableTargetInfo::LongLongAlign, and clang::TransferrableTargetInfo::NewAlign.
Referenced by clang::Sema::BuildCXXNew(), hasNewExtendedAlignment(), and InitializeStandardPredefinedMacros().
StringRef TargetInfo::getNormalizedGCCRegisterName | ( | StringRef | Name, |
bool | ReturnCanonical = false |
||
) | const |
Returns the "normalized" GCC register name.
ReturnCannonical true will return the register name without any additions such as "{}" or "%" in it's canonical form, for example: ReturnCanonical = true and Name = "rax", will return "ax".
Definition at line 673 of file TargetInfo.cpp.
References getGCCAddlRegNames(), getGCCRegAliases(), getGCCRegNames(), clang::isDigit(), isValidGCCRegisterName(), and removeGCCRegisterPrefix().
Referenced by AddVariableConstraints().
|
inlinevirtual |
Get integer value for null pointer.
AddrSpace | address space of pointee in source language. |
Reimplemented in clang::targets::AMDGPUTargetInfo.
Definition at line 459 of file TargetInfo.h.
Referenced by clang::ASTContext::getTargetNullPointerValue().
Map from the address space field in builtin description strings to the language address space.
Reimplemented in clang::targets::AMDGPUTargetInfo.
Definition at line 1519 of file TargetInfo.h.
References clang::getLangASFromTargetAS().
Referenced by clang::ASTContext::getLangASForBuiltinAddressSpace().
|
virtual |
Get address space for OpenCL type.
Reimplemented in clang::targets::AMDGPUTargetInfo.
Definition at line 593 of file TargetInfo.cpp.
References clang::Default, clang::OCLTK_Image, clang::OCLTK_Pipe, clang::OCLTK_Sampler, clang::opencl_constant, and clang::opencl_global.
Referenced by clang::ASTContext::getOpenCLTypeAddrSpace().
|
inline |
Retrieve the minimum desired version of the platform, to which the program should be compiled.
Definition at line 1549 of file TargetInfo.h.
References PlatformMinVersion.
Referenced by CheckAvailability(), checkObjCMethodX86VectorTypes(), and DoEmitAvailabilityWarning().
|
inline |
Retrieve the name of the platform as it is used in the availability attribute.
Definition at line 1545 of file TargetInfo.h.
References PlatformName.
Referenced by clang::Sema::ActOnObjCAvailabilityCheckExpr(), CheckAvailability(), DiagnoseObjCImplementedDeprecations(), DoEmitAvailabilityWarning(), getAttrForPlatform(), and clang::Decl::getVersionIntroduced().
|
inline |
Definition at line 447 of file TargetInfo.h.
References clang::Default, getPointerAlignV(), and clang::TransferrableTargetInfo::PointerAlign.
Referenced by initializeForBlockHeader().
|
inlineprotectedvirtual |
Reimplemented in clang::targets::AMDGPUTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1720 of file TargetInfo.h.
References clang::TransferrableTargetInfo::PointerAlign.
Referenced by getPointerAlign().
|
inline |
Return the width of pointers on this target, for the specified address space.
Definition at line 443 of file TargetInfo.h.
References clang::Default, getPointerWidthV(), and clang::TransferrableTargetInfo::PointerWidth.
Referenced by clang::Sema::ActOnGNUNullExpr(), clang::Sema::FindAllocationFunctions(), getConstantArrayInfoInChars(), clang::CodeGen::swiftcall::getMaximumVoluntaryIntegerSize(), GetNumNonZeroBytesInInit(), clang::CodeGen::CodeGenModule::getTargetCodeGenInfo(), clang::targets::MipsTargetInfo::getTargetDefines(), getUnwindWordWidth(), clang::targets::MipsTargetInfo::getUnwindWordWidth(), handleMSPointerTypeQualifierAttr(), hasInt128Type(), initializeForBlockHeader(), InitializePredefinedMacros(), clang::MangleContext::mangleName(), clang::CodeGen::SwiftABIInfo::occupiesMoreThan(), and parseModeAttrArg().
|
inlineprotectedvirtual |
Reimplemented in clang::targets::AMDGPUTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1717 of file TargetInfo.h.
References clang::TransferrableTargetInfo::PointerWidth.
Referenced by getPointerWidth().
|
inline |
Definition at line 385 of file TargetInfo.h.
References clang::TransferrableTargetInfo::ProcessIDType.
Referenced by clang::ASTContext::getProcessIDType().
Definition at line 361 of file TargetInfo.h.
References clang::Default, getPtrDiffTypeV(), and clang::TransferrableTargetInfo::PtrDiffType.
Referenced by clang::ASTContext::getPointerDiffType(), getUnsignedPtrDiffType(), and InitializePredefinedMacros().
|
inlineprotectedvirtual |
Definition at line 1723 of file TargetInfo.h.
References clang::TransferrableTargetInfo::PtrDiffType.
Referenced by getPtrDiffType().
FloatModeKind TargetInfo::getRealTypeByWidth | ( | unsigned | BitWidth, |
FloatModeKind | ExplicitType | ||
) | const |
Return floating point type with specified width.
On PPC, there are three possible types for 128-bit floating point: "PPC double-double", IEEE 754R quad precision, and "long double" (which under the covers is represented as one of those two). At this time, there is no support for an explicit "PPC double-double" type (i.e. __ibm128) so we only need to differentiate between "long double" and IEEE quad precision.
Definition at line 315 of file TargetInfo.cpp.
References clang::Double, clang::Float, clang::Float128, getDoubleWidth(), getFloatWidth(), getHalfWidth(), getLongDoubleFormat(), clang::Half, hasFloat128Type(), hasIbm128Type(), clang::Ibm128, clang::LongDouble, and clang::NoFloat.
Referenced by clang::ASTContext::getRealTypeForBitwidth().
|
inlinevirtual |
Return the "preferred" register width on this target.
Reimplemented in clang::targets::X86_64TargetInfo.
Definition at line 832 of file TargetInfo.h.
References clang::TransferrableTargetInfo::PointerWidth.
Referenced by clang::targets::LoongArchTargetInfo::getTargetDefines(), and parseModeAttrArg().
|
inline |
Definition at line 1461 of file TargetInfo.h.
References RegParmMax.
Referenced by clang::Sema::CheckRegparmAttr().
|
inline |
Definition at line 1681 of file TargetInfo.h.
References getTargetOpts(), and clang::TargetOptions::SDKVersion.
Referenced by clang::Sema::getCudaConfigureFuncName().
|
inline |
Definition at line 499 of file TargetInfo.h.
References clang::TransferrableTargetInfo::ShortAccumAlign.
|
inline |
Definition at line 529 of file TargetInfo.h.
References clang::TransferrableTargetInfo::ShortAccumScale, and clang::TransferrableTargetInfo::ShortAccumWidth.
Referenced by getUnsignedShortAccumIBits().
|
inline |
getShortAccumScale/IBits - Return the number of fractional/integral bits in a 'signed short _Accum' type.
Definition at line 528 of file TargetInfo.h.
References clang::TransferrableTargetInfo::ShortAccumScale.
|
inline |
getShortAccumWidth/Align - Return the size of 'signed short _Accum' and 'unsigned short _Accum' for this target, in bits.
Definition at line 498 of file TargetInfo.h.
References clang::TransferrableTargetInfo::ShortAccumWidth.
|
inline |
Return the alignment of 'signed short' and 'unsigned short' for this target.
Definition at line 476 of file TargetInfo.h.
Referenced by getTypeAlign().
|
inline |
Definition at line 514 of file TargetInfo.h.
References clang::TransferrableTargetInfo::ShortFractAlign.
|
inline |
getShortFractScale - Return the number of fractional bits in a 'signed short _Fract' type.
Definition at line 579 of file TargetInfo.h.
References clang::TransferrableTargetInfo::ShortFractWidth.
Referenced by getUnsignedShortFractScale().
|
inline |
getShortFractWidth/Align - Return the size of 'signed short _Fract' and 'unsigned short _Fract' for this target, in bits.
Definition at line 513 of file TargetInfo.h.
References clang::TransferrableTargetInfo::ShortFractWidth.
|
inline |
Return the size of 'signed short' and 'unsigned short' for this target, in bits.
Definition at line 472 of file TargetInfo.h.
Referenced by clang::Sema::ActOnEnumBody(), getIntTypeByWidth(), getLeastIntTypeByWidth(), getTypeConstantSuffix(), getTypeWidth(), and InitializePredefinedMacros().
|
inline |
Definition at line 384 of file TargetInfo.h.
References clang::TransferrableTargetInfo::SigAtomicType.
Referenced by InitializePredefinedMacros().
|
inline |
Definition at line 343 of file TargetInfo.h.
References clang::TransferrableTargetInfo::SignedInt, clang::TransferrableTargetInfo::SignedLong, clang::TransferrableTargetInfo::SignedLongLong, clang::TransferrableTargetInfo::SignedShort, clang::TransferrableTargetInfo::SizeType, clang::TransferrableTargetInfo::UnsignedInt, clang::TransferrableTargetInfo::UnsignedLong, clang::TransferrableTargetInfo::UnsignedLongLong, and clang::TransferrableTargetInfo::UnsignedShort.
Referenced by clang::ASTContext::getSignedSizeType().
|
inline |
Definition at line 342 of file TargetInfo.h.
References clang::TransferrableTargetInfo::SizeType.
Referenced by clang::Sema::ActOnNumericConstant(), clang::ASTContext::getSizeType(), InitializePredefinedMacros(), and InitializeStandardPredefinedMacros().
|
inlinevirtual |
Return the section to use for C++ static initialization functions.
Definition at line 1506 of file TargetInfo.h.
|
inline |
Return the alignment that is the largest alignment ever used for any scalar/SIMD data type on the target machine you are compiling for (including types with an extended alignment requirement).
Definition at line 678 of file TargetInfo.h.
References clang::TransferrableTargetInfo::SuitableAlign.
Referenced by InitializePredefinedMacros().
|
inline |
Get supported OpenCL extensions and optional core features.
Definition at line 1651 of file TargetInfo.h.
References getTargetOpts(), and clang::TargetOptions::OpenCLFeaturesMap.
Referenced by adjust(), clang::OpenCLOptions::diagnoseFeatureExtensionDifferences(), clang::OpenCLOptions::diagnoseUnsupportedFeatureDependencies(), clang::Sema::Initialize(), InitializeOpenCLFeatureTestMacros(), and validateOpenCLTarget().
|
inline |
Get const supported OpenCL extensions and optional core features.
Definition at line 1656 of file TargetInfo.h.
References getTargetOpts(), and clang::TargetOptions::OpenCLFeaturesMap.
Definition at line 1511 of file TargetInfo.h.
References getAddressSpaceMap(), clang::isTargetAddressSpace(), and clang::toTargetAddressSpace().
Referenced by clang::ASTContext::getTargetAddressSpace().
|
pure virtual |
Return information about target-specific builtins for the current primary target, and info about which builtins are non-portable across the current set of primary and secondary targets.
Implemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARCTargetInfo, clang::targets::ARMTargetInfo, clang::targets::AVRTargetInfo, clang::targets::BPFTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::DirectXTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LanaiTargetInfo, clang::targets::Le64TargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::M68kTargetInfo, clang::targets::MipsTargetInfo, clang::targets::MSP430TargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::PNaClTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcTargetInfo, clang::targets::BaseSPIRTargetInfo, clang::targets::SystemZTargetInfo, clang::targets::TCETargetInfo, clang::targets::VETargetInfo, clang::targets::X86_32TargetInfo, clang::targets::X86_64TargetInfo, and clang::targets::XCoreTargetInfo.
Referenced by clang::Builtin::Context::InitializeTarget().
|
pure virtual |
===-— Other target property query methods -----------------------—===//
Appends the target-specific #define values for this target set to the specified buffer.
Implemented in clang::targets::AArch64TargetInfo, clang::targets::AArch64leTargetInfo, clang::targets::AArch64beTargetInfo, clang::targets::RenderScript64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARCTargetInfo, clang::targets::ARMTargetInfo, clang::targets::ARMleTargetInfo, clang::targets::ARMbeTargetInfo, clang::targets::CygwinARMTargetInfo, clang::targets::RenderScript32TargetInfo, clang::targets::AVRTargetInfo, clang::targets::BPFTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::DirectXTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LanaiTargetInfo, clang::targets::Le64TargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::M68kTargetInfo, clang::targets::MipsTargetInfo, clang::targets::MSP430TargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::OSTargetInfo< PPC32TargetInfo >, clang::targets::OSTargetInfo< PPC64TargetInfo >, clang::targets::OSTargetInfo< X86_32TargetInfo >, clang::targets::OSTargetInfo< X86_64TargetInfo >, clang::targets::OSTargetInfo< AArch64leTargetInfo >, clang::targets::OSTargetInfo< ARMleTargetInfo >, clang::targets::PNaClTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcTargetInfo, clang::targets::SparcV8TargetInfo, clang::targets::SparcV9TargetInfo, clang::targets::SPIRTargetInfo, clang::targets::SPIR32TargetInfo, clang::targets::SPIR64TargetInfo, clang::targets::SPIRVTargetInfo, clang::targets::SPIRV32TargetInfo, clang::targets::SPIRV64TargetInfo, clang::targets::SystemZTargetInfo, clang::targets::TCETargetInfo, clang::targets::TCELETargetInfo, clang::targets::VETargetInfo, clang::targets::WebAssemblyTargetInfo, clang::targets::WebAssembly32TargetInfo, clang::targets::WebAssembly64TargetInfo, clang::targets::X86TargetInfo, clang::targets::CygwinX86_32TargetInfo, clang::targets::MCUX86_32TargetInfo, clang::targets::RTEMSX86_32TargetInfo, clang::targets::CygwinX86_64TargetInfo, and clang::targets::XCoreTargetInfo.
Referenced by InitializePredefinedMacros().
|
inlinevirtual |
Returns the target ID if supported.
Reimplemented in clang::targets::AMDGPUTargetInfo.
Definition at line 1202 of file TargetInfo.h.
|
inline |
Retrieve the target options.
Definition at line 283 of file TargetInfo.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::CodeGen::CGHLSLRuntime::finishCodeGen(), getCudaArch(), getDarwinTargetVariantSDKVersion(), clang::ASTContext::getFunctionFeatureMap(), clang::ASTContext::getOpenMPDefaultSimdAlign(), getSDKVersion(), getSupportedOpenCLOpts(), clang::targets::AArch64TargetInfo::getTargetDefines(), clang::targets::RISCVTargetInfo::getTargetDefines(), clang::targets::X86TargetInfo::getTargetDefines(), hasInt128Type(), clang::IncrementalExecutor::IncrementalExecutor(), clang::PCHValidator::ReadTargetOptions(), and setCommandLineOpenCLOpts().
|
inline |
Returns the target triple of the primary target.
Definition at line 1197 of file TargetInfo.h.
Referenced by clang::targets::AArch64TargetInfo::AArch64TargetInfo(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnMethodDeclaration(), clang::Sema::ActOnTag(), clang::Sema::ActOnTagFinishDefinition(), clang::Sema::AddAlignedAttr(), clang::Sema::AddKnownFunctionAttributes(), addLinkOptionsPostorder(), adjust(), clang::targets::AMDGPUTargetInfo::adjust(), clang::targets::PPCTargetInfo::adjust(), clang::targets::AMDGPUTargetInfo::AMDGPUTargetInfo(), AppendTargetClonesMangling(), clang::CodeGen::CodeGenTypes::arrangeObjCMessageSendSignature(), clang::ASTContext::AtomicUsesUnsupportedLibcall(), clang::Sema::BuildCXXThrow(), buildGlobalBlock(), clang::Sema::BuildVAArgExpr(), clang::arcmt::trans::canApplyWeak(), canPassInRegisters(), captureInLambda(), clang::Sema::CheckAddressOfOperand(), clang::Sema::CheckAssignmentConstraints(), clang::Sema::CheckBaseSpecifier(), CheckBuiltinTargetInSupported(), CheckBuiltinTargetNotInUnsupported(), clang::Sema::CheckCallingConvAttr(), clang::Sema::checkClassLevelDLLAttribute(), clang::Sema::CheckEnumConstant(), clang::Sema::CheckFieldDecl(), clang::Sema::CheckFunctionDeclaration(), clang::Sema::CheckHLSLEntryPoint(), clang::Sema::CheckMain(), CheckMultiVersionFunction(), checkObjCMethodX86VectorTypes(), clang::Sema::CheckParameter(), clang::Sema::CheckSpecializationInstantiationRedecl(), clang::Sema::checkTargetClonesAttrString(), clang::Sema::checkTypeSupport(), clang::Sema::CheckVariableDeclarationType(), checkVAStartABI(), clang::Sema::CheckVectorOperands(), clang::CodeGen::computeSPIRKernelABIInfo(), configureBlocksRuntimeObject(), clang::ExtractAPIAction::CreateASTConsumer(), clang::CodeGen::CreateItaniumCXXABI(), clang::CompilerInstance::createTarget(), clang::Sema::diagnoseUnavailableAlignedAllocation(), EmitBitTestIntrinsic(), clang::CodeGen::CGDebugInfo::EmitFunctionDecl(), emitGlobalDtorWithCXAAtExit(), emitIsPlatformVersionAtLeast(), EmitMSVCRTSetJmp(), clang::targets::AMDGPUTargetInfo::fillValidCPUList(), clang::targets::RISCVTargetInfo::fillValidCPUList(), clang::targets::X86TargetInfo::fillValidCPUList(), clang::targets::RISCVTargetInfo::fillValidTuneCPUList(), clang::DeclSpec::Finish(), funcHasParameterSizeMangling(), clang::CodeGen::EHPersonality::get(), clang::analyze_scanf::ScanfSpecifier::getArgType(), clang::FunctionDecl::getBuiltinID(), clang::targets::ARMTargetInfo::getBuiltinVaListKind(), getCallingConvKind(), getCallingConvMangling(), getCCForDeclaratorChunk(), getCodegenToUse(), clang::ASTContext::getFunctionFeatureMap(), getInstrProfSection(), clang::ASTContext::getNSIntegerType(), clang::ASTContext::getNSUIntegerType(), clang::CodeGen::CodeGenModule::getTargetCodeGenInfo(), clang::targets::AMDGPUTargetInfo::getTargetDefines(), clang::targets::ARMTargetInfo::getTargetDefines(), clang::targets::PPCTargetInfo::getTargetDefines(), clang::targets::RISCVTargetInfo::getTargetDefines(), clang::targets::SparcV8TargetInfo::getTargetDefines(), clang::targets::SparcV9TargetInfo::getTargetDefines(), clang::targets::X86TargetInfo::getTargetDefines(), getTypeInfoLinkage(), clang::ASTContext::getWebAssemblyExternrefType(), handleAliasAttr(), handleAnyX86InterruptAttr(), handleArmBuiltinAliasAttr(), handleAvailabilityAttr(), handleBuiltinAliasAttr(), handleHLSLNumThreadsAttr(), handleHLSLSV_DispatchThreadIDAttr(), handleHLSLSVGroupIndexAttr(), handleInterruptAttr(), handleNakedAttr(), handlePackedAttr(), handleTargetClonesAttr(), clang::targets::RISCVTargetInfo::handleTargetFeatures(), handleTLSModelAttr(), handleWeakImportAttr(), clang::targets::X86TargetInfo::hasFeature(), clang::targets::LoongArchTargetInfo::hasFeature(), clang::targets::RISCVTargetInfo::hasFeature(), hasPS4DLLImportExport(), clang::IncrementalExecutor::IncrementalExecutor(), clang::targets::ARMTargetInfo::initFeatureMap(), clang::targets::LoongArchTargetInfo::initFeatureMap(), clang::targets::PPCTargetInfo::initFeatureMap(), clang::targets::RISCVTargetInfo::initFeatureMap(), clang::targets::X86TargetInfo::initFeatureMap(), clang::targets::AMDGPUTargetInfo::initFeatureMap(), clang::Sema::Initialize(), InitializePredefinedMacros(), InitializeStandardPredefinedMacros(), clang::Sema::InstantiateClassMembers(), isAIXLayout(), clang::CodeGen::ABIInfo::isAndroid(), isArc4RandomAvailable(), clang::targets::ARMTargetInfo::isBranchProtectionSupportedArch(), isDefaultStdCall(), clang::FunctionDecl::isMSVCRTEntryPoint(), clang::CodeGen::ABIInfo::isOHOSFamily(), isPermittedNeonBaseType(), isSEHTrySupported(), isTargetArch(), isTargetEnvironment(), isTargetOS(), isTargetVariantEnvironment(), isTargetVariantOS(), isTargetVendor(), isThreadWrapperReplaceable(), clang::targets::RISCVTargetInfo::isValidCPUName(), clang::Sema::isValidSectionSpecifier(), clang::targets::RISCVTargetInfo::isValidTuneCPUName(), clang::Sema::isValidVarArgType(), isVarDeclStrongDefinition(), IsVectorConversion(), clang::Preprocessor::processPathForFileMacro(), ReferenceDllExportedMembers(), clang::CodeGen::CodeGenModule::Release(), shouldDiagnoseAvailabilityByDefault(), shouldDLLImportComdatSymbols(), supportsIFunc(), supportsMultiVersioning(), and clang::targets::MipsTargetInfo::validateTarget().
Return the alignment (in bits) of the specified integer type enum.
getTypeAlign - Return the alignment (in bits) of the specified integer type enum.
For example, SignedInt -> getIntAlign().
Definition at line 351 of file TargetInfo.cpp.
References getCharAlign(), getIntAlign(), getLongAlign(), getLongLongAlign(), getShortAlign(), clang::TransferrableTargetInfo::SignedChar, clang::TransferrableTargetInfo::SignedInt, clang::TransferrableTargetInfo::SignedLong, clang::TransferrableTargetInfo::SignedLongLong, clang::TransferrableTargetInfo::SignedShort, clang::TransferrableTargetInfo::UnsignedChar, clang::TransferrableTargetInfo::UnsignedInt, clang::TransferrableTargetInfo::UnsignedLong, clang::TransferrableTargetInfo::UnsignedLongLong, and clang::TransferrableTargetInfo::UnsignedShort.
Referenced by getChar16Align(), getChar32Align(), and getWCharAlign().
const char * TargetInfo::getTypeConstantSuffix | ( | IntType | T | ) | const |
Return the constant suffix for the specified integer type enum.
getTypeConstantSuffix - Return the constant suffix for the specified integer type enum.
For example, SignedLong -> "L".
Definition at line 226 of file TargetInfo.cpp.
References getCharWidth(), getIntWidth(), getShortWidth(), clang::TransferrableTargetInfo::SignedChar, clang::TransferrableTargetInfo::SignedInt, clang::TransferrableTargetInfo::SignedLong, clang::TransferrableTargetInfo::SignedLongLong, clang::TransferrableTargetInfo::SignedShort, clang::TransferrableTargetInfo::UnsignedChar, clang::TransferrableTargetInfo::UnsignedInt, clang::TransferrableTargetInfo::UnsignedLong, clang::TransferrableTargetInfo::UnsignedLongLong, and clang::TransferrableTargetInfo::UnsignedShort.
Referenced by DefineExactWidthIntType(), DefineTypeSize(), InitializePredefinedMacros(), and InitializeStandardPredefinedMacros().
|
static |
Return the printf format modifier for the specified integer type enum.
getTypeFormatModifier - Return the printf format modifier for the specified integer type enum.
For example, SignedLong -> "l".
Definition at line 251 of file TargetInfo.cpp.
References clang::TransferrableTargetInfo::SignedChar, clang::TransferrableTargetInfo::SignedInt, clang::TransferrableTargetInfo::SignedLong, clang::TransferrableTargetInfo::SignedLongLong, clang::TransferrableTargetInfo::SignedShort, clang::TransferrableTargetInfo::UnsignedChar, clang::TransferrableTargetInfo::UnsignedInt, clang::TransferrableTargetInfo::UnsignedLong, clang::TransferrableTargetInfo::UnsignedLongLong, and clang::TransferrableTargetInfo::UnsignedShort.
Referenced by DefineFmt().
|
static |
Return the user string for the specified integer type enum.
getTypeName - Return the user string for the specified integer type enum.
For example, SignedShort -> "short".
Definition at line 208 of file TargetInfo.cpp.
References clang::TransferrableTargetInfo::SignedChar, clang::TransferrableTargetInfo::SignedInt, clang::TransferrableTargetInfo::SignedLong, clang::TransferrableTargetInfo::SignedLongLong, clang::TransferrableTargetInfo::SignedShort, clang::TransferrableTargetInfo::UnsignedChar, clang::TransferrableTargetInfo::UnsignedInt, clang::TransferrableTargetInfo::UnsignedLong, clang::TransferrableTargetInfo::UnsignedLongLong, and clang::TransferrableTargetInfo::UnsignedShort.
Referenced by DefineType().
Return the width (in bits) of the specified integer type enum.
getTypeWidth - Return the width (in bits) of the specified integer type enum.
For example, SignedInt -> getIntWidth().
Definition at line 269 of file TargetInfo.cpp.
References getCharWidth(), getIntWidth(), getLongLongWidth(), getLongWidth(), getShortWidth(), clang::TransferrableTargetInfo::SignedChar, clang::TransferrableTargetInfo::SignedInt, clang::TransferrableTargetInfo::SignedLong, clang::TransferrableTargetInfo::SignedLongLong, clang::TransferrableTargetInfo::SignedShort, clang::TransferrableTargetInfo::UnsignedChar, clang::TransferrableTargetInfo::UnsignedInt, clang::TransferrableTargetInfo::UnsignedLong, clang::TransferrableTargetInfo::UnsignedLongLong, and clang::TransferrableTargetInfo::UnsignedShort.
Referenced by clang::Sema::ActOnNumericConstant(), DefineExactWidthIntType(), DefineExactWidthIntTypeSize(), DefineTypeSize(), DefineTypeWidth(), getChar16Width(), getChar32Width(), getIntMaxTWidth(), getWCharWidth(), and InitializePredefinedMacros().
|
inline |
Definition at line 381 of file TargetInfo.h.
References getCorrespondingUnsignedType(), and clang::TransferrableTargetInfo::Int16Type.
Referenced by DefineExactWidthIntType().
|
inline |
Definition at line 377 of file TargetInfo.h.
References getCorrespondingUnsignedType(), and clang::TransferrableTargetInfo::Int64Type.
Referenced by DefineExactWidthIntType(), DefineExactWidthIntTypeSize(), and clang::ASTContext::getCFConstantStringDecl().
|
inline |
Definition at line 358 of file TargetInfo.h.
References getCorrespondingUnsignedType(), and clang::TransferrableTargetInfo::IntMaxType.
Referenced by clang::ASTContext::getUIntMaxType(), and InitializePredefinedMacros().
|
inline |
Definition at line 369 of file TargetInfo.h.
References getCorrespondingUnsignedType(), and clang::TransferrableTargetInfo::IntPtrType.
Referenced by InitializePredefinedMacros().
|
inline |
Definition at line 561 of file TargetInfo.h.
References clang::TransferrableTargetInfo::AccumWidth, getAccumIBits(), getUnsignedAccumScale(), and clang::TransferrableTargetInfo::PaddingOnUnsignedFixedPoint.
|
inline |
getUnsignedAccumScale/IBits - Return the number of fractional/integral bits in a 'unsigned _Accum' type.
Definition at line 558 of file TargetInfo.h.
References clang::TransferrableTargetInfo::AccumScale, and clang::TransferrableTargetInfo::PaddingOnUnsignedFixedPoint.
Referenced by getUnsignedAccumIBits().
|
inline |
getUnsignedFractScale - Return the number of fractional bits in a 'unsigned _Fract' type.
Definition at line 598 of file TargetInfo.h.
References getFractScale(), and clang::TransferrableTargetInfo::PaddingOnUnsignedFixedPoint.
|
inline |
Definition at line 571 of file TargetInfo.h.
References getLongAccumIBits(), getUnsignedLongAccumScale(), clang::TransferrableTargetInfo::LongAccumWidth, and clang::TransferrableTargetInfo::PaddingOnUnsignedFixedPoint.
|
inline |
getUnsignedLongAccumScale/IBits - Return the number of fractional/integral bits in a 'unsigned long _Accum' type.
Definition at line 568 of file TargetInfo.h.
References clang::TransferrableTargetInfo::LongAccumScale, and clang::TransferrableTargetInfo::PaddingOnUnsignedFixedPoint.
Referenced by getUnsignedLongAccumIBits().
|
inline |
getUnsignedLongFractScale - Return the number of fractional bits in a 'unsigned long _Fract' type.
Definition at line 604 of file TargetInfo.h.
References getLongFractScale(), and clang::TransferrableTargetInfo::PaddingOnUnsignedFixedPoint.
Definition at line 365 of file TargetInfo.h.
References getCorrespondingUnsignedType(), and getPtrDiffType().
Referenced by clang::ASTContext::getUnsignedPointerDiffType().
|
inline |
Definition at line 550 of file TargetInfo.h.
References getShortAccumIBits(), getUnsignedShortAccumScale(), clang::TransferrableTargetInfo::PaddingOnUnsignedFixedPoint, and clang::TransferrableTargetInfo::ShortAccumWidth.
|
inline |
getUnsignedShortAccumScale/IBits - Return the number of fractional/integral bits in a 'unsigned short _Accum' type.
Definition at line 547 of file TargetInfo.h.
References clang::TransferrableTargetInfo::PaddingOnUnsignedFixedPoint, and clang::TransferrableTargetInfo::ShortAccumScale.
Referenced by getUnsignedShortAccumIBits().
|
inline |
getUnsignedShortFractScale - Return the number of fractional bits in a 'unsigned short _Fract' type.
Definition at line 591 of file TargetInfo.h.
References getShortFractScale(), and clang::TransferrableTargetInfo::PaddingOnUnsignedFixedPoint.
|
inlinevirtual |
Reimplemented in clang::targets::MipsTargetInfo, and clang::targets::X86_64TargetInfo.
Definition at line 827 of file TargetInfo.h.
References clang::Default, and getPointerWidth().
Referenced by parseModeAttrArg().
|
inline |
Returns the default value of the USER_LABEL_PREFIX macro, which is the prefix given to user symbols by default.
On most platforms this is "", but it is "_" on some.
Definition at line 843 of file TargetInfo.h.
References UserLabelPrefix.
Referenced by InitializePredefinedMacros(), and clang::MangleContext::mangleName().
|
inlinevirtual |
Returns target-specific min and max values VScale_Range.
Reimplemented in clang::targets::AArch64TargetInfo, and clang::targets::RISCVTargetInfo.
Definition at line 958 of file TargetInfo.h.
Referenced by getRVVTypeSize(), and HandleRISCVRVVVectorBitsTypeAttr().
|
inlinevirtual |
Reimplemented in clang::targets::AMDGPUTargetInfo.
Definition at line 1664 of file TargetInfo.h.
|
inline |
Definition at line 702 of file TargetInfo.h.
References getTypeAlign(), and clang::TransferrableTargetInfo::WCharType.
|
inline |
Definition at line 372 of file TargetInfo.h.
References clang::TransferrableTargetInfo::WCharType.
Referenced by EvaluateValue(), and InitializePredefinedMacros().
|
inline |
getWCharWidth/Align - Return the size of 'wchar_t' for this target, in bits.
Definition at line 701 of file TargetInfo.h.
References getTypeWidth(), and clang::TransferrableTargetInfo::WCharType.
Referenced by clang::CharLiteralParser::CharLiteralParser(), and EvaluateValue().
|
inline |
Definition at line 373 of file TargetInfo.h.
References clang::TransferrableTargetInfo::WIntType.
Referenced by InitializePredefinedMacros().
|
inline |
Get the fixed alignment value in bits for a member that follows a zero length bitfield.
Definition at line 882 of file TargetInfo.h.
References clang::TransferrableTargetInfo::ZeroLengthBitfieldBoundary.
|
inlinevirtual |
Replace some escaped characters with another string based on target-specific rules.
Reimplemented in clang::targets::AVRTargetInfo, and clang::targets::M68kTargetInfo.
Definition at line 1183 of file TargetInfo.h.
Referenced by clang::GCCAsmStmt::AnalyzeAsmString().
|
inlinevirtual |
Perform initialization based on the user configured set of features (e.g., +sse4).
The list is guaranteed to have at most one entry per feature.
The target may modify the features list, to change which options are passed onwards to the backend. FIXME: This part should be fixed so that we can change handleTargetFeatures to merely a TargetInfo initialization routine.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARMTargetInfo, clang::targets::BPFTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::MipsTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcTargetInfo, clang::targets::SystemZTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1387 of file TargetInfo.h.
|
inline |
Returns whether or not the AArch64 SVE built-in types are available on this target.
Definition at line 981 of file TargetInfo.h.
References HasAArch64SVETypes.
Referenced by clang::ASTContext::getScalableVectorType(), and clang::Sema::Initialize().
|
inline |
Check whether this target support '#pragma options align=mac68k'.
Definition at line 897 of file TargetInfo.h.
References HasAlignMac68kSupport.
Referenced by clang::Sema::ActOnPragmaOptionsAlign().
|
inlinevirtual |
Determine whether the _BFloat16 type is supported on this target.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARMTargetInfo, and clang::targets::NVPTXTargetInfo.
Definition at line 654 of file TargetInfo.h.
References HasBFloat16, and HasFullBFloat16.
Referenced by clang::Sema::checkTypeSupport(), ConvertDeclSpecToType(), and clang::QualType::UseExcessPrecision().
|
inlinevirtual |
Determine whether the _BitInt type is supported on this target.
This limitation is put into place for ABI reasons. FIXME: _BitInt is a required type in C23, so there's not much utility in asking whether the target supported it or not; I think this should be removed once backends have been alerted to the type and have had the chance to do implementation work if needed.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARCTargetInfo, clang::targets::ARMTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LanaiTargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::MipsTargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::PNaClTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcV8TargetInfo, clang::targets::SparcV9TargetInfo, clang::targets::BaseSPIRTargetInfo, clang::targets::SystemZTargetInfo, clang::targets::X86_32TargetInfo, clang::targets::X86_64TargetInfo, and clang::targets::XCoreTargetInfo.
Definition at line 621 of file TargetInfo.h.
Referenced by clang::Sema::checkTypeSupport(), and ConvertDeclSpecToType().
|
inlinevirtual |
Returns true if the given target supports lock-free atomic operations at the specified width and alignment.
Definition at line 793 of file TargetInfo.h.
References getCharWidth(), and getMaxAtomicInlineWidth().
Referenced by emitOMPAtomicRMW(), and getLockFreeValue().
|
inline |
Returns whether or not type __builtin_ms_va_list
type is available on this target.
Definition at line 974 of file TargetInfo.h.
References HasBuiltinMSVaList.
Referenced by clang::Sema::BuildVAArgExpr(), and clang::Sema::Initialize().
|
inlinevirtual |
Determine whether the given target has the given feature.
Reimplemented in clang::targets::X86TargetInfo, clang::targets::AArch64TargetInfo, clang::targets::ARMTargetInfo, clang::targets::BPFTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::DirectXTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LanaiTargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::M68kTargetInfo, clang::targets::MipsTargetInfo, clang::targets::MSP430TargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::PNaClTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcTargetInfo, clang::targets::SPIRTargetInfo, clang::targets::SPIRVTargetInfo, clang::targets::SystemZTargetInfo, and clang::targets::TCETargetInfo.
Definition at line 1393 of file TargetInfo.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnStartOfFunctionDef(), clang::Sema::BuildResolvedCallExpr(), clang::Sema::checkTypeSupport(), clang::CodeGen::CGOpenMPRuntime::emitDeclareSimdFunction(), clang::DeclSpec::Finish(), getCudaArch(), clang::CodeGen::CodeGenModule::getTargetCodeGenInfo(), clang::ASTContext::getWebAssemblyExternrefType(), HandleArmSveVectorBitsTypeAttr(), HandleNeonVectorTypeAttr(), HandleRISCVRVVVectorBitsTypeAttr(), handleTargetClonesAttr(), clang::Sema::Initialize(), and clang::CodeGen::CodeGenModule::Release().
|
inlinevirtual |
Check if target has a given feature enabled.
Definition at line 1324 of file TargetInfo.h.
Referenced by adjust(), clang::OpenCLOptions::diagnoseFeatureExtensionDifferences(), clang::OpenCLOptions::diagnoseUnsupportedFeatureDependencies(), InitializeOpenCLFeatureTestMacros(), validateOpenCLTarget(), and clang::targets::X86TargetInfo::validateOperandSize().
|
inlinevirtual |
Determine whether the __float128 type is supported on this target.
Definition at line 648 of file TargetInfo.h.
References HasFloat128.
Referenced by clang::Sema::checkTypeSupport(), ConvertDeclSpecToType(), getRealTypeByWidth(), and clang::targets::AMDGPUTargetInfo::setAuxTarget().
|
inlinevirtual |
Determine whether the _Float16 type is supported on this target.
Definition at line 651 of file TargetInfo.h.
References HasFloat16.
Referenced by clang::Sema::checkTypeSupport(), ConvertDeclSpecToType(), InitializePredefinedMacros(), and clang::QualType::UseExcessPrecision().
|
inlinevirtual |
Determine whether return of a floating point value is supported on this target.
Definition at line 670 of file TargetInfo.h.
References HasFPReturn.
Referenced by clang::Sema::checkTypeSupport().
|
inlinevirtual |
Determine whether the BFloat type is fully supported on this target, i.e arithemtic operations.
Definition at line 660 of file TargetInfo.h.
References HasFullBFloat16.
Referenced by clang::QualType::UseExcessPrecision().
|
inlinevirtual |
Determine whether the __ibm128 type is supported on this target.
Definition at line 663 of file TargetInfo.h.
References HasIbm128.
Referenced by clang::Sema::checkTypeSupport(), ConvertDeclSpecToType(), and getRealTypeByWidth().
|
inlinevirtual |
Determine whether the __int128 type is supported on this target.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::MipsTargetInfo, clang::targets::BaseSPIRTargetInfo, and clang::targets::X86_64TargetInfo.
Definition at line 610 of file TargetInfo.h.
References clang::Default, clang::TargetOptions::ForceEnableInt128, getPointerWidth(), and getTargetOpts().
Referenced by ChangeIntegralSignedness(), clang::Sema::checkTypeSupport(), ConvertDeclSpecToType(), clang::Sema::Initialize(), InitializePredefinedMacros(), and clang::CodeGen::swiftcall::isLegalIntegerType().
|
inlinevirtual |
Determine whether _Float16 is supported on this target.
Definition at line 642 of file TargetInfo.h.
References HasLegalHalfType.
Referenced by clang::QualType::UseExcessPrecision().
|
inlinevirtual |
Determine whether the long double type is supported on this target.
Definition at line 666 of file TargetInfo.h.
References HasLongDouble.
Referenced by clang::Sema::checkTypeSupport().
|
inline |
Return true if {|} are normal characters in the asm string.
If this returns false (the default), then {abc|xyz} is syntax that says that when compiling for asm variant #0, "abc" should be generated, but when compiling for asm variant #1, "xyz" should be generated.
Definition at line 1493 of file TargetInfo.h.
References NoAsmVariants.
|
inlinevirtual |
Does this target support "protected" visibility?
Any target which dynamic libraries will naturally support something like "default" (meaning that the symbol is visible outside this shared object) and "hidden" (meaning that it isn't) visibilities, but "protected" is really an ELF-specific concept with weird semantics designed around the convenience of dynamic linker implementations. Which is not to suggest that there's consistent target-independent semantics for "default" visibility either; the entire thing is pretty badly mangled.
Reimplemented in clang::targets::Le64TargetInfo.
Definition at line 1231 of file TargetInfo.h.
Referenced by handleVisibilityAttr().
|
inlinevirtual |
Definition at line 1241 of file TargetInfo.h.
References getTriple().
Referenced by computeKeyFunction(), and ShouldUseExternalRTTIDescriptor().
|
inline |
Returns whether or not the RISC-V V built-in types are available on this target.
Definition at line 985 of file TargetInfo.h.
References HasRISCVVTypes.
Referenced by clang::ASTContext::getScalableVectorType(), and clang::Sema::Initialize().
|
inlinevirtual |
Controls if __builtin_longjmp / __builtin_setjmp can be lowered to llvm.eh.sjlj.longjmp / llvm.eh.sjlj.setjmp.
Reimplemented in clang::targets::ARMTargetInfo, clang::targets::PPCTargetInfo, clang::targets::VETargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1607 of file TargetInfo.h.
|
inlinevirtual |
Determine whether constrained floating point is supported on this target.
Definition at line 673 of file TargetInfo.h.
References HasStrictFP.
|
virtual |
Initialize the map with the default set of target features for the CPU this should include all legal feature strings on the target.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::ARMTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::MipsTargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SystemZTargetInfo, clang::targets::X86TargetInfo, and clang::targets::AMDGPUTargetInfo.
Definition at line 521 of file TargetInfo.cpp.
References clang::DiagnosticsEngine::Report(), and setFeatureEnabled().
Referenced by clang::ASTContext::getFunctionFeatureMap(), clang::targets::AArch64TargetInfo::initFeatureMap(), clang::targets::ARMTargetInfo::initFeatureMap(), clang::targets::HexagonTargetInfo::initFeatureMap(), clang::targets::LoongArchTargetInfo::initFeatureMap(), clang::targets::PPCTargetInfo::initFeatureMap(), clang::targets::RISCVTargetInfo::initFeatureMap(), clang::targets::X86TargetInfo::initFeatureMap(), and clang::targets::AMDGPUTargetInfo::initFeatureMap().
|
inline |
Definition at line 1551 of file TargetInfo.h.
References BigEndian.
Referenced by ARMMVEVectorReinterpret(), EmitSignBit(), and InitializePredefinedMacros().
|
inlinevirtual |
Determine if the Architecture in this TargetInfo supports branch protection.
Reimplemented in clang::targets::ARMTargetInfo.
Definition at line 1363 of file TargetInfo.h.
|
inlinevirtual |
The __builtin_clz* and __builtin_ctz* built-in functions are specified to have undefined results for zero inputs, but on targets that support these operations in a way that provides well-defined results for zero without loss of performance, it is a good idea to avoid optimizing based on that undef behavior.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::ARCTargetInfo, clang::targets::ARMTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::MipsTargetInfo, and clang::targets::PPCTargetInfo.
Definition at line 966 of file TargetInfo.h.
|
inline |
Definition at line 1552 of file TargetInfo.h.
References BigEndian.
Referenced by InitializeStandardPredefinedMacros().
|
inlinevirtual |
Returns true if NaN encoding is IEEE 754-2008.
Only MIPS allows a different encoding.
Reimplemented in clang::targets::MipsTargetInfo.
Definition at line 1192 of file TargetInfo.h.
Referenced by TryEvaluateBuiltinNaN().
|
inline |
Returns true for RenderScript.
Definition at line 977 of file TargetInfo.h.
References IsRenderScriptTarget.
|
inline |
Whether the target supports SEH __try.
Definition at line 1481 of file TargetInfo.h.
References getTriple().
Referenced by clang::Sema::ActOnSEHTryBlock().
|
inlinevirtual |
Reimplemented in clang::targets::PPCTargetInfo, clang::targets::SystemZTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1015 of file TargetInfo.h.
|
inline |
Whether the target supports thread-local storage.
Definition at line 1467 of file TargetInfo.h.
References TLSSupported.
Referenced by clang::Sema::ActOnVariableDeclarator(), clang::Sema::DiagnoseUseOfDecl(), clang::CodeGen::CGOpenMPRuntime::emitThreadPrivateVarDefinition(), clang::CodeGen::CGOpenMPRuntime::getAddrOfArtificialThreadPrivate(), clang::CodeGen::CGOpenMPRuntime::getAddrOfThreadPrivate(), clang::CodeGen::CodeGenFunction::OMPBuilderCBHelpers::getAddrOfThreadPrivate(), clang::CodeGen::CGOpenMPRuntime::getOrCreateThreadPrivateCache(), and handleDeclspecThreadAttr().
Returns true if the type is signed; false otherwise.
isTypeSigned - Return whether an integer types is signed.
Returns true if the type is signed; false otherwise.
Definition at line 369 of file TargetInfo.cpp.
References clang::TransferrableTargetInfo::SignedChar, clang::TransferrableTargetInfo::SignedInt, clang::TransferrableTargetInfo::SignedLong, clang::TransferrableTargetInfo::SignedLongLong, clang::TransferrableTargetInfo::SignedShort, clang::TransferrableTargetInfo::UnsignedChar, clang::TransferrableTargetInfo::UnsignedInt, clang::TransferrableTargetInfo::UnsignedLong, clang::TransferrableTargetInfo::UnsignedLongLong, and clang::TransferrableTargetInfo::UnsignedShort.
Referenced by DefineExactWidthIntType(), DefineExactWidthIntTypeSize(), DefineFmt(), DefineTypeSize(), EvaluateValue(), clang::ASTContext::InitBuiltinTypes(), and InitializePredefinedMacros().
bool TargetInfo::isValidClobber | ( | StringRef | Name | ) | const |
Returns whether the passed in string is a valid clobber in an inline asm statement.
isValidClobber - Returns whether the passed in string is a valid clobber in an inline asm statement.
This is used by Sema.
Definition at line 620 of file TargetInfo.cpp.
References isValidGCCRegisterName().
Referenced by clang::Sema::ActOnGCCAsmStmt().
|
inlinevirtual |
brief Determine whether this TargetInfo supports the given CPU name.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARMTargetInfo, clang::targets::AVRTargetInfo, clang::targets::BPFTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LanaiTargetInfo, clang::targets::MipsTargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcTargetInfo, clang::targets::SparcV9TargetInfo, clang::targets::SystemZTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1292 of file TargetInfo.h.
Referenced by clang::Sema::checkTargetAttr(), clang::Sema::checkTargetClonesAttrString(), clang::ASTContext::getFunctionFeatureMap(), and isValidTuneCPUName().
|
inlinevirtual |
Determine whether this TargetInfo supports the given feature.
Reimplemented in clang::targets::ARMTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1338 of file TargetInfo.h.
Referenced by CheckMultiVersionValue(), clang::Sema::checkTargetAttr(), clang::Sema::checkTargetClonesAttrString(), and clang::TargetOMPContext::TargetOMPContext().
|
virtual |
Returns whether the passed in string is a valid register name according to GCC.
isValidGCCRegisterName - Returns whether the passed in string is a valid register name according to GCC.
This is used by Sema for inline asm statements.
Reimplemented in clang::targets::BPFTargetInfo.
Definition at line 628 of file TargetInfo.cpp.
References getGCCAddlRegNames(), getGCCRegAliases(), getGCCRegNames(), clang::isDigit(), and removeGCCRegisterPrefix().
Referenced by clang::Sema::ActOnVariableDeclarator(), AddVariableConstraints(), getNormalizedGCCRegisterName(), and isValidClobber().
|
inlinevirtual |
brief Determine whether this TargetInfo supports the given CPU name for
Reimplemented in clang::targets::RISCVTargetInfo, clang::targets::SystemZTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1298 of file TargetInfo.h.
References isValidCPUName().
|
inline |
Whether target supports variable-length arrays.
Definition at line 1478 of file TargetInfo.h.
References VLASupported.
Referenced by actOnOMPReductionKindClause(), and clang::Sema::BuildArrayType().
|
inlinevirtual |
Reimplemented in clang::targets::AArch64TargetInfo.
Definition at line 1420 of file TargetInfo.h.
Referenced by TargetMVPriority().
|
inlinevirtual |
Reimplemented in clang::targets::AArch64TargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1414 of file TargetInfo.h.
Referenced by AppendTargetClonesMangling(), AppendTargetVersionMangling(), and TargetMVPriority().
|
inline |
Definition at line 858 of file TargetInfo.h.
References clang::TransferrableTargetInfo::UseSignedCharForObjCBool.
Referenced by clang::CompilerInstance::ExecuteAction().
|
virtual |
Reimplemented in clang::targets::AArch64TargetInfo.
Definition at line 537 of file TargetInfo.cpp.
Referenced by CheckMultiVersionAdditionalDecl(), CheckMultiVersionValue(), clang::Sema::checkTargetAttr(), CheckTargetCausesMultiVersioning(), and clang::ASTContext::filterFunctionTargetAttrs().
|
protected |
Definition at line 189 of file TargetInfo.cpp.
References DataLayoutString, and UserLabelPrefix.
Referenced by clang::targets::AMDGPUTargetInfo::AMDGPUTargetInfo(), clang::targets::CygwinARMTargetInfo::CygwinARMTargetInfo(), clang::targets::M68kTargetInfo::M68kTargetInfo(), and clang::targets::NVPTXTargetInfo::NVPTXTargetInfo().
bool TargetInfo::resolveSymbolicName | ( | const char *& | Name, |
ArrayRef< ConstraintInfo > | OutputConstraints, | ||
unsigned & | Index | ||
) | const |
Definition at line 788 of file TargetInfo.cpp.
References getName().
Referenced by SimplifyConstraint(), and validateInputConstraint().
|
inlinevirtual |
Use the specified ABI.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::ARMTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::LoongArch32TargetInfo, clang::targets::LoongArch64TargetInfo, clang::targets::MipsTargetInfo, clang::targets::PPC64TargetInfo, clang::targets::RISCV32TargetInfo, clang::targets::RISCV64TargetInfo, and clang::targets::WebAssemblyTargetInfo.
Definition at line 1312 of file TargetInfo.h.
|
inlinevirtual |
Reimplemented in clang::targets::AMDGPUTargetInfo.
Definition at line 1695 of file TargetInfo.h.
Referenced by clang::CompilerInstance::createTarget().
|
inlinevirtual |
Set supported OpenCL extensions as written on command line.
Definition at line 1635 of file TargetInfo.h.
References getTargetOpts(), clang::TargetOptions::OpenCLFeaturesMap, supportAllOpenCLOpts(), and V.
|
inlinevirtual |
Target the specified CPU.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARMTargetInfo, clang::targets::AVRTargetInfo, clang::targets::BPFTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LanaiTargetInfo, clang::targets::M68kTargetInfo, clang::targets::MipsTargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcTargetInfo, clang::targets::SparcV9TargetInfo, clang::targets::SystemZTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1279 of file TargetInfo.h.
|
inlinevirtual |
Enable or disable a specific target feature; the feature name must be valid.
Reimplemented in clang::targets::X86TargetInfo, clang::targets::AArch64TargetInfo, clang::targets::BPFTargetInfo, and clang::targets::PPCTargetInfo.
Definition at line 1331 of file TargetInfo.h.
Referenced by initFeatureMap().
|
inlinevirtual |
Use the specified unit for FP math.
Reimplemented in clang::targets::ARMTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1319 of file TargetInfo.h.
|
inlinevirtual |
Set the maximum inline or promote width lock-free atomic operation for the given target.
Reimplemented in clang::targets::LoongArch32TargetInfo, clang::targets::LoongArch64TargetInfo, clang::targets::PPC64TargetInfo, clang::targets::RISCV32TargetInfo, clang::targets::RISCV64TargetInfo, clang::targets::X86_32TargetInfo, and clang::targets::X86_64TargetInfo.
Definition at line 790 of file TargetInfo.h.
|
inlinevirtual |
Set supported OpenCL extensions and optional core features.
Reimplemented in clang::targets::AMDGPUTargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::BaseSPIRTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1626 of file TargetInfo.h.
|
inlinevirtual |
Does this target aim for semantic compatibility with Microsoft C++ code using dllimport/export attributes?
Definition at line 1235 of file TargetInfo.h.
References getTriple().
Referenced by clang::Sema::ActOnExplicitInstantiation(), clang::Sema::checkClassLevelDLLAttribute(), checkDLLAttributeRedeclaration(), and handleDLLAttr().
Definition at line 1628 of file TargetInfo.h.
Referenced by setCommandLineOpenCLOpts().
|
inlinevirtual |
Whether the option -fextend-arguments={32,64} is supported on the target.
Reimplemented in clang::targets::X86TargetInfo.
Definition at line 1555 of file TargetInfo.h.
Referenced by clang::Sema::DefaultArgumentPromotion().
|
inline |
Identify whether this target supports IFuncs.
Definition at line 1404 of file TargetInfo.h.
References getTriple().
Referenced by AppendCPUSpecificCPUDispatchMangling().
|
inline |
Identify whether this target supports multiversioning of functions, which requires support for cpu_supports and cpu_is functionality.
Definition at line 1399 of file TargetInfo.h.
References getTriple().
Referenced by CheckMultiVersionAdditionalRules().
|
inlinevirtual |
Reimplemented in clang::targets::X86TargetInfo.
Definition at line 775 of file TargetInfo.h.
|
inlinevirtual |
brief Determine whether this TargetInfo supports tune in target attribute.
Reimplemented in clang::targets::AArch64TargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1305 of file TargetInfo.h.
Referenced by clang::Sema::checkTargetAttr().
|
inline |
Specify if mangling based on address space map should be used or not for language specific address spaces.
Definition at line 939 of file TargetInfo.h.
References UseAddrSpaceMapMangling.
Referenced by isAddrSpaceMapManglingEnabled().
|
inline |
Check whether the alignment of bit-field types is respected when laying out structures.
Definition at line 864 of file TargetInfo.h.
References clang::TransferrableTargetInfo::UseBitFieldTypeAlignment.
|
inline |
Check whether explicit bitfield alignment attributes should be.
Definition at line 892 of file TargetInfo.h.
References clang::TransferrableTargetInfo::UseExplicitBitFieldAlignment.
|
inlinevirtual |
Check whether llvm intrinsics such as llvm.convert.to.fp16 should be used to convert to and from __fp16.
FIXME: This function should be removed once all targets stop using the conversion intrinsics.
Reimplemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARMTargetInfo, clang::targets::DirectXTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::BaseSPIRTargetInfo, and clang::targets::X86TargetInfo.
Definition at line 933 of file TargetInfo.h.
Referenced by clang::CodeGen::CodeGenTypes::ConvertType(), needsConversionOfHalfVec(), and clang::CodeGen::ConstantEmitter::tryEmitPrivate().
|
inline |
Check whether zero length bitfield alignment is respected if they are leading members.
Definition at line 876 of file TargetInfo.h.
References clang::TransferrableTargetInfo::UseLeadingZeroLengthBitfield.
|
inline |
Check whether _Complex long double should use the "fp2ret" flavor of Objective-C message passing on this target.
Definition at line 925 of file TargetInfo.h.
References ComplexLongDoubleUsesFP2Ret.
Referenced by clang::CodeGen::CodeGenModule::ReturnTypeUsesFP2Ret().
|
inline |
Check whether the given real type should use the "fpret" flavor of Objective-C message passing on this target.
Definition at line 919 of file TargetInfo.h.
References RealTypeUsesObjCFPRetMask.
Referenced by clang::CodeGen::CodeGenModule::ReturnTypeUsesFPRet().
|
inline |
Check if the Objective-C built-in boolean type should be signed char.
Otherwise, if this returns false, the normal built-in boolean type should also be used for Objective-C.
Definition at line 855 of file TargetInfo.h.
References clang::TransferrableTargetInfo::UseSignedCharForObjCBool.
Referenced by InitializePredefinedMacros().
|
inline |
Check whether zero length bitfields should force alignment of the next member.
Definition at line 870 of file TargetInfo.h.
References clang::TransferrableTargetInfo::UseZeroLengthBitfieldAlignment.
|
pure virtual |
Implemented in clang::targets::AArch64TargetInfo, clang::targets::AMDGPUTargetInfo, clang::targets::ARCTargetInfo, clang::targets::ARMTargetInfo, clang::targets::AVRTargetInfo, clang::targets::BPFTargetInfo, clang::targets::CSKYTargetInfo, clang::targets::DirectXTargetInfo, clang::targets::HexagonTargetInfo, clang::targets::LanaiTargetInfo, clang::targets::Le64TargetInfo, clang::targets::LoongArchTargetInfo, clang::targets::M68kTargetInfo, clang::targets::MipsTargetInfo, clang::targets::MSP430TargetInfo, clang::targets::NVPTXTargetInfo, clang::targets::PNaClTargetInfo, clang::targets::PPCTargetInfo, clang::targets::RISCVTargetInfo, clang::targets::SparcTargetInfo, clang::targets::BaseSPIRTargetInfo, clang::targets::SystemZTargetInfo, clang::targets::TCETargetInfo, clang::targets::VETargetInfo, clang::targets::X86TargetInfo, and clang::targets::XCoreTargetInfo.
Referenced by validateInputConstraint(), and validateOutputConstraint().
|
inlinevirtual |
Determine if this TargetInfo supports the given branch protection specification.
Reimplemented in clang::targets::AArch64TargetInfo, and clang::targets::ARMTargetInfo.
Definition at line 1369 of file TargetInfo.h.
Referenced by clang::Sema::checkTargetAttr().
|
inlinevirtual |
Reimplemented in clang::targets::AArch64TargetInfo, and clang::targets::ARMTargetInfo.
Definition at line 1157 of file TargetInfo.h.
Referenced by clang::Sema::ActOnGCCAsmStmt().
|
inlinevirtual |
Reimplemented in clang::targets::X86TargetInfo.
Definition at line 1424 of file TargetInfo.h.
Referenced by CheckMultiVersionValue(), and SemaBuiltinCpuIs().
|
inlinevirtual |
Reimplemented in clang::targets::X86TargetInfo.
Definition at line 1428 of file TargetInfo.h.
Referenced by handleCPUSpecificAttr().
|
inlinevirtual |
Reimplemented in clang::targets::AArch64TargetInfo, and clang::targets::X86TargetInfo.
Definition at line 1410 of file TargetInfo.h.
Referenced by CheckMultiVersionValue(), clang::Sema::checkTargetClonesAttrString(), clang::Sema::checkTargetVersionAttr(), clang::ASTContext::filterFunctionTargetVersionAttrs(), and SemaBuiltinCpuSupports().
|
inlinevirtual |
Validate register name used for global register variables.
This function returns true if the register passed in RegName can be used for global register variables on this target. In addition, it returns true in HasSizeMismatch if the size of the register doesn't match the variable size passed in RegSize.
Reimplemented in clang::targets::X86TargetInfo, and clang::targets::X86_64TargetInfo.
Definition at line 1131 of file TargetInfo.h.
bool TargetInfo::validateInputConstraint | ( | MutableArrayRef< ConstraintInfo > | OutputConstraints, |
ConstraintInfo & | info | ||
) | const |
Definition at line 811 of file TargetInfo.cpp.
References clang::TargetInfo::ConstraintInfo::ConstraintStr, clang::TargetInfo::ConstraintInfo::getTiedOperand(), clang::TargetInfo::ConstraintInfo::hasTiedOperand(), resolveSymbolicName(), clang::TargetInfo::ConstraintInfo::setAllowsMemory(), clang::TargetInfo::ConstraintInfo::setAllowsRegister(), clang::TargetInfo::ConstraintInfo::setRequiresImmediate(), clang::TargetInfo::ConstraintInfo::setTiedOperand(), and validateAsmConstraint().
Referenced by clang::Sema::ActOnGCCAsmStmt().
|
inlinevirtual |
Reimplemented in clang::targets::X86TargetInfo.
Definition at line 1151 of file TargetInfo.h.
Referenced by clang::Sema::ActOnGCCAsmStmt().
|
virtual |
Check that OpenCL target has valid options setting based on OpenCL version.
validateOpenCLTarget - Check that OpenCL target has valid options setting based on OpenCL version.
Definition at line 851 of file Targets.cpp.
References clang::OpenCLOptions::diagnoseFeatureExtensionDifferences(), clang::OpenCLOptions::diagnoseUnsupportedFeatureDependencies(), clang::LangOptions::getOpenCLCompatibleVersion(), clang::LangOptions::getOpenCLVersionTuple(), getSupportedOpenCLOpts(), hasFeatureEnabled(), clang::OpenCLOptions::isOpenCLOptionCoreIn(), and clang::DiagnosticsEngine::Report().
bool TargetInfo::validateOutputConstraint | ( | ConstraintInfo & | Info | ) | const |
Definition at line 714 of file TargetInfo.cpp.
References clang::TargetInfo::ConstraintInfo::allowsMemory(), clang::TargetInfo::ConstraintInfo::allowsRegister(), clang::TargetInfo::ConstraintInfo::earlyClobber(), clang::TargetInfo::ConstraintInfo::getConstraintStr(), clang::TargetInfo::ConstraintInfo::isReadWrite(), clang::TargetInfo::ConstraintInfo::setAllowsMemory(), clang::TargetInfo::ConstraintInfo::setAllowsRegister(), clang::TargetInfo::ConstraintInfo::setEarlyClobber(), clang::TargetInfo::ConstraintInfo::setIsReadWrite(), and validateAsmConstraint().
Referenced by clang::Sema::ActOnGCCAsmStmt(), and AddVariableConstraints().
|
inlinevirtual |
Reimplemented in clang::targets::X86TargetInfo.
Definition at line 1145 of file TargetInfo.h.
Referenced by clang::Sema::ActOnGCCAsmStmt().
|
inlinevirtual |
Check the target is valid after it is fully initialized.
Reimplemented in clang::targets::MipsTargetInfo.
Definition at line 1686 of file TargetInfo.h.
|
protected |
Definition at line 236 of file TargetInfo.h.
Referenced by adjust(), getAddressSpaceMap(), clang::targets::NVPTXTargetInfo::NVPTXTargetInfo(), clang::targets::AMDGPUTargetInfo::setAddressSpaceMap(), and TargetInfo().
|
protected |
Definition at line 253 of file TargetInfo.h.
Referenced by allowAMDGPUUnsafeFPAtomics(), clang::targets::AMDGPUTargetInfo::AMDGPUTargetInfo(), clang::targets::AMDGPUTargetInfo::getTargetDefines(), and TargetInfo().
|
protected |
Definition at line 255 of file TargetInfo.h.
Referenced by getARMCDECoprocMask(), clang::targets::ARMTargetInfo::handleTargetFeatures(), and TargetInfo().
|
protected |
Definition at line 212 of file TargetInfo.h.
Referenced by clang::targets::MipsTargetInfo::getTargetDefines(), isBigEndian(), isLittleEndian(), and TargetInfo().
|
protected |
Definition at line 243 of file TargetInfo.h.
Referenced by TargetInfo(), and useObjCFP2RetForComplexLongDouble().
|
protected |
Definition at line 261 of file TargetInfo.h.
Referenced by getDarwinTargetVariantTriple().
|
protected |
Definition at line 231 of file TargetInfo.h.
Referenced by getDataLayoutString(), and resetDataLayout().
|
protected |
Definition at line 218 of file TargetInfo.h.
Referenced by clang::targets::AArch64TargetInfo::AArch64TargetInfo(), allowHalfArgsAndReturns(), clang::targets::ARMTargetInfo::handleTargetFeatures(), and TargetInfo().
|
protected |
Definition at line 249 of file TargetInfo.h.
Referenced by clang::targets::AArch64TargetInfo::AArch64TargetInfo(), hasAArch64SVETypes(), and TargetInfo().
|
protected |
Definition at line 241 of file TargetInfo.h.
Referenced by hasAlignMac68kSupport(), and TargetInfo().
|
protected |
Definition at line 221 of file TargetInfo.h.
Referenced by clang::targets::ARMTargetInfo::getTargetDefines(), clang::targets::ARMTargetInfo::handleTargetFeatures(), clang::targets::X86TargetInfo::handleTargetFeatures(), hasBFloat16Type(), clang::targets::ARMTargetInfo::hasBFloat16Type(), and TargetInfo().
|
protected |
Definition at line 245 of file TargetInfo.h.
Referenced by clang::targets::AArch64TargetInfo::AArch64TargetInfo(), hasBuiltinMSVaList(), and TargetInfo().
|
protected |
Definition at line 219 of file TargetInfo.h.
Referenced by clang::targets::PPCTargetInfo::getTargetDefines(), clang::targets::X86TargetInfo::getTargetDefines(), clang::targets::PPCTargetInfo::handleTargetFeatures(), clang::targets::PPCTargetInfo::hasFeature(), hasFloat128Type(), clang::targets::AMDGPUTargetInfo::setAuxTarget(), and TargetInfo().
|
protected |
Definition at line 220 of file TargetInfo.h.
Referenced by clang::targets::AArch64TargetInfo::AArch64TargetInfo(), clang::targets::AMDGPUTargetInfo::AMDGPUTargetInfo(), clang::targets::ARMTargetInfo::handleTargetFeatures(), clang::targets::HexagonTargetInfo::handleTargetFeatures(), clang::targets::X86TargetInfo::handleTargetFeatures(), hasFloat16Type(), clang::targets::RISCVTargetInfo::RISCVTargetInfo(), and TargetInfo().
|
protected |
Definition at line 227 of file TargetInfo.h.
Referenced by hasFPReturn(), and TargetInfo().
|
protected |
Definition at line 222 of file TargetInfo.h.
Referenced by clang::targets::ARMTargetInfo::handleTargetFeatures(), clang::targets::X86TargetInfo::handleTargetFeatures(), hasBFloat16Type(), clang::targets::X86TargetInfo::hasFeature(), hasFullBFloat16Type(), and TargetInfo().
|
protected |
Definition at line 225 of file TargetInfo.h.
Referenced by hasIbm128Type(), and TargetInfo().
|
protected |
Definition at line 216 of file TargetInfo.h.
Referenced by clang::targets::AArch64TargetInfo::AArch64TargetInfo(), clang::targets::AMDGPUTargetInfo::AMDGPUTargetInfo(), clang::targets::ARMTargetInfo::getTargetDefines(), clang::targets::ARMTargetInfo::handleTargetFeatures(), clang::targets::HexagonTargetInfo::handleTargetFeatures(), clang::targets::RISCVTargetInfo::handleTargetFeatures(), clang::targets::X86TargetInfo::handleTargetFeatures(), hasLegalHalfType(), and TargetInfo().
|
protected |
Definition at line 226 of file TargetInfo.h.
Referenced by clang::targets::X86TargetInfo::handleTargetFeatures(), hasLongDoubleType(), and TargetInfo().
|
protected |
Definition at line 251 of file TargetInfo.h.
Referenced by hasRISCVVTypes(), clang::targets::RISCVTargetInfo::RISCVTargetInfo(), and TargetInfo().
|
protected |
Definition at line 228 of file TargetInfo.h.
Referenced by clang::targets::AArch64TargetInfo::AArch64TargetInfo(), clang::targets::PPCTargetInfo::handleTargetFeatures(), hasStrictFP(), clang::targets::RISCVTargetInfo::RISCVTargetInfo(), and TargetInfo().
|
protected |
Definition at line 247 of file TargetInfo.h.
Referenced by isRenderScriptTarget(), clang::targets::RenderScript32TargetInfo::RenderScript32TargetInfo(), clang::targets::RenderScript64TargetInfo::RenderScript64TargetInfo(), and TargetInfo().
|
protected |
Definition at line 230 of file TargetInfo.h.
Referenced by clang::targets::AArch64TargetInfo::AArch64TargetInfo(), clang::targets::PPCTargetInfo::adjust(), clang::targets::AMDGPUTargetInfo::AMDGPUTargetInfo(), getMaxAtomicInlineWidth(), clang::targets::NVPTXTargetInfo::NVPTXTargetInfo(), and TargetInfo().
|
protected |
Definition at line 230 of file TargetInfo.h.
Referenced by clang::targets::AArch64TargetInfo::AArch64TargetInfo(), clang::targets::AMDGPUTargetInfo::AMDGPUTargetInfo(), getMaxAtomicPromoteWidth(), and TargetInfo().
|
protected |
Definition at line 259 of file TargetInfo.h.
Referenced by adjust(), getMaxBitIntWidth(), and TargetInfo().
|
protected |
Definition at line 257 of file TargetInfo.h.
Referenced by getMaxOpenCLWorkGroupSize(), and TargetInfo().
|
protected |
Definition at line 233 of file TargetInfo.h.
Referenced by clang::targets::AArch64TargetInfo::AArch64TargetInfo(), clang::targets::ARMTargetInfo::ARMTargetInfo(), getMCountName(), clang::targets::RISCVTargetInfo::RISCVTargetInfo(), and TargetInfo().
|
protected |
Definition at line 215 of file TargetInfo.h.
Referenced by clang::targets::AArch64TargetInfo::AArch64TargetInfo(), clang::targets::ARMTargetInfo::ARMTargetInfo(), hasNoAsmVariants(), clang::targets::NVPTXTargetInfo::NVPTXTargetInfo(), and TargetInfo().
|
mutableprotected |
Definition at line 239 of file TargetInfo.h.
Referenced by getPlatformMinVersion(), and TargetInfo().
|
mutableprotected |
Definition at line 238 of file TargetInfo.h.
Referenced by getPlatformName(), and TargetInfo().
|
protected |
Definition at line 242 of file TargetInfo.h.
Referenced by TargetInfo(), and useObjCFPRetForRealType().
|
protected |
Definition at line 234 of file TargetInfo.h.
Referenced by getRegParmMax(), and TargetInfo().
|
protected |
Definition at line 234 of file TargetInfo.h.
Referenced by TargetInfo().
|
protected |
Definition at line 235 of file TargetInfo.h.
Referenced by clang::targets::AArch64TargetInfo::AArch64TargetInfo(), clang::targets::ARMTargetInfo::ARMTargetInfo(), getCXXABI(), and TargetInfo().
|
protected |
Definition at line 213 of file TargetInfo.h.
Referenced by clang::targets::CygwinARMTargetInfo::CygwinARMTargetInfo(), isTLSSupported(), clang::targets::NVPTXTargetInfo::NVPTXTargetInfo(), and TargetInfo().
|
protected |
Specify if mangling based on address space map should be used or not for language specific address spaces.
Definition at line 339 of file TargetInfo.h.
Referenced by clang::targets::AMDGPUTargetInfo::AMDGPUTargetInfo(), clang::targets::NVPTXTargetInfo::NVPTXTargetInfo(), TargetInfo(), and useAddressSpaceMapMangling().
|
protected |
Definition at line 232 of file TargetInfo.h.
Referenced by getUserLabelPrefix(), resetDataLayout(), and TargetInfo().
|
protected |
Definition at line 214 of file TargetInfo.h.
Referenced by isVLASupported(), clang::targets::NVPTXTargetInfo::NVPTXTargetInfo(), and TargetInfo().