[clang] [libc][nfc] Steps to allow sharing code between gpu intrin.h headers (PR #131134)
Jon Chesterfield via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 13 06:04:14 PDT 2025
================
@@ -13,11 +13,8 @@
#error "This file is intended for AMDGPU targets or offloading to AMDGPU"
#endif
-#include <stdint.h>
-
-#if !defined(__cplusplus)
-_Pragma("push_macro(\"bool\")");
-#define bool _Bool
+#ifndef __GPUINTRIN_H
+#warning "This file is intended as an implementation detail of gpuintrin.h"
----------------
JonChesterfield wrote:
yep, done
https://github.com/llvm/llvm-project/pull/131134
More information about the cfe-commits
mailing list