[libcxx] r284208 - Update OS X ABI list

2016-10-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 01:49:30 2016 New Revision: 284208 URL: http://llvm.org/viewvc/llvm-project?rev=284208&view=rev Log: Update OS X ABI list Modified: libcxx/trunk/lib/abi/x86_64-apple-darwin16.0.abilist Modified: libcxx/trunk/lib/abi/x86_64-apple-darwin16.0.abilist URL: http:/

[libcxx] r284207 - Correct ABI changelog revision number

2016-10-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 01:47:37 2016 New Revision: 284207 URL: http://llvm.org/viewvc/llvm-project?rev=284207&view=rev Log: Correct ABI changelog revision number Modified: libcxx/trunk/lib/abi/CHANGELOG.TXT Modified: libcxx/trunk/lib/abi/CHANGELOG.TXT URL: http://llvm.org/viewvc/ll

[libcxx] r284206 - Implement P0035R4 -- Add C++17 aligned allocation functions

2016-10-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 01:46:30 2016 New Revision: 284206 URL: http://llvm.org/viewvc/llvm-project?rev=284206&view=rev Log: Implement P0035R4 -- Add C++17 aligned allocation functions Summary: This patch implements the library side of P0035R4. The implementation is thanks to @rsmith. I

[PATCH] D25448: [ubsan] Disable -fsanitize=vptr checks for devirtualized calls

2016-10-13 Thread John McCall via cfe-commits
rjmccall added a comment. Wait, can you talk me through the bug here? Why is final-based devirtualization here different from, say, user-directed devirtualization via a qualified method name? It sounds to me from your description that you're not sure why this is happening. If this indeed onl

[libcxx] r284205 - Cleanup LIT testing doc

2016-10-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 01:15:27 2016 New Revision: 284205 URL: http://llvm.org/viewvc/llvm-project?rev=284205&view=rev Log: Cleanup LIT testing doc Modified: libcxx/trunk/docs/TestingLibcxx.rst Modified: libcxx/trunk/docs/TestingLibcxx.rst URL: http://llvm.org/viewvc/llvm-project/l

[PATCH] D25591: Implement P0035R4 -- Add C++17 aligned allocation functions

2016-10-13 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 74619. EricWF added a comment. Cleanup abi list changes. https://reviews.llvm.org/D25591 Files: include/new lib/abi/CHANGELOG.TXT lib/abi/x86_64-linux-gnu.abilist src/new.cpp test/libcxx/language.support/support.dynamic/new_faligned_allocation.sh.c

[PATCH] D25593: [libcxx] Build with -fvisibility-inlines-hidden -- Remove 20 inline definitions from the dylib

2016-10-13 Thread Eric Fiselier via cfe-commits
EricWF created this revision. EricWF added reviewers: mclow.lists, emaste, dexonsmith, joker-eph, compnerd, jroelofs, danalbert, dim. EricWF added a subscriber: cfe-commits. Herald added subscribers: modocache, mgorny, beanz. This patch turns on `-fvisibility-inlines-hidden` when building the dy

[libcxx] r284200 - Remove two ABI symbols added after the 3.9 release

2016-10-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 00:29:46 2016 New Revision: 284200 URL: http://llvm.org/viewvc/llvm-project?rev=284200&view=rev Log: Remove two ABI symbols added after the 3.9 release Modified: libcxx/trunk/include/string libcxx/trunk/lib/abi/x86_64-linux-gnu.abilist Modified: libcxx/tru

[libcxx] r284199 - Add ABI changelog entry for

2016-10-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Oct 14 00:10:06 2016 New Revision: 284199 URL: http://llvm.org/viewvc/llvm-project?rev=284199&view=rev Log: Add ABI changelog entry for Modified: libcxx/trunk/lib/abi/CHANGELOG.TXT Modified: libcxx/trunk/lib/abi/CHANGELOG.TXT URL: http://llvm.org/viewvc/llvm-projec

[PATCH] D25451: [libcxx] [test] limited_allocator should be limited_allocator's best friend forever

2016-10-13 Thread Eric Fiselier via cfe-commits
EricWF closed this revision. EricWF added a comment. I committed this fix a couple days ago when helping the libstdc++ maintainers setup our test suite. https://reviews.llvm.org/D25451 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://

[PATCH] D25591: Implement P0035R4 -- Add C++17 aligned allocation functions

2016-10-13 Thread Eric Fiselier via cfe-commits
EricWF created this revision. EricWF added reviewers: mclow.lists, rsmith. EricWF added subscribers: cfe-commits, rsmith. This patch implements the library side of P0035R4. The implementation is thanks to @rsmith. In addition to the C++17 implementation, the library implementation can be explic

[libcxx] r284194 - Revert r284193 - it is not correct on OS X

2016-10-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Oct 13 23:21:24 2016 New Revision: 284194 URL: http://llvm.org/viewvc/llvm-project?rev=284194&view=rev Log: Revert r284193 - it is not correct on OS X Modified: libcxx/trunk/lib/abi/x86_64-linux-gnu.abilist libcxx/trunk/src/string.cpp Modified: libcxx/trunk/lib/a

[libcxx] r284193 - Re-export two previously exported std::string functions.

2016-10-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Oct 13 23:14:24 2016 New Revision: 284193 URL: http://llvm.org/viewvc/llvm-project?rev=284193&view=rev Log: Re-export two previously exported std::string functions. These functions were removed from the dylib sometime between the 3.9 release and now. This patch manually e

[libcxx] r284188 - Fix CMake configuration error and add ABI lists for OS X.

2016-10-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Oct 13 21:55:19 2016 New Revision: 284188 URL: http://llvm.org/viewvc/llvm-project?rev=284188&view=rev Log: Fix CMake configuration error and add ABI lists for OS X. The primary reason for this patch is to add the OS X ABI lists for 3.9 and ToT. However while working on

r284187 - Fix bogus assert breaking modules self-host.

2016-10-13 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 13 21:35:11 2016 New Revision: 284187 URL: http://llvm.org/viewvc/llvm-project?rev=284187&view=rev Log: Fix bogus assert breaking modules self-host. Modified: cfe/trunk/lib/AST/ASTContext.cpp Modified: cfe/trunk/lib/AST/ASTContext.cpp URL: http://llvm.org/viewvc

[PATCH] D25458: Don't create builtin declaration when looking for typo corrections in C++

2016-10-13 Thread Albert Gutowski via cfe-commits
agutowski abandoned this revision. agutowski added a comment. It's part of a bigger problem (Clang shows warnings about functions guessed by typo-fixing in other cases as well), but it's not that important and I can't see any straighforward solution that would do more good than harm, so I'm clo

[PATCH] D25448: [ubsan] Disable -fsanitize=vptr checks for devirtualized calls

2016-10-13 Thread Vedant Kumar via cfe-commits
vsk updated this revision to Diff 74606. vsk added a comment. - Remove the set of blacklisted object pointers; pass down a flag which indicates whether or not the member call check should be skipped. https://reviews.llvm.org/D25448 Files: lib/CodeGen/CGExpr.cpp lib/CodeGen/CGExprCXX.cpp

r284184 - Use SubstInitializer instead of SubstExpr when instantiating a default

2016-10-13 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 13 20:12:20 2016 New Revision: 284184 URL: http://llvm.org/viewvc/llvm-project?rev=284184&view=rev Log: Use SubstInitializer instead of SubstExpr when instantiating a default argument, in order to correctly instantiate the initializer. Modified: cfe/trunk/lib/Sema

[PATCH] D25581: Implement __builtin_alloca_with_align for GCC compatibility

2016-10-13 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:1037-1039 +llvm::APSInt AlignInBits; +if (!E->getArg(1)->EvaluateAsInt(AlignInBits, CGM.getContext())) + break; This takes the alignment in **bits**? That's so ridiculously dumb that

[PATCH] D25334: Implement __stosb intrinsic as a volatile memset

2016-10-13 Thread Albert Gutowski via cfe-commits
agutowski updated this revision to Diff 74603. agutowski added a comment. force the alignment to 1 https://reviews.llvm.org/D25334 Files: include/clang/Basic/BuiltinsX86.def lib/CodeGen/CGBuiltin.cpp lib/Headers/intrin.h test/CodeGen/ms-intrinsics.c test/Headers/ms-intrin.cpp Index:

[libcxx] r284179 - remove warnings from google-benchmarks in libcxx

2016-10-13 Thread Sebastian Pop via cfe-commits
Author: spop Date: Thu Oct 13 19:07:57 2016 New Revision: 284179 URL: http://llvm.org/viewvc/llvm-project?rev=284179&view=rev Log: remove warnings from google-benchmarks in libcxx Differential Revision: https://reviews.llvm.org/D25522 Patch written by Aditya Kumar. Modified: libcxx/trunk/be

[PATCH] D25586: [clang-move] Use cl::list and cl::CommaSeparated for the list of names.

2016-10-13 Thread Alexander Shaposhnikov via cfe-commits
alexshap created this revision. alexshap added reviewers: ioeric, klimek. alexshap added a subscriber: cfe-commits. alexshap set the repository for this revision to rL LLVM. This diff replaces manual parsing of the comma-separated list of names with cl::list and cl::CommaSeparated. Test plan: ma

[PATCH] D25579: [codeview] emit debug info for indirect virtual base classes

2016-10-13 Thread David Majnemer via cfe-commits
majnemer added inline comments. Comment at: lib/CodeGen/CGDebugInfo.cpp:1392 +auto *BaseTy = getOrCreateType(BI.getType(), Unit); +if (SeenTypes.find(BaseTy) != SeenTypes.end()) + continue; ruiu wrote: > zturner wrote: > > rnk wrote: > > > IMO `SeenT

[PATCH] D25334: Implement __stosb intrinsic as a volatile memset

2016-10-13 Thread David Majnemer via cfe-commits
majnemer added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp: +Address Dest = EmitPointerWithAlignment(E->getArg(0)); +return Builder.CreateMemSet(Dest, Ops[1], Ops[2], true); } I think we should manually force the alignment to 1 instead o

[PATCH] D25556: [Sema] Add variable captured by a block to the enclosing lambda's potential capture list

2016-10-13 Thread John McCall via cfe-commits
rjmccall added a comment. Richard should probably weigh in about whether we should be recording potential captures at *all* capturing scopes. But at the very least, I think you have a bug here where the variable is declared outside of the block but within the lambda; in that case, it is defini

[PATCH] D25334: Implement __stosb intrinsic as a volatile memset

2016-10-13 Thread Albert Gutowski via cfe-commits
agutowski updated this revision to Diff 74596. agutowski added a comment. rebase https://reviews.llvm.org/D25334 Files: include/clang/Basic/BuiltinsX86.def lib/CodeGen/CGBuiltin.cpp lib/Headers/intrin.h test/CodeGen/ms-intrinsics.c test/Headers/ms-intrin.cpp Index: lib/Headers/intri

[PATCH] D25534: Implement part of P0031; adding `constexpr` to `reverse_iterator`

2016-10-13 Thread Eric Fiselier via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM modulo inline comments. Comment at: include/iterator:95 +template constexpr reverse_iterator(const reverse_iterator& u); +template constexpr reverse_iterator&

r284176 - Reinstate r281429, reverted in r281452, with a fix for its mishandling of

2016-10-13 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 13 18:04:14 2016 New Revision: 284176 URL: http://llvm.org/viewvc/llvm-project?rev=284176&view=rev Log: Reinstate r281429, reverted in r281452, with a fix for its mishandling of compiles without -fmodules-local-submodule-visibility. Original commit message: [modules]

Re: [PATCH] D22130: Link static PIE programs against rcrt0.o on OpenBSD

2016-10-13 Thread Brad Smith via cfe-commits
On 09/10/16 05:27, Stefan Kempf via cfe-commits wrote: Ed Maste wrote: emaste added a comment. Seems fine to me, but I'm not particularly knowledgeable about OpenBSD's toolchain. Could you commit it please if it looks ok? This diff is what OpenBSD has in its tree. We'd like to get it upstrea

Re: r276159 - [modules] Don't emit initializers for VarDecls within a module eagerly whenever

2016-10-13 Thread Richard Smith via cfe-commits
On Thu, Oct 13, 2016 at 11:52 AM, Manman via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Hi Richard, > > I committed a follow-up patch in r284142 to fix issues with C/ObjC. > > Let me know if you see any problem. > Looks good, thank you! > Manman > > > On Jul 20, 2016, at 12:10 PM, Richa

Re: r284174 - Disable swiftcall test on windows: More brutal way to appease windows bots

2016-10-13 Thread Reid Kleckner via cfe-commits
These kinds of crashes typically happen when you have something like a use-after-destroy of a temporary, like a misuse of Twine or std::initializer_list. On Thu, Oct 13, 2016 at 3:47 PM, Arnold Schwaighofer via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: arnolds > Date: Thu Oct 13

[PATCH] D25579: [codeview] emit debug info for indirect virtual base classes

2016-10-13 Thread Rui Ueyama via cfe-commits
ruiu added inline comments. Comment at: lib/CodeGen/CGDebugInfo.cpp:1392 +auto *BaseTy = getOrCreateType(BI.getType(), Unit); +if (SeenTypes.find(BaseTy) != SeenTypes.end()) + continue; zturner wrote: > rnk wrote: > > IMO `SeenTypes.count(...)` would

r284174 - Disable swiftcall test on windows: More brutal way to appease windows bots

2016-10-13 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Thu Oct 13 17:47:03 2016 New Revision: 284174 URL: http://llvm.org/viewvc/llvm-project?rev=284174&view=rev Log: Disable swiftcall test on windows: More brutal way to appease windows bots The backtrace on the bot does not give me any indication what is wrong. The test case in

[PATCH] D25581: Implement __builtin_alloca_with_align for GCC compatibility

2016-10-13 Thread Reid Kleckner via cfe-commits
rnk created this revision. rnk added a reviewer: rsmith. rnk added a subscriber: cfe-commits. GCC documents that the alignment parameter is in bits and it must be: - an integer constant - a power of two - a multiple of CHAR_BITS - below an unspecified limit This lines up directly with the requir

r284172 - Add 64-bit MS _Interlocked functions as builtins again

2016-10-13 Thread Albert Gutowski via cfe-commits
Author: agutowski Date: Thu Oct 13 17:35:07 2016 New Revision: 284172 URL: http://llvm.org/viewvc/llvm-project?rev=284172&view=rev Log: Add 64-bit MS _Interlocked functions as builtins again Summary: Previously global 64-bit versions of _Interlocked functions broke buildbots on i386, so now I'm

[PATCH] D25576: Add 64-bit MS _Interlocked functions as builtins again

2016-10-13 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm https://reviews.llvm.org/D25576 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r284167 - fix _BitScan intrinsics missing header warnings; fix some line endings

2016-10-13 Thread Albert Gutowski via cfe-commits
Author: agutowski Date: Thu Oct 13 16:55:16 2016 New Revision: 284167 URL: http://llvm.org/viewvc/llvm-project?rev=284167&view=rev Log: fix _BitScan intrinsics missing header warnings; fix some line endings Modified: cfe/trunk/include/clang/Basic/BuiltinsARM.def cfe/trunk/include/clang/Ba

[PATCH] D25576: Add 64-bit MS _Interlocked functions as builtins again

2016-10-13 Thread Albert Gutowski via cfe-commits
agutowski updated this revision to Diff 74586. agutowski added a comment. make target-independent Interlocked builtins use EmitMSVCBuiltinExpr https://reviews.llvm.org/D25576 Files: include/clang/Basic/BuiltinsARM.def include/clang/Basic/BuiltinsX86_64.def lib/CodeGen/CGBuiltin.cpp lib/

[PATCH] D25503: [analyzer] Remove superquadratic behaviour from DataflowWorklist

2016-10-13 Thread Alexander Shaposhnikov via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284166: [analyzer] Remove superquadratic behaviour from DataflowWorklist (authored by alexshap). Changed prior to commit: https://reviews.llvm.org/D25503?vs=74437&id=74585#toc Repository: rL LLVM ht

r284166 - [analyzer] Remove superquadratic behaviour from DataflowWorklist

2016-10-13 Thread Alexander Shaposhnikov via cfe-commits
Author: alexshap Date: Thu Oct 13 16:31:46 2016 New Revision: 284166 URL: http://llvm.org/viewvc/llvm-project?rev=284166&view=rev Log: [analyzer] Remove superquadratic behaviour from DataflowWorklist The class DataflowWorklist internally maintains a sorted list of pointers to CFGBlock and the me

[libcxx] r284165 - Update the status of three papers that do not require library changes

2016-10-13 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu Oct 13 16:15:09 2016 New Revision: 284165 URL: http://llvm.org/viewvc/llvm-project?rev=284165&view=rev Log: Update the status of three papers that do not require library changes Modified: libcxx/trunk/www/cxx1z_status.html Modified: libcxx/trunk/www/cxx1z_status.ht

[PATCH] D25576: Add 64-bit MS _Interlocked functions as builtins again

2016-10-13 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:2730 +llvm::AtomicOrdering::SequentiallyConsistent); +return Builder.CreateSub(RMWI, ConstantInt::get(IntTy, 1)); } agutowski wrote: > rnk wrote: > > Can you make a helper similar to

[libcxx] r284164 - Implement http://wg21.link/p0302r1: Removing Allocator Support in std::function. These functions never worked, and as far as I know, no one ever called them.

2016-10-13 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu Oct 13 16:06:03 2016 New Revision: 284164 URL: http://llvm.org/viewvc/llvm-project?rev=284164&view=rev Log: Implement http://wg21.link/p0302r1: Removing Allocator Support in std::function. These functions never worked, and as far as I know, no one ever called them. Ad

[PATCH] D25571: Add and use isDiscardableGVALinkage function.

2016-10-13 Thread Justin Lebar via cfe-commits
jlebar added inline comments. Comment at: clang/include/clang/Sema/Sema.h:9244 /// CUDAKnownEmittedFns. - llvm::DenseMap> CUDACallGraph; + llvm::DenseMap> CUDACallGraph; rnk wrote: > I think you meant to make this change as part of the original patch. Oop

[PATCH] D25520: [CodeCompletion] Add block placeholders when completing member access for Objective-C block property setters

2016-10-13 Thread Argyrios Kyrtzidis via cfe-commits
akyrtzi added a comment. Another recommendation for follow-up. When invoking completion on the right-hand side of the assignment it should provide a block literal completion with high priority. For example, when completing like this: `self.foo = ` Repository: rL LLVM https://reviews.llvm.o

r284162 - Add required targets to tests to (hopefully) appease bots

2016-10-13 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Thu Oct 13 15:59:23 2016 New Revision: 284162 URL: http://llvm.org/viewvc/llvm-project?rev=284162&view=rev Log: Add required targets to tests to (hopefully) appease bots Modified: cfe/trunk/test/CodeGen/64bit-swiftcall.c Modified: cfe/trunk/test/CodeGen/64bit-swiftcall.

[PATCH] D25571: Add and use isDiscardableGVALinkage function.

2016-10-13 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284159: Add and use isDiscardableGVALinkage function. (authored by jlebar). Changed prior to commit: https://reviews.llvm.org/D25571?vs=74562&id=74580#toc Repository: rL LLVM https://reviews.llvm.or

r284159 - Add and use isDiscardableGVALinkage function.

2016-10-13 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Thu Oct 13 15:52:17 2016 New Revision: 284159 URL: http://llvm.org/viewvc/llvm-project?rev=284159&view=rev Log: Add and use isDiscardableGVALinkage function. Reviewers: rnk Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25571 Modified: cfe/tr

[PATCH] D25541: [CUDA] Emit deferred diagnostics during Sema rather than during codegen.

2016-10-13 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. jlebar marked an inline comment as done. Closed by commit rL284158: [CUDA] Emit deferred diagnostics during Sema rather than during codegen. (authored by jlebar). Changed prior to commit: https://reviews.llvm.org/D25541?v

r284158 - [CUDA] Emit deferred diagnostics during Sema rather than during codegen.

2016-10-13 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Thu Oct 13 15:52:12 2016 New Revision: 284158 URL: http://llvm.org/viewvc/llvm-project?rev=284158&view=rev Log: [CUDA] Emit deferred diagnostics during Sema rather than during codegen. Summary: Emitting deferred diagnostics during codegen was a hack. It did work, but usabili

Re: [PATCH] D24991: Inline hot functions in libcxx shared_ptr implementation.

2016-10-13 Thread Marshall Clow via cfe-commits
On Thu, Oct 13, 2016 at 11:48 AM, Sebastian Pop wrote: > sebpop added a comment. > > In https://reviews.llvm.org/D24991#565861, @EricWF wrote: > > > In https://reviews.llvm.org/D24991#565715, @mclow.lists wrote: > > > > > How does this play with existing binaries? Applications that expect > thes

[PATCH] D25576: Add 64-bit MS _Interlocked functions as builtins again

2016-10-13 Thread Albert Gutowski via cfe-commits
agutowski added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:2730 +llvm::AtomicOrdering::SequentiallyConsistent); +return Builder.CreateSub(RMWI, ConstantInt::get(IntTy, 1)); } rnk wrote: > Can you make a helper similar to MakeBinaryAtomi

[PATCH] D25541: [CUDA] Emit deferred diagnostics during Sema rather than during codegen.

2016-10-13 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm https://reviews.llvm.org/D25541 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25571: Add and use isDiscardableGVALinkage function.

2016-10-13 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Comment at: clang/include/clang/Sema/Sema.h:9244 /// CUDAKnownEmittedFns. - llvm::DenseMap> CUDACallGraph; + llvm::DenseMap> CUDACallGraph; I think yo

[PATCH] D25576: Add 64-bit MS _Interlocked functions as builtins again

2016-10-13 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:2730 +llvm::AtomicOrdering::SequentiallyConsistent); +return Builder.CreateSub(RMWI, ConstantInt::get(IntTy, 1)); } Can you make a helper similar to MakeBinaryAtomicValue for inc/dec

[PATCH] D25576: Add 64-bit MS _Interlocked functions as builtins again

2016-10-13 Thread Albert Gutowski via cfe-commits
agutowski created this revision. agutowski added reviewers: rnk, hans, majnemer, mstorsjo. agutowski added a subscriber: cfe-commits. Herald added a subscriber: aemerson. Previously global 64-bit versions of _Interlocked functions broke buildbots on i386, so now I'm adding them as builtins for x8

r284156 - test: attempt to repair SCEI buildbots

2016-10-13 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Oct 13 15:10:22 2016 New Revision: 284156 URL: http://llvm.org/viewvc/llvm-project?rev=284156&view=rev Log: test: attempt to repair SCEI buildbots The tests target ARM, ensure that the ARM target is registered. Modified: cfe/trunk/test/CodeGenObjC/runtime-abi-match

[clang-tools-extra] r284155 - [clang-move] error out when fail to create new files.

2016-10-13 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Oct 13 14:49:19 2016 New Revision: 284155 URL: http://llvm.org/viewvc/llvm-project?rev=284155&view=rev Log: [clang-move] error out when fail to create new files. Modified: clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp Modified: clang-tools-extra/trunk/cla

r284154 - CodeGen: ensure that the runtime calling convention matches

2016-10-13 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Oct 13 14:45:08 2016 New Revision: 284154 URL: http://llvm.org/viewvc/llvm-project?rev=284154&view=rev Log: CodeGen: ensure that the runtime calling convention matches Incorrect specification of the calling convention results in UB which can cause the code path to be el

[PATCH] D20785: Python 3.5 compatibility for clang-format.py

2016-10-13 Thread Vassil Vassilev via cfe-commits
v.g.vassilev closed this revision. v.g.vassilev added a comment. Thanks I am closing it! Repository: rL LLVM https://reviews.llvm.org/D20785 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cf

r284150 - Swift Calling Convention: Fix out of bounds access

2016-10-13 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Thu Oct 13 14:19:37 2016 New Revision: 284150 URL: http://llvm.org/viewvc/llvm-project?rev=284150&view=rev Log: Swift Calling Convention: Fix out of bounds access Use iterator instead of address of element in vector It is not valid to access one after the last element. rda

[PATCH] D25292: [coroutines] Add diagnostics for copy/move assignment operators and functions with deduced return types.

2016-10-13 Thread Eric Fiselier via cfe-commits
EricWF added a comment. Ping. https://reviews.llvm.org/D25292 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25468: [libcxx] Do not declare the thread api when __external_threading is present

2016-10-13 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. @EricWF: Gentle ping. https://reviews.llvm.org/D25468 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r284148 - Print stack trace for clang-move tool.

2016-10-13 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Oct 13 14:04:19 2016 New Revision: 284148 URL: http://llvm.org/viewvc/llvm-project?rev=284148&view=rev Log: Print stack trace for clang-move tool. Modified: clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp Modified: clang-tools-extra/trunk/clang-move/tool/Cl

Re: [libunwind] r284125 - [libunwind] Add missing include. NFC.

2016-10-13 Thread Asiri Rathnayake via cfe-commits
Had a look at the C99 spec, according to section 7.18.1.1 ("Exact-width integer types"), the types uint_t should be available in stdint.h itself, inttypes.h on the other hand builds on stdint.h and provides more functionality. I don't see a particular need to include inttypes.h here? Cheers, / A

[clang-tools-extra] r284147 - Print stack trace for clang-change-namespace tool.

2016-10-13 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Oct 13 13:56:14 2016 New Revision: 284147 URL: http://llvm.org/viewvc/llvm-project?rev=284147&view=rev Log: Print stack trace for clang-change-namespace tool. Modified: clang-tools-extra/trunk/change-namespace/tool/ClangChangeNamespace.cpp Modified: clang-tools-extra

[PATCH] D25139: [CUDA] Add Sema::CUDADiagBuilder and Sema::CUDADiagIfDeviceCode().

2016-10-13 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284143: [CUDA] Add Sema::CUDADiagBuilder and Sema::CUDADiagIf{Device,Host}Code(). (authored by jlebar). Changed prior to commit: https://reviews.llvm.org/D25139?vs=73576&id=74564#toc Repository: rL L

[PATCH] D25150: [CUDA] Allow static variables in __host__ __device__ functions, so long as they're never codegen'ed for device.

2016-10-13 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284145: [CUDA] Allow static variables in __host__ __device__ functions, so long as… (authored by jlebar). Changed prior to commit: https://reviews.llvm.org/D25150?vs=73182&id=74566#toc Repository: rL

[PATCH] D25143: [CUDA] Disallow __shared__ variables in host functions.

2016-10-13 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284144: [CUDA] Disallow __shared__ variables in host functions. (authored by jlebar). Changed prior to commit: https://reviews.llvm.org/D25143?vs=73172&id=74565#toc Repository: rL LLVM https://revie

r284145 - [CUDA] Allow static variables in __host__ __device__ functions, so long as they're never codegen'ed for device.

2016-10-13 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Thu Oct 13 13:45:17 2016 New Revision: 284145 URL: http://llvm.org/viewvc/llvm-project?rev=284145&view=rev Log: [CUDA] Allow static variables in __host__ __device__ functions, so long as they're never codegen'ed for device. Reviewers: tra, rnk Subscribers: cfe-commits Diff

r284143 - [CUDA] Add Sema::CUDADiagBuilder and Sema::CUDADiagIf{Device, Host}Code().

2016-10-13 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Thu Oct 13 13:45:08 2016 New Revision: 284143 URL: http://llvm.org/viewvc/llvm-project?rev=284143&view=rev Log: [CUDA] Add Sema::CUDADiagBuilder and Sema::CUDADiagIf{Device,Host}Code(). Summary: Together these let you easily create diagnostics that - are never emitted for h

Re: [libcxxabi] r284128 - [libcxxabi] Refactor pthread usage into a separate API

2016-10-13 Thread Asiri Rathnayake via cfe-commits
Should be fixed in r284141. / Asiri On Thu, Oct 13, 2016 at 7:20 PM, Asiri Rathnayake < asiri.rathnay...@gmail.com> wrote: > Looks like this broke the gcc builder: http://lab.llvm.org: > 8011/builders/libcxx-libcxxabi-x86_64-linux-ubuntu- > gcc49-cxx11/builds/573/steps/build.libcxxabi/logs/stdio

r284144 - [CUDA] Disallow __shared__ variables in host functions.

2016-10-13 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Thu Oct 13 13:45:13 2016 New Revision: 284144 URL: http://llvm.org/viewvc/llvm-project?rev=284144&view=rev Log: [CUDA] Disallow __shared__ variables in host functions. Reviewers: tra, rnk Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25143 Modif

Re: r276159 - [modules] Don't emit initializers for VarDecls within a module eagerly whenever

2016-10-13 Thread Manman via cfe-commits
Hi Richard, I committed a follow-up patch in r284142 to fix issues with C/ObjC. Let me know if you see any problem. Manman > On Jul 20, 2016, at 12:10 PM, Richard Smith via cfe-commits > wrote: > > Author: rsmith > Date: Wed Jul 20 14:10:16 2016 > New Revision: 276159 > > URL: http://llvm.o

r284142 - Module: emit initializers for C/ObjC after r276159.

2016-10-13 Thread Manman Ren via cfe-commits
Author: mren Date: Thu Oct 13 13:42:14 2016 New Revision: 284142 URL: http://llvm.org/viewvc/llvm-project?rev=284142&view=rev Log: Module: emit initializers for C/ObjC after r276159. In r276159, we started to defer emitting initializers for VarDecls, but forgot to add the initializers for non-C++

[libcxxabi] r284141 - [libcxxabi] Fix gcc build after r284128

2016-10-13 Thread Asiri Rathnayake via cfe-commits
Author: asiri Date: Thu Oct 13 13:40:57 2016 New Revision: 284141 URL: http://llvm.org/viewvc/llvm-project?rev=284141&view=rev Log: [libcxxabi] Fix gcc build after r284128 NFC. Modified: libcxxabi/trunk/src/config.h Modified: libcxxabi/trunk/src/config.h URL: http://llvm.org/viewvc/llvm-pr

[PATCH] D25541: [CUDA] Emit deferred diagnostics during Sema rather than during codegen.

2016-10-13 Thread Justin Lebar via cfe-commits
jlebar marked 2 inline comments as done. jlebar added a comment. In https://reviews.llvm.org/D25541#569360, @rnk wrote: > Nice! Looks like this wasn't too bad. Like many things in my life lately, it wasn't after Richard explained to me how to do it. :) Thank you for the review. =

[PATCH] D25547: [CodeGen][ObjC] Do not emit objc_storeStrong to initialize a constexpr variable

2016-10-13 Thread John McCall via cfe-commits
rjmccall added a comment. The correct fix is to honor isInit by folding the logic for EmitScalarInit into this function. That should allow you to eliminate EmitScalarInit completely, although it would be fine to leave it as just a call to EmitStoreThroughLValue. I did a quick audit of all the

[PATCH] D24991: Inline hot functions in libcxx shared_ptr implementation.

2016-10-13 Thread Sebastian Pop via cfe-commits
sebpop added a comment. In https://reviews.llvm.org/D24991#565861, @EricWF wrote: > In https://reviews.llvm.org/D24991#565715, @mclow.lists wrote: > > > How does this play with existing binaries? Applications that expect these > > functions to exist in the dylib? > > > This patch is majorly ABI

[PATCH] D20785: Python 3.5 compatibility for clang-format.py

2016-10-13 Thread Jackie Kay via cfe-commits
jacquelinekay added a comment. I tested clang-format in vim with the recent state of trunk and it seems to work without my patch. The bug I ran into initially was fixed in https://reviews.llvm.org/D23319 with added encoding. So I think this can be closed without merging. Repository: rL LLVM

[PATCH] D25572: [Coverage] Support for C++17 if initializers

2016-10-13 Thread Vedant Kumar via cfe-commits
vsk created this revision. vsk added reviewers: arphaman, ikudrin. vsk added a subscriber: cfe-commits. Generate coverage mappings for in if (; ). Here's some sample output (let's hope phab gets the spaces right :) -- 12| |// CHECK-LABEL: define {{.*}}void @_Z11switch_initv() 13|

Re: [libunwind] r284125 - [libunwind] Add missing include. NFC.

2016-10-13 Thread Joerg Sonnenberger via cfe-commits
On Thu, Oct 13, 2016 at 02:32:24PM -, Asiri Rathnayake via cfe-commits wrote: > This missing include seems to cause compilation failures on older MacOS > versions (< 10.9). This is because r270692 has introduced uint64_t into > config.h without including this header. But that would be inttype

[PATCH] D25571: Add and use isDiscardableGVALinkage function.

2016-10-13 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added a reviewer: rnk. jlebar added a subscriber: cfe-commits. https://reviews.llvm.org/D25571 Files: clang/include/clang/Basic/Linkage.h clang/include/clang/Sema/Sema.h clang/lib/AST/ASTContext.cpp clang/lib/Sema/SemaCUDA.cpp Index: clang/lib/Sema/S

Re: [libcxxabi] r284128 - [libcxxabi] Refactor pthread usage into a separate API

2016-10-13 Thread Asiri Rathnayake via cfe-commits
Looks like this broke the gcc builder: http://lab.llvm.org:8011/builders/libcxx-libcxxabi-x86_64-linux-ubuntu-gcc49-cxx11/builds/573/steps/build.libcxxabi/logs/stdio I'll have a look soon, might not be able to do so before tomorrow. Please feel free to revert if this is blocking. Sorry for the tr

[PATCH] D25283: AvailabilityAttrs: Refactor context checking when diagnosing an availability violation

2016-10-13 Thread Erik Pilkington via cfe-commits
erik.pilkington added inline comments. Comment at: lib/Sema/SemaExpr.cpp:179 - if (const DeclContext *DC = S.getCurObjCLexicalContext()) -ContextVersion = S.getVersionForDecl(cast(DC)); - manmanren wrote: > I don't quite get why we can remove the above logic

[PATCH] D25283: AvailabilityAttrs: Refactor context checking when diagnosing an availability violation

2016-10-13 Thread Erik Pilkington via cfe-commits
erik.pilkington updated this revision to Diff 74547. erik.pilkington added a comment. This new patch fixes the style issues @aaron.ballman and @manmanren brought up. Thanks, Erik https://reviews.llvm.org/D25283 Files: include/clang/Sema/Sema.h lib/Sema/SemaDecl.cpp lib/Sema/SemaDeclAttr.c

[PATCH] D24644: Pass -ffunction-sections/-fdata-sections along to gold-plugin

2016-10-13 Thread Teresa Johnson via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284140: Pass -ffunction-sections/-fdata-sections along to gold-plugin (authored by tejohnson). Changed prior to commit: https://reviews.llvm.org/D24644?vs=71591&id=74555#toc Repository: rL LLVM http

r284140 - Pass -ffunction-sections/-fdata-sections along to gold-plugin

2016-10-13 Thread Teresa Johnson via cfe-commits
Author: tejohnson Date: Thu Oct 13 13:05:53 2016 New Revision: 284140 URL: http://llvm.org/viewvc/llvm-project?rev=284140&view=rev Log: Pass -ffunction-sections/-fdata-sections along to gold-plugin Summary: These options need to be passed to the plugin in order to have an effect on LTO/ThinLTO co

[PATCH] D25539: [Coverage] Support for C++17 switch initializers

2016-10-13 Thread Vedant Kumar via cfe-commits
vsk updated the summary for this revision. vsk updated this revision to Diff 74552. vsk added a comment. Per @arphaman's comments: - Add a CodeGenPGO test which checks whether counters can be created for statements inside of switch initializers. - Group calls to 'Visit' together. https://revie

[PATCH] D25448: [ubsan] Disable -fsanitize=vptr checks for devirtualized calls

2016-10-13 Thread John McCall via cfe-commits
rjmccall requested changes to this revision. rjmccall added inline comments. This revision now requires changes to proceed. Comment at: lib/CodeGen/CodeGenFunction.h:379 + /// Set of object pointers which are blacklisted from the UB sanitizer. + llvm::SmallPtrSet SanitizerBaseP

r284137 - [ThinLTO] Update doc to include lld (now supported).

2016-10-13 Thread Davide Italiano via cfe-commits
Author: davide Date: Thu Oct 13 12:42:38 2016 New Revision: 284137 URL: http://llvm.org/viewvc/llvm-project?rev=284137&view=rev Log: [ThinLTO] Update doc to include lld (now supported). Differential Revision: https://reviews.llvm.org/D25537 Modified: cfe/trunk/docs/ThinLTO.rst Modified: cf

[PATCH] D25537: [ThinLTO] Update doc to include lld

2016-10-13 Thread Davide Italiano via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284137: [ThinLTO] Update doc to include lld (now supported). (authored by davide). Changed prior to commit: https://reviews.llvm.org/D25537?vs=74459&id=74545#toc Repository: rL LLVM https://reviews.

[PATCH] D25343: [OpenCL] Mark group functions as convergent in opencl-c.h

2016-10-13 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 74541. yaxunl added a comment. Minor revision by Aaron's comments. https://reviews.llvm.org/D25343 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/CodeGen/CGCall.cpp lib/Headers/opencl-c.h lib/Sema/SemaDeclAttr.cpp test/Cod

r284133 - Add more 64bit swiftcall convention tests

2016-10-13 Thread Arnold Schwaighofer via cfe-commits
Author: arnolds Date: Thu Oct 13 12:17:36 2016 New Revision: 284133 URL: http://llvm.org/viewvc/llvm-project?rev=284133&view=rev Log: Add more 64bit swiftcall convention tests Added: cfe/trunk/test/CodeGen/64bit-swiftcall.c Added: cfe/trunk/test/CodeGen/64bit-swiftcall.c URL: http://llvm.or

Re: libunwind build regression fix

2016-10-13 Thread Jeremy Huddleston Sequoia via cfe-commits
Thanks. > On Oct 13, 2016, at 07:42, Asiri Rathnayake wrote: > > Hi Jeremy, > > Thanks for the patch, committed as r284125. > > Cheers, > > / Asiri > > > From: jerem...@apple.com on behalf of Jeremy Huddleston > Sequoia > Sent: 13 October 2016 06:5

[PATCH] D25520: [CodeCompletion] Add block placeholders when completing member access for Objective-C block property setters

2016-10-13 Thread Argyrios Kyrtzidis via cfe-commits
akyrtzi added a comment. > What do you think of the following possible priority heuristic SGTM. Changes LGTM. I'd also recommend that as a follow-up patch it would be great to extend the setter completion to variables as well (global variables, fields, ivars, etc.) Repository: rL LLVM h

[PATCH] D25568: [libcxx] [cmake] Use -print-libgcc-file-name option to find compiler runtime

2016-10-13 Thread Michał Górny via cfe-commits
mgorny updated this revision to Diff 74538. mgorny added a comment. Fixed indentation. https://reviews.llvm.org/D25568 Files: cmake/Modules/HandleLibcxxFlags.cmake lib/CMakeLists.txt Index: lib/CMakeLists.txt === --- lib/CMak

[PATCH] D25568: [libcxx] [cmake] Use -print-libgcc-file-name option to find compiler runtime

2016-10-13 Thread Michał Górny via cfe-commits
mgorny updated the summary for this revision. mgorny updated this revision to Diff 74536. https://reviews.llvm.org/D25568 Files: cmake/Modules/HandleLibcxxFlags.cmake lib/CMakeLists.txt Index: lib/CMakeLists.txt === --- lib/CMa

[PATCH] D25568: [libcxx] [cmake] Use -print-libgcc-file-name option to find compiler runtime

2016-10-13 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added a reviewer: EricWF. mgorny added a subscriber: cfe-commits. Herald added subscribers: modocache, beanz. Use the -print-libgcc-file-name compiler option to obtain the path to libgcc or an equivalent compiler runtime library, rather than hardcoding -lgcc_s.

[PATCH] D25343: [OpenCL] Mark group functions as convergent in opencl-c.h

2016-10-13 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. Aside from some minor nits, the attribute functionality looks fine to me. As to whether we think this is a worthy attribute to add or not, I leave that to people who know CUDA an

  1   2   >