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

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 6 21:38:29 PDT 2024


================
@@ -210,10 +211,58 @@ static void emitRISCVProcs(RecordKeeper &RK, raw_ostream &OS) {
   OS << "\n#undef TUNE_PROC\n";
 }
 
+static inline uint64_t getValueFromBitsInit(const BitsInit *B,
+                                            const Record &R) {
+  assert(B->getNumBits() <= sizeof(uint64_t) * 8 && "BitInits' too long!");
----------------
topperc wrote:

`sizeof(uint64_t) * 8` -> 64.

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


More information about the llvm-commits mailing list