Skip to content

[flang] Update leftover tests after merging #226602 - #228540

Merged
clementval merged 1 commit into
llvm:mainfrom
clementval:update_test
Oct 2, 2026
Merged

clementval merged 1 commit into
llvm:mainfrom
clementval:update_test

Conversation

@clementval

Copy link
Copy Markdown
Contributor

#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.

@clementval
clementval enabled auto-merge (squash) October 2, 2026 18:01
@llvmorg-github-actions llvmorg-github-actions Bot added flang Flang issues not falling into any other category flang:fir-hlfir flang:openmp labels Oct 2, 2026
@llvmorg-github-actions

llvmorg-github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

@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.


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

4 Files Affected:

  • (modified) flang/test/Analysis/AliasAnalysis/alias-analysis-absent.fir (+1-1)
  • (modified) flang/test/Analysis/AliasAnalysis/alias-analysis-regionbranch.mlir (+3-3)
  • (modified) flang/test/Analysis/AliasAnalysis/modref-call-null.fir (+1-1)
  • (modified) flang/test/Lower/OpenMP/optional-argument-map-4.f90 (+4-4)
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 razvanlupusoru left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you so much.

@clementval
clementval merged commit 1f5252f into llvm:main Oct 2, 2026
14 checks passed
@clementval
clementval deleted the update_test branch October 2, 2026 18:16
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
#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flang:fir-hlfir flang:openmp flang Flang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants