You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid duplicate entries into !opencl.kernels metadata with LLVM 14
The LLVM 14 version of the SPIR-V Translator (and, consequently, OpenCL Clang)
introduces the kernel entry point wrappers functionality (see commit KhronosGroup/SPIRV-LLVM-Translator@85815e7).
As IGC's SPIR-V Reader collects root nodes for kernel argument metadata into
the `!opencl.kernels` module metadata, it treats SPIR-V entry point wrappers as
separate kernels despite that they are mapped onto the same LLVM function.
Consequently, each LLVM IR kernel function recieves a "duplicate" set of kernel
argument metadata, which breaks our kernel argument analysis passes upon a
switch to LLVM 14.
Do not update the module metadata upon encountering previously seen LLVM
functions.
This fixes#245.
0 commit comments