[PATCH] D48349: [ADT] Add llvm::unique_function which is like std::function but supporting move-only closures.

Chandler Carruth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 29 18:24:31 PDT 2018


chandlerc updated this revision to Diff 153607.
chandlerc added a comment.
Herald added a subscriber: dexonsmith.

Add even more testing and rework how we forward parameters through the various
level of call wrapping and type erasure. This minimizes the copies and moves
when those do occur. We also use an optimization to keep things pass-by-value
where it will end up especially beneficial and can't be observed.


Repository:
  rL LLVM

https://reviews.llvm.org/D48349

Files:
  llvm/include/llvm/ADT/FunctionExtras.h
  llvm/include/llvm/Support/Compiler.h
  llvm/include/llvm/Support/PointerLikeTypeTraits.h
  llvm/unittests/ADT/CMakeLists.txt
  llvm/unittests/ADT/FunctionExtrasTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48349.153607.patch
Type: text/x-patch
Size: 21667 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180630/3809c1e7/attachment.bin>


More information about the llvm-commits mailing list