[llvm] [AMDGPU] Remove duplicated/confusing helpers. NFCI (PR #142598)
Diana Picus via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 06:25:38 PDT 2025
================
@@ -2185,8 +2185,16 @@ bool isChainCC(CallingConv::ID CC) {
}
}
-bool isKernelCC(const Function *Func) {
- return AMDGPU::isModuleEntryFunctionCC(Func->getCallingConv());
+bool canGuaranteeTCO(CallingConv::ID CC) { return CC == CallingConv::Fast; }
+
+bool mayTailCallThisCC(CallingConv::ID CC) {
+ switch (CC) {
+ case CallingConv::C:
+ case CallingConv::AMDGPU_Gfx:
+ return true;
+ default:
+ return canGuaranteeTCO(CC);
+ }
----------------
rovka wrote:
Ok, but for consistency I'm moving all the others too. It's annoying to not be able to see all of them in one place.
https://github.com/llvm/llvm-project/pull/142598
More information about the llvm-commits
mailing list