llvm::RISCV::CPUModel

Hardware identification fields matching the RISC-V mvendorid/marchid/mimpid CSRs.

Synopsis

Declared in <llvm/TargetParser/RISCVTargetParser.h>

struct CPUModel;

Member Functions

NameDescription
isValid Return true if all three ID fields are non-zero.
operator== Return true if this model has the same IDs as Other.

Data Members

NameDescription
MArchID Architecture ID from the marchid CSR.
MImpID Implementation ID from the mimpid CSR.
MVendorID Vendor ID from the mvendorid CSR.

Non-Member Functions

NameDescription
getCPUModelReturn the hardware model IDs for CPU CPU.
getCPUNameFromCPUModelReturn the CPU name that matches hardware model Model.