llvm::RISCV

RISC-V CPU name, feature, and tune-feature parsing helpers.

Types

NameDescription
CPUInfo Named RISC-V CPU and its default ISA string, alignment hints, and model IDs.
CPUModel Hardware identification fields matching the RISC-V mvendorid/marchid/mimpid CSRs.
ParserError Fatal errors encountered during parsing.
ParserWarning Warnings encountered during parsing.

Functions

NameDescription
fillValidCPUArchList Append every valid RISC-V CPU name for the given bitness to Values.
fillValidTuneCPUArchList Append every valid RISC-V tune CPU name for the given bitness to Values.
getAllTuneFeatures Append every recognized RISC-V tune-feature name to TuneFeatures.
getCPUConfigurableTuneFeatures Append the tune-feature directives configurable for CPU CPU.
getCPUModel Return the hardware model IDs for CPU CPU.
getCPUNameFromCPUModel Return the CPU name that matches hardware model Model.
getFeaturesForCPU Append the target-feature strings enabled by CPU CPU.
getMArchFromMcpu Return the default -march string for CPU CPU.
hasFastScalarUnalignedAccess Return true if CPU CPU treats scalar unaligned access as fast.
hasFastVectorUnalignedAccess Return true if CPU CPU treats vector unaligned access as fast.
hasValidCPUModel Return true if CPU CPU has a valid non-zero hardware model.
parseCPU Return true if CPU is a recognized RISC-V CPU for the given bitness.
parseTuneCPU Return true if CPU is a recognized RISC-V tune CPU for the given bitness.
parseTuneFeatureString Parse the tune feature string with the respective processor. If ProcName is empty, directives are not filtered by processor.