[llvm] [TLI] Use AArch64 vector calling convention for ArmPL routines (PR #135790)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 15 09:47:08 PDT 2025
================
@@ -55,6 +55,9 @@ static void addVariantDeclaration(CallInst &CI, const ElementCount &VF,
Function *VecFunc =
Function::Create(VectorFTy, Function::ExternalLinkage, VFName, M);
VecFunc->copyAttributesFrom(CI.getCalledFunction());
+ if (auto CC = VD->getCallingConv()) {
+ VecFunc->setCallingConv(*CC);
+ }
----------------
paulwalker-arm wrote:
No need for `{}` here.
https://github.com/llvm/llvm-project/pull/135790
More information about the llvm-commits
mailing list