IRBuilder<> Builder(Ctx);
for (Function &Func : M.functions()) {
- if (!Func.isDeclaration() && AMDGPU::isKernel(Func.getCallingConv())) {
+ if (!Func.isDeclaration() && AMDGPU::isKernelCC(&Func)) {
const CallGraphNode *N = CG[&Func];
const bool CalleesRequireModuleLDS = N->size() > 0;
SmallPtrSet<const User *, 8> Visited;
SmallVector<const User *, 16> Stack(GV.users());
- assert(!F || isKernel(F->getCallingConv()));
+ assert(!F || isKernelCC(F));
while (!Stack.empty()) {
const User *V = Stack.pop_back_val();
} else if (!F) {
// For module LDS lowering, lowering is required if the user instruction
// is from non-kernel function.
- Ret |= !isKernel(UF->getCallingConv());
+ Ret |= !isKernelCC(UF);
}
continue;
}