From: Sven van Haastregt Date: Fri, 8 Apr 2022 11:08:10 +0000 (+0100) Subject: [OpenCL] Add generic addrspace guards for get_fence X-Git-Tag: upstream/15.0.7~11023 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1331ad22c31fc2ed6890fa046c1e2333e369251b;p=platform%2Fupstream%2Fllvm.git [OpenCL] Add generic addrspace guards for get_fence Align guards of these builtins with opencl-c.h. --- diff --git a/clang/lib/Sema/OpenCLBuiltins.td b/clang/lib/Sema/OpenCLBuiltins.td index a57b744..b64b508 100644 --- a/clang/lib/Sema/OpenCLBuiltins.td +++ b/clang/lib/Sema/OpenCLBuiltins.td @@ -923,7 +923,7 @@ def : Builtin<"write_mem_fence", [Void, MemFenceFlags]>; // OpenCL v3.0 s6.15.10 - Address Space Qualifier Functions. // to_global, to_local, to_private are declared in Builtins.def. -let MinVersion = CL20 in { +let Extension = FuncExtOpenCLCGenericAddressSpace in { // The OpenCL 3.0 specification defines these with a "gentype" argument indicating any builtin // type or user-defined type, which cannot be represented currently. Hence we slightly diverge // by providing only the following overloads with a void pointer.