[clang] [llvm] [RISCV] Add -march support for many of the S extensions mentioned in the profile specification. (PR #79399)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 10:06:18 PST 2024


================
@@ -764,6 +771,62 @@ def FeatureStdExtSmepmp
     : SubtargetFeature<"smepmp", "HasStdExtSmepmp", "true",
                        "'Smepmp' (Enhanced Physical Memory Protection)", []>;
 
+def FeatureStdExtSsccptr
+    : SubtargetFeature<"ssccptr", "HasStdExtSsccptr", "true",
+                       "'Ssccptr' (Main memory supports page table reads)", []>;
+
+def FeatureStdExtShcounterenvw
+    : SubtargetFeature<"shcounterenw", "HasStdExtShcounterenw", "true",
+                       "'Shcounterenw' (Support writeable enables for any supproted counter)", []>;
+def FeatureStdExtSscounterenvw
+    : SubtargetFeature<"sscounterenw", "HasStdExtSscounterenw", "true",
+                       "'Sscounterenw' (Support writeable enables for any supproted counter)", []>;
----------------
preames wrote:

This description looks wrong.  Document says "Sscounterenw For any hpmcounter that is not read-only zero, the corresponding bit in scounteren must be writable."

Maybe:
"Support writeable enables for any supproted counter (with exception of zero registers)"

Also, typo: "supproted" should be "supported"

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


More information about the llvm-commits mailing list