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

Abhinav Gaba via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 20 02:19:44 PDT 2022


abhinavgaba 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]]
----------------
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.


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