The addr space qualifier can be added optionally for lambdas after the attributes. They will alter the default address space of lambda call operator that is in __generic address space by default for OpenCL (see https://reviews.llvm.org/D69938).
Syntax:
[ captures ] ( params ) specifiers exception attr opencl_addrspace -> ret { body }
Example:
[&] (int i) mutable __global { ... };
On the call into lambda a compatibility check will be performed to determine whether address space of lambda object and its call operator are compatible. This will follow regular address space conversion rules and there will be no difference to the behavior of address spaces in method qualifiers (see: https://reviews.llvm.org/D55850)