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

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 8 00:54:07 PST 2024


================
@@ -138,6 +150,8 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {
   /// initializeProperties().
   RISCVProcFamilyEnum getProcFamily() const { return RISCVProcFamily; }
 
+  RISCVProfileEnum getRISCVProfile() const { return RISCVProfile; }
----------------
topperc wrote:

If we use the profile in the backend wouldn't that mean the profile gets different treatment than the equivalent list of extensions?

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


More information about the cfe-commits mailing list