Skip to content

Conversation

@boomanaiden154
Copy link
Contributor

%T has been deprecated for about seven years and is to be avoided given it does not use a unique dir per test. Remove it from lit tests in MLIR with the eventual goal to be removing support within llvm-lit.

This patch just reuses %t.o given it is deleted in between sections of the test.

%T has been deprecated for about seven years and is to be avoided given
it does not use a unique dir per test. Remove it from lit tests in MLIR
with the eventual goal to be removing support within llvm-lit.

This patch just reuses %t.o given it is deleted in between sections of
the test.
@llvmbot
Copy link
Member

llvmbot commented Jul 25, 2025

@llvm/pr-subscribers-mlir

Author: Aiden Grossman (boomanaiden154)

Changes

%T has been deprecated for about seven years and is to be avoided given it does not use a unique dir per test. Remove it from lit tests in MLIR with the eventual goal to be removing support within llvm-lit.

This patch just reuses %t.o given it is deleted in between sections of the test.


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

1 Files Affected:

  • (modified) mlir/test/mlir-runner/simple.mlir (+3-3)
diff --git a/mlir/test/mlir-runner/simple.mlir b/mlir/test/mlir-runner/simple.mlir
index 1a03b9901174f..21dabdd42825e 100644
--- a/mlir/test/mlir-runner/simple.mlir
+++ b/mlir/test/mlir-runner/simple.mlir
@@ -15,10 +15,10 @@
 // RUN: ls %t.o
 // RUN: rm %t.o
 
-// RUN: mlir-runner %s -dump-object-file -object-filename=%T/test.o \
+// RUN: mlir-runner %s -dump-object-file -object-filename=%t.o \
 // RUN:   %if target={{s390x-.*}} %{ -argext-abi-check=false %} | FileCheck %s
-// RUN: ls %T/test.o
-// RUN: rm %T/test.o
+// RUN: ls %t.o
+// RUN: rm %t.o
 
 // Declarations of C library functions.
 llvm.func @logbf(f32) -> f32

@boomanaiden154 boomanaiden154 merged commit 676314a into llvm:main Jul 26, 2025
11 checks passed
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
%T has been deprecated for about seven years and is to be avoided given
it does not use a unique dir per test. Remove it from lit tests in MLIR
with the eventual goal to be removing support within llvm-lit.

This patch just reuses %t.o given it is deleted in between sections of
the test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants