[llvm] [RISCV] Add groupid/bitmask for RISC-V extension (PR #94440)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 12:02:02 PDT 2024


================
@@ -12,6 +12,11 @@ class RISCVExtension<string name, int major, int minor, string desc,
   bit Experimental = false;
 }
 
+class RISCVExtensionBitmask<bits<3> groupID, int bitmaskShift> {
+    bits<3> GroupID = groupID;
----------------
topperc wrote:

Can we use `int` for these if we store bit position instead of bit mask?

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


More information about the llvm-commits mailing list