[llvm] [RISCV] Add extension information to RISCVFeatures.td. NFC (PR #89326)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 18 23:53:34 PDT 2024
================
@@ -786,139 +804,138 @@ def HasStdExtH : Predicate<"Subtarget->hasStdExtH()">,
// Supervisor extensions
def FeatureStdExtShgatpa
- : SubtargetFeature<"shgatpa", "HasStdExtShgatpa", "true",
- "'Sgatpa' (SvNNx4 mode supported for all modes supported by satp, as well as Bare)", []>;
+ : RISCVExtension<"shgatpa", 1, 0, "HasStdExtShgatpa", "true",
+ "'Sgatpa' (SvNNx4 mode supported for all modes supported by satp, as well as Bare)">;
def FeatureStdExtShvsatpa
- : SubtargetFeature<"shvsatpa", "HasStdExtSvsatpa", "true",
- "'Svsatpa' (vsatp supports all modes supported by satp)", []>;
+ : RISCVExtension<"shvsatpa", 1, 0, "HasStdExtSvsatpa", "true",
+ "'Svsatpa' (vsatp supports all modes supported by satp)">;
def FeatureStdExtSmaia
- : SubtargetFeature<"smaia", "HasStdExtSmaia", "true",
- "'Smaia' (Advanced Interrupt Architecture Machine "
- "Level)", []>;
+ : RISCVExtension<"smaia", 1, 0, "HasStdExtSmaia", "true",
+ "'Smaia' (Advanced Interrupt Architecture Machine Level)">;
def FeatureStdExtSsaia
- : SubtargetFeature<"ssaia", "HasStdExtSsaia", "true",
+ : RISCVExtension<"ssaia", 1, 0, "HasStdExtSsaia", "true",
"'Ssaia' (Advanced Interrupt Architecture Supervisor "
----------------
wangpc-pp wrote:
ditto.
https://github.com/llvm/llvm-project/pull/89326
More information about the llvm-commits
mailing list