diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-07-31 23:35:09 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-07-31 23:35:09 +0000 |
commit | 96beffba15bce42e086fde5569a67c5bbf4243ee (patch) | |
tree | c8bb41985ed79f9d8d115c9a7d5d4c94e7f3127f /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 5802ab265cd36c0f75cbe906c3f2ca5addc9e48d (diff) | |
download | llvm-96beffba15bce42e086fde5569a67c5bbf4243ee.zip llvm-96beffba15bce42e086fde5569a67c5bbf4243ee.tar.gz llvm-96beffba15bce42e086fde5569a67c5bbf4243ee.tar.bz2 |
[constexpr] Support for constant evaluation of __builtin_memcpy and
__builtin_memmove (in non-type-punning cases).
This is intended to permit libc++ to make std::copy etc constexpr
without sacrificing the optimization that uses memcpy on
trivially-copyable types.
__builtin_strcpy and __builtin_wcscpy are not handled by this change.
They'd be straightforward to add, but we haven't encountered a need for
them just yet.
llvm-svn: 338455
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions