[llvm] [CodeGen] Allow larger number of operands to be compiled by SelectionDAG (PR #122737)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 09:56:42 PST 2025


================
@@ -203,8 +203,8 @@ class MCInstrDesc {
   // find other information elsewhere in the same table.
 
   unsigned short Opcode;         // The opcode number
-  unsigned short NumOperands;    // Num of args (may be more if variable_ops)
-  unsigned char NumDefs;         // Num of args that are definitions
+  uint32_t NumOperands;          // Num of args (may be more if variable_ops)
----------------
topperc wrote:

This is file is not related to SelectionDAG. It only affects assembly instructions defined for a target. There should be checks in tablegen that these sizes are enough.

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


More information about the llvm-commits mailing list