Description
See this test for a good example: https://github.com/intel/llvm/blob/e35466be32bd41607a10a39bf36546f7667829fa/clang/test/CodeGenSYCL/kernel-param-pod-array-ih.cpp
Above the kernel_signature_start global, we print the comment:
// indices into the kernel_signatures array, each representing a start of
// kernel signature descriptor subarray of the kernel_signatures array;
// the index order in this array corresponds to the kernel name order in the
// kernel_names array
HOWEVER, the values are wrong, every kernel results in it getting 1-too-many values. In this example, if you count the indices, they should be 0, 5, 11 instead of 0, 6, 13.
This has been broken for AT LEAST 1 month (based on when this test was done), and I have no idea how much longer before then. The KernelInfo structs don't actually use this array for anything, so I suspect that it is unused, we might be able to just remove the printing of this (and any infrastructure).
@romanovvlad : Can you comment as to whether the runtime is using this? Are you OK if we remove that array?