[clang] 0211877 - [HIP] Add __managed__ macro to header

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 4 13:23:40 PST 2021


Author: Yaxun (Sam) Liu
Date: 2021-02-04T16:22:42-05:00
New Revision: 0211877a0754c06e3aeaba690a1c860c6edf6288

URL: https://github.com/llvm/llvm-project/commit/0211877a0754c06e3aeaba690a1c860c6edf6288
DIFF: https://github.com/llvm/llvm-project/commit/0211877a0754c06e3aeaba690a1c860c6edf6288.diff

LOG: [HIP] Add __managed__ macro to header

Added: 
    

Modified: 
    clang/lib/Headers/__clang_hip_runtime_wrapper.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/Headers/__clang_hip_runtime_wrapper.h b/clang/lib/Headers/__clang_hip_runtime_wrapper.h
index 81a16a265ae8..4fd8f23d49f3 100644
--- a/clang/lib/Headers/__clang_hip_runtime_wrapper.h
+++ b/clang/lib/Headers/__clang_hip_runtime_wrapper.h
@@ -27,6 +27,7 @@
 #define __global__ __attribute__((global))
 #define __shared__ __attribute__((shared))
 #define __constant__ __attribute__((constant))
+#define __managed__ __attribute__((managed))
 
 #if !defined(__cplusplus) || __cplusplus < 201103L
   #define nullptr NULL;


        


More information about the cfe-commits mailing list