[llvm] [GlobalISel][TableGen] MIR Pattern Variadics (PR #100563)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 01:12:56 PDT 2024


================
@@ -1726,9 +1738,10 @@ OperandMatcher &InstructionMatcher::addPhysRegInput(Record *Reg, unsigned OpIdx,
 
 void InstructionMatcher::emitPredicateOpcodes(MatchTable &Table,
                                               RuleMatcher &Rule) {
-  if (NumOperandsCheck)
-    InstructionNumOperandsMatcher(InsnVarID, getNumOperands())
+  if (canAddNumOperandsCheck()) {
----------------
tschuett wrote:

Are the curly braces necessary for semantics?

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


More information about the llvm-commits mailing list