http://llvm.org/bugs/show_bug.cgi?id=21554

            Bug ID: 21554
           Summary: clang doesn't apply proper calling conventions when
                    using spir as target
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 13331
  --> http://llvm.org/bugs/attachment.cgi?id=13331&action=edit
fix for problem

when compiling an .cl file with spir as the target using a command like

clang -cc1 -emit-llvm-bc -triple spir64-unknown-unknown -cl-kernel-arg-info
-fno-builtin add.cl

the kernel misses the required "spir_kernel" calling convention specifier

I attached a patch from https://github.com/KhronosGroup/SPIR for the file

llvm/tools/clang/lib/CodeGen/TargetInfo.cpp

that will fix he problem

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to