[libspirv] Fix image built-in mangled name#21537
Conversation
|
Just for my own understanding and to help other reviewers: From the Itanium C++ ABI, Section 5.1.5 Type encodings:
So this change is due to the |
|
I am wondering though, it would be nice to get away from mangling any symbols by hand, is that something you're looking to do @wenju-he? |
But isn't template based mangling standard for some SPIR-V builtins? I see that there seem to be some Intel extensions like ImageFetchArray, but that's not the only templated symbol. Maybe we could explore using C++ for these functions, the llvm libc and libc++ is already using it with the NVPTX target. |
|
SPIR-V image builtins don't use templates.
This is a good direction for the PTX image builtin implementation which is templated. I'm not sure if SPIR-V builtins follow that same pattern. |
Combination of 5aa39a7 and 5947c2a caused new fail: Unable to demangle name: _Z23__spirv_ImageArrayFetchIDv2_cmFETCH_COORD_2_2_c