[Mlir-commits] [mlir] [mlir] Remove dead declarations in VectorRewritePatterns.h (PR #215083)
Kazu Hirata
llvmlistbot at llvm.org
Sun Aug 9 02:18:06 PDT 2026
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/215083
rewriteBitCastOfTruncI and rewriteExtOfBitCast were introduced on
September 18, 2023 in commits bf7c490ab73a22620c3d7790c09bfb11b669e51b
and 04ba475e85cb97e9006a130855b76479b5149f47, respectively, without
corresponding function definitions.
>From 043b40801bc4bd9b126f25c8a56db3a0e0a9ddd2 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sun, 9 Aug 2026 00:19:53 -0700
Subject: [PATCH] [mlir] Remove dead declarations in VectorRewritePatterns.h
rewriteBitCastOfTruncI and rewriteExtOfBitCast were introduced on
September 18, 2023 in commits bf7c490ab73a22620c3d7790c09bfb11b669e51b
and 04ba475e85cb97e9006a130855b76479b5149f47, respectively, without
corresponding function definitions.
---
.../Vector/Transforms/VectorRewritePatterns.h | 15 ---------------
1 file changed, 15 deletions(-)
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.
More information about the Mlir-commits
mailing list