Re: [PATCH] D12358: [Analyzer] Handling constant bound loops

2015-08-27 Thread Ted Kremenek via cfe-commits
krememek added a comment. I think the functionality started here by doing something clever with loops is complex enough to warrant putting this into a separate .cpp file. We can keep this here for now, but this seems like complexity that is going to naturally creep up and make this file even m

Re: [PATCH] D12358: [Analyzer] Handling constant bound loops

2015-08-27 Thread Ted Kremenek via cfe-commits
krememek added a comment. In http://reviews.llvm.org/D12358#234949, @zaks.anna wrote: > > I accept that my current patch is not a comprehensive solution to the > > problem and that it may introduce > false positives, however I do think it > > is an improvement, where it is preferable to have fa

Re: [PATCH] D12313: Introduce __builtin_nontemporal_store and __builtin_nontemporal_load.

2015-08-27 Thread Michael Zolotukhin via cfe-commits
mzolotukhin added a comment. > I still have this question: Oops, sorry - I missed that. I'll check how can we reuse that logic. Thanks, Michael http://reviews.llvm.org/D12313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.ll

Re: [PATCH] D12313: Introduce __builtin_nontemporal_store and __builtin_nontemporal_load.

2015-08-27 Thread hfin...@anl.gov via cfe-commits
hfinkel added a comment. Thanks, but I still have this question: > Plus, I don't understand why you're implementing another place in CodeGen > that generates IR to load and store scalar values. Can't you enhance > EmitLoadOfScalar/EmitStoreOfScalar and then use those functions? If nothing > el

r246278 - [OPENMP 4.0] Codegen for array sections.

2015-08-27 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 28 01:09:05 2015 New Revision: 246278 URL: http://llvm.org/viewvc/llvm-project?rev=246278&view=rev Log: [OPENMP 4.0] Codegen for array sections. Added codegen for array section in 'depend' clause of 'task' directive. It emits to pointers, one for the begin of array s

Re: [PATCH] D12313: Introduce __builtin_nontemporal_store and __builtin_nontemporal_load.

2015-08-27 Thread Michael Zolotukhin via cfe-commits
mzolotukhin added a comment. Hi Richard, Hal, and others, I updated the patch according to review remarks - now we support vector and boolean types too! Could you please take a look? Thanks, Michael Comment at: lib/CodeGen/CGBuiltin.cpp:128-129 @@ +127,4 @@ + Val = CGF.EmitT

Re: [PATCH] D12358: [Analyzer] Handling constant bound loops

2015-08-27 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. > I accept that my current patch is not a comprehensive solution to the problem > and that it may introduce > false positives, however I do think it is an > improvement, where it is preferable to have false positives > over doing no analysis after the loop. We try

Re: [PATCH] D12313: Introduce __builtin_nontemporal_store and __builtin_nontemporal_load.

2015-08-27 Thread Michael Zolotukhin via cfe-commits
mzolotukhin updated this revision to Diff 33396. mzolotukhin added a comment. Address review remarks: - Remove typed versions - indeed, we don't need them. - Allow vector types. - Properly handle bool-type (promote i1 to i8). - Check arguments number. - Simplify SemaBuiltinNontemporalOverloaded (

[libcxx] r246275 - Finally get the test suite passing in C++03!!

2015-08-27 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Aug 28 00:46:17 2015 New Revision: 246275 URL: http://llvm.org/viewvc/llvm-project?rev=246275&view=rev Log: Finally get the test suite passing in C++03!! After months of work there are only 4 tests still failing in C++03. This patch fixes those tests. All of the libc++ b

Re: [PATCH] D12312: Emiting invariant.group.barrier and adding -fstrict-vptrs

2015-08-27 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGClass.cpp:1279 @@ +1278,3 @@ + if (CGM.getCodeGenOpts().StrictVPtrs && BaseVPtrsInitialized) +CXXThisValue = Builder.CreateInvariantGroupBarrier(LoadCXXThis()); + Prazek wrote: > rjmccall wrote: > > Pr

[libcxx] r246273 - Remove empty file that arcanist created

2015-08-27 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Aug 28 00:18:13 2015 New Revision: 246273 URL: http://llvm.org/viewvc/llvm-project?rev=246273&view=rev Log: Remove empty file that arcanist created Removed: libcxx/trunk/test/std/thread/futures/version.pass.cpp Removed: libcxx/trunk/test/std/thread/futures/version.pa

[libcxx] r246272 - [libcxx] Constrain unique_ptr::operator=(unique_ptr) in C++03 mode

2015-08-27 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Aug 28 00:07:06 2015 New Revision: 246272 URL: http://llvm.org/viewvc/llvm-project?rev=246272&view=rev Log: [libcxx] Constrain unique_ptr::operator=(unique_ptr) in C++03 mode Summary: This patch properly constrains the converting assignment operator in C++03. It also fix

[libcxx] r246271 - [libcxx] Mark most test/std/future tests as UNSUPPORTED in C++03

2015-08-27 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Aug 28 00:06:04 2015 New Revision: 246271 URL: http://llvm.org/viewvc/llvm-project?rev=246271&view=rev Log: [libcxx] Mark most test/std/future tests as UNSUPPORTED in C++03 Summary: This patch marks *most* tests for `std::promise`, `std::future` and `std::shared_future`

Re: [PATCH] D12135: [libcxx] Mark most test/std/future tests as UNSUPPORTED in C++03

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 33395. EricWF added a comment. Reuploading without test_allocator change. http://reviews.llvm.org/D12135 Files: test/libcxx/thread/futures/version.pass.cpp test/std/thread/futures/futures.promise/alloc_ctor.pass.cpp test/std/thread/futures/futures.prom

Re: [PATCH] D12173: [libcxx] Constrain unique_ptr::operator=(unique_ptr) in C++03 mode

2015-08-27 Thread Marshall Clow via cfe-commits
mclow.lists accepted this revision. mclow.lists added a comment. This revision is now accepted and ready to land. This is just making the two halves of the #ifdef consistent. LGTM. http://reviews.llvm.org/D12173 ___ cfe-commits mailing list cfe-comm

[libcxx] r246270 - Fix bug in test_allocator that used the wrong value to represent object state

2015-08-27 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Aug 28 00:00:25 2015 New Revision: 246270 URL: http://llvm.org/viewvc/llvm-project?rev=246270&view=rev Log: Fix bug in test_allocator that used the wrong value to represent object state Modified: libcxx/trunk/test/support/test_allocator.h Modified: libcxx/trunk/test

Re: [PATCH] D12135: [libcxx] Mark most test/std/future tests as UNSUPPORTED in C++03

2015-08-27 Thread Marshall Clow via cfe-commits
mclow.lists accepted this revision. mclow.lists added a comment. This revision is now accepted and ready to land. This looks very mechanical, except for the changes to test_allocator.h, and that's a bug fix. http://reviews.llvm.org/D12135 ___ cfe-c

Re: [PATCH] D12299: [libcxx] ABI-Breaking Fix for ALL undefined behavior in .

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF added a comment. I've spent some time testing this patch to see if it causes ABI problem. Here is what I did: 1. Add external instantiations of std::list into the libc++ dylib for the types used in the tests. 2. Compile `libcxx-old.dylib` with the external instantations but without this

[libcxx] r246266 - [libcxx] Optimize away unneeded length calculation in basic_string::compare(const char*)

2015-08-27 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Aug 27 22:02:37 2015 New Revision: 246266 URL: http://llvm.org/viewvc/llvm-project?rev=246266&view=rev Log: [libcxx] Optimize away unneeded length calculation in basic_string::compare(const char*) Summary: This patch optimizes basic_string::compare to use strcmp when the

r246263 - PR24597: Fix in-place evaluation of call expressions to provide a proper "this"

2015-08-27 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Aug 27 21:43:42 2015 New Revision: 246263 URL: http://llvm.org/viewvc/llvm-project?rev=246263&view=rev Log: PR24597: Fix in-place evaluation of call expressions to provide a proper "this" pointer to an RVO construction of a returned object. Modified: cfe/trunk/lib/AST

Re: [PATCH] D11380: Implement LFTS searchers. Boyer_Moore and Boyer_Moore_Horspool

2015-08-27 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. Two comments answered. One still remaining. Comment at: include/experimental/functional:256 @@ +255,3 @@ + +public: // TODO private: +_RandomAccessIterator1 __first_; EricWF wrote: > Is this for testing? Well, for debuggi

Re: [PATCH] D12355: [libcxx] Optimize away unneeded length calculation in basic_string::compare(const char*)

2015-08-27 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. The first change LGTM. The second one needs to match it. Comment at: include/string:3816 @@ -3808,2 +3815,3 @@ +return __lhs.compare(0, _String::npos, __rhs, __rhs_len) == 0; } You'll want to do the same as above here. http:

Re: r246229 - [X86] Conditionalize Darwin MaxVectorAlign on the presence of AVX.

2015-08-27 Thread Eric Christopher via cfe-commits
Hi Ahmed, A quick note: I think this is going to fail in the presence of the target attribute. I.e. if someone decorates a function with __attribute__((target("avx512"))) this is unlikely to catch that. Also, should we do this for all of the x86 OSes? -eric On Thu, Aug 27, 2015 at 3:31 PM Ahmed

r246260 - Instead of duplicating code, call the base implementation.

2015-08-27 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 27 21:14:00 2015 New Revision: 246260 URL: http://llvm.org/viewvc/llvm-project?rev=246260&view=rev Log: Instead of duplicating code, call the base implementation. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL: http://l

r246259 - Merge the two feature map setting functions into a single function

2015-08-27 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 27 21:13:58 2015 New Revision: 246259 URL: http://llvm.org/viewvc/llvm-project?rev=246259&view=rev Log: Merge the two feature map setting functions into a single function and replace all callers. Modified: cfe/trunk/include/clang/Basic/TargetInfo.h cfe/trunk

Re: [PATCH] D12181: [sanitizer] Add -fsanitize-trap-function.

2015-08-27 Thread Josh Gao via cfe-commits
jmgao added a comment. With #1, it seems unfortunate to not be able to distinguish between a sanitize inserted __builtin_trap and code manually calling it. (Would there be an -fsanitize-trap=trap? :-) With #2, we're worried about the generated code being noticeably worse in the unexceptional ca

[libunwind] r246257 - Creating release candidate final from release_370 branch

2015-08-27 Thread Hans Wennborg via cfe-commits
Author: hans Date: Thu Aug 27 20:44:18 2015 New Revision: 246257 URL: http://llvm.org/viewvc/llvm-project?rev=246257&view=rev Log: Creating release candidate final from release_370 branch Added: libunwind/tags/RELEASE_370/final/ (props changed) - copied from r246256, libunwind/branche

[libcxxabi] r246251 - Creating release candidate final from release_370 branch

2015-08-27 Thread Hans Wennborg via cfe-commits
Author: hans Date: Thu Aug 27 20:44:00 2015 New Revision: 246251 URL: http://llvm.org/viewvc/llvm-project?rev=246251&view=rev Log: Creating release candidate final from release_370 branch Added: libcxxabi/tags/RELEASE_370/final/ (props changed) - copied from r246250, libcxxabi/branche

[libcxx] r246250 - Creating release candidate final from release_370 branch

2015-08-27 Thread Hans Wennborg via cfe-commits
Author: hans Date: Thu Aug 27 20:43:57 2015 New Revision: 246250 URL: http://llvm.org/viewvc/llvm-project?rev=246250&view=rev Log: Creating release candidate final from release_370 branch Added: libcxx/tags/RELEASE_370/final/ (props changed) - copied from r246249, libcxx/branches/rele

[PATCH] D12422: Allow TLS vars in dllimport/export functions; only inline dllimport functions when safe (PR24593)

2015-08-27 Thread Hans Wennborg via cfe-commits
hans created this revision. hans added a reviewer: majnemer. hans added a subscriber: cfe-commits. This seems to match the MS behaviour. http://reviews.llvm.org/D12422 Files: lib/CodeGen/CodeGenModule.cpp lib/Sema/SemaDecl.cpp test/CodeGenCXX/dllimport.cpp test/SemaCXX/dllexport.cpp te

Re: [PATCH] D12247: [libc++] remove possible trailing padding from aligned_storage

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF added a comment. @mclow.lists I have also tested this patch using libabigail and it couldn't spot any problems. http://reviews.llvm.org/D12247 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

Re: [PATCH] D12381: [Static Analyzer] Merge the Objective-C Generics Checker into Dynamic Type Propagation checker.

2015-08-27 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. Partial review in-line. Comment at: lib/StaticAnalyzer/Checkers/Checkers.td:456 @@ -455,2 +455,3 @@ def ObjCGenericsChecker : Checker<"ObjCGenerics">, HelpText<"Check for incorrect usages of parameterized types.">, + DescFile<"DynamicTypePropagati

Re: [PATCH] D11380: Implement LFTS searchers. Boyer_Moore and Boyer_Moore_Horspool

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF added a comment. @mclow.lists I'm holding off on more review until the current comments are addressed. http://reviews.llvm.org/D11380 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

Re: [PATCH] D12135: [libcxx] Mark most test/std/future tests as UNSUPPORTED in C++03

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF added a comment. Gentle ping. @mclow.lists I don't want a full review for this. Just a nod that I'm doing the right thing by not modifying . http://reviews.llvm.org/D12135 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

Re: [PATCH] D11963: Create a __config_site file to capture configuration decisions.

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 33384. EricWF added a comment. Copy the headers to the build directory during every build instead of just during CMake configuration. http://reviews.llvm.org/D11963 Files: CMakeLists.txt cmake/Modules/CopyLibcxxHeaders.cmake cmake/Modules/HandleLibcxx

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-08-27 Thread hfin...@anl.gov via cfe-commits
hfinkel added inline comments. Comment at: lib/Driver/Tools.cpp:4232 @@ +4231,3 @@ + false)) +CmdArgs.push_back(Args.MakeArgString("-force-align-stack")); + ahatanak wrote: > echristo wrote: > > hfinkel wrote: > > > echristo wrote: > > > > hf

Re: [PATCH] D11740: ABI versioning macros for libc++

2015-08-27 Thread Evgeniy Stepanov via cfe-commits
eugenis updated this revision to Diff 33381. eugenis added a comment. Remove minor version, added abi_unstable,. Keeping __config_version until the other change lands. Tests use headers from the build directory. http://reviews.llvm.org/D11740 Files: CMakeLists.txt docs/Abi.rst docs/Buildi

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-08-27 Thread Akira Hatanaka via cfe-commits
ahatanak added inline comments. Comment at: lib/Driver/Tools.cpp:4232 @@ +4231,3 @@ + false)) +CmdArgs.push_back(Args.MakeArgString("-force-align-stack")); + echristo wrote: > hfinkel wrote: > > echristo wrote: > > > hfinkel wrote: > > > > Th

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-08-27 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: lib/Driver/Tools.cpp:4232 @@ +4231,3 @@ + false)) +CmdArgs.push_back(Args.MakeArgString("-force-align-stack")); + hfinkel wrote: > echristo wrote: > > hfinkel wrote: > > > The code below for OPT_mst

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-08-27 Thread hfin...@anl.gov via cfe-commits
hfinkel added inline comments. Comment at: lib/Driver/Tools.cpp:4232 @@ +4231,3 @@ + false)) +CmdArgs.push_back(Args.MakeArgString("-force-align-stack")); + echristo wrote: > hfinkel wrote: > > The code below for OPT_mstackrealign uses -mstac

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-08-27 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: lib/Driver/Tools.cpp:4232 @@ +4231,3 @@ + false)) +CmdArgs.push_back(Args.MakeArgString("-force-align-stack")); + hfinkel wrote: > The code below for OPT_mstackrealign uses -mstackrealign as the nam

Re: [PATCH] D12355: [libcxx] Optimize away unneeded length calculation in basic_string::compare(const char*)

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 33380. EricWF added a comment. Call `basic_string::compare` as requested by @mclow.lists. http://reviews.llvm.org/D12355 Files: include/string Index: include/string === --- include/string +++

Re: [PATCH] D11740: ABI versioning macros for libc++

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF added a comment. In http://reviews.llvm.org/D11740#234760, @eugenis wrote: > There is a bit of a problem with testing libc++. If the library is built for > the non-default ABI, we can not build tests against headers in libc++ source. > And the headers in the build directory are only upda

Re: [PATCH] D11740: ABI versioning macros for libc++

2015-08-27 Thread Evgeniy Stepanov via cfe-commits
eugenis added a comment. There is a bit of a problem with testing libc++. If the library is built for the non-default ABI, we can not build tests against headers in libc++ source. And the headers in the build directory are only updated when cmake is re-run. I guess the latter can be fixed by up

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-08-27 Thread hfin...@anl.gov via cfe-commits
hfinkel added inline comments. Comment at: lib/Driver/Tools.cpp:4232 @@ +4231,3 @@ + false)) +CmdArgs.push_back(Args.MakeArgString("-force-align-stack")); + The code below for OPT_mstackrealign uses -mstackrealign as the name of the backend

[clang-tools-extra] r246238 - [clang-tidy] Documented the reason to run the test in C++98 mode.

2015-08-27 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Aug 27 18:43:39 2015 New Revision: 246238 URL: http://llvm.org/viewvc/llvm-project?rev=246238&view=rev Log: [clang-tidy] Documented the reason to run the test in C++98 mode. Modified: clang-tools-extra/trunk/test/clang-tidy/modernize-use-nullptr-basic.cpp Modified:

r246237 - Fix macro backtrace printing.

2015-08-27 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Thu Aug 27 18:38:45 2015 New Revision: 246237 URL: http://llvm.org/viewvc/llvm-project?rev=246237&view=rev Log: Fix macro backtrace printing. Sometimes, a macro that expands to another macro name will not be printed in the macro backtrace. This patch finds the missed macro e

Re: [PATCH] D12081: Add use-nullptr check to clang-tidy.

2015-08-27 Thread Alexander Kornienko via cfe-commits
On Fri, Aug 28, 2015 at 1:23 AM, Aaron Ballman wrote: > On Thu, Aug 27, 2015 at 7:20 PM, Alexander Kornienko > wrote: > > alexfh added a comment. > > > > In http://reviews.llvm.org/D12081#234614, @aaron.ballman wrote: > > > >> While working on r246209, one of the build bots ran into an issue > (

Re: [PATCH] D12081: Add use-nullptr check to clang-tidy.

2015-08-27 Thread Aaron Ballman via cfe-commits
On Thu, Aug 27, 2015 at 7:20 PM, Alexander Kornienko wrote: > alexfh added a comment. > > In http://reviews.llvm.org/D12081#234614, @aaron.ballman wrote: > >> While working on r246209, one of the build bots ran into an issue (commented >> below) that has me slightly perplexed. The build break can

Re: [PATCH] D12081: Add use-nullptr check to clang-tidy.

2015-08-27 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. In http://reviews.llvm.org/D12081#234614, @aaron.ballman wrote: > While working on r246209, one of the build bots ran into an issue (commented > below) that has me slightly perplexed. The build break can be found at: > http://lab.llvm.org:8011/builders/clang-x86_64-debia

Re: r246210 - CGDebugInfo: Factor out a getOrCreateStandaloneType() method.

2015-08-27 Thread Adrian Prantl via cfe-commits
> On Aug 27, 2015, at 3:06 PM, David Blaikie wrote: > > > > On Thu, Aug 27, 2015 at 2:35 PM, Adrian Prantl > wrote: > >> On Aug 27, 2015, at 2:25 PM, David Blaikie > > wrote: >> >> >> >> On Thu, Aug 27, 2015 at 2:21 PM, Adrian Prantl vi

Re: [PATCH] D12312: Emiting invariant.group.barrier and adding -fstrict-vptrs

2015-08-27 Thread Piotr Padlewski via cfe-commits
Prazek added inline comments. Comment at: include/clang/Driver/Options.td:990 @@ -988,2 +989,3 @@ "value range">; +def fstrict_vptrs: Flag<["-"], "fstrict-vptrs">, Group, Flags<[CC1Option]>; def fstrict_overflow : Flag<["-"], "fstrict-overflow">, Group; -

r246231 - CGDebugInfo: Instead of uniquing RetainedTypes, just refrain from retaining

2015-08-27 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Thu Aug 27 17:56:46 2015 New Revision: 246231 URL: http://llvm.org/viewvc/llvm-project?rev=246231&view=rev Log: CGDebugInfo: Instead of uniquing RetainedTypes, just refrain from retaining them more than once. (NFC) Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Modified

Re: [PATCH] D12312: Emiting invariant.group.barrier and adding -fstrict-vptrs

2015-08-27 Thread Richard Smith via cfe-commits
On Thu, Aug 27, 2015 at 3:49 PM, John McCall wrote: > rjmccall added inline comments. > > > Comment at: include/clang/Driver/Options.td:990 > @@ -988,2 +989,3 @@ > "value range">; > +def fstrict_vptrs: Flag<["-"], "fstrict-vptrs">, Group, > Flags<[CC1Option]>; > def

Re: [PATCH] D11740: ABI versioning macros for libc++

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF added a comment. In http://reviews.llvm.org/D11740#234642, @eugenis wrote: > OK. Then _LIBCPP_ABI_UNSTABLE won't bump the ABI version (as seen in library > soname and header path)? Yeah. That was how I imagined it. http://reviews.llvm.org/D11740

Re: [PATCH] D12181: [sanitizer] Add -fsanitize-trap-function.

2015-08-27 Thread Richard Smith via cfe-commits
rsmith added a comment. In http://reviews.llvm.org/D12181#234590, @jmgao wrote: > Ping, I think @samsonov was waiting on @rsmith's feedback on the following: > > In http://reviews.llvm.org/D12181#229493, @jmgao wrote: > > > The goal is to be able to give a useful fsanitize-specific error message

Re: [PATCH] D11740: ABI versioning macros for libc++

2015-08-27 Thread Evgeniy Stepanov via cfe-commits
eugenis added a comment. In http://reviews.llvm.org/D11740#234610, @EricWF wrote: > In http://reviews.llvm.org/D11740#234575, @eugenis wrote: > > > Yes, not being able to use headers in the libcxx source tree is quite > > unpleasant. It can be fixed by providing a __config_version in > > libcxx

Re: [PATCH] D12312: Emiting invariant.group.barrier and adding -fstrict-vptrs

2015-08-27 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Driver/Options.td:990 @@ -988,2 +989,3 @@ "value range">; +def fstrict_vptrs: Flag<["-"], "fstrict-vptrs">, Group, Flags<[CC1Option]>; def fstrict_overflow : Flag<["-"], "fstrict-overflow">, Group; ---

Re: [PATCH] D12355: [libcxx] Optimize away unneeded length calculation in basic_string::compare(const char*)

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 33368. EricWF added a comment. Remove unnecessary call to `std::min`. http://reviews.llvm.org/D12355 Files: include/string Index: include/string === --- include/string +++ include/string @@ -

Re: [PATCH] D12355: [libcxx] Optimize away unneeded length calculation in basic_string::compare(const char*)

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF marked an inline comment as done. Comment at: include/string:3802 @@ -3799,2 +3801,3 @@ +return _Traits::compare(__rhs.data(), __lhs, _VSTD::min(__lhs_len, __rhs.size())) == 0; } mclow.lists wrote: > Also, you should not call `traits::compare` here.

Re: [PATCH] D10724: Bump X86 Darwin MaxVectorAlign to 64, for AVX512.

2015-08-27 Thread Ahmed Bougacha via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL246230: [X86] Bump Darwin MaxVectorAlign to 64 when AVX512 is enabled. (authored by ab). Changed prior to commit: http://reviews.llvm.org/D10724?vs=28433&id=33367#toc Repository: rL LLVM http://revi

r246230 - [X86] Bump Darwin MaxVectorAlign to 64 when AVX512 is enabled.

2015-08-27 Thread Ahmed Bougacha via cfe-commits
Author: ab Date: Thu Aug 27 17:42:12 2015 New Revision: 246230 URL: http://llvm.org/viewvc/llvm-project?rev=246230&view=rev Log: [X86] Bump Darwin MaxVectorAlign to 64 when AVX512 is enabled. Without this, 64-byte vector types (__m512), specified to be 64-byte aligned in the AVX512 draft SysV ABI

Re: [PATCH] D12390: Use 32/64 SimdDefaultAlign when AVX/AVX512 is enabled, even on i386.

2015-08-27 Thread Ahmed Bougacha via cfe-commits
ab added a comment. r246228 using the features Thanks for the reviews! Repository: rL LLVM http://reviews.llvm.org/D12390 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D12389: Conditionalize X86 Darwin MaxVectorAlign on the presence of AVX.

2015-08-27 Thread Ahmed Bougacha via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL246229: [X86] Conditionalize Darwin MaxVectorAlign on the presence of AVX. (authored by ab). Changed prior to commit: http://reviews.llvm.org/D12389?vs=33278&id=33365#toc Repository: rL LLVM http://

r246229 - [X86] Conditionalize Darwin MaxVectorAlign on the presence of AVX.

2015-08-27 Thread Ahmed Bougacha via cfe-commits
Author: ab Date: Thu Aug 27 17:30:38 2015 New Revision: 246229 URL: http://llvm.org/viewvc/llvm-project?rev=246229&view=rev Log: [X86] Conditionalize Darwin MaxVectorAlign on the presence of AVX. There's no point in using a larger alignment if we have no instructions that would benefit from it.

Re: [PATCH] D12081: Add use-nullptr check to clang-tidy.

2015-08-27 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: aaron.ballman. aaron.ballman added a comment. While working on r246209, one of the build bots ran into an issue (commented below) that has me slightly perplexed. The build break can be found at: http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/3

r246228 - [X86] Use AVX features instead of ABI to init. SimdDefaultAlign.

2015-08-27 Thread Ahmed Bougacha via cfe-commits
Author: ab Date: Thu Aug 27 17:24:56 2015 New Revision: 246228 URL: http://llvm.org/viewvc/llvm-project?rev=246228&view=rev Log: [X86] Use AVX features instead of ABI to init. SimdDefaultAlign. The ABI string only exists to communicate with TargetCodeGenInfo. Concretely, since we only used "avx*"

Re: [PATCH] D12390: Also enable the avx/avx512 ABIs for i386, not just x86_64.

2015-08-27 Thread Ahmed Bougacha via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL246228: [X86] Use AVX features instead of ABI to init. SimdDefaultAlign. (authored by ab). Changed prior to commit: http://reviews.llvm.org/D12390?vs=33280&id=33363#toc Repository: rL LLVM http://re

r246225 - Use an explicit assignment.

2015-08-27 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 27 17:20:03 2015 New Revision: 246225 URL: http://llvm.org/viewvc/llvm-project?rev=246225&view=rev Log: Use an explicit assignment. Modified: cfe/trunk/lib/CodeGen/CGCall.cpp Modified: cfe/trunk/lib/CodeGen/CGCall.cpp URL: http://llvm.org/viewvc/llvm-project/c

Re: [PATCH] D11740: ABI versioning macros for libc++

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF added a comment. In http://reviews.llvm.org/D11740#234575, @eugenis wrote: > Yes, not being able to use headers in the libcxx source tree is quite > unpleasant. It can be fixed by providing a __config_version in libcxx/include > with the default version values. Or, in the approach of >

[clang-tools-extra] r246224 - Reverting r246209 while I investigate a build bot failure: http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/30516

2015-08-27 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Aug 27 17:19:50 2015 New Revision: 246224 URL: http://llvm.org/viewvc/llvm-project?rev=246224&view=rev Log: Reverting r246209 while I investigate a build bot failure: http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/30516 Removed: clang-tools-e

r246223 - [X86][3DNow] Added debug codegen test for 3DNow! intrinsics

2015-08-27 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Thu Aug 27 17:18:09 2015 New Revision: 246223 URL: http://llvm.org/viewvc/llvm-project?rev=246223&view=rev Log: [X86][3DNow] Added debug codegen test for 3DNow! intrinsics Part of PR24590 Modified: cfe/trunk/test/CodeGen/3dnow-builtins.c Modified: cfe/trunk/test/CodeGe

Re: [PATCH] D11832: [Patch] [Analyzer] false positive: Potential leak connected with memcpy (PR 22954)

2015-08-27 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. Other than one teeny nit, looks good to me. Comment at: lib/StaticAnalyzer/Checkers/CStringChecker.cpp:863 @@ +862,3 @@ + + const ElementRegion *ER = dyn_cast(R); + // Cast is safe as BufVal's region is a FieldRegion. You can use cas

Re: [PATCH] D12247: [libc++] remove possible trailing padding from aligned_storage

2015-08-27 Thread Xinliang David Li via cfe-commits
On Thu, Aug 27, 2015 at 2:57 PM, Yiran Wang wrote: > yiranwang added a comment. > > In http://reviews.llvm.org/D12247#234533, @EricWF wrote: > >> So this patch LGTM. Sorry for being slow to understand it. However I want to >> see two things before it lands. >> >> 1. I would like to see a test of

Re: r246210 - CGDebugInfo: Factor out a getOrCreateStandaloneType() method.

2015-08-27 Thread David Blaikie via cfe-commits
On Thu, Aug 27, 2015 at 2:35 PM, Adrian Prantl wrote: > > On Aug 27, 2015, at 2:25 PM, David Blaikie wrote: > > > > On Thu, Aug 27, 2015 at 2:21 PM, Adrian Prantl via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: adrian >> Date: Thu Aug 27 16:21:19 2015 >> New Revision: 246210

Re: [PATCH] D12181: [sanitizer] Add -fsanitize-trap-function.

2015-08-27 Thread Josh Gao via cfe-commits
jmgao added a comment. Ping, I think @samsonov was waiting on @rsmith's feedback on the following: In http://reviews.llvm.org/D12181#229493, @jmgao wrote: > In http://reviews.llvm.org/D12181#229467, @rsmith wrote: > > > In http://reviews.llvm.org/D12181#229358, @rsmith wrote: > > > > > Can you p

Re: [PATCH] D11740: ABI versioning macros for libc++

2015-08-27 Thread Evgeniy Stepanov via cfe-commits
eugenis added a comment. Yes, not being able to use headers in the libcxx source tree is quite unpleasant. It can be fixed by providing a __config_version in libcxx/include with the default version values. Or, in the approach of http://reviews.llvm.org/D11963, do something smart in __config to

Re: [PATCH] D12247: [libc++] remove possible trailing padding from aligned_storage

2015-08-27 Thread Yiran Wang via cfe-commits
yiranwang added a comment. In http://reviews.llvm.org/D12247#234533, @EricWF wrote: > So this patch LGTM. Sorry for being slow to understand it. However I want to > see two things before it lands. > > 1. I would like to see a test of some sort that the resulting type has the > same size and ali

Re: [PATCH] D12312: Emiting invariant.group.barrier and adding -fstrict-vptrs

2015-08-27 Thread Piotr Padlewski via cfe-commits
Prazek added inline comments. Comment at: lib/CodeGen/CGClass.cpp:1279 @@ +1278,3 @@ + if (CGM.getCodeGenOpts().StrictVPtrs && BaseVPtrsInitialized) +CXXThisValue = Builder.CreateInvariantGroupBarrier(LoadCXXThis()); + rjmccall wrote: > Should this just be in

Re: [PATCH] D11740: ABI versioning macros for libc++

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF added a comment. In http://reviews.llvm.org/D11740#234552, @EricWF wrote: > Thanks for doing all of this work. It's really appreciated. > > First, I don't really think we should have the notion of a "minor" ABI > version. It will be hard enough to maintain 2 major versions and I don't >

Re: [PATCH] D11740: ABI versioning macros for libc++

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF added a comment. Thanks for doing all of this work. It's really appreciated. First, I don't really think we should have the notion of a "minor" ABI version. It will be hard enough to maintain 2 major versions and I don't understand what a minor ABI version buys us. In my opinion libc++

Re: r245779 - [modules] Rearrange how redeclaration chains are loaded, to remove a walk over

2015-08-27 Thread Richard Smith via cfe-commits
On Sat, Aug 22, 2015 at 1:16 AM, Vassil Vassilev wrote: > On 22/08/15 03:47, Richard Smith via cfe-commits wrote: > >> Author: rsmith >> Date: Fri Aug 21 20:47:18 2015 >> New Revision: 245779 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=245779&view=rev >> Log: >> [modules] Rearrange how red

r246215 - Don't call a member function on a null pointer.

2015-08-27 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Aug 27 16:38:25 2015 New Revision: 246215 URL: http://llvm.org/viewvc/llvm-project?rev=246215&view=rev Log: Don't call a member function on a null pointer. Modified: cfe/trunk/lib/Serialization/ASTWriterDecl.cpp Modified: cfe/trunk/lib/Serialization/ASTWriterDecl.cpp

Re: r245779 - [modules] Rearrange how redeclaration chains are loaded, to remove a walk over

2015-08-27 Thread Richard Smith via cfe-commits
On Thu, Aug 27, 2015 at 10:47 AM, Justin Bogner wrote: > Richard Smith via cfe-commits writes: > > Author: rsmith > > Date: Fri Aug 21 20:47:18 2015 > > New Revision: 245779 > > > > URL: http://llvm.org/viewvc/llvm-project?rev=245779&view=rev > > Log: > > [modules] Rearrange how redeclaration ch

r246214 - Assume loads fix #2

2015-08-27 Thread Piotr Padlewski via cfe-commits
Author: prazek Date: Thu Aug 27 16:35:41 2015 New Revision: 246214 URL: http://llvm.org/viewvc/llvm-project?rev=246214&view=rev Log: Assume loads fix #2 There was linker problem, and it turns out that it is not always safe to refer to vtable. If the vtable is used, then we can refer to it without

r246213 - Generating assumption loads of vptr after ctor call (fixed)

2015-08-27 Thread Piotr Padlewski via cfe-commits
Author: prazek Date: Thu Aug 27 16:35:37 2015 New Revision: 246213 URL: http://llvm.org/viewvc/llvm-project?rev=246213&view=rev Log: Generating assumption loads of vptr after ctor call (fixed) Generating call assume(icmp %vtable, %global_vtable) after constructor call for devirtualization purpose

Re: r246210 - CGDebugInfo: Factor out a getOrCreateStandaloneType() method.

2015-08-27 Thread Adrian Prantl via cfe-commits
> On Aug 27, 2015, at 2:25 PM, David Blaikie wrote: > > > > On Thu, Aug 27, 2015 at 2:21 PM, Adrian Prantl via cfe-commits > mailto:cfe-commits@lists.llvm.org>> wrote: > Author: adrian > Date: Thu Aug 27 16:21:19 2015 > New Revision: 246210 > > URL: http://llvm.org/viewvc/llvm-project?rev=24

Re: [PATCH] D12375: [PATCH] Relax parse ordering rules for attributes

2015-08-27 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Parse/ParseDeclCXX.cpp:3923 @@ +3922,3 @@ + +void Parser::MaybeParseAttributes(unsigned WhichAttrKinds, + ParsedAttributesWithRange &Attrs, Please provide an inlineable wrapper for this

r246211 - [X86][XOP] Added debug codegen test for XOP intrinsics

2015-08-27 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Thu Aug 27 16:32:03 2015 New Revision: 246211 URL: http://llvm.org/viewvc/llvm-project?rev=246211&view=rev Log: [X86][XOP] Added debug codegen test for XOP intrinsics Part of PR24590 Modified: cfe/trunk/test/CodeGen/xop-builtins.c Modified: cfe/trunk/test/CodeGen/xop-b

Re: [PATCH] D12247: [libc++] remove possible trailing padding from aligned_storage

2015-08-27 Thread Eric Fiselier via cfe-commits
EricWF added a comment. So this patch LGTM. Sorry for being slow to understand it. However I want to see two things before it lands. 1. I would like to see a test of some sort that the resulting type has the same size and alignment requirements it did before the change. I'm not sure what the b

Re: r246210 - CGDebugInfo: Factor out a getOrCreateStandaloneType() method.

2015-08-27 Thread David Blaikie via cfe-commits
On Thu, Aug 27, 2015 at 2:21 PM, Adrian Prantl via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: adrian > Date: Thu Aug 27 16:21:19 2015 > New Revision: 246210 > > URL: http://llvm.org/viewvc/llvm-project?rev=246210&view=rev > Log: > CGDebugInfo: Factor out a getOrCreateStandaloneType

r246210 - CGDebugInfo: Factor out a getOrCreateStandaloneType() method.

2015-08-27 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Thu Aug 27 16:21:19 2015 New Revision: 246210 URL: http://llvm.org/viewvc/llvm-project?rev=246210&view=rev Log: CGDebugInfo: Factor out a getOrCreateStandaloneType() method. Usually debug info is created on the fly while during codegen. With this API it becomes possible to cr

Re: [PATCH] D12411: [PATCH] Expose AST language options to checkers

2015-08-27 Thread Aaron Ballman via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. Thanks! I've commit in r246209. I plan to do a more thorough search of clang-tidy to see what else can make use of this feature, this just happened to be low-hanging fruit that I found today by accident. ~Aaron http://reviews

[clang-tools-extra] r246209 - Expose language options to the checkers; disable UseNullptrCheck when not compiling in C++11 mode.

2015-08-27 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Aug 27 16:17:47 2015 New Revision: 246209 URL: http://llvm.org/viewvc/llvm-project?rev=246209&view=rev Log: Expose language options to the checkers; disable UseNullptrCheck when not compiling in C++11 mode. Added: clang-tools-extra/trunk/test/clang-tidy/moderni

Re: [PATCH] D12411: [PATCH] Expose AST language options to checkers

2015-08-27 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good .Thanks for fixing this! BTW, there are other checks that use LangOpts in the check() method. IIRC, misc-use-override, google-readabiity-casting and maybe something else. We need t

Re: [PATCH] D12390: Also enable the avx/avx512 ABIs for i386, not just x86_64.

2015-08-27 Thread John McCall via cfe-commits
rjmccall added a comment. In http://reviews.llvm.org/D12390#234458, @ab wrote: > Unless I'm misunderstanding, I believe this has much less impact than you're > thinking; there are three cases: > > - x86_64: no change (-mno-mmx is guarded by x86) > - x86, with -mno-mmx: no change (because previou

r246206 - [X86][FMA4] Added debug codegen test for FMA4 intrinsics

2015-08-27 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Thu Aug 27 15:41:45 2015 New Revision: 246206 URL: http://llvm.org/viewvc/llvm-project?rev=246206&view=rev Log: [X86][FMA4] Added debug codegen test for FMA4 intrinsics Part of PR24590 Modified: cfe/trunk/test/CodeGen/fma4-builtins.c Modified: cfe/trunk/test/CodeGen/fm

r246204 - [X86][F16C] Added debug codegen test for F16C intrinsics

2015-08-27 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Thu Aug 27 15:34:02 2015 New Revision: 246204 URL: http://llvm.org/viewvc/llvm-project?rev=246204&view=rev Log: [X86][F16C] Added debug codegen test for F16C intrinsics Part of PR24590 Modified: cfe/trunk/test/CodeGen/f16c-builtins.c Modified: cfe/trunk/test/CodeGen/f1

Re: r246027 - Convert a bunch of loops to ranged-for and clean up accordingly.

2015-08-27 Thread Eric Christopher via cfe-commits
On Thu, Aug 27, 2015 at 1:29 PM Eric Christopher wrote: > >> > -assert(Features[i][0] == '+' && "Invalid target feature!"); >> > +assert(Feature[0] == '+' && "Invalid target feature!"); >> >> This assert is kind of pointless now, since we'll have continued in that >> case and the followin

r246202 - Remove a dead assert, we'd have gotten the case above.

2015-08-27 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 27 15:32:24 2015 New Revision: 246202 URL: http://llvm.org/viewvc/llvm-project?rev=246202&view=rev Log: Remove a dead assert, we'd have gotten the case above. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL: http://llvm.

  1   2   >