File tree Expand file tree Collapse file tree 7 files changed +1
-56
lines changed Expand file tree Collapse file tree 7 files changed +1
-56
lines changed Original file line number Diff line number Diff line change @@ -3747,30 +3747,8 @@ void SYCLIntegrationHeader::emit(raw_ostream &O) {
3747
3747
}
3748
3748
O << " };\n\n " ;
3749
3749
3750
- O << " // indices into the kernel_signatures array, each representing a "
3751
- " start"
3752
- " of\n " ;
3753
- O << " // kernel signature descriptor subarray of the kernel_signatures"
3754
- " array;\n " ;
3755
- O << " // the index order in this array corresponds to the kernel name order"
3756
- " in the\n " ;
3757
- O << " // kernel_names array\n " ;
3758
- O << " static constexpr\n " ;
3759
- O << " const unsigned kernel_signature_start[] = {\n " ;
3760
- unsigned CurStart = 0 ;
3761
-
3762
- for (unsigned I = 0 ; I < KernelDescs.size (); I++) {
3763
- auto &K = KernelDescs[I];
3764
- O << " " << CurStart;
3765
- if (I < KernelDescs.size () - 1 )
3766
- O << " ," ;
3767
- O << " // " << K.Name << " \n " ;
3768
- CurStart += K.Params .size () + 1 ;
3769
- }
3770
- O << " };\n\n " ;
3771
-
3772
3750
O << " // Specializations of KernelInfo for kernel function types:\n " ;
3773
- CurStart = 0 ;
3751
+ unsigned CurStart = 0 ;
3774
3752
3775
3753
for (const KernelDesc &K : KernelDescs) {
3776
3754
const size_t N = K.Params .size ();
Original file line number Diff line number Diff line change 25
25
// CHECK-EMPTY:
26
26
// CHECK-NEXT: };
27
27
28
- // CHECK: static constexpr
29
- // CHECK-NEXT: const unsigned kernel_signature_start[] = {
30
- // CHECK-NEXT: 0 // _ZTSZ4mainE8kernel_A
31
- // CHECK-NEXT: };
32
-
33
28
// CHECK: template <> struct KernelInfo<class kernel_A> {
34
29
35
30
#include " Inputs/sycl.hpp"
Original file line number Diff line number Diff line change 25
25
// CHECK-EMPTY:
26
26
// CHECK-NEXT: };
27
27
28
- // CHECK: static constexpr
29
- // CHECK-NEXT: const unsigned kernel_signature_start[] = {
30
- // CHECK-NEXT: 0 // _ZTSZ4mainE8kernel_C
31
- // CHECK-NEXT: };
32
-
33
28
// CHECK: template <> struct KernelInfo<class kernel_C> {
34
29
35
30
#include " Inputs/sycl.hpp"
Original file line number Diff line number Diff line change 31
31
// CHECK-EMPTY:
32
32
// CHECK-NEXT: };
33
33
34
- // CHECK: static constexpr
35
- // CHECK-NEXT: const unsigned kernel_signature_start[] = {
36
- // CHECK-NEXT: 0, // _ZTSZ4mainE8kernel_B
37
- // CHECK-NEXT: 2, // _ZTSZ4mainE8kernel_C
38
- // CHECK-NEXT: 4 // _ZTSZ4mainE8kernel_D
39
- // CHECK-NEXT: };
40
-
41
34
// CHECK: template <> struct KernelInfo<class kernel_B> {
42
35
// CHECK: template <> struct KernelInfo<class kernel_C> {
43
36
// CHECK: template <> struct KernelInfo<class kernel_D> {
Original file line number Diff line number Diff line change 18
18
// CHECK-NEXT: //--- _ZTSl
19
19
// CHECK-EMPTY:
20
20
// CHECK-NEXT: };
21
- //
22
- // CHECK: static constexpr
23
- // CHECK-NEXT: const unsigned kernel_signature_start[] = {
24
- // CHECK-NEXT: 0, // _ZTSm
25
- // CHECK-NEXT: 1 // _ZTSl
26
- // CHECK-NEXT: };
27
21
28
22
// CHECK: template <> struct KernelInfo<unsigned long> {
29
23
// CHECK: template <> struct KernelInfo<long> {
Original file line number Diff line number Diff line change 24
24
// CHECK-EMPTY:
25
25
// CHECK-NEXT:};
26
26
27
- // CHECK: static constexpr
28
- // CHECK-NEXT: const unsigned kernel_signature_start[] = {
29
- // CHECK-NEXT: 0 // _ZTSZ4mainE8kernel_A
30
- // CHECK-NEXT: };
31
-
32
27
// CHECK: template <> struct KernelInfo<class kernel_A> {
33
28
34
29
union MyUnion {
Original file line number Diff line number Diff line change 21
21
// CHECK-EMPTY:
22
22
// CHECK-NEXT: };
23
23
24
- // CHECK: static constexpr
25
- // CHECK-NEXT: const unsigned kernel_signature_start[] = {
26
- // CHECK-NEXT: 0 // _ZTSZ4mainE14wrapped_access
27
- // CHECK-NEXT: };
28
-
29
24
// CHECK: template <> struct KernelInfo<class wrapped_access> {
30
25
31
26
#include " Inputs/sycl.hpp"
You can’t perform that action at this time.
0 commit comments