llvm::RISCVISAInfo

Parsed RISC-V ISA extension set and derived length properties.

Synopsis

Declared in <llvm/TargetParser/RISCVISAInfo.h>

class RISCVISAInfo;

Member Functions

NameDescription
RISCVISAInfo [constructor] [deleted]Copy construction is deleted; instances are created via factory methods.
operator= [deleted]Copy assignment is deleted; instances are created via factory methods.
computeDefaultABI Return the default ABI name implied by XLEN and enabled extensions.
getExtensions Return the ordered map of enabled extensions and their versions.
getFLen Return the floating-point register width in bits (FLEN), or 0 if none.
getMaxELen Return the maximum EEW for integer vector loads/stores in bits.
getMaxELenFp Return the maximum EEW for floating-point vector loads/stores in bits.
getMaxVLen Return the maximum vector register length in bits (VLEN).
getMinVLen Return the minimum vector register length in bits (VLEN).
getXLen Return the base integer register width in bits (XLEN).
hasExtension Return true if extension Ext is enabled in this ISA.
toFeatures Convert RISC-V ISA info to a feature vector.
toString Return the canonical ISA string for the enabled extensions.

Static Member Functions

NameDescription
createFromExtMap Create RISC-V ISA info from an XLEN and an ordered extension map.
getRISCVFeaturesBitsInfo Return the group id and bit position of __riscv_feature_bits.
getTargetFeatureForExtension Return the target-feature name for extension string Ext.
isSupportedExtension isSupportedExtension overloads
isSupportedExtensionFeature Return true if Ext is a supported RISC-V extension feature name.
isSupportedExtensionWithVersion Return true if Ext names a supported extension including a version.
parseArchString Parse RISC-V ISA info from an architecture string.
parseFeatures Parse RISC-V ISA info from a feature vector.
parseNormalizedArchString Parse RISC-V ISA info from a normalized architecture string.
printEnabledExtensions Print the enabled RISC-V extensions for a target to standard output.
printSupportedExtensions Print all supported RISC-V -march extensions to standard output.

Static Data Members

NameDescription
FeatureBitSize The maximum value of the group ID obtained from getRISCVFeaturesBitsInfo.