[flang-commits] [flang] [flang][cuda] Include constant extents in cuf.alloc size computation (PR #194288)

via flang-commits flang-commits at lists.llvm.org
Mon Apr 27 10:47:39 PDT 2026


================
@@ -206,6 +206,14 @@ struct CUFAllocOpConversion : public mlir::OpRewritePattern<cuf::AllocOp> {
                 rewriter, loc, nbElem,
                 builder.loadIfRef(loc, op.getShape()[i]));
           }
+          for (auto extent : seqTy.getShape()) {
----------------
khaki3 wrote:

I adapted the style of `fir::genAllocationScaleSize`. Thanks.

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


More information about the flang-commits mailing list