https://github.com/apivovarov created
https://github.com/llvm/llvm-project/pull/234471
`__clang_cuda_intrinsics.h` calls `#pragma
pop_macro("__INTRINSIC_LOAD_FAMILY")` (introduced in #144851), but omitted the
matching `#pragma push_macro("__INTRINSIC_LOAD_FAMILY")` before `#define
__INTRINSIC_LOAD_FAMILY` (unlike `__INTRINSIC_STORE_FAMILY` and the other
helper macros).
>From 80c520882eb44373885caddfa66cf7eb66f14a0e Mon Sep 17 00:00:00 2001
From: Alex Pivovarov <[email protected]>
Date: Thu, 22 Oct 2026 03:09:50 +0000
Subject: [PATCH] [Clang][CUDA] Add missing push_macro for
__INTRINSIC_LOAD_FAMILY
---
clang/lib/Headers/__clang_cuda_intrinsics.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/clang/lib/Headers/__clang_cuda_intrinsics.h
b/clang/lib/Headers/__clang_cuda_intrinsics.h
index 11a54cbf29db9..8b500f5b4f3c4 100644
--- a/clang/lib/Headers/__clang_cuda_intrinsics.h
+++ b/clang/lib/Headers/__clang_cuda_intrinsics.h
@@ -545,6 +545,7 @@ inline __device__ unsigned __funnelshift_rc(unsigned low32,
unsigned high32,
}
\
}
+#pragma push_macro("__INTRINSIC_LOAD_FAMILY")
#define __INTRINSIC_LOAD_FAMILY(__Mode, __Volatile, __Clobber)
\
__INTRINSIC_LOAD(__ld##__Mode, "ld.global." #__Mode ".s8", char,
\
unsigned int, "=r", __Volatile, __Clobber)
\
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits