[llvm] [NFC] [RISCV] Refactor class RISCVExtension (PR #120040)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 15 22:29:04 PST 2024
================
@@ -22,11 +22,17 @@
// uses the record name by replacing Feature with Has.
// value - Value to assign to the field in RISCVSubtarget when this
// extension is enabled. Usually "true", but can be changed.
-class RISCVExtension<string name, int major, int minor, string desc,
+class RISCVExtension<int major, int minor, string desc,
list<SubtargetFeature> implies = [],
string fieldname = !subst("Feature", "Has", NAME),
- string value = "true">
- : SubtargetFeature<name, fieldname, value, desc, implies> {
+ string value = "true", string prefix = "">
----------------
topperc wrote:
Can we use the `IsExperimental` field to create the "experimental-" prefix?
https://github.com/llvm/llvm-project/pull/120040
More information about the llvm-commits
mailing list