[Mlir-commits] [mlir] [mlir] Remove dead declarations in VectorRewritePatterns.h (PR #215083)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Aug 9 02:18:38 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir-vector

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>

rewriteBitCastOfTruncI and rewriteExtOfBitCast were introduced on
September 18, 2023 in commits bf7c490ab73a22620c3d7790c09bfb11b669e51b
and 04ba475e85cb97e9006a130855b76479b5149f47, respectively, without
corresponding function definitions.


---
Full diff: https://github.com/llvm/llvm-project/pull/215083.diff


1 Files Affected:

- (modified) mlir/include/mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h (-15) 


``````````diff
diff --git a/mlir/include/mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h b/mlir/include/mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h
index 7d6d565d5a4f4..6363279f6826b 100644
--- a/mlir/include/mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h
+++ b/mlir/include/mlir/Dialect/Vector/Transforms/VectorRewritePatterns.h
@@ -414,21 +414,6 @@ void populateMemRefFlattenAndVectorNarrowTypeEmulationPatterns(
     arith::NarrowTypeEmulationConverter &typeConverter,
     RewritePatternSet &patterns);
 
-/// Rewrite a vector `bitcast(trunci)` to use a more efficient sequence of
-/// vector operations comprising `shuffle` and `bitwise` ops.
-/// Warning: these patterns currently only work for little endian targets.
-FailureOr<Value> rewriteBitCastOfTruncI(RewriterBase &rewriter,
-                                        vector::BitCastOp bitCastOp,
-                                        arith::TruncIOp truncOp,
-                                        vector::BroadcastOp maybeBroadcastOp);
-
-/// Rewrite a vector `ext(bitcast)` to use a more efficient sequence of
-/// vector operations comprising `shuffle` and `bitwise` ops.
-/// Warning: these patterns currently only work for little endian targets.
-FailureOr<Value> rewriteExtOfBitCast(RewriterBase &rewriter, Operation *extOp,
-                                     vector::BitCastOp bitCastOp,
-                                     vector::BroadcastOp maybeBroadcastOp);
-
 /// Appends patterns for rewriting vector operations over narrow types with
 /// ops over wider types.
 /// Warning: these patterns currently only work for little endian targets.

``````````

</details>


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


More information about the Mlir-commits mailing list