[clang] [llvm] [RISCV] Support RISC-V Profiles in -march option (PR #76357)

Yingwei Zheng via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 1 00:40:47 PST 2024


================
@@ -839,6 +860,33 @@ RISCVISAInfo::parseArchString(StringRef Arch, bool EnableExperimentalExtension,
                              "string must be lowercase");
   }
 
+  bool IsProfile = Arch.starts_with("rvi") || Arch.starts_with("rva") ||
+                   Arch.starts_with("rvb") || Arch.starts_with("rvm");
----------------
dtcxzyw wrote:

> profile-name ::= "RV"`<profile-family-name><profile-ratified-year><privilege-mode><ISA-XLEN>`
> profile-family-name ::= "I" | "M" | "A"

Missing tests for `rvm`.
Do you know what "rvb" stands for?


https://github.com/llvm/llvm-project/pull/76357


More information about the cfe-commits mailing list