SPIRV-Tools/include/spirv-tools
Karol Herbst e99a5c033e
spirv-link: allow linking functions with different pointer arguments (#5534)
* linker: run dedup earlier

Otherwise `linkings_to_do` might end up with stale IDs.

* linker: allow linking functions with different pointer arguments

Since llvm-17 there are no typed pointers and hte SPIRV-LLVM-Translator
doesn't know the function signature of imported functions.

I'm investigating different ways of solving this problem and adding an
option to work around it inside `spirv-link` is one of those.

The code is almost complete, just I'm having troubles constructing the
bitcast to cast the pointer parameters to the final type.

Closes: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/issues/2153

* test/linker: add tests to test the AllowPtrTypeMismatch feature
2024-07-24 08:38:19 -04:00
..
instrument.hpp opt: Remove bindless and buff addr instrumentation passes (#5657) 2024-05-02 18:52:17 -04:00
libspirv.h Add FPEncoding operand type. (#5726) 2024-07-03 13:18:40 -04:00
libspirv.hpp Add SPIRV_TOOLS_EXPORT to public C++ API (#5591) 2024-04-18 17:31:34 -04:00
linker.hpp spirv-link: allow linking functions with different pointer arguments (#5534) 2024-07-24 08:38:19 -04:00
linter.hpp Add SPIRV_TOOLS_EXPORT to public C++ API (#5591) 2024-04-18 17:31:34 -04:00
optimizer.hpp opt: split composite from array flattening (#5733) 2024-07-19 11:48:21 -04:00