Skip to content

[libspirv] Add include guards where appropriate #18666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libclc/libspirv/include/libspirv/image/image.h
Original file line number Diff line number Diff line change
@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//

#if defined(__opencl_c_images)

_CLC_OVERLOAD _CLC_DECL float __spirv_ImageRead__Rfloat(image2d_t image,
int2 coord);
_CLC_OVERLOAD _CLC_DECL float __spirv_ImageRead__Rfloat(image2d_t image,
@@ -113,3 +115,5 @@ _CLC_OVERLOAD _CLC_DECL void __spirv_ImageWrite(image2d_t image, int4 coord,
_CLC_OVERLOAD _CLC_DECL void __spirv_ImageWrite(image3d_t image, int4 coord,
half4 texel);
#endif

#endif
4 changes: 4 additions & 0 deletions libclc/libspirv/include/libspirv/spirv_types.h
Original file line number Diff line number Diff line change
@@ -50,12 +50,16 @@ typedef struct {
float real, imag;
} complex_float;

#ifdef cl_khr_fp64
typedef struct {
double real, imag;
} complex_double;
#endif

#ifdef cl_khr_fp16
typedef struct {
half real, imag;
} complex_half;
#endif

#endif // CLC_SPIRV_TYPES