[PATCH] D96515: [OpenCL] Add builtin declarations by default.

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 22 05:22:08 PST 2021


Anastasia added a subscriber: klimek.
Anastasia added a comment.

In D96515#2578666 <https://reviews.llvm.org/D96515#2578666>, @Anastasia wrote:

> In D96515#2578629 <https://reviews.llvm.org/D96515#2578629>, @thakis wrote:
>
>> Looks like this breaks tests: http://45.33.8.238/linux/39988/step_8.txt
>>
>> Please take a look, and revert for now if it takes a while to fix.
>
> Thanks for pointing this out. I think the following change should fix the issue, but I am still trying to reproduce it locally as it is taking time to build.
>
>   diff --git a/clang-tools-extra/test/pp-trace/pp-trace-pragma-opencl.cpp b/clang-tools-extra/test/pp-trace/pp-trace-pragma-opencl.cpp
>   index 8ba26c3b7396..31f61027994f 100644
>   --- a/clang-tools-extra/test/pp-trace/pp-trace-pragma-opencl.cpp
>   +++ b/clang-tools-extra/test/pp-trace/pp-trace-pragma-opencl.cpp
>   @@ -1,4 +1,4 @@
>   -// RUN: pp-trace -callbacks '*,-FileChanged,-MacroDefined' %s -- -x cl | FileCheck --strict-whitespace %s
>   +// RUN: pp-trace -callbacks '*,-FileChanged,-MacroDefined' %s -- -x cl -cl-no-stdinc | FileCheck --strict-whitespace %s
>    
>    #pragma OPENCL EXTENSION all : disable
>    #pragma OPENCL EXTENSION cl_khr_int64_base_atomics : disable
>
> FYI, @thakis would you be able to approve the fix? Otherwise, I am also ok to revert it until I figure out how to commit the fix.

@klimek, I am not very familiar with clang-tools-extra, would it be possible to look at the fix for the broken test? I can create a review if needed.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96515/new/

https://reviews.llvm.org/D96515



More information about the cfe-commits mailing list