[llvm-bugs] [Bug 45339] New: Support for bitfields in OpenCL
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Mar 28 12:36:41 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45339
Bug ID: 45339
Summary: Support for bitfields in OpenCL
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: OpenCL
Assignee: unassignedclangbugs at nondot.org
Reporter: drohr at jwdt.org
CC: anastasia.stulova at arm.com, llvm-bugs at lists.llvm.org
Created attachment 23283
--> https://bugs.llvm.org/attachment.cgi?id=23283&action=edit
testcase
Is there any reasons bitfields are not supported in OpenCL?
The attached code gives me the following error message compiled with clang 10
via
clang++ -o test -cl-std=clc++ -c test.cl
test.cl:12:21: error: bit-fields are not supported in OpenCL
unsigned long version : 8; /// bit 0 to 7: header version
^
test.cl:13:21: error: bit-fields are not supported in OpenCL
unsigned long headerSize : 8; /// bit 8 to 15: header size
^
test.cl:14:21: error: bit-fields are not supported in OpenCL
unsigned long blockLength : 16; /// bit 16 to 31: block length
^
test.cl:15:21: error: bit-fields are not supported in OpenCL
unsigned long feeId : 16; /// bit 32 to 47: FEE identifier
^
test.cl:16:21: error: bit-fields are not supported in OpenCL
unsigned long priority : 8; /// bit 48 to 55: priority bit
^
test.cl:17:21: error: bit-fields are not supported in OpenCL
unsigned long zero0 : 8; /// bit 56 to 63: zeroed
^
test.cl:23:18: error: expected ';' at end of declaration list
unsigned in offsetToNext : 16; /// bit 64 to 79: offset to next packet
in memory
[...]
--
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/20200328/f8e8e1c0/attachment-0001.html>
More information about the llvm-bugs
mailing list