[flang-commits] [flang] bd53dfe - [flang][cuda][NFC] Fix some typos and misplaced comment (#205933)

via flang-commits flang-commits at lists.llvm.org
Thu Jun 25 19:06:26 PDT 2026


Author: Valentin Clement (バレンタイン クレメン)
Date: 2026-06-25T19:06:21-07:00
New Revision: bd53dfe3f45207cbd96ebfaaa4fe1a204268d27e

URL: https://github.com/llvm/llvm-project/commit/bd53dfe3f45207cbd96ebfaaa4fe1a204268d27e
DIFF: https://github.com/llvm/llvm-project/commit/bd53dfe3f45207cbd96ebfaaa4fe1a204268d27e.diff

LOG: [flang][cuda][NFC] Fix some typos and misplaced comment (#205933)

Added: 
    

Modified: 
    flang/test/Semantics/CUDA/cuf-proc-attr-error.cuf
    flang/test/Semantics/CUDA/cuf09.cuf
    flang/test/Semantics/CUDA/cuf14.cuf
    flang/test/Semantics/CUDA/cuf15.cuf

Removed: 
    


################################################################################
diff  --git a/flang/test/Semantics/CUDA/cuf-proc-attr-error.cuf b/flang/test/Semantics/CUDA/cuf-proc-attr-error.cuf
index d153dfb65dfc1..4a79bad5d8a63 100644
--- a/flang/test/Semantics/CUDA/cuf-proc-attr-error.cuf
+++ b/flang/test/Semantics/CUDA/cuf-proc-attr-error.cuf
@@ -1,5 +1,5 @@
 ! RUN: %python %S/../test_errors.py %s %flang_fc1
-! Test conflicting CUDA subprogram attributes
+! Test empty or invalid CUDA subprogram attributes
 module m1
  contains
   !ERROR: expected DEVICE, GLOBAL, GRID_GLOBAL, or HOST attribute

diff  --git a/flang/test/Semantics/CUDA/cuf09.cuf b/flang/test/Semantics/CUDA/cuf09.cuf
index 182c5d4190b6f..9e2b583386f7a 100644
--- a/flang/test/Semantics/CUDA/cuf09.cuf
+++ b/flang/test/Semantics/CUDA/cuf09.cuf
@@ -129,7 +129,7 @@ module m
     do i = 1, 10
       if (i == 1) then
         !ERROR: Statement may not appear in cuf kernel code
-        exit ! ok
+        exit
       end if
 
       !ERROR: Statement may not appear in cuf kernel code

diff  --git a/flang/test/Semantics/CUDA/cuf14.cuf b/flang/test/Semantics/CUDA/cuf14.cuf
index 28bd410ad0034..370e9bf3bb338 100644
--- a/flang/test/Semantics/CUDA/cuf14.cuf
+++ b/flang/test/Semantics/CUDA/cuf14.cuf
@@ -62,8 +62,8 @@ program m
   allocate(actual_host(10))
 
   call host_and_device(actual_host)     ! Should resolve to sub_device
-  call all(actual_host)                 ! Should resolved to unified
-  call all_without_unified(actual_host) ! Should resolved to managed
+  call all(actual_host)                 ! Should resolve to unified
+  call all_without_unified(actual_host) ! Should resolve to managed
   call optional_extra_args(actual_host, i, i) ! Should resolve to sub_unified_5args
 end
 

diff  --git a/flang/test/Semantics/CUDA/cuf15.cuf b/flang/test/Semantics/CUDA/cuf15.cuf
index 030dd6ff8ffe8..4a72a5c04e388 100644
--- a/flang/test/Semantics/CUDA/cuf15.cuf
+++ b/flang/test/Semantics/CUDA/cuf15.cuf
@@ -45,8 +45,8 @@ program m
   allocate(actual_host(10))
 
   call host_and_device(actual_host)     ! Should resolve to sub_device
-  call all(actual_host)                 ! Should resolved to unified
-  call all_without_managed(actual_host) ! Should resolved to managed
+  call all(actual_host)                 ! Should resolve to managed
+  call all_without_managed(actual_host) ! Should resolve to unified
 end
 
 ! CHECK: fir.call @_QMmatchingPsub_device


        


More information about the flang-commits mailing list