[llvm] [clang] [CUDA][HIP] Improve variable registration with the new driver (PR #73177)

Yaxun Liu via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 13:54:30 PST 2023


================
@@ -63,6 +63,12 @@ class CGCUDARuntime {
       OffloadGlobalSurfaceEntry = 0x2,
       /// Mark the entry as a texture variable.
       OffloadGlobalTextureEntry = 0x3,
+      /// Mark the entry as being extern.
+      OffloadGlobalExtern = 0x4,
----------------
yxsamliu wrote:

once people start to use these enums, it is difficult to change them since it will break binary backward compatibility

https://github.com/llvm/llvm-project/pull/73177


More information about the llvm-commits mailing list