https://bugs.llvm.org/show_bug.cgi?id=50841
Bug ID: 50841
Summary: ICE when compiling OpenCL kernels for Arm CPU
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: OpenCL
Assignee: unassignedclangb...@nondot.org
Reporter: anastasia.stul...@arm.com
CC: anastasia.stul...@arm.com, llvm-bugs@lists.llvm.org
Compiling any valid OpenCL C source with kernel results in ICE.
Example:
kernel void foo(__global int* ptr)
{
*ptr = 1;
};
Command line:
clang-13 --target=arm-linux-gnueabi test.cl
The compilation fails with ICE:
fatal error: error in backend: Unsupported calling convention
This due to the fact that we add SPIR_KERNEL calling convention by default to
all kernels but the targets are expected to override it if they don't handle
it.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs