[llvm-bugs] [Bug 50841] New: ICE when compiling OpenCL kernels for Arm CPU

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 24 07:08:57 PDT 2021


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: unassignedclangbugs at nondot.org
          Reporter: anastasia.stulova at arm.com
                CC: anastasia.stulova at arm.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210624/7c5a716f/attachment.html>


More information about the llvm-bugs mailing list