[Openmp-commits] [PATCH] D90251: [AMDGPU] Add __builtin_amdgcn_grid_size

Jon Chesterfield via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Oct 27 10:25:20 PDT 2020


JonChesterfield created this revision.
JonChesterfield added reviewers: yaxunl, arsenm, b-sumner, cfang, rjmccall, Anastasia.
Herald added subscribers: openmp-commits, cfe-commits, dexonsmith, kerbowa, t-tye, tpr, dstuttard, nhaehnle, jvesely, kzhuravl.
Herald added projects: clang, OpenMP.
JonChesterfield requested review of this revision.
Herald added subscribers: sstefan1, wdng.
Herald added a reviewer: jdoerfert.

[AMDGPU] Add __builtin_amdgcn_grid_size

Similar to D76772 <https://reviews.llvm.org/D76772>, loads the data from the dispatch pointer. Marked invariant.

Patch also updates the openmp devicertl to use this builtin.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90251

Files:
  clang/include/clang/Basic/BuiltinsAMDGPU.def
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/test/CodeGenOpenCL/builtins-amdgcn.cl
  openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.hip

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90251.301052.patch
Type: text/x-patch
Size: 4648 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20201027/152112d8/attachment.bin>


More information about the Openmp-commits mailing list