aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/CodeGen/MachineInstrTest.cpp
diff options
context:
space:
mode:
authorAnastasia Stulova <anastasia.stulova@arm.com>2021-05-05 13:18:00 +0100
committerAnastasia Stulova <anastasia.stulova@arm.com>2021-05-05 14:58:23 +0100
commite994e74bca49831eb649e7c67955e9de7a1784b6 (patch)
tree18cdb75bde8bbb950e4937314880eb952fdda2dd /llvm/unittests/CodeGen/MachineInstrTest.cpp
parentf6ef409406d7691bed32d1835809ed4cbb14015b (diff)
downloadllvm-e994e74bca49831eb649e7c67955e9de7a1784b6.zip
llvm-e994e74bca49831eb649e7c67955e9de7a1784b6.tar.gz
llvm-e994e74bca49831eb649e7c67955e9de7a1784b6.tar.bz2
[OpenCL] Add clang extension for non-portable kernel parameters.
Added __cl_clang_non_portable_kernel_param_types extension that allows using non-portable types as kernel parameters. This allows bypassing the portability guarantees from the restrictions specified in C++ for OpenCL v1.0 s2.4. Currently this only disables the restrictions related to the data layout. The programmer should ensure the compiler generates the same layout for host and device or otherwise the argument should only be accessed on the device side. This extension could be extended to other case (e.g. permitting size_t) if desired in the future. Patch by olestrohm (Ole Strohm)! https://reviews.llvm.org/D101168
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
0 files changed, 0 insertions, 0 deletions