llvm
5532dd2b - Fix missing spir_func CC on builtin FP4/i4 conversion calls (#3746)

Commit
51 days ago
Fix missing spir_func CC on builtin FP4/i4 conversion calls (#3746) When translating SPIRV FP4/FP8/i4 conversions (`OpFConvert` etc.) back to LLVM IR, the code path that creates `__builtin_spirv_*` calls via `getOrInsertFunction` used the default calling convention. Fix by setting `CallingConv::SPIR_FUNC` on both the function declaration and the call instruction, consistent with all other builtin call sites in the translator. Original commit: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/commit/78ee81ddd6bbc93
Author
Committer
Parents
Loading