Author: Fraser Cormack
Date: 2025-05-20T10:19:09+01:00
New Revision: 2fb6ff46f62e53e821b37d3ca0a71985969eaf44

URL: 
https://github.com/llvm/llvm-project/commit/2fb6ff46f62e53e821b37d3ca0a71985969eaf44
DIFF: 
https://github.com/llvm/llvm-project/commit/2fb6ff46f62e53e821b37d3ca0a71985969eaf44.diff

LOG: [libclc] Fix header inclusion issues

For some reason these weren't picked up by pre-commit CI.

Added: 
    

Modified: 
    libclc/clc/include/clc/geometric/clc_cross.h
    libclc/opencl/include/clc/opencl/clc.h

Removed: 
    


################################################################################
diff  --git a/libclc/clc/include/clc/geometric/clc_cross.h 
b/libclc/clc/include/clc/geometric/clc_cross.h
index 932d8ab0716d3..e5aa913abfa29 100644
--- a/libclc/clc/include/clc/geometric/clc_cross.h
+++ b/libclc/clc/include/clc/geometric/clc_cross.h
@@ -9,6 +9,8 @@
 #ifndef __CLC_GEOMETRIC_CLC_CROSS_H__
 #define __CLC_GEOMETRIC_CLC_CROSS_H__
 
+#include <clc/internal/clc.h>
+
 _CLC_OVERLOAD _CLC_DECL float3 __clc_cross(float3 p0, float3 p1);
 _CLC_OVERLOAD _CLC_DECL float4 __clc_cross(float4 p0, float4 p1);
 

diff  --git a/libclc/opencl/include/clc/opencl/clc.h 
b/libclc/opencl/include/clc/opencl/clc.h
index 0116a12932c9f..5859a00c3158b 100644
--- a/libclc/opencl/include/clc/opencl/clc.h
+++ b/libclc/opencl/include/clc/opencl/clc.h
@@ -211,9 +211,10 @@
 #include <clc/opencl/relational/select.h>
 #include <clc/opencl/relational/signbit.h>
 
+#include <clc/opencl/synchronization/cl_mem_fence_flags.h>
+
 /* 6.11.8 Synchronization Functions */
 #include <clc/opencl/synchronization/barrier.h>
-#include <clc/opencl/synchronization/cl_mem_fence_flags.h>
 
 /* 6.11.9 Explicit Memory Fence Functions */
 #include <clc/opencl/explicit_fence/explicit_memory_fence.h>


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to