LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 42560 - Mangling of pipe is broken for Windows
Summary: Mangling of pipe is broken for Windows
Status: NEW
Alias: None
Product: clang
Classification: Unclassified
Component: OpenCL (show other bugs)
Version: unspecified
Hardware: PC other
: P enhancement
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-10 02:44 PDT by Marco Antognini
Modified: 2021-01-14 07:17 PST (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Antognini 2019-07-10 02:44:06 PDT
As mentioned in http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20190708/278270.html, the pipe types are not properly mangled on Windows.

C:\b\slave\clang-x64-windows-msvc\build\llvm.src\tools\clang\test\CodeGenOpenCL\pipe_builtin.cl:9:1:
error: cannot mangle this OpenCL pipe type yet

void test1(read_only pipe int p, global int *ptr) {

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated.

It's unlikely related to D64074, which added the test that triggered the bug elsewhere: unlike in C mode, in C++ mode we are mangling user-defined functions.
Comment 1 Marco Antognini 2019-07-11 09:34:37 PDT
See also https://reviews.llvm.org/rC365557
Comment 2 Anastasia Stulova 2021-01-14 07:17:17 PST
FYI this is also an issue for OpenCL C with overloadable attribute used to declare BIFs.