[PATCH] D79815: [mlir] [VectorOps] Implement vector.constant_mask lowering to LLVM IR

Alex Zinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 12 16:09:51 PDT 2020


ftynse accepted this revision.
ftynse added inline comments.
This revision is now accepted and ready to land.


================
Comment at: mlir/lib/Dialect/Vector/VectorTransforms.cpp:1223
+        new_dim_sizes.push_back(dim_sizes[r].cast<IntegerAttr>().getInt());
+      trueVal = rewriter.create<vector::ConstantMaskOp>(
+          loc, lowType, rewriter.getI64ArrayAttr(new_dim_sizes));
----------------
There is some mechanism a pattern can tell the conversion infra it creates operations that the same pattern can match again, but this iteration is finite. I suppose it's worth using even if the pattern seems to work as is.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79815/new/

https://reviews.llvm.org/D79815





More information about the llvm-commits mailing list