[Mlir-commits] [mlir] [mlir][vector] Propagate `vector.extract` through elementwise ops (PR #131462)

Andrzej WarzyƄski llvmlistbot at llvm.org
Mon Mar 17 10:37:26 PDT 2025


================
@@ -0,0 +1,47 @@
+// RUN: mlir-opt %s --transform-interpreter --split-input-file | FileCheck %s
+
+// CHECK-LABEL: @extract_elementwise
+//  CHECK-SAME:   (%[[ARG0:.*]]: vector<4xf32>, %[[ARG1:.*]]: vector<4xf32>)
+func.func @extract_elementwise(%arg0: vector<4xf32>, %arg1: vector<4xf32>) -> f32 {
----------------
banach-space wrote:

```suggestion
func.func @extract_elementwise_scalar(%arg0: vector<4xf32>, %arg1: vector<4xf32>) -> f32 {
```

Or something similar so that the naming scheme is consistent throughout the file.

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


More information about the Mlir-commits mailing list