[Mlir-commits] [mlir] [mlir][spirv] Add definition for GL Length (PR #144041)
Jakub Kuderski
llvmlistbot at llvm.org
Mon Jun 16 07:11:14 PDT 2025
================
@@ -2490,3 +2490,24 @@ func.func @cannot_canonicalize_selection_op_4(%cond: i1) -> () {
}
spirv.Return
}
+
+// -----
+
+//===----------------------------------------------------------------------===//
+// spirv.GL.Length
+//===----------------------------------------------------------------------===//
+
+// CHECK-LABEL: @convert_length_into_fabs_scalar
+func.func @convert_length_in_fabs_scalar(%arg0 : f32) -> f32 {
+
+ %0 = spirv.GL.Length %arg0 : f32 -> f32
+ //%11 = spirv.GL.Length %arg1 : vector<3xf32> -> f32
----------------
kuhar wrote:
Missing CHECK and leftover comment?
https://github.com/llvm/llvm-project/pull/144041
More information about the Mlir-commits
mailing list