[LLVMbugs] [Bug 21554] New: clang doesn't apply proper calling conventions when using spir as target
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Nov 12 19:19:23 PST 2014
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: unassignedclangbugs at nondot.org
Reporter: ryan.burn at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141113/ea083218/attachment.html>
More information about the llvm-bugs
mailing list