[flang-commits] [flang] [flang][hlfir][openacc] Updated LIT tests checks. (PR #66099)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Tue Sep 12 08:50:35 PDT 2023


================
@@ -1,10 +1,13 @@
 ! This test checks lowering of OpenACC loop directive.
 
-! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s
+! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR
+! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR
 
 ! CHECK-LABEL: acc.firstprivate.recipe @firstprivatization_ref_50xf32 : !fir.ref<!fir.array<50xf32>> init {
 ! CHECK: ^bb0(%{{.*}}: !fir.ref<!fir.array<50xf32>>):
 ! CHECK:   %[[ALLOCA:.*]] = fir.alloca !fir.array<50xf32>
+! FIXME: we need hlfir.declare here to satisfy the assumptions about
+!        the HLFIR lowering, i.e. that every varible has fir/hlfir.declare.
----------------
clementval wrote:

Yes I think your note is correct. I can update the recipe generation for that. 

https://github.com/llvm/llvm-project/pull/66099


More information about the flang-commits mailing list