llvm::RISCVISAInfo::toFeatures

Convert RISC-V ISA info to a feature vector.

Synopsis

Declared in <llvm/TargetParser/RISCVISAInfo.h>

std::vector<std::string>
toFeatures(
    bool AddAllExtensions = false,
    bool IgnoreUnknown = true) const;

Return Value

Feature strings prefixed with '+' or '-'.

Parameters

NameDescription
AddAllExtensionsIf true, append disabled features for every supported extension not present in this ISA.
IgnoreUnknownIf true, skip extensions that are not supported.