[Mlir-commits] [mlir] [mlir][LLVM] Add operand bundle support (PR #108933)

Markus Böck llvmlistbot at llvm.org
Thu Sep 19 07:48:31 PDT 2024


================
@@ -544,6 +544,12 @@ struct CallOpInterfaceLowering : public ConvertOpToLLVMPattern<CallOpType> {
         callOp.getLoc(), packedResult ? TypeRange(packedResult) : TypeRange(),
         promoted, callOp->getAttrs());
 
+    newOp->setAttr(newOp.getOperandSegmentSizesAttrName(),
+                   rewriter.getDenseI32ArrayAttr(
+                       {static_cast<int32_t>(promoted.size()), 0}));
----------------
zero9178 wrote:

Why is this necessary? The builder call should create this automatically from its arguments IIRC (and if it doesn't, then `build` call, if implemented manually, should be updated)

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


More information about the Mlir-commits mailing list