[llvm] CodeGen: Add RegisterClass by HwMode (PR #158269)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 19 02:32:34 PDT 2025


================
@@ -43,22 +43,48 @@ class MCInstrInfo {
   const ComplexDeprecationPredicate *ComplexDeprecationInfos;
   unsigned NumOpcodes;              // Number of entries in the desc array
 
+protected:
+  // Pointer to 2d array [NumHwModes][NumRegClassByHwModes]
+  const int16_t *RegClassByHwModeTables;
+  int16_t NumRegClassByHwModes;
----------------
RKSimon wrote:

Could we use ArrayRef here?

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


More information about the llvm-commits mailing list