diff options
author | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2019-12-07 13:31:46 +0100 |
---|---|---|
committer | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2019-12-07 13:31:46 +0100 |
commit | 071dca24cea9dcabe25cbe98c4053d874183be37 (patch) | |
tree | b80381d495a6141d27e40183ae080eb7a6d022de /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 9db13b5a7d43096a9ab5f7cef6e1b7e2dc9c9c63 (diff) | |
download | bcm5719-llvm-071dca24cea9dcabe25cbe98c4053d874183be37.tar.gz bcm5719-llvm-071dca24cea9dcabe25cbe98c4053d874183be37.zip |
[OpenMP] Require trivially copyable type for mapping
A trivially copyable type provides a trivial copy constructor and a trivial
copy assignment operator. This is enough for the runtime to memcpy the data
to the device. Additionally there must be no virtual functions or virtual
base classes and the destructor is guaranteed to be trivial, ie performs
no action.
The runtime does not require trivial default constructors because on alloc
the memory is undefined. Thus, weaken the warning to be only issued if the
mapped type is not trivially copyable.
Differential Revision: https://reviews.llvm.org/D71134
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions