[llvm-branch-commits] [clang] [llvm] [RISCV] Add subtarget features for profiles (PR #84877)

Kito Cheng via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Apr 26 03:57:53 PDT 2024


================
@@ -65,10 +65,27 @@ class RISCVSubtarget : public RISCVGenSubtargetInfo {
     VentanaVeyron,
   };
   // clang-format on
+
+  enum RISCVProfileEnum : uint8_t {
+    Unspecified,
+    RVI20U32,
+    RVI20U64,
+    RVA20U64,
+    RVA20S64,
+    RVA22U64,
+    RVA22S64,
+    RVA23U64,
+    RVA23S64,
+    RVB23U64,
+    RVB23S64,
+    RVM23U32,
+  };
+
 private:
   virtual void anchor();
 
   RISCVProcFamilyEnum RISCVProcFamily = Others;
+  RISCVProfileEnum RISCVProfile = Unspecified;
----------------
kito-cheng wrote:

Same 

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


More information about the llvm-branch-commits mailing list