[Openmp-commits] [openmp] 4681e2e - [nfc][libomptarget] Write	amdgcn macros in terms of compiler intrinsics
    via Openmp-commits 
    openmp-commits at lists.llvm.org
       
    Tue Nov 19 09:23:59 PST 2019
    
    
  
Author: JonChesterfield
Date: 2019-11-19T17:23:46Z
New Revision: 4681e2e43420fa10e4e1c17eb78649922678a440
URL: https://github.com/llvm/llvm-project/commit/4681e2e43420fa10e4e1c17eb78649922678a440
DIFF: https://github.com/llvm/llvm-project/commit/4681e2e43420fa10e4e1c17eb78649922678a440.diff
LOG: [nfc][libomptarget] Write amdgcn macros in terms of compiler intrinsics
Added: 
    
Modified: 
    openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
Removed: 
    
################################################################################
diff  --git a/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h b/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
index 80daff498ce8..b2d06ab4b73a 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
        
    
    
More information about the Openmp-commits
mailing list