class SparcTargetInfo

Declaration

class SparcTargetInfo : public TargetInfo { /* full declaration omitted */ };

Description

Exposes information about the current target.

Declared at: clang/lib/Basic/Targets/Sparc.h:22

Inherits from: TargetInfo

Member Variables

private bool SoftFloat
public enum CPUKind CPU = CK_GENERIC
private static const TargetInfo::GCCRegAlias[] GCCRegAliases
private static const char* const[] GCCRegNames

Inherited from TargetInfo:

protected BigEndian
protected TLSSupported
protected VLASupported
protected NoAsmVariants
protected HasLegalHalfType
protected HasFloat128
protected HasFloat16
protected HasBFloat16
protected HasIbm128
protected HasLongDouble
protected HasFPReturn
protected HasStrictFP
protected MaxAtomicPromoteWidth
protected MaxAtomicInlineWidth
protected SimdDefaultAlign
protected DataLayoutString
protected UserLabelPrefix
protected MCountName
protected RegParmMax
protected SSERegParmMax
protected TheCXXABI
protected AddrSpaceMap
protected ProgramAddrSpace
protected PlatformName
protected PlatformMinVersion
protected HasAlignMac68kSupport
protected RealTypeUsesObjCFPRetMask
protected ComplexLongDoubleUsesFP2Ret
protected HasBuiltinMSVaList
protected IsRenderScriptTarget
protected HasAArch64SVETypes
protected HasRISCVVTypes
protected AllowAMDGPUUnsafeFPAtomics
protected ARMCDECoprocMask
protected MaxOpenCLWorkGroupSize
protected MaxBitIntWidth
protected DarwinTargetVariantTriple
protected UseAddrSpaceMapMangling

Inherited from TransferrableTargetInfo:

public PointerWidth
public PointerAlign
public BoolWidth
public BoolAlign
public IntWidth
public IntAlign
public HalfWidth
public HalfAlign
public BFloat16Width
public BFloat16Align
public FloatWidth
public FloatAlign
public DoubleWidth
public DoubleAlign
public LongDoubleWidth
public LongDoubleAlign
public Float128Align
public Ibm128Align
public LargeArrayMinWidth
public LargeArrayAlign
public LongWidth
public LongAlign
public LongLongWidth
public LongLongAlign
public ShortAccumWidth
public ShortAccumAlign
public AccumWidth
public AccumAlign
public LongAccumWidth
public LongAccumAlign
public ShortFractWidth
public ShortFractAlign
public FractWidth
public FractAlign
public LongFractWidth
public LongFractAlign
public PaddingOnUnsignedFixedPoint
public ShortAccumScale
public AccumScale
public LongAccumScale
public DefaultAlignForAttributeAligned
public MinGlobalAlign
public SuitableAlign
public NewAlign
public MaxVectorAlign
public MaxTLSAlign
public HalfFormat
public BFloat16Format
public FloatFormat
public DoubleFormat
public LongDoubleFormat
public Float128Format
public Ibm128Format
protected SizeType
protected IntMaxType
protected PtrDiffType
protected IntPtrType
protected WCharType
protected WIntType
protected Char16Type
protected Char32Type
protected Int64Type
protected Int16Type
protected SigAtomicType
protected ProcessIDType
protected UseSignedCharForObjCBool
protected UseBitFieldTypeAlignment
protected UseZeroLengthBitfieldAlignment
protected UseLeadingZeroLengthBitfield
protected UseExplicitBitFieldAlignment
protected ZeroLengthBitfieldBoundary
protected MaxAlignedAttribute

Method Overview

Inherited from TargetInfo:

Methods

SparcTargetInfo(const llvm::Triple& Triple,
                const clang::TargetOptions&)

Declared at: clang/lib/Basic/Targets/Sparc.h:28

Parameters

const llvm::Triple& Triple
const clang::TargetOptions&

void fillValidCPUList(
    SmallVectorImpl<llvm::StringRef>& Values)
    const

Description

Fill a SmallVectorImpl with the valid values to setCPU.

Declared at: clang/lib/Basic/Targets/Sparc.h:137

Parameters

SmallVectorImpl<llvm::StringRef>& Values

clang::TargetInfo::BuiltinVaListKind
getBuiltinVaListKind() const

Description

Returns the kind of __builtin_va_list type that should be used with this target.

Declared at: clang/lib/Basic/Targets/Sparc.h:55

clang::targets::SparcTargetInfo::CPUGeneration
getCPUGeneration(
    clang::targets::SparcTargetInfo::CPUKind Kind)
    const

Declared at: clang/lib/Basic/Targets/Sparc.h:129

Parameters

clang::targets::SparcTargetInfo::CPUKind Kind

clang::targets::SparcTargetInfo::CPUKind
getCPUKind(llvm::StringRef Name) const

Declared at: clang/lib/Basic/Targets/Sparc.h:131

Parameters

llvm::StringRef Name

const char* getClobbers() const

Description

Returns a string of target-specific clobbers, in LLVM format.

Declared at: clang/lib/Basic/Targets/Sparc.h:80

int getEHDataRegisterNumber(
    unsigned int RegNo) const

Description

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.

Declared at: clang/lib/Basic/Targets/Sparc.h:31

Parameters

unsigned int RegNo

ArrayRef<TargetInfo::GCCRegAlias>
getGCCRegAliases() const

Declared at: clang/lib/Basic/Targets/Sparc.h:59

ArrayRef<const char*> getGCCRegNames() const

Declared at: clang/lib/Basic/Targets/Sparc.h:58

ArrayRef<Builtin::Info> getTargetBuiltins() const

Description

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.

Declared at: clang/lib/Basic/Targets/Sparc.h:51

void getTargetDefines(
    const clang::LangOptions& Opts,
    clang::MacroBuilder& Builder) const

Description

Appends the target-specific # define values for this target set to the specified buffer.

Declared at: clang/lib/Basic/Targets/Sparc.h:46

Parameters

const clang::LangOptions& Opts
clang::MacroBuilder& Builder

bool handleTargetFeatures(
    std::vector<std::string>& Features,
    clang::DiagnosticsEngine& Diags)

Description

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.

Declared at: clang/lib/Basic/Targets/Sparc.h:39

Parameters

std::vector<std::string>& Features
clang::DiagnosticsEngine& Diags

Returns

False on error.

bool hasFeature(llvm::StringRef Feature) const

Description

Determine whether the given target has the given feature.

Declared at: clang/lib/Basic/Targets/Sparc.h:49

Parameters

llvm::StringRef Feature

bool isValidCPUName(llvm::StringRef Name) const

Description

brief Determine whether this TargetInfo supports the given CPU name.

Declared at: clang/lib/Basic/Targets/Sparc.h:133

Parameters

llvm::StringRef Name

bool setCPU(const std::string& Name)

Description

Target the specified CPU.

Declared at: clang/lib/Basic/Targets/Sparc.h:139

Parameters

const std::string& Name

Returns

False on error (invalid CPU name).

bool validateAsmConstraint(
    const char*& Name,
    TargetInfo::ConstraintInfo& info) const

Declared at: clang/lib/Basic/Targets/Sparc.h:60

Parameters

const char*& Name
TargetInfo::ConstraintInfo& info