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

Wang Pengcheng via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 19 21:03:42 PST 2024


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

I was thinking that we may need it to define ELF attr: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/409. But it seems that we don't need it now.

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


More information about the cfe-commits mailing list