[libclc] [libclc] Add OpenCL atomic_*_explicit builtins (PR #168318)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 2 16:37:10 PST 2025


================
@@ -28,7 +28,7 @@ function(compile_to_bc)
   get_filename_component( FILE_EXT ${ARG_INPUT} EXT )
   if( NOT ${FILE_EXT} STREQUAL ".ll" )
     # Pass '-c' when not running the preprocessor
-    set( PP_OPTS -c )
+    set( PP_OPTS -c -include opencl-c-base.h )
----------------
arsenm wrote:

Maybe should be using -finclude-default-header or -fdeclare-opencl-builtin instead? 

I'm assuming this picks up the clang builtin copy, not the duplicated name one in libclc? 

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


More information about the cfe-commits mailing list