llvm::RISCV::parseTuneCPU

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

Synopsis

Declared in <llvm/TargetParser/RISCVTargetParser.h>

bool
parseTuneCPU(
    StringRef CPU,
    bool IsRV64);

Description

Falls back to parseCPU when CPU is not a dedicated tune-CPU name.

Return Value

True if CPU is a known tune CPU or a matching base CPU.

Parameters

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