Repository navigation
[flang] Update leftover tests after merging #226602 - #228540
Merged
Merged
Conversation
clementval
enabled auto-merge (squash)
October 2, 2026 18:01
|
@llvm/pr-subscribers-flang-openmp @llvm/pr-subscribers-flang-fir-hlfir Author: Valentin Clement (バレンタイン クレメン) (clementval) Changes#226602 Change the assembly format for the flang dialects. These tests were likely newer than the last rebase of the PR and need some updates. 4 Files Affected:
diff --git a/flang/test/Analysis/AliasAnalysis/alias-analysis-absent.fir b/flang/test/Analysis/AliasAnalysis/alias-analysis-absent.fir
index 70790dbd78da4..263641ae8734c 100644
--- a/flang/test/Analysis/AliasAnalysis/alias-analysis-absent.fir
+++ b/flang/test/Analysis/AliasAnalysis/alias-analysis-absent.fir
@@ -73,7 +73,7 @@ func.func @test_null_zero_bits() {
%z2 = fir.zero_bits !fir.ref<i32>
%n2 = fir.convert %z2 {test.ptr = "null_b"} : (!fir.ref<i32>) -> !fir.ref<i32>
%a = fir.alloca i32 {uniq_name = "_QFEnull_heap"}
- %d = fir.declare %a {uniq_name = "_QFEnull_heap", test.ptr = "heap"} : (!fir.ref<i32>) -> !fir.ref<i32>
+ %d = fir.declare %a uniq_name("_QFEnull_heap") {test.ptr = "heap"} : (!fir.ref<i32>) -> !fir.ref<i32>
return
}
diff --git a/flang/test/Analysis/AliasAnalysis/alias-analysis-regionbranch.mlir b/flang/test/Analysis/AliasAnalysis/alias-analysis-regionbranch.mlir
index b5054cfdeb79c..0583c8b47e31a 100644
--- a/flang/test/Analysis/AliasAnalysis/alias-analysis-regionbranch.mlir
+++ b/flang/test/Analysis/AliasAnalysis/alias-analysis-regionbranch.mlir
@@ -271,7 +271,7 @@ func.func @test_rb_allocmem_or_zero() {
func.func @test_rb_distinct_nulls() {
%cond = arith.constant true
%a = fir.alloca i32 {uniq_name = "_QFEnulljoin"}
- %d = fir.declare %a {uniq_name = "_QFEnulljoin", test.ptr = "outside_null_join"} : (!fir.ref<i32>) -> !fir.ref<i32>
+ %d = fir.declare %a uniq_name("_QFEnulljoin") {test.ptr = "outside_null_join"} : (!fir.ref<i32>) -> !fir.ref<i32>
%z_out = fir.zero_bits !fir.ref<i32>
%jf = fir.if %cond -> !fir.ref<i32> {
%z_in = fir.zero_bits !fir.ref<i32>
@@ -292,10 +292,10 @@ func.func @test_rb_distinct_nulls() {
func.func @test_rb_nulls_different_attrs() {
%cond = arith.constant true
%a = fir.alloca f32 {uniq_name = "_QFEnullattr"}
- %d_out = fir.declare %a {uniq_name = "_QFEnullattr", test.ptr = "outside_attr"} : (!fir.ref<f32>) -> !fir.ref<f32>
+ %d_out = fir.declare %a uniq_name("_QFEnullattr") {test.ptr = "outside_attr"} : (!fir.ref<f32>) -> !fir.ref<f32>
%jf = fir.if %cond -> !fir.ref<f32> {
%z = fir.zero_bits !fir.ref<f32>
- %p = fir.declare %z {fortran_attrs = #fir.var_attrs<pointer>, uniq_name = "_QFEp"} : (!fir.ref<f32>) -> !fir.ref<f32>
+ %p = fir.declare %z uniq_name("_QFEp") fortran_attrs<pointer> : (!fir.ref<f32>) -> !fir.ref<f32>
fir.result %p : !fir.ref<f32>
} else {
%z2 = fir.zero_bits !fir.ref<f32>
diff --git a/flang/test/Analysis/AliasAnalysis/modref-call-null.fir b/flang/test/Analysis/AliasAnalysis/modref-call-null.fir
index ba38fd80464d3..58faa8e95ee36 100644
--- a/flang/test/Analysis/AliasAnalysis/modref-call-null.fir
+++ b/flang/test/Analysis/AliasAnalysis/modref-call-null.fir
@@ -10,7 +10,7 @@
func.func @_QPtest_null_user_var() {
%abs = fir.absent !fir.ref<f32>
- %0 = fir.declare %abs {uniq_name = "_QFtest_null_user_varEx", test.ptr = "x"} : (!fir.ref<f32>) -> !fir.ref<f32>
+ %0 = fir.declare %abs uniq_name("_QFtest_null_user_varEx") {test.ptr = "x"} : (!fir.ref<f32>) -> !fir.ref<f32>
fir.call @_QPother() {test.ptr = "other"} : () -> ()
fir.call @_QPtakes_x(%0) {test.ptr = "takes_x"} : (!fir.ref<f32>) -> ()
return
diff --git a/flang/test/Lower/OpenMP/optional-argument-map-4.f90 b/flang/test/Lower/OpenMP/optional-argument-map-4.f90
index f4a7214efc3f7..38dbd220dc4f1 100644
--- a/flang/test/Lower/OpenMP/optional-argument-map-4.f90
+++ b/flang/test/Lower/OpenMP/optional-argument-map-4.f90
@@ -12,7 +12,7 @@ subroutine scalar(x, found)
end subroutine
! CHECK-LABEL: func.func @_QPscalar(
-! CHECK: %[[X:[^ ,:]+]]:2 = hlfir.declare {{.*}}fortran_attrs = #fir.var_attrs<optional>
+! CHECK: %[[X:[^ ,:]+]]:2 = hlfir.declare {{.*}}fortran_attrs<optional>
! CHECK: %[[PRESENT:[^ ,:]+]] = fir.is_present %[[X]]#1
! CHECK: %[[ZERO:[^ ,:]+]] = arith.constant 0 : index
! CHECK: %[[ONE:[^ ,:]+]] = arith.constant 1 : index
@@ -23,7 +23,7 @@ subroutine scalar(x, found)
! CHECK: %[[BOUNDS:[^ ,:]+]] = omp.map.bounds lower_bound(%[[ZERO]] : index) upper_bound(%[[UB]] : index) extent(%[[EXTENT]] : index)
! CHECK: %[[MAP:[^ ,:]+]] = omp.map.info var_ptr(%[[X]]#1 : !fir.ref<f32>, f32) map_clauses(storage) capture(ByRef) bounds(%[[BOUNDS]])
! CHECK: omp.target {{.*}}map_entries(%[[MAP]] -> %[[ARG:[^ ,:]+]],
-! CHECK: %[[DEVICE_X:[^ ,:]+]]:2 = hlfir.declare %[[ARG]] {fortran_attrs = #fir.var_attrs<optional>
+! CHECK: %[[DEVICE_X:[^ ,:]+]]:2 = hlfir.declare %[[ARG]] {{.*}}fortran_attrs<optional>
! CHECK: fir.is_present %[[DEVICE_X]]#0
subroutine array(n, x, found)
@@ -36,7 +36,7 @@ subroutine array(n, x, found)
end subroutine
! CHECK-LABEL: func.func @_QParray(
-! CHECK: %[[X:[^ ,:]+]]:2 = hlfir.declare {{.*}}fortran_attrs = #fir.var_attrs<optional>
+! CHECK: %[[X:[^ ,:]+]]:2 = hlfir.declare {{.*}}fortran_attrs<optional>
! CHECK: omp.map.bounds lower_bound(%[[LB0:[^ ,:]+]] : index) upper_bound(%[[UB0:[^ ,:]+]] : index) extent(%[[EXT0:[^ ,:]+]] : index)
! CHECK: omp.map.bounds lower_bound(%[[LB1:[^ ,:]+]] : index) upper_bound(%[[UB1:[^ ,:]+]] : index) extent(%[[EXT1:[^ ,:]+]] : index)
! CHECK: %[[PRESENT:[^ ,:]+]] = fir.is_present %[[X]]#1
@@ -68,7 +68,7 @@ subroutine section(n, x, found)
end subroutine
! CHECK-LABEL: func.func @_QPsection(
-! CHECK: %[[X:[^ ,:]+]]:2 = hlfir.declare {{.*}}fortran_attrs = #fir.var_attrs<optional>
+! CHECK: %[[X:[^ ,:]+]]:2 = hlfir.declare {{.*}}fortran_attrs<optional>
! CHECK: omp.map.bounds lower_bound(%[[LB:[^ ,:]+]] : index) upper_bound(%[[UB:[^ ,:]+]] : index) extent(%[[EXT:[^ ,:]+]] : index)
! CHECK: %[[PRESENT:[^ ,:]+]] = fir.is_present %[[X]]#1
! CHECK: %[[ZERO:[^ ,:]+]] = arith.constant 0 : index
|
razvanlupusoru
approved these changes
Oct 2, 2026
razvanlupusoru
left a comment
Contributor
There was a problem hiding this comment.
Thank you so much.
vzakhari
approved these changes
Oct 2, 2026
Expertcoderz
pushed a commit
to Expertcoderz/llvm-project
that referenced
this pull request
Oct 3, 2026
llvm#226602 Change the assembly format for the flang dialects. These tests were likely newer than the last rebase of the PR and need some updates.
gandhi56
pushed a commit
that referenced
this pull request
Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#226602 Change the assembly format for the flang dialects. These tests were likely newer than the last rebase of the PR and need some updates.