[OpenCL] Add generic addrspace guards for get_fence
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Fri, 8 Apr 2022 11:08:10 +0000 (12:08 +0100)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Fri, 8 Apr 2022 11:08:10 +0000 (12:08 +0100)
Align guards of these builtins with opencl-c.h.

clang/lib/Sema/OpenCLBuiltins.td

index a57b744..b64b508 100644 (file)
@@ -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.