Skip to content

Commit 98814ac

Browse files
committed
[flang] Build a dedicated fir-test-opt for testing
Rather than having different passes inside `fir-opt` depending on the value of `FLANG_INCLUDE_TESTS`, build two separate executables: regular `fir-opt` tool that is going to be installed, and a `fir-test-opt` to be used in the test suite. This ensures that `fir-opt` behaves consistently independently of `FLANG_INCLUDE_TESTS` value used during the build, and a test-enabled build can be used on production. It also avoids mixing dynamic libMLIR with static libraries (needed for test-related parts) in release executables. Fixes #121202
1 parent fcedf98 commit 98814ac

File tree

362 files changed

+532
-526
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

362 files changed

+532
-526
lines changed

flang/test/Analysis/AliasAnalysis/alias-analysis-1.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// CHECK-LABEL: Testing : "_QPtest"
66
// CHECK-DAG: alloca_1#0 <-> address_of#0: NoAlias

flang/test/Analysis/AliasAnalysis/alias-analysis-2.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// CHECK-LABEL: Testing : "_QFPtest"
66

flang/test/Analysis/AliasAnalysis/alias-analysis-3.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// module m
66
// type t

flang/test/Analysis/AliasAnalysis/alias-analysis-4.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// use --mlir-disable-threading so that the AA queries are serialised
44
// as well as its diagnostic output.
5-
// RUN: fir-opt %s --test-fir-alias-analysis -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
5+
// RUN: fir-test-opt %s --test-fir-alias-analysis -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
66

77
// designate for a derived type component:
88
// module m

flang/test/Analysis/AliasAnalysis/alias-analysis-5.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// CHECK-LABEL: Testing : "_QPtest1"
66
// CHECK: arraya(ii)#0 <-> arrayc(ii)#0: NoAlias

flang/test/Analysis/AliasAnalysis/alias-analysis-6.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' 2>&1 | FileCheck %s
1+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' 2>&1 | FileCheck %s
22

33
// CHECK: test_y(1)#0 <-> test_x(1)#0: MayAlias
44
func.func @_QPtest(%arg0: !fir.ref<!fir.box<!fir.ptr<!fir.array<?xf32>>>> {fir.bindc_name = "y"}) {

flang/test/Analysis/AliasAnalysis/alias-analysis-7.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' 2>&1 | FileCheck %s
1+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' 2>&1 | FileCheck %s
22

33
// leslie3d case with two allocatable module variables
44
// that cannot alias:

flang/test/Analysis/AliasAnalysis/alias-analysis-8.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' 2>&1 | FileCheck %s
1+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' 2>&1 | FileCheck %s
22

33
// Exercise that a box reference does not alias with the address loaded from the box
44
// module mm

flang/test/Analysis/AliasAnalysis/alias-analysis-9.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// Fortran source code:
66
// program TestTmpArrayAssignment

flang/test/Analysis/AliasAnalysis/alias-analysis-host-assoc.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Test alias analysis queries for host associated accesses.
2-
// RUN: fir-opt %s --test-fir-alias-analysis -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
2+
// RUN: fir-test-opt %s --test-fir-alias-analysis -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
33

44
// subroutine test1
55
// integer :: x(10)

flang/test/Analysis/AliasAnalysis/alias-analysis-omp-private-allocatable.mlir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// Fortran code before simplification:
66
// SUBROUTINE mysub(ns,ne)

flang/test/Analysis/AliasAnalysis/alias-analysis-omp-target-1.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// Fortran source code:
66
//

flang/test/Analysis/AliasAnalysis/alias-analysis-omp-target-2.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// Fortran source code:
66
//

flang/test/Analysis/AliasAnalysis/alias-analysis-omp-teams-distribute-private-ptr.mlir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// Fortran code:
66
// program main

flang/test/Analysis/AliasAnalysis/alias-analysis-omp-teams-distribute-private.mlir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// Fortran code:
66
//

flang/test/Analysis/AliasAnalysis/modref-call-after-inlining.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
1+
// RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
22
// RUN: --mlir-disable-threading %s -o /dev/null 2>&1 | FileCheck %s
33

44
// Test fir.call modref with internal procedures after the host function has been inlined in

flang/test/Analysis/AliasAnalysis/modref-call-args.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: bbc -emit-hlfir %s -o - | %python %S/gen_mod_ref_test.py | \
2-
! RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
2+
! RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
33
! RUN: --mlir-disable-threading -o /dev/null 2>&1 | FileCheck %s
44

55
! Test fir.call modref when arguments are passed to the call. This focus

flang/test/Analysis/AliasAnalysis/modref-call-dummies.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: bbc -emit-hlfir %s -o - | %python %S/gen_mod_ref_test.py | \
2-
! RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
2+
! RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
33
! RUN: --mlir-disable-threading -o /dev/null 2>&1 | FileCheck %s
44

55
! Test fir.call modref for dummy argument variables. This focus on

flang/test/Analysis/AliasAnalysis/modref-call-equivalence.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: bbc -emit-hlfir %s -o - | %python %S/gen_mod_ref_test.py | \
2-
! RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
2+
! RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
33
! RUN: --mlir-disable-threading -o /dev/null 2>&1 | FileCheck %s
44

55
! Test that mod ref effects for variables captured in internal procedures

flang/test/Analysis/AliasAnalysis/modref-call-globals.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: bbc -emit-hlfir %s -o - | %python %S/gen_mod_ref_test.py | \
2-
! RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
2+
! RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
33
! RUN: --mlir-disable-threading -o /dev/null 2>&1 | FileCheck %s
44

55
! Test fir.call modref for global variables (module, saved, common).

flang/test/Analysis/AliasAnalysis/modref-call-internal-proc.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: bbc -emit-hlfir %s -o - | %python %S/gen_mod_ref_test.py | \
2-
! RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
2+
! RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
33
! RUN: --mlir-disable-threading -o /dev/null 2>&1 | FileCheck %s
44

55
! Test fir.call modref with internal procedures

flang/test/Analysis/AliasAnalysis/modref-call-locals.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: bbc -emit-hlfir %s -o - | %python %S/gen_mod_ref_test.py | \
2-
! RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
2+
! RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
33
! RUN: --mlir-disable-threading -o /dev/null 2>&1 | FileCheck %s
44

55
! Test fir.call modref for local variables.

flang/test/Analysis/AliasAnalysis/modref-call-not-fortran.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
1+
// RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
22
// RUN: --mlir-disable-threading %s -o /dev/null 2>&1 | FileCheck %s
33

44
// Test that fir.call modref is conservative when it cannot enusre it is

flang/test/Analysis/AliasAnalysis/ptr-component.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// is via fir.coordinate_of instead of hlfir.designate. We would like alias
66
// analysis results to be the same in both versions.
77

8-
// RUN: fir-opt %s -split-input-file -o /dev/null --mlir-disable-threading \
8+
// RUN: fir-test-opt %s -split-input-file -o /dev/null --mlir-disable-threading \
99
// RUN: -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' \
1010
// RUN: 2>&1 | FileCheck -match-full-lines %s
1111

flang/test/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ set(FLANG_TEST_DEPENDS
6464
count
6565
not
6666
module_files
67-
fir-opt
67+
fir-test-opt
6868
tco
6969
bbc
7070
llvm-dis

flang/test/Driver/omp-cse-region-boundary.f90

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
!This test checks that when compiling an OpenMP program for the target device
22
!CSE is not done across target op region boundaries. It also checks that when
33
!compiling for the host CSE is done.
4-
!RUN: %flang_fc1 -fopenmp-is-target-device -emit-mlir -fopenmp %s -o - | fir-opt -cse | FileCheck %s -check-prefix=CHECK-DEVICE
5-
!RUN: %flang_fc1 -emit-mlir -fopenmp %s -o - | fir-opt -cse | FileCheck %s -check-prefix=CHECK-HOST
6-
!RUN: bbc -fopenmp-is-target-device -emit-fir -fopenmp %s -o - | fir-opt -cse | FileCheck %s -check-prefix=CHECK-DEVICE
7-
!RUN: bbc -emit-fir -fopenmp %s -o - | fir-opt -cse | FileCheck %s -check-prefix=CHECK-HOST
4+
!RUN: %flang_fc1 -fopenmp-is-target-device -emit-mlir -fopenmp %s -o - | fir-test-opt -cse | FileCheck %s -check-prefix=CHECK-DEVICE
5+
!RUN: %flang_fc1 -emit-mlir -fopenmp %s -o - | fir-test-opt -cse | FileCheck %s -check-prefix=CHECK-HOST
6+
!RUN: bbc -fopenmp-is-target-device -emit-fir -fopenmp %s -o - | fir-test-opt -cse | FileCheck %s -check-prefix=CHECK-DEVICE
7+
!RUN: bbc -emit-fir -fopenmp %s -o - | fir-test-opt -cse | FileCheck %s -check-prefix=CHECK-HOST
88

99
!Constant should be present inside target region.
1010
!CHECK-DEVICE: omp.target

flang/test/Fir/CUDA/cuda-abstract-result.mlir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt -pass-pipeline='builtin.module(gpu.module(gpu.func(abstract-result)))' %s | FileCheck %s
1+
// RUN: fir-test-opt -pass-pipeline='builtin.module(gpu.module(gpu.func(abstract-result)))' %s | FileCheck %s
22

33
gpu.module @test {
44
gpu.func @_QMinterval_mPtest1(%arg0: !fir.ref<!fir.type<_QMinterval_mTinterval{inf:f32,sup:f32}>>, %arg1: !fir.ref<f32>) -> !fir.type<_QMinterval_mTinterval{inf:f32,sup:f32}> {

flang/test/Fir/CUDA/cuda-alloc-free.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt --cuf-convert %s | FileCheck %s
1+
// RUN: fir-test-opt --cuf-convert %s | FileCheck %s
22

33
module attributes {dlti.dl_spec = #dlti.dl_spec<#dlti.dl_entry<f80, dense<128> : vector<2xi64>>, #dlti.dl_entry<i128, dense<128> : vector<2xi64>>, #dlti.dl_entry<i64, dense<64> : vector<2xi64>>, #dlti.dl_entry<!llvm.ptr<272>, dense<64> : vector<4xi64>>, #dlti.dl_entry<!llvm.ptr<271>, dense<32> : vector<4xi64>>, #dlti.dl_entry<!llvm.ptr<270>, dense<32> : vector<4xi64>>, #dlti.dl_entry<f128, dense<128> : vector<2xi64>>, #dlti.dl_entry<f64, dense<64> : vector<2xi64>>, #dlti.dl_entry<f16, dense<16> : vector<2xi64>>, #dlti.dl_entry<i32, dense<32> : vector<2xi64>>, #dlti.dl_entry<i16, dense<16> : vector<2xi64>>, #dlti.dl_entry<i8, dense<8> : vector<2xi64>>, #dlti.dl_entry<i1, dense<8> : vector<2xi64>>, #dlti.dl_entry<!llvm.ptr, dense<64> : vector<4xi64>>, #dlti.dl_entry<"dlti.endianness", "little">, #dlti.dl_entry<"dlti.stack_alignment", 128 : i64>>} {
44

flang/test/Fir/CUDA/cuda-allocate.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt --cuf-convert %s | FileCheck %s
1+
// RUN: fir-test-opt --cuf-convert %s | FileCheck %s
22

33
module attributes {dlti.dl_spec = #dlti.dl_spec<#dlti.dl_entry<f80, dense<128> : vector<2xi64>>, #dlti.dl_entry<i128, dense<128> : vector<2xi64>>, #dlti.dl_entry<i64, dense<64> : vector<2xi64>>, #dlti.dl_entry<!llvm.ptr<272>, dense<64> : vector<4xi64>>, #dlti.dl_entry<!llvm.ptr<271>, dense<32> : vector<4xi64>>, #dlti.dl_entry<!llvm.ptr<270>, dense<32> : vector<4xi64>>, #dlti.dl_entry<f128, dense<128> : vector<2xi64>>, #dlti.dl_entry<f64, dense<64> : vector<2xi64>>, #dlti.dl_entry<f16, dense<16> : vector<2xi64>>, #dlti.dl_entry<i32, dense<32> : vector<2xi64>>, #dlti.dl_entry<i16, dense<16> : vector<2xi64>>, #dlti.dl_entry<i8, dense<8> : vector<2xi64>>, #dlti.dl_entry<i1, dense<8> : vector<2xi64>>, #dlti.dl_entry<!llvm.ptr, dense<64> : vector<4xi64>>, #dlti.dl_entry<"dlti.endianness", "little">, #dlti.dl_entry<"dlti.stack_alignment", 128 : i64>>} {
44

flang/test/Fir/CUDA/cuda-code-gen.mlir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt --split-input-file --fir-to-llvm-ir="target=x86_64-unknown-linux-gnu" %s | FileCheck %s
1+
// RUN: fir-test-opt --split-input-file --fir-to-llvm-ir="target=x86_64-unknown-linux-gnu" %s | FileCheck %s
22

33
module attributes {dlti.dl_spec = #dlti.dl_spec<#dlti.dl_entry<f80, dense<128> : vector<2xi64>>, #dlti.dl_entry<i128, dense<128> : vector<2xi64>>, #dlti.dl_entry<i64, dense<64> : vector<2xi64>>, #dlti.dl_entry<!llvm.ptr<272>, dense<64> : vector<4xi64>>, #dlti.dl_entry<!llvm.ptr<271>, dense<32> : vector<4xi64>>, #dlti.dl_entry<!llvm.ptr<270>, dense<32> : vector<4xi64>>, #dlti.dl_entry<f128, dense<128> : vector<2xi64>>, #dlti.dl_entry<f64, dense<64> : vector<2xi64>>, #dlti.dl_entry<f16, dense<16> : vector<2xi64>>, #dlti.dl_entry<i32, dense<32> : vector<2xi64>>, #dlti.dl_entry<i16, dense<16> : vector<2xi64>>, #dlti.dl_entry<i8, dense<8> : vector<2xi64>>, #dlti.dl_entry<i1, dense<8> : vector<2xi64>>, #dlti.dl_entry<!llvm.ptr, dense<64> : vector<4xi64>>, #dlti.dl_entry<"dlti.endianness", "little">, #dlti.dl_entry<"dlti.stack_alignment", 128 : i64>>} {
44
func.func @_QQmain() attributes {fir.bindc_name = "cufkernel_global"} {

flang/test/Fir/CUDA/cuda-compiler-generated-names.mlir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt --split-input-file --compiler-generated-names --fir-to-llvm-ir="target=x86_64-unknown-linux-gnu type-descriptors-renamed-for-assembly=true" %s | FileCheck %s
1+
// RUN: fir-test-opt --split-input-file --compiler-generated-names --fir-to-llvm-ir="target=x86_64-unknown-linux-gnu type-descriptors-renamed-for-assembly=true" %s | FileCheck %s
22

33
module @mod1 attributes {gpu.container} {
44
gpu.module @gpu1 {

flang/test/Fir/CUDA/cuda-constructor-2.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt --split-input-file --cuf-add-constructor %s | FileCheck %s
1+
// RUN: fir-test-opt --split-input-file --cuf-add-constructor %s | FileCheck %s
22

33
module attributes {dlti.dl_spec = #dlti.dl_spec<#dlti.dl_entry<!llvm.ptr, dense<64> : vector<4xi64>>, #dlti.dl_entry<!llvm.ptr<271>, dense<32> : vector<4xi64>>, #dlti.dl_entry<!llvm.ptr<270>, dense<32> : vector<4xi64>>, #dlti.dl_entry<f128, dense<128> : vector<2xi64>>, #dlti.dl_entry<f64, dense<64> : vector<2xi64>>, #dlti.dl_entry<f80, dense<128> : vector<2xi64>>, #dlti.dl_entry<f16, dense<16> : vector<2xi64>>, #dlti.dl_entry<i32, dense<32> : vector<2xi64>>, #dlti.dl_entry<i16, dense<16> : vector<2xi64>>, #dlti.dl_entry<i128, dense<128> : vector<2xi64>>, #dlti.dl_entry<i8, dense<8> : vector<2xi64>>, #dlti.dl_entry<!llvm.ptr<272>, dense<64> : vector<4xi64>>, #dlti.dl_entry<i64, dense<64> : vector<2xi64>>, #dlti.dl_entry<i1, dense<8> : vector<2xi64>>, #dlti.dl_entry<"dlti.endianness", "little">, #dlti.dl_entry<"dlti.stack_alignment", 128 : i64>>, fir.defaultkind = "a1c4d8i4l4r4", fir.kindmap = "", gpu.container_module, llvm.data_layout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128", llvm.ident = "flang version 20.0.0 (https://github.com/llvm/llvm-project.git cae351f3453a0a26ec8eb2ddaf773c24a29d929e)", llvm.target_triple = "x86_64-unknown-linux-gnu"} {
44

flang/test/Fir/CUDA/cuda-constructor.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -fcuda -emit-hlfir %s -o - | fir-opt --cuf-add-constructor | FileCheck %s
1+
! RUN: bbc -fcuda -emit-hlfir %s -o - | fir-test-opt --cuf-add-constructor | FileCheck %s
22

33
program main
44
real, device :: ahost(10)

flang/test/Fir/CUDA/cuda-data-transfer.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt --cuf-convert %s | FileCheck %s
1+
// RUN: fir-test-opt --cuf-convert %s | FileCheck %s
22

33
module attributes {dlti.dl_spec = #dlti.dl_spec<#dlti.dl_entry<f80, dense<128> : vector<2xi64>>, #dlti.dl_entry<i128, dense<128> : vector<2xi64>>, #dlti.dl_entry<i64, dense<64> : vector<2xi64>>, #dlti.dl_entry<!llvm.ptr<272>, dense<64> : vector<4xi64>>, #dlti.dl_entry<!llvm.ptr<271>, dense<32> : vector<4xi64>>, #dlti.dl_entry<!llvm.ptr<270>, dense<32> : vector<4xi64>>, #dlti.dl_entry<f128, dense<128> : vector<2xi64>>, #dlti.dl_entry<f64, dense<64> : vector<2xi64>>, #dlti.dl_entry<f16, dense<16> : vector<2xi64>>, #dlti.dl_entry<i32, dense<32> : vector<2xi64>>, #dlti.dl_entry<i16, dense<16> : vector<2xi64>>, #dlti.dl_entry<i8, dense<8> : vector<2xi64>>, #dlti.dl_entry<i1, dense<8> : vector<2xi64>>, #dlti.dl_entry<!llvm.ptr, dense<64> : vector<4xi64>>, #dlti.dl_entry<"dlti.endianness", "little">, #dlti.dl_entry<"dlti.stack_alignment", 128 : i64>>} {
44

flang/test/Fir/CUDA/cuda-device-context.mlir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt --simplify-intrinsics %s | FileCheck %s
1+
// RUN: fir-test-opt --simplify-intrinsics %s | FileCheck %s
22

33
func.func @_QPsum_in_device(%arg0: !fir.ref<!fir.array<?xi32>> {cuf.data_attr = #cuf.cuda<device>, fir.bindc_name = "a"}, %arg1: i32 {fir.bindc_name = "n"}) attributes {cuf.proc_attr = #cuf.cuda_proc<global>} {
44
%c5_i32 = arith.constant 5 : i32

flang/test/Fir/CUDA/cuda-device-global.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
// RUN: fir-opt --split-input-file --cuf-device-global %s | FileCheck %s
2+
// RUN: fir-test-opt --split-input-file --cuf-device-global %s | FileCheck %s
33

44

55
module attributes {fir.defaultkind = "a1c4d8i4l4r4", fir.kindmap = "", gpu.container_module} {

flang/test/Fir/CUDA/cuda-external-mangling.mlir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt --split-input-file --external-name-interop %s | FileCheck %s
1+
// RUN: fir-test-opt --split-input-file --external-name-interop %s | FileCheck %s
22

33
module @mod attributes {gpu.container_module} {
44

flang/test/Fir/CUDA/cuda-global-addr.mlir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt --split-input-file --cuf-convert %s | FileCheck %s
1+
// RUN: fir-test-opt --split-input-file --cuf-convert %s | FileCheck %s
22

33
module attributes {dlti.dl_spec = #dlti.dl_spec<#dlti.dl_entry<f80, dense<128> : vector<2xi64>>, #dlti.dl_entry<i128, dense<128> : vector<2xi64>>, #dlti.dl_entry<i64, dense<64> : vector<2xi64>>, #dlti.dl_entry<!llvm.ptr<272>, dense<64> : vector<4xi64>>, #dlti.dl_entry<!llvm.ptr<271>, dense<32> : vector<4xi64>>, #dlti.dl_entry<!llvm.ptr<270>, dense<32> : vector<4xi64>>, #dlti.dl_entry<f128, dense<128> : vector<2xi64>>, #dlti.dl_entry<f64, dense<64> : vector<2xi64>>, #dlti.dl_entry<f16, dense<16> : vector<2xi64>>, #dlti.dl_entry<i32, dense<32> : vector<2xi64>>, #dlti.dl_entry<i16, dense<16> : vector<2xi64>>, #dlti.dl_entry<i8, dense<8> : vector<2xi64>>, #dlti.dl_entry<i1, dense<8> : vector<2xi64>>, #dlti.dl_entry<!llvm.ptr, dense<64> : vector<4xi64>>, #dlti.dl_entry<"dlti.endianness", "little">, #dlti.dl_entry<"dlti.stack_alignment", 128 : i64>>} {
44
fir.global @_QMmod1Eadev {data_attr = #cuf.cuda<device>} : !fir.array<10xi32> {

0 commit comments

Comments
 (0)