[PATCH] D43047: [Builtins] Overload __builtin_operator_new/delete to allow forwarding to usual allocation/deallocation functions.
Eric Fiselier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 8 15:32:12 PST 2018
EricWF updated this revision to Diff 133517.
EricWF retitled this revision from "[Builtins] Overload __builtin_operator_new/delete to accept an optional alignment parameter." to "[Builtins] Overload __builtin_operator_new/delete to allow forwarding to usual allocation/deallocation functions.".
EricWF edited the summary of this revision.
EricWF added a comment.
- Complete implementation suggested by @rsmith. The builtins now perform overload resolution to allow calling arbitrary usual allocation/deallocation functions.
- Complete tests.
https://reviews.llvm.org/D43047
Files:
include/clang/Basic/Builtins.def
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/CodeGen/CGBuiltin.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/CodeGenFunction.h
lib/Lex/PPMacroExpansion.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaExprCXX.cpp
test/CodeGenCXX/builtin-operator-new-delete.cpp
test/SemaCXX/builtin-operator-new-delete.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43047.133517.patch
Type: text/x-patch
Size: 23590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180208/90590c70/attachment-0001.bin>
More information about the cfe-commits
mailing list