Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,10 @@ static Error runAOTCompile(StringRef InputFile, StringRef OutputFile,

// TODO: Consider using LLVM-IR metadata to identify globals of interest
bool isKernel(const Function &F) {
const CallingConv::ID CC = F.getCallingConv();
return CC == CallingConv::SPIR_KERNEL || CC == CallingConv::AMDGPU_KERNEL ||
CC == CallingConv::PTX_Kernel;
const llvm::CallingConv::ID CC = F.getCallingConv();
return CC == llvm::CallingConv::SPIR_KERNEL ||
CC == llvm::CallingConv::AMDGPU_KERNEL ||
CC == llvm::CallingConv::PTX_Kernel;
}

/// Performs the following steps:
Expand Down