[Mlir-commits] [mlir] [MLIR] Remove uses of %T from lit tests (PR #150725)
Aiden Grossman
llvmlistbot at llvm.org
Fri Jul 25 16:58:19 PDT 2025
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/150725
%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.
>From 5e1c30f749b7b6caf67b37b28fdb1c5df76a805f Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Fri, 25 Jul 2025 23:56:23 +0000
Subject: [PATCH] [MLIR] Remove uses of %T from lit tests
%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.
---
mlir/test/mlir-runner/simple.mlir | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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
More information about the Mlir-commits
mailing list