[llvm-branch-commits] [mlir] [mlir][Vector] Clean up `populateVectorToLLVMConversionPatterns` (PR #119975)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Dec 16 18:41:39 PST 2024
================
@@ -522,6 +524,16 @@ DECLARE_CONVERT_OP_TO_GPU_RUNTIME_CALL_PATTERN(SetCsrPointersOp)
void GpuToLLVMConversionPass::runOnOperation() {
MLIRContext *context = &getContext();
+
+ // Perform progressive lowering of vector transfer operations.
+ {
+ RewritePatternSet patterns(&getContext());
+ // Vector transfer ops with rank > 1 should be lowered with VectorToSCF.
+ vector::populateVectorTransferLoweringPatterns(patterns,
+ /*maxTransferRank=*/1);
+ (void)applyPatternsAndFoldGreedily(getOperation(), std::move(patterns));
----------------
MaheshRavishankar wrote:
Maybe this should return a `signalPassFailure` instead of just ignoring the result
https://github.com/llvm/llvm-project/pull/119975
More information about the llvm-branch-commits
mailing list