[OpenMP] Emit calls to int64_t functions for amdgcn
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Thu, 22 Oct 2020 14:02:44 +0000 (15:02 +0100)
committerJonChesterfield <jonathanchesterfield@gmail.com>
Thu, 22 Oct 2020 14:02:47 +0000 (15:02 +0100)
commit09bc755deaa69b1377a8c050131f67cd276a51f3
tree0d71e965449c99828fb7164d9815bd6e8f300b94
parentb2faf75568717397a7fced8fe93bbc013df77aaf
[OpenMP] Emit calls to int64_t functions for amdgcn

[OpenMP] Emit calls to int64_t functions for amdgcn

Two functions, syncwarp and active_thread_mask, return lanemask_t. Currently
this is assumed to be int32, which is true for nvptx. Patch makes the type
target architecture dependent.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D89746
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/test/Transforms/OpenMP/add_attributes.ll
llvm/test/Transforms/OpenMP/add_attributes_amdgcn.ll [new file with mode: 0644]