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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 15 07:02:51 PDT 2025


================
@@ -187,7 +182,8 @@ CodeGenInstAlias::CodeGenInstAlias(const Record *R, const CodeGenTarget &T)
       PrintFatalError(R->getLoc(), "not enough arguments for instruction!");
 
     const Record *Op = OpInfo.Rec;
-    if (Op->isSubClassOf("Operand") && !OpInfo.MIOperandInfo->arg_empty()) {
+    if (Op->isSubClassOf("Operand") && OpInfo.MIOperandInfo &&
----------------
arsenm wrote:

RegisterOperand is surprisingly not a subclass of Operand, only DAGOperand 

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


More information about the llvm-commits mailing list