Skip to content

Commit e42e936

Browse files
authored
[NFC][libspirv] Use clc/integer/gentype.inc in mad24 and mul24 (#18950)
llvm-diff shows no change to libspirv-amdgcn--amdhsa.bc
1 parent 477a5fd commit e42e936

File tree

5 files changed

+10
-60
lines changed

5 files changed

+10
-60
lines changed

libclc/libspirv/lib/generic/integer/integer-gentype.inc

Lines changed: 0 additions & 58 deletions
This file was deleted.

libclc/libspirv/lib/generic/integer/mad24.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
#include <libspirv/spirv.h>
1111

1212
#define __CLC_BODY <mad24.inc>
13-
#include <integer-gentype.inc>
13+
#include <clc/integer/gentype.inc>

libclc/libspirv/lib/generic/integer/mad24.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#if __CLC_GENSIZE == 32
10+
911
#ifdef __CLC_GEN_S
1012
#define DECL __spirv_ocl_s_mad24
1113
#else
@@ -18,3 +20,5 @@ _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE DECL(__CLC_GENTYPE x, __CLC_GENTYPE y,
1820
}
1921

2022
#undef DECL
23+
24+
#endif // __CLC_GENSIZE == 32

libclc/libspirv/lib/generic/integer/mul24.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
#include <libspirv/spirv.h>
1111

1212
#define __CLC_BODY <mul24.inc>
13-
#include <integer-gentype.inc>
13+
#include <clc/integer/gentype.inc>

libclc/libspirv/lib/generic/integer/mul24.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#if __CLC_GENSIZE == 32
10+
911
#ifdef __CLC_GEN_S
1012
#define DECL __spirv_ocl_s_mul24
1113
#else
@@ -17,3 +19,5 @@ _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE DECL(__CLC_GENTYPE x, __CLC_GENTYPE y) {
1719
}
1820

1921
#undef DECL
22+
23+
#endif // __CLC_GENSIZE == 32

0 commit comments

Comments
 (0)