[PATCH] D134268: [Clang][OpenMP] Codegen generation for has_device_addr claues.

Jennifer Yu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 20 12:05:41 PDT 2022


jyu2 added inline comments.


================
Comment at: clang/test/OpenMP/target_has_device_addr_codegen.cpp:351
+// CHECK:       omp_offload.failed:
+// CHECK-NEXT:    call void @{{__omp_offloading_[0-9a-z]+_[0-9a-z]+}}_main_l145(i32* [[TMP2]]) #[[ATTR5:[0-9]+]]
+// CHECK-NEXT:    br label [[OMP_OFFLOAD_CONT]]
----------------
abhinavgaba wrote:
> The kernel argument should be `[[K]]` instead of `[[TMP2]]`. And the kernel's definition would need to be updated to take that extra pointer indirection into account.
Thanks @abhinavgaba!  Changed


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134268/new/

https://reviews.llvm.org/D134268



More information about the cfe-commits mailing list