diff options
author | JonChesterfield <jonathanchesterfield@gmail.com> | 2019-11-19 17:23:46 +0000 |
---|---|---|
committer | JonChesterfield <jonathanchesterfield@gmail.com> | 2019-11-19 17:23:46 +0000 |
commit | 4681e2e43420fa10e4e1c17eb78649922678a440 (patch) | |
tree | e1a0f56872500c60e3eb491e4c0fe3505e3203de /openmp | |
parent | b0561b3346e7bf0ae974995ca95b917eebde18e1 (diff) | |
download | bcm5719-llvm-4681e2e43420fa10e4e1c17eb78649922678a440.tar.gz bcm5719-llvm-4681e2e43420fa10e4e1c17eb78649922678a440.zip |
[nfc][libomptarget] Write amdgcn macros in terms of compiler intrinsics
Diffstat (limited to 'openmp')
-rw-r--r-- | openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h b/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h index 80daff498ce..b2d06ab4b73 100644 --- a/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h +++ b/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h @@ -19,9 +19,9 @@ #include <stdint.h> #include "amdgcn_interface.h" -#define DEVICE __device__ -#define INLINE __inline__ DEVICE -#define NOINLINE __noinline__ DEVICE +#define DEVICE __attribute__((device)) +#define INLINE inline DEVICE +#define NOINLINE __attribute__((noinline)) DEVICE //////////////////////////////////////////////////////////////////////////////// // Kernel options |