[Mlir-commits] [mlir] [mlir][gpu] Derive has-redux from the chip in the NVVM pipeline (PR #221393)

Guray Ozen llvmlistbot at llvm.org
Sun Sep 13 09:30:09 PDT 2026


================
@@ -73,6 +74,14 @@ void buildGpuPassPipeline(OpPassManager &pm,
   opt.useBarePtrCallConv = options.kernelUseBarePtrCallConv;
   opt.indexBitwidth = options.indexBitWidth;
   opt.allowPatternRollback = options.allowPatternRollback;
+  // redux.sync exists from sm_80, and the chip this pipeline serializes for is
+  // the only thing that decides whether it may be used, so there is no reason
+  // to ask for it as an option of its own.
+  StringRef chip(options.cubinChip);
----------------
grypp wrote:

could we outline this in a function

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


More information about the Mlir-commits mailing list