llvm::RISCV::parseCPU

Return true if CPU is a recognized RISC-V CPU for the given bitness.

Synopsis

Declared in <llvm/TargetParser/RISCVTargetParser.h>

bool
parseCPU(
    StringRef CPU,
    bool IsRV64);

Return Value

True if CPU is known and matches IsRV64.

Parameters

NameDescription
CPUCPU name to validate.
IsRV64True to require an RV64 CPU; false for RV32.