summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorAnastasia Stulova <anastasia.stulova@arm.com>2019-12-03 17:24:33 +0000
committerAnastasia Stulova <anastasia.stulova@arm.com>2019-12-04 12:25:20 +0000
commite6522a96f56ce0257ab8cc6fca77bf9ea4462fa6 (patch)
treebc7fb5ed0bf428b18e16e0d4ed86d662e74959c5 /llvm/lib/Support/CommandLine.cpp
parent92ce2aff680e31a726c17267e36ff13a1ef31696 (diff)
downloadbcm5719-llvm-e6522a96f56ce0257ab8cc6fca77bf9ea4462fa6.tar.gz
bcm5719-llvm-e6522a96f56ce0257ab8cc6fca77bf9ea4462fa6.zip
[OpenCL] Allow addr space qualifiers on lambda call expressions
The addr space qualifier can be added optionally for lambdas after the attributes. They will alter the default addr space of lambda call operator that is in generic address space by default for OpenCL. 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 addr space conversion rules and there will be no difference to how addr spaces work in method qualifiers. Tags: #clang Differential Revision: https://reviews.llvm.org/D70242
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud