Re: [PATCH] D20349: Fix a clang bug in lambda capture of 'this'

2016-05-17 Thread David Blaikie via cfe-commits
The patch'll need a test case (in clang/tests) - I've not looked at the change/have much opinion there, just suggesting adding a test at minimum so when someone does come to review it it's more complete/closer to/ready to commit. On Tue, May 17, 2016 at 9:23 PM, Taewook Oh via cfe-commits < cfe-co

Re: [PATCH] D19804: Make clang-format cleaner remove redundant commas in list and redundant colon in constructor initializer.

2016-05-17 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good :-). http://reviews.llvm.org/D19804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

r269880 - Various improvements to the public IRGen interface.

2016-05-17 Thread John McCall via cfe-commits
Author: rjmccall Date: Wed May 18 00:21:18 2016 New Revision: 269880 URL: http://llvm.org/viewvc/llvm-project?rev=269880&view=rev Log: Various improvements to the public IRGen interface. Modified: cfe/trunk/include/clang/CodeGen/CodeGenABITypes.h cfe/trunk/include/clang/CodeGen/ModuleBuil

Re: [PATCH] D19829: [scan-build] fix dead store warnings emitted on clang code base

2016-05-17 Thread Apelete Seketeli via cfe-commits
apelete updated this revision to Diff 57560. apelete added a comment. [scan-build] fix dead store warnings emitted on clang code base Changes since last revision: - lib/Sema/SemaLookup.cpp: remove changes since they were already applied upstream, - lib/Sema/SemaExpr.cpp: move 'IsDereference' an

Re: [PATCH] D20345: [Mips] Finetuning MIPS32 Android default variants

2016-05-17 Thread Simon Atanasyan via cfe-commits
atanasyan accepted this revision. atanasyan added a comment. This revision is now accepted and ready to land. LGTM http://reviews.llvm.org/D20345 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D20349: Fix a clang bug in lambda capture of 'this'

2016-05-17 Thread Taewook Oh via cfe-commits
twoh created this revision. twoh added reviewers: faisalv, rsmith. twoh added a subscriber: cfe-commits. (This is a fix for Bug 27797 https://llvm.org/bugs/show_bug.cgi?id=27797). Currently when RebuildLambdaScopeInfo() function in lib/Sema/SemaDecl.cpp observes lambda capturing 'this', it calls

r269879 - [Sema, CodeGen] Remove comment from SemaChecking about a builtin_shufflevector form that it doesn't support. Remove CodeGen support for the same form since it could never have been used due

2016-05-17 Thread Craig Topper via cfe-commits
Author: ctopper Date: Tue May 17 23:11:25 2016 New Revision: 269879 URL: http://llvm.org/viewvc/llvm-project?rev=269879&view=rev Log: [Sema,CodeGen] Remove comment from SemaChecking about a builtin_shufflevector form that it doesn't support. Remove CodeGen support for the same form since it coul

r269878 - [X86] Add immediate range checks for many of the builtins.

2016-05-17 Thread Craig Topper via cfe-commits
Author: ctopper Date: Tue May 17 22:18:12 2016 New Revision: 269878 URL: http://llvm.org/viewvc/llvm-project?rev=269878&view=rev Log: [X86] Add immediate range checks for many of the builtins. This time allow -128 to 255 for builtins that use a char type immediate." Modified: cfe/trunk/inclu

Re: [PATCH] D20325: Add ARM cdp intrinsics

2016-05-17 Thread Tim Northover via cfe-commits
On 17 May 2016 at 10:32, Renato Golin wrote: > I don't think a small future ACLE builtin is on the same league as a whole > new back-end. :) Well yes, it's probably got orders of magnitude less bugs than the backend for a start. > Nor I think that having this when the docs are public, rather th

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-17 Thread don hinton via cfe-commits
hintonda updated this revision to Diff 57555. hintonda added a comment. - Added another test. http://reviews.llvm.org/D18575 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseNoexceptCheck.cpp clang-tidy/modernize/UseNoexcept

Re: [PATCH] D20283: Add ras/noras flag to enable/disable RAS in clang

2016-05-17 Thread Tim Northover via cfe-commits
t.p.northover added a subscriber: t.p.northover. t.p.northover accepted this revision. t.p.northover added a reviewer: t.p.northover. t.p.northover added a comment. This revision is now accepted and ready to land. Looks pretty straightforward, go for it. Tim. http://reviews.llvm.org/D20283 _

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-17 Thread don hinton via cfe-commits
hintonda updated this revision to Diff 57547. hintonda added a comment. - First cut on a simple parser for decls. Successfully parses all the examples I've been given so far. Please help me break it. http://reviews.llvm.org/D18575 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/mode

RE: [PATCH] D19567: PR21823: 'nodebug' attribute on global/static variables

2016-05-17 Thread Robinson, Paul via cfe-commits
About to be away for a week, but I will take this up (and the other one) when I get back. --paulr From: David Blaikie [mailto:dblai...@gmail.com] Sent: Tuesday, May 17, 2016 3:05 PM To: reviews+d19567+public+1ee0c82c0824b...@reviews.llvm.org; David Blaikie Cc: Robinson, Paul; Aaron Ballman; Adria

Re: [PATCH] D20341: [CUDA] Enable fusing FP ops for CUDA by default.

2016-05-17 Thread Justin Lebar via cfe-commits
jlebar added a comment. > But people also don't expect IEEE compliance on GPUs Is that true? You have a lot more experience with this than I do, but my observation of nvidia's hardware is that it's moved to add *more* IEEE compliance as it's matured. For example, older hardware didn't suppor

[clang-tools-extra] r269875 - findAllSymbols: Prune unused libdeps.

2016-05-17 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Tue May 17 19:53:31 2016 New Revision: 269875 URL: http://llvm.org/viewvc/llvm-project?rev=269875&view=rev Log: findAllSymbols: Prune unused libdeps. Modified: clang-tools-extra/trunk/include-fixer/find-all-symbols/CMakeLists.txt Modified: clang-tools-extra/trunk/includ

[clang-tools-extra] r269874 - FindAllSymbolsTests doesn't require clangToolingCore.

2016-05-17 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Tue May 17 19:53:27 2016 New Revision: 269874 URL: http://llvm.org/viewvc/llvm-project?rev=269874&view=rev Log: FindAllSymbolsTests doesn't require clangToolingCore. Modified: clang-tools-extra/trunk/unittests/include-fixer/find-all-symbols/CMakeLists.txt Modified: cl

[clang-tools-extra] r269873 - include-fixer: They require clangLex.

2016-05-17 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Tue May 17 19:49:16 2016 New Revision: 269873 URL: http://llvm.org/viewvc/llvm-project?rev=269873&view=rev Log: include-fixer: They require clangLex. Modified: clang-tools-extra/trunk/include-fixer/find-all-symbols/CMakeLists.txt clang-tools-extra/trunk/include-fixer

[PATCH] D20345: [Mips] Finetuning MIPS32 Android default variants

2016-05-17 Thread Petar Jovanovic via cfe-commits
petarj created this revision. petarj added a reviewer: atanasyan. petarj added a subscriber: cfe-commits. Herald added subscribers: srhines, danalbert, tberghammer. MIPS32 Android defaults to FPXX ("-fpxx"). MIPS32R6 Android defaults to FP64A ("-mfp64 -mno-odd-spreg"). http://reviews.llvm.org/D20

[clang-tools-extra] r269870 - IncludeFixerTest.cpp: Add explicit triple for some tests. They are failing for targeting *-win32.

2016-05-17 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Tue May 17 19:20:46 2016 New Revision: 269870 URL: http://llvm.org/viewvc/llvm-project?rev=269870&view=rev Log: IncludeFixerTest.cpp: Add explicit triple for some tests. They are failing for targeting *-win32. Modified: clang-tools-extra/trunk/unittests/include-fixer/In

r269869 - Fix use-after-free ASan failures for modules / PCH files that deserialize abi_tag or no_sanitize attributes.

2016-05-17 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue May 17 19:16:51 2016 New Revision: 269869 URL: http://llvm.org/viewvc/llvm-project?rev=269869&view=rev Log: Fix use-after-free ASan failures for modules / PCH files that deserialize abi_tag or no_sanitize attributes. Modified: cfe/trunk/test/PCH/attrs.c cfe/trunk

Re: [PATCH] D20341: [CUDA] Enable fusing FP ops for CUDA by default.

2016-05-17 Thread Artem Belevich via cfe-commits
tra updated this revision to Diff 57541. tra added a comment. Added test case. Is there a better way to test that correct options are passed to back-end? This test resorts to checking assembly generated by back-end which is way too far away from what actually needs testing. http://reviews.llvm

Re: [PATCH] D20341: [CUDA] Enable fusing FP ops for CUDA by default.

2016-05-17 Thread Artem Belevich via cfe-commits
tra updated this revision to Diff 57540. tra added a comment. Changed default to -ffp-contract=fast. http://reviews.llvm.org/D20341 Files: lib/Frontend/CompilerInvocation.cpp Index: lib/Frontend/CompilerInvocation.cpp === --- li

Re: [PATCH] D20341: [CUDA] Enable fusing FP ops for CUDA by default.

2016-05-17 Thread Artem Belevich via cfe-commits
tra added a comment. OK. Consensus seems to be that -ffp-contract=fast is the way to go. I'll update the patch. I've just checked Steve's example with nvcc and indeed it fused mul+add. http://reviews.llvm.org/D20341 ___ cfe-commits mailing list cfe

Re: [PATCH] D20341: [CUDA] Enable fusing FP ops for CUDA by default.

2016-05-17 Thread Hal Finkel via cfe-commits
hfinkel added a comment. In http://reviews.llvm.org/D20341#432525, @tra wrote: > In http://reviews.llvm.org/D20341#432494, @hfinkel wrote: > > > > > > > > > That having been said, is this change the equivalent of -ffp-contract=fast > > or -ffp-contract=on? I think it is the latter and we want

Re: [PATCH] D20341: [CUDA] Enable fusing FP ops for CUDA by default.

2016-05-17 Thread Steve Canon via cfe-commits
scanon added a comment. `-ffp-contract=on` obeys the semantics of C's FP_CONTRACT pragma. In particular, it will not fuse: float m = x*y; float a = m + z; Whereas you probably want that to fuse for your purposes. `-ffp-contract=fast` seems more in line with your needs. http://reviews.l

Re: [PATCH] D20339: Update clang for D20260

2016-05-17 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: test/CodeGenOpenCL/constant-addr-space-globals.cl:3 @@ -2,3 +2,3 @@ -// CHECK: @array = addrspace({{[0-9]+}}) constant +// CHECK: @array = local_unnamed_addr addrspace({{[0-9]+}}) constant __constant float array[2] = {0.0f, 1.0f};

Re: [PATCH] D20341: [CUDA] Enable fusing FP ops for CUDA by default.

2016-05-17 Thread Artem Belevich via cfe-commits
tra added a comment. In http://reviews.llvm.org/D20341#432494, @hfinkel wrote: > > That having been said, is this change the equivalent of -ffp-contract=fast or > -ffp-contract=on? I think it is the latter and we want the former (i.e. where > we let the backend be as aggressive as possible

Re: [PATCH] D20341: [CUDA] Enable fusing FP ops for CUDA by default.

2016-05-17 Thread Artem Belevich via cfe-commits
tra added a subscriber: scanon. tra added a comment. Things are even more interesting. -ffp-contract=fast is *not* what this change does. :-) We have two places where we can fuse FP instructions -- in clang and in LLVM back-end. Clang fuses add+mul into llvm.fmuladd intrinsic if -ffp-contract=o

Re: [PATCH] D20339: Update clang for D20260

2016-05-17 Thread Richard Smith via cfe-commits
rsmith added a subscriber: rsmith. Comment at: test/CodeGenOpenCL/constant-addr-space-globals.cl:3 @@ -2,3 +2,3 @@ -// CHECK: @array = addrspace({{[0-9]+}}) constant +// CHECK: @array = local_unnamed_addr addrspace({{[0-9]+}}) constant __constant float array[2] = {0.0f, 1.0f};

Re: [PATCH] D20302: Remove LazyDefinitionDataPtr and rely on getMostRecentDecl. Fixes PR27754.

2016-05-17 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. Review comments resolved and committed as r269858. Repository: rL LLVM http://reviews.llvm.org/D20302 ___ cfe-commits mailing list cfe-commits

Re: [PATCH] D20341: [CUDA] Enable fusing FP ops for CUDA by default.

2016-05-17 Thread Hal Finkel via cfe-commits
hfinkel added a subscriber: hfinkel. hfinkel added a comment. In http://reviews.llvm.org/D20341#432461, @jlebar wrote: > I am not sure we want this? Although it matches nvcc, it does not match our > floating-point behavior for C++ in general -- it makes us non-IEEE-whatever > compliant by defa

Re: r269858 - PR27754: CXXRecordDecl::data() needs to perform an update even if it's called

2016-05-17 Thread Richard Smith via cfe-commits
Forgot to mention in the commit message: this patch was collaboratively produced by Vassil Vassilev and myself. On Tue, May 17, 2016 at 3:44 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rsmith > Date: Tue May 17 17:44:15 2016 > New Revision: 269858 > > URL: htt

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-17 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/modernize/UseNoexceptCheck.cpp:39 @@ +38,3 @@ + + // FIXME: Add paren matching so we can parse more complex throw statements, + // e.g., (examples provided by Aaron Ballman): aaron.ballman wrote: > alexfh wrot

Re: [PATCH] D20341: [CUDA] Enable fusing FP ops for CUDA by default.

2016-05-17 Thread Justin Lebar via cfe-commits
jlebar added a comment. I am not sure we want this? Although it matches nvcc, it does not match our floating-point behavior for C++ in general -- it makes us non-IEEE-whatever compliant by default. Although I agree that if we don't do this, lots of people are not going to pass -fp-contract=fa

r269858 - PR27754: CXXRecordDecl::data() needs to perform an update even if it's called

2016-05-17 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue May 17 17:44:15 2016 New Revision: 269858 URL: http://llvm.org/viewvc/llvm-project?rev=269858&view=rev Log: PR27754: CXXRecordDecl::data() needs to perform an update even if it's called on a declaration that already knows the location of the DefinitionData object. Added:

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-17 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseNoexceptCheck.cpp:39 @@ +38,3 @@ + + // FIXME: Add paren matching so we can parse more complex throw statements, + // e.g., (examples provided by Aaron Ballman): alexfh wrote: > aaron.ballm

[PATCH] D20341: [CUDA] Enable fusing FP ops for CUDA by default.

2016-05-17 Thread Artem Belevich via cfe-commits
tra created this revision. tra added reviewers: jlebar, jingyue. tra added a subscriber: cfe-commits. This matches default nvcc behavior and gives substantial performance boost on GPU where fmad is much cheaper compared to add+mul. http://reviews.llvm.org/D20341 Files: lib/Frontend/Compiler

Re: r269765 - Revert "[X86] Add immediate range checks for many of the builtins."

2016-05-17 Thread Craig Topper via cfe-commits
There was an off list mail to me on this. The 0-255 checks don't work for the builtins that take a char immediate and char is signed. In that case the range change needs to be -128 to 127 instead of 0 to 255. On Tue, May 17, 2016 at 3:09 PM, Sean Silva via cfe-commits < cfe-commits@lists.llvm.org

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-17 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/modernize/UseNoexceptCheck.cpp:39 @@ +38,3 @@ + + // FIXME: Add paren matching so we can parse more complex throw statements, + // e.g., (examples provided by Aaron Ballman): aaron.ballman wrote: > alexfh wrot

r269852 - [X86][SSE] Tidied up MMX/SSE/SSE2 builtin tests to the correct test file

2016-05-17 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Tue May 17 17:03:31 2016 New Revision: 269852 URL: http://llvm.org/viewvc/llvm-project?rev=269852&view=rev Log: [X86][SSE] Tidied up MMX/SSE/SSE2 builtin tests to the correct test file Modified: cfe/trunk/test/CodeGen/mmx-builtins.c cfe/trunk/test/CodeGen/sse-builtin

Re: r269765 - Revert "[X86] Add immediate range checks for many of the builtins."

2016-05-17 Thread Sean Silva via cfe-commits
On Tue, May 17, 2016 at 7:07 AM, Filipe Cabecinhas via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: filcab > Date: Tue May 17 09:07:43 2016 > New Revision: 269765 > > URL: http://llvm.org/viewvc/llvm-project?rev=269765&view=rev > Log: > Revert "[X86] Add immediate range checks for ma

Re: [PATCH] D19754: Allow 'nodebug' on local variables

2016-05-17 Thread David Blaikie via cfe-commits
On Tue, May 17, 2016 at 2:30 PM, Robinson, Paul wrote: > What you are describing is what testing literature refers to as criteria > for equivalence classes. There is some level of judgment to that, yes. > > > > Yep yep, to be sure. I'm just generally trying to encourage the community > behavior

Re: [PATCH] D19567: PR21823: 'nodebug' attribute on global/static variables

2016-05-17 Thread David Blaikie via cfe-commits
ping On Mon, May 2, 2016 at 11:51 AM, David Blaikie via cfe-commits < cfe-commits@lists.llvm.org> wrote: > dblaikie added a comment. > > In http://reviews.llvm.org/D19567#414906, @probinson wrote: > > > Huh. There are strange interactions here, which makes me even more > nervous about testing fe

[PATCH] D20339: Update clang for D20260

2016-05-17 Thread Peter Collingbourne via cfe-commits
pcc created this revision. pcc added reviewers: rafael, majnemer. pcc added a subscriber: cfe-commits. Herald added subscribers: srhines, danalbert, tberghammer. http://reviews.llvm.org/D20339 Files: lib/CodeGen/CGDecl.cpp lib/CodeGen/CGExpr.cpp lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen

r269849 - Revert r269717. That change alone did not provide the intended benefit (which

2016-05-17 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue May 17 16:48:41 2016 New Revision: 269849 URL: http://llvm.org/viewvc/llvm-project?rev=269849&view=rev Log: Revert r269717. That change alone did not provide the intended benefit (which would come from changing the type of ASTContext::DeclAttrs from DenseMap to DenseMap),

[PATCH] D20338: [PCH] Fixed overridden files always invalidating preamble even when unchanged

2016-05-17 Thread Cameron via cfe-commits
cameron314 created this revision. cameron314 added a reviewer: rsmith. cameron314 added a subscriber: cfe-commits. cameron314 set the repository for this revision to rL LLVM. Remapped files would always cause the preamble's PCH to be invalidated (even if they hadn't changed) because the file mana

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-17 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseNoexceptCheck.cpp:39 @@ +38,3 @@ + + // FIXME: Add paren matching so we can parse more complex throw statements, + // e.g., (examples provided by Aaron Ballman): alexfh wrote: > hintonda wr

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-17 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/modernize/UseNoexceptCheck.cpp:22 @@ +21,3 @@ +namespace { + +StringRef makeDynamicExceptionString(const SourceManager &SM, It's much more common for LLVM code to use static functions: http://llvm.org/docs/Codi

Re: [PATCH] D17416: [libcxx] Reorganize locale extension fallbacks. NFCI

2016-05-17 Thread Ben Craig via cfe-commits
bcraig added a comment. I'll be submitting this Friday morning, barring any objections (I'm out of the office the next couple of days). http://reviews.llvm.org/D17416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi

Re: [PATCH] D17416: [libcxx] Reorganize locale extension fallbacks. NFCI

2016-05-17 Thread Ben Craig via cfe-commits
bcraig updated this revision to Diff 57521. bcraig marked 2 inline comments as done. http://reviews.llvm.org/D17416 Files: include/support/android/locale_bionic.h include/support/newlib/xlocale.h include/support/xlocale/__posix_l_fallback.h include/support/xlocale/__strtonum_fallback.h

RE: [PATCH] D19754: Allow 'nodebug' on local variables

2016-05-17 Thread Robinson, Paul via cfe-commits
What you are describing is what testing literature refers to as criteria for equivalence classes. There is some level of judgment to that, yes. Yep yep, to be sure. I'm just generally trying to encourage the community behavior towards being both selective & thorough about testing. I have notice

Re: [PATCH] D17416: [libcxx] Reorganize locale extension fallbacks. NFCI

2016-05-17 Thread Ben Craig via cfe-commits
bcraig updated this revision to Diff 57520. http://reviews.llvm.org/D17416 Files: include/support/android/locale_bionic.h include/support/newlib/xlocale.h include/support/xlocale/__posix_l_fallback.h include/support/xlocale/__strtonum_fallback.h include/support/xlocale/xlocale.h Index:

Re: [libcxx] r269789 - Implement LWG2576: istream_iterator and ostream_iterator should use std::addressof

2016-05-17 Thread Eric Fiselier via cfe-commits
Thanks Richard, I wouldn't have gotten that. One day I'll understand locales. On May 17, 2016 3:22 PM, "Richard Smith" wrote: > Here's an istream_iterator test for this change: > > #include > #include > #include > > struct evil_traits : std::char_traits { > template friend void operator&(T)

Re: r269675 - [ms] Reintroduce feature guards in intrinsic headers in Microsoft mode

2016-05-17 Thread Eric Christopher via cfe-commits
So, why are you doing this for more than just the avx512 headers? I understand that you're unhappy with all of the intrinsics, but you've added an incompatibility here for MS mode. Does MS use header guards locking off particular intrinsics? What "better intrinsic story" are you looking for? This

Re: [libcxx] r269789 - Implement LWG2576: istream_iterator and ostream_iterator should use std::addressof

2016-05-17 Thread Richard Smith via cfe-commits
Here's an istream_iterator test for this change: #include #include #include struct evil_traits : std::char_traits { template friend void operator&(T) = delete; }; struct pointless_derived_class : std::num_get> {}; int main() { std::basic_stringstream ss("1 2 3"); ss.imbue(std::loca

Re: [PATCH] D20336: [AMDGPU] Remove individual debugger options + update features

2016-05-17 Thread Konstantin Zhuravlyov via cfe-commits
kzhuravl retitled this revision from "[AMDGPU] Remove individual debugger options" to "[AMDGPU] Remove individual debugger options + update features". kzhuravl updated this revision to Diff 57518. kzhuravl added a comment. Update features http://reviews.llvm.org/D20336 Files: include/clang/D

Re: [PATCH] D19105: Changes in clang after running http://reviews.llvm.org/D18821

2016-05-17 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. In http://reviews.llvm.org/D19105#427046, @Prazek wrote: > In http://reviews.llvm.org/D19105#426903, @alexfh wrote: > > > returning a bool from a function that is declared to return a typedef to an > > integral type that contains `bool` in its name (e.g. `LLVMBool`), and

Re: [libcxx] r269789 - Implement LWG2576: istream_iterator and ostream_iterator should use std::addressof

2016-05-17 Thread Eric Fiselier via cfe-commits
OK, I think I figured it out. I added tests for the ostream_iterator constructors in r269838. I'll follow that up with tests for the istream_iterator constructors, but my current test is failing for reasons beyond me. /Eric On Tue, May 17, 2016 at 2:36 PM, Eric Fiselier wrote: > Or maybe I'm st

[libcxx] r269838 - Test hijacking ADL for operator& in the stream iterator constructors.

2016-05-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue May 17 16:01:20 2016 New Revision: 269838 URL: http://llvm.org/viewvc/llvm-project?rev=269838&view=rev Log: Test hijacking ADL for operator& in the stream iterator constructors. Modified: libcxx/trunk/test/std/iterators/stream.iterators/ostream.iterator/ostream.itera

[PATCH] D20336: [AMDGPU] Remove individual debugger options

2016-05-17 Thread Konstantin Zhuravlyov via cfe-commits
kzhuravl created this revision. kzhuravl added a reviewer: arsenm. kzhuravl added subscribers: whchung, cfe-commits. Herald added a reviewer: tstellarAMD. Herald added a subscriber: kzhuravl. http://reviews.llvm.org/D20336 Files: include/clang/Driver/Options.td test/Driver/amdgpu-features.c

Re: Patch submission for bug 27400

2016-05-17 Thread Mads Ravn via cfe-commits
Cool :) don't the sweat the time. I was just a little excited. Small patch but it's nice to get started somewhere. Best regards, Mads Ravn > On May 17, 2016, at 2:59 AM, Mads Ravn wrote: > > Hi guys, > > I just wanted to check up on this patch. I heard I could just reply to this mail and see if

Re: [PATCH] D16989: Change interpretation of function definition in friend declaration of template class.

2016-05-17 Thread Richard Smith via cfe-commits
rsmith added a comment. Please also add some testcases for the corresponding case for a friend function template: template void f(); template struct A { template void f() {} }; template struct B { template void f() {} }; A a; B b; // ill-formed Comment at

Re: [libcxx] r269789 - Implement LWG2576: istream_iterator and ostream_iterator should use std::addressof

2016-05-17 Thread Eric Fiselier via cfe-commits
Or maybe I'm still wrong. I tried using a custom traits class to hijack ADL for "operator&" but it doesn't seem to work. Sorry for the spam. /Eric On Tue, May 17, 2016 at 2:25 PM, Eric Fiselier wrote: > Woops. I was incorrect. It seems that user defined "operator&" overloads > can be found in

Re: [libcxx] r269789 - Implement LWG2576: istream_iterator and ostream_iterator should use std::addressof

2016-05-17 Thread Eric Fiselier via cfe-commits
Woops. I was incorrect. It seems that user defined "operator&" overloads can be found in the constructor. From the LWG issue: > Note that {i,o}stream_type are specializations of basic_{i,o}stream, but the constructors might still pick up an overloaded & via the traits template parameter. At least

Re: r269717 - Switch from SmallVector to TinyPtrVector for the list of attributes on a declaration. This removes a memory allocation for the common case where the declaration has only one attribute.

2016-05-17 Thread Richard Smith via cfe-commits
On Tue, May 17, 2016 at 10:17 AM, David Blaikie via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Mon, May 16, 2016 at 3:53 PM, Richard Smith via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: rsmith >> Date: Mon May 16 17:53:19 2016 >> New Revision: 269717 >> >> URL: http

Re: [PATCH] D20249: [OpenCL] Hierarchical/dynamic parallelism - enqueue kernel in OpenCL 2.0

2016-05-17 Thread Yaxun Liu via cfe-commits
yaxunl added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:7820 @@ +7819,3 @@ +def err_opencl_function_not_supported : Error< + "this function is not supported in this version of CL">; +def err_opencl_enqueue_kernel_incorrect_args : Error< --

Re: [libcxx] r269789 - Implement LWG2576: istream_iterator and ostream_iterator should use std::addressof

2016-05-17 Thread Eric Fiselier via cfe-commits
The difference between "operator&" and "addressof" is inconsequential when user defined overloads of "operator&" can't be found, which is the case for the changes in the stream iterator constructors. We might as well keep it consistent though. I don't see any value changing it back to use "operato

Re: [libcxx] r269789 - Implement LWG2576: istream_iterator and ostream_iterator should use std::addressof

2016-05-17 Thread David Blaikie via cfe-commits
If some parts are not testable & as you say, not meaningful, then it seems OK to just not implement them & file a DR on the standard, no? On Tue, May 17, 2016 at 1:00 PM, Eric Fiselier wrote: > I added a test for operator->() in r269812. Marshall and I discussed > offline about how not all parts

Re: [libcxx] r269789 - Implement LWG2576: istream_iterator and ostream_iterator should use std::addressof

2016-05-17 Thread Eric Fiselier via cfe-commits
I added a test for operator->() in r269812. Marshall and I discussed offline about how not all parts of this change are testable (and hence not meaningful) but that's what the standard says to do. On Tue, May 17, 2016 at 1:51 PM, David Blaikie via cfe-commits < cfe-commits@lists.llvm.org> wrote:

[libcxx] r269812 - Add test for r269789

2016-05-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue May 17 14:52:32 2016 New Revision: 269812 URL: http://llvm.org/viewvc/llvm-project?rev=269812&view=rev Log: Add test for r269789 Modified: libcxx/trunk/test/std/iterators/stream.iterators/istream.iterator/istream.iterator.ops/arrow.pass.cpp Modified: libcxx/trunk/t

Re: [libcxx] r269789 - Implement LWG2576: istream_iterator and ostream_iterator should use std::addressof

2016-05-17 Thread David Blaikie via cfe-commits
Test coverage? On Tue, May 17, 2016 at 10:44 AM, Marshall Clow via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: marshall > Date: Tue May 17 12:44:40 2016 > New Revision: 269789 > > URL: http://llvm.org/viewvc/llvm-project?rev=269789&view=rev > Log: > Implement LWG2576: istream_itera

[libclc] r269807 - math: Use single precision fmax in sp path

2016-05-17 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Tue May 17 14:44:01 2016 New Revision: 269807 URL: http://llvm.org/viewvc/llvm-project?rev=269807&view=rev Log: math: Use single precision fmax in sp path Fixes fdim piglit on Turks v2: use CL fmax instead of __builtin Signed-off-by: Jan Vesely Reviewed-by: Tom Stellard

[clang-tools-extra] r269804 - [clang-tidy] Lift common matchers to utils namespace

2016-05-17 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Tue May 17 14:36:09 2016 New Revision: 269804 URL: http://llvm.org/viewvc/llvm-project?rev=269804&view=rev Log: [clang-tidy] Lift common matchers to utils namespace Summary: This patch is lifting matchers used by more than one checkers to the common namespace. Reviewers: a

[PATCH] D20334: [libcxx] Fix a bug in strstreambuf::overflow

2016-05-17 Thread Akira Hatanaka via cfe-commits
ahatanak created this revision. ahatanak added reviewers: mclow.lists, EricWF, howard.hinnant. ahatanak added a subscriber: cfe-commits. The end pointer should point to one past the end of the newly allocated buffer. Without this fix, asan reports an error when the following code is compiled and

Re: [PATCH] D19990: [CUDA] Implement __ldg using intrinsics.

2016-05-17 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: include/clang/Basic/BuiltinsNVPTX.def:569-603 @@ -568,1 +568,37 @@ +// __ldg. This is not implemented as a builtin by nvcc. +BUILTIN(__nvvm_ldg_c, "ccC*", "") +BUILTIN(__nvvm_ldg_s, "ssC*", "") +BUILTIN(__nvvm_ldg_i, "iiC*", "") +BUILTI

Re: [PATCH] D18821: Add bugprone-bool-to-integer-conversion

2016-05-17 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: docs/clang-tidy/checks/bugprone-bool-to-integer-conversion.rst:43 @@ +42,3 @@ + +This is because z and ``true`` will be implicitly converted to int by promotion. +To get rid of t

r269801 - Teach clang to look for libcxx in /usr/local/include/c++ on Linux

2016-05-17 Thread Yaron Keren via cfe-commits
Author: yrnkrn Date: Tue May 17 14:01:16 2016 New Revision: 269801 URL: http://llvm.org/viewvc/llvm-project?rev=269801&view=rev Log: Teach clang to look for libcxx in /usr/local/include/c++ on Linux As The default CMAKE install prefix is /usr/local ( https://cmake.org/cmake/help/v3.0/variable/CM

Re: [PATCH] D19841: [clang-tidy] Lift common matchers to utils namespace

2016-05-17 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/utils/Matchers.h:20 @@ -19,1 +19,3 @@ +AST_MATCHER_P(Expr, ignoringImplicit, + ast_matchers::internal::Matcher, InnerMatcher) { alexfh wrote: > Consider moving this to ASTMatchers.h in a fo

Re: [PATCH] D19841: [clang-tidy] Lift common matchers to utils namespace

2016-05-17 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG. Thank you! Comment at: clang-tidy/utils/Matchers.h:20 @@ -19,1 +19,3 @@ +AST_MATCHER_P(Expr, ignoringImplicit, + ast_matchers::internal::Matcher, InnerMatch

Re: [PATCH] D20326: [clang-tidy] Fix a template function false positive in misc-unused-using-decls check.

2016-05-17 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:24 @@ +23,3 @@ +// FIXME: Add a node matcher for UnresolvedLookupExpr in ASTMatcher. +AST_MATCHER(CallExpr, hasUnresolvedLookupExpr) { +

Re: [PATCH] D17578: [OpenCL]Allowing explicit conversion of "0" to event_t type

2016-05-17 Thread Aaron En Ye Shi via cfe-commits
ashi1 added a comment. Xiuli, are you OK with this patch? http://reviews.llvm.org/D17578 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20296: clang-rename: avoid StringRef members in USRLocFindingASTVisitor

2016-05-17 Thread Miklos Vajna via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL269796: clang-rename: avoid StringRef members in USRLocFindingASTVisitor (authored by vmiklos). Changed prior to commit: http://reviews.llvm.org/D20296?vs=57385&id=57503#toc Repository: rL LLVM http

[clang-tools-extra] r269796 - clang-rename: avoid StringRef members in USRLocFindingASTVisitor

2016-05-17 Thread Miklos Vajna via cfe-commits
Author: vmiklos Date: Tue May 17 13:17:16 2016 New Revision: 269796 URL: http://llvm.org/viewvc/llvm-project?rev=269796&view=rev Log: clang-rename: avoid StringRef members in USRLocFindingASTVisitor Even if this is defined in the .cpp file and only used as part of the function (so here it's safe)

Re: [PATCH] D20171: Support for MSVS default calling convention options (/Gd, /Gz, /Gv, /Gr)

2016-05-17 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. Thanks, lgtm! http://reviews.llvm.org/D20171 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

r269794 - NFC: simplify logic.

2016-05-17 Thread Manman Ren via cfe-commits
Author: mren Date: Tue May 17 13:04:38 2016 New Revision: 269794 URL: http://llvm.org/viewvc/llvm-project?rev=269794&view=rev Log: NFC: simplify logic. Modified: cfe/trunk/lib/Lex/HeaderSearch.cpp Modified: cfe/trunk/lib/Lex/HeaderSearch.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trun

Re: [PATCH] D19909: [Attr] Add support for the `ms_hook_prologue` attribute.

2016-05-17 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. The patch is missing semantic test cases. I would like to see tests of the attribute being accepted, as well as rejected because the subject was incorrect, args were provided, etc. Also, I believe there are attributes which this attribute should not be combined w

[libcxx] r269789 - Implement LWG2576: istream_iterator and ostream_iterator should use std::addressof

2016-05-17 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue May 17 12:44:40 2016 New Revision: 269789 URL: http://llvm.org/viewvc/llvm-project?rev=269789&view=rev Log: Implement LWG2576: istream_iterator and ostream_iterator should use std::addressof Modified: libcxx/trunk/include/iterator libcxx/trunk/www/cxx1z_status.

Re: [PATCH] D19990: [CUDA] Implement __ldg using intrinsics.

2016-05-17 Thread Justin Lebar via cfe-commits
jlebar added a comment. Friendly ping. This is a big help with some Tensorflow benchmarks. http://reviews.llvm.org/D19990 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-17 Thread don hinton via cfe-commits
hintonda added inline comments. Comment at: clang-tidy/modernize/UseNoexceptCheck.cpp:39 @@ +38,3 @@ + + // FIXME: Add paren matching so we can parse more complex throw statements, + // e.g., (examples provided by Aaron Ballman): aaron.ballman wrote: > @alexfh,

r269787 - Fix line numbers in calling convention test

2016-05-17 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue May 17 12:33:31 2016 New Revision: 269787 URL: http://llvm.org/viewvc/llvm-project?rev=269787&view=rev Log: Fix line numbers in calling convention test Modified: cfe/trunk/test/Sema/callingconv-cast.c Modified: cfe/trunk/test/Sema/callingconv-cast.c URL: http://llvm.or

Re: Patch submission for bug 27400

2016-05-17 Thread Vedant Kumar via cfe-commits
> On May 17, 2016, at 2:59 AM, Mads Ravn wrote: > > Hi guys, > > I just wanted to check up on this patch. I heard I could just reply to this > mail and see if I could 'ping' anyone in this regard. Hope it's OK. Sorry for the delay! This looks good. Committed as r269786. thanks, vedant > >

Re: [PATCH] D20325: Add ARM cdp intrinsics

2016-05-17 Thread Renato Golin via cfe-commits
rengolin added inline comments. Comment at: include/clang/Basic/BuiltinsARM.def:55 @@ -54,3 +54,3 @@ BUILTIN(__builtin_arm_mrc2, "UiUIiUIiUIiUIiUIi", "") -BUILTIN(__builtin_arm_cdp, "vUiUiUiUiUiUi", "") -BUILTIN(__builtin_arm_cdp2, "vUiUiUiUiUiUi", "") +BUILTIN(__builtin_arm_cdp,

[clang-tools-extra] r269786 - [clang-tidy] Skip misc-macro-parentheses for namespaces (Fix PR27400)

2016-05-17 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Tue May 17 12:26:02 2016 New Revision: 269786 URL: http://llvm.org/viewvc/llvm-project?rev=269786&view=rev Log: [clang-tidy] Skip misc-macro-parentheses for namespaces (Fix PR27400) If a use of a macro argument is preceded by the `namespace` keyword, do not warn that the use

Re: [PATCH] D20325: Add ARM cdp intrinsics

2016-05-17 Thread Renato Golin via cfe-commits
rengolin added a comment. In http://reviews.llvm.org/D20325#432086, @t.p.northover wrote: > I don't think we need to wait until the document is public, necessarily. The > entire AArch64 backend went in before the encodings were public outside ARM > (except maybe in binutils source?) and releasi

Re: [PATCH] D20325: Add ARM cdp intrinsics

2016-05-17 Thread Tim Northover via cfe-commits
t.p.northover added a subscriber: t.p.northover. t.p.northover added a comment. I don't think we need to wait until the document is public, necessarily. The entire AArch64 backend went in before the encodings were public outside ARM (except maybe in binutils source?) and releasing specifications

Re: r269717 - Switch from SmallVector to TinyPtrVector for the list of attributes on a declaration. This removes a memory allocation for the common case where the declaration has only one attribute.

2016-05-17 Thread David Blaikie via cfe-commits
On Mon, May 16, 2016 at 3:53 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rsmith > Date: Mon May 16 17:53:19 2016 > New Revision: 269717 > > URL: http://llvm.org/viewvc/llvm-project?rev=269717&view=rev > Log: > Switch from SmallVector to TinyPtrVector for the li

Re: [PATCH] D20198: clang-format: [JS] sort ES6 imports.

2016-05-17 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 57497. mprobst marked 8 inline comments as done. mprobst added a comment. - address review comments http://reviews.llvm.org/D20198 Files: include/clang/Format/Format.h lib/Format/CMakeLists.txt lib/Format/Format.cpp lib/Format/FormatToken.h lib/Fo

Re: [PATCH] D20198: clang-format: [JS] sort ES6 imports.

2016-05-17 Thread Martin Probst via cfe-commits
mprobst added a comment. PTAL. Comment at: lib/Format/SortJavaScriptImports.cpp:45-46 @@ +44,4 @@ + +struct JsImportExport { + bool IsExport; + // JS imports are sorted into these categories, in order. klimek wrote: > klimek wrote: > > This is really weird - a

r269781 - Fix calling convention test

2016-05-17 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue May 17 11:54:40 2016 New Revision: 269781 URL: http://llvm.org/viewvc/llvm-project?rev=269781&view=rev Log: Fix calling convention test Modified: cfe/trunk/test/Sema/callingconv-cast.c Modified: cfe/trunk/test/Sema/callingconv-cast.c URL: http://llvm.org/viewvc/llvm-pr

Re: [PATCH] D20326: [clang-tidy] Fix a template function false positive in misc-unused-using-decls check.

2016-05-17 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:24 @@ +23,3 @@ +AST_MATCHER(CallExpr, hasUnresolvedLookupExpr) { + return isa(Node.getCallee()); +} alexfh wrote: > I think, we should use a node matcher for `Unresolve

  1   2   >