[llvm] [AArch64][SPIR-V] Support SPIR_FUNC and SPIR_KERNEL calling conventions (PR #190515)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 8 14:48:19 PDT 2026


aobolensk wrote:

> Is SPIRV-LLVM-translator generating IR like this?

Yes, if you use it (build & run tests) on aarch64 architecture. Tests there rely on host triple: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/blob/5adf335eedd8ba0f40b96af20f66eb74b498bac5/test/DebugInfo/lit.local.cfg#L1

> Could it be changed to generate LLVM IR that doesn't use this calling convention?

That's confusing. If it is SPIR-V it is supposed to produce functions with such calling convention.

https://github.com/llvm/llvm-project/pull/190515


More information about the llvm-commits mailing list