Skip to content

Conversation

IgWod-IMG
Copy link
Contributor

The test is fragile as it relies on the --debug flag to test an internal behaviour. This addresses discussion in #164319.

The test is fragile as it relies on the `--debug` flag to test
an internal behaviour. This address discussion in llvm#164319.
@llvmbot
Copy link
Member

llvmbot commented Oct 21, 2025

@llvm/pr-subscribers-mlir-spirv

Author: Igor Wodiany (IgWod-IMG)

Changes

The test is fragile as it relies on the --debug flag to test an internal behaviour. This addresses discussion in #164319.


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

1 Files Affected:

  • (removed) mlir/test/Target/SPIRV/function-decorations-asserts.mlir (-20)
diff --git a/mlir/test/Target/SPIRV/function-decorations-asserts.mlir b/mlir/test/Target/SPIRV/function-decorations-asserts.mlir
deleted file mode 100644
index ebdb9fb1e75e3..0000000000000
--- a/mlir/test/Target/SPIRV/function-decorations-asserts.mlir
+++ /dev/null
@@ -1,20 +0,0 @@
-// REQUIRES: asserts
-// RUN: mlir-translate --no-implicit-module --test-spirv-roundtrip --split-input-file --debug %s | FileCheck %s
-
-spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader, Linkage], []> {
-    spirv.func @linkage_attr_test_kernel()  "DontInline"  attributes {}  {
-        %uchar_0 = spirv.Constant 0 : i8
-        %ushort_1 = spirv.Constant 1 : i16
-        %uint_0 = spirv.Constant 0 : i32
-        spirv.FunctionCall @outside.func.with.linkage(%uchar_0):(i8) -> ()
-        spirv.Return
-    }
-    // CHECK: linkage_attributes = #spirv.linkage_attributes<linkage_name = "outside.func", linkage_type = <Import>>
-    spirv.func @outside.func.with.linkage(%arg0 : i8) -> () "Pure" attributes {
-      linkage_attributes=#spirv.linkage_attributes<
-        linkage_name="outside.func",
-        linkage_type=<Import>
-      >
-    }
-    spirv.func @inside.func() -> () "Pure" attributes {} {spirv.Return}
-}

@llvmbot
Copy link
Member

llvmbot commented Oct 21, 2025

@llvm/pr-subscribers-mlir

Author: Igor Wodiany (IgWod-IMG)

Changes

The test is fragile as it relies on the --debug flag to test an internal behaviour. This addresses discussion in #164319.


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

1 Files Affected:

  • (removed) mlir/test/Target/SPIRV/function-decorations-asserts.mlir (-20)
diff --git a/mlir/test/Target/SPIRV/function-decorations-asserts.mlir b/mlir/test/Target/SPIRV/function-decorations-asserts.mlir
deleted file mode 100644
index ebdb9fb1e75e3..0000000000000
--- a/mlir/test/Target/SPIRV/function-decorations-asserts.mlir
+++ /dev/null
@@ -1,20 +0,0 @@
-// REQUIRES: asserts
-// RUN: mlir-translate --no-implicit-module --test-spirv-roundtrip --split-input-file --debug %s | FileCheck %s
-
-spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader, Linkage], []> {
-    spirv.func @linkage_attr_test_kernel()  "DontInline"  attributes {}  {
-        %uchar_0 = spirv.Constant 0 : i8
-        %ushort_1 = spirv.Constant 1 : i16
-        %uint_0 = spirv.Constant 0 : i32
-        spirv.FunctionCall @outside.func.with.linkage(%uchar_0):(i8) -> ()
-        spirv.Return
-    }
-    // CHECK: linkage_attributes = #spirv.linkage_attributes<linkage_name = "outside.func", linkage_type = <Import>>
-    spirv.func @outside.func.with.linkage(%arg0 : i8) -> () "Pure" attributes {
-      linkage_attributes=#spirv.linkage_attributes<
-        linkage_name="outside.func",
-        linkage_type=<Import>
-      >
-    }
-    spirv.func @inside.func() -> () "Pure" attributes {} {spirv.Return}
-}

Copy link
Collaborator

@joker-eph joker-eph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@IgWod-IMG IgWod-IMG merged commit 573b624 into llvm:main Oct 21, 2025
14 checks passed
@IgWod-IMG IgWod-IMG deleted the img_remove-test branch October 21, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants