[PATCH] D28765: CStringChecker can crash when uninitialized checks are disabled

2017-01-17 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. It is not supported to run the analyzer with some of the core checkers turned off. Maybe we should change the behavior such that turning off core checkers turn off the warnings from those checkers but not the checkers themselves? https://reviews.llvm.org/D28765 __

RE: [libcxx] r292013 - Fix last_write_time tests for filesystems that don't support negative and very large times

2017-01-17 Thread Hahnfeld, Jonas via cfe-commits
Thanks for already taking care, less work for me :-) > -Original Message- > From: hwennb...@google.com [mailto:hwennb...@google.com] On Behalf > Of Hans Wennborg > Sent: Wednesday, January 18, 2017 6:19 AM > To: Eric Fiselier > Cc: Hahnfeld, Jonas; cfe-commits@lists.llvm.org > Subject: Re:

[PATCH] D28844: clang-format: fix fallback style set to "none" not formatting

2017-01-17 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added inline comments. This revision is now accepted and ready to land. Comment at: lib/Format/Format.cpp:1906 - // FIXME: If FallbackStyle is explicitly "none", format is disabled. - if (!getPredefinedStyle(FallbackStyle, Style.Languag

[libcxx] r292347 - Revert "Add mechanism to override LIT options using enviroment variables"

2017-01-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jan 18 00:24:18 2017 New Revision: 292347 URL: http://llvm.org/viewvc/llvm-project?rev=292347&view=rev Log: Revert "Add mechanism to override LIT options using enviroment variables" The buildbots currently depend on the old configuration. I'll recommit once Zorg is fixed

[PATCH] D28843: IRGen: Start using the WriteThinLTOBitcode pass.

2017-01-17 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added inline comments. Comment at: clang/test/CodeGenCXX/type-metadata-thinlto.cpp:2 +// RUN: %clang_cc1 -flto=thin -triple x86_64-unknown-linux -fvisibility hidden -emit-llvm-bc -o %t %s +// RUN: llvm-modextract -o - -n 1 %t | llvm-dis | FileCheck %s + -

[PATCH] D28843: IRGen: Start using the WriteThinLTOBitcode pass.

2017-01-17 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added a comment. In https://reviews.llvm.org/D28843#649207, @tejohnson wrote: > > TODO: avoid breaking Darwin. > > How does this break Darwin? IIUC, we don't use the new LTO API, which is handling this gracefully. https://reviews.llvm.org/D28843

[libcxx] r292346 - Add mechanism to override LIT options using enviroment variables

2017-01-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Jan 18 00:08:38 2017 New Revision: 292346 URL: http://llvm.org/viewvc/llvm-project?rev=292346&view=rev Log: Add mechanism to override LIT options using enviroment variables Modified: libcxx/trunk/test/libcxx/test/config.py Modified: libcxx/trunk/test/libcxx/test/conf

[PATCH] D28785: Split exception.cpp and new.cpp implementation into different files for different runtimes

2017-01-17 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added inline comments. Comment at: include/exception:85 +#if defined(_LIBCPP_ABI_MICROSOFT) +#include EricWF wrote: > smeenai wrote: > > What's the rationale for relying on Microsoft's exception implementation > > rather than libc++'s? > `vcruntime_ne

[PATCH] D28843: IRGen: Start using the WriteThinLTOBitcode pass.

2017-01-17 Thread Teresa Johnson via Phabricator via cfe-commits
tejohnson added a comment. > TODO: avoid breaking Darwin. How does this break Darwin? Comment at: clang/lib/CodeGen/BackendUtil.cpp:694 +else + PerModulePasses.add( + createBitcodeWriterPass(*OS, CodeGenOpts.EmitLLVMUseLists)); Can we transfo

LLVM buildmaster will restarted in few minutes.

2017-01-17 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will restarted in few minutes. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r292345 - Fix filesystem::path assignment from {}

2017-01-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Jan 17 23:48:55 2017 New Revision: 292345 URL: http://llvm.org/viewvc/llvm-project?rev=292345&view=rev Log: Fix filesystem::path assignment from {} Adding `path::operator=(string_type&&)` made the expression `p = {}` ambiguous. This path fixes that ambiguity by making the

[PATCH] D28821: [CMake] Separate LLVM_ENABLE_LTO and LLVM_ENABLE_LLD

2017-01-17 Thread Petr Hosek via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292343: [CMake] Separate LLVM_ENABLE_LTO and LLVM_ENABLE_LLD (authored by phosek). Changed prior to commit: https://reviews.llvm.org/D28821?vs=84716&id=84798#toc Repository: rL LLVM https://reviews.

r292343 - [CMake] Separate LLVM_ENABLE_LTO and LLVM_ENABLE_LLD

2017-01-17 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Jan 17 23:41:17 2017 New Revision: 292343 URL: http://llvm.org/viewvc/llvm-project?rev=292343&view=rev Log: [CMake] Separate LLVM_ENABLE_LTO and LLVM_ENABLE_LLD These two are independent: it's possible to use LLD without LTO, and it's possible to do LTO build without LLD.

[libcxx] r292342 - Get more std::string _LIBCPP_DEBUG tests passing

2017-01-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Jan 17 23:34:42 2017 New Revision: 292342 URL: http://llvm.org/viewvc/llvm-project?rev=292342&view=rev Log: Get more std::string _LIBCPP_DEBUG tests passing Modified: libcxx/trunk/test/libcxx/debug/containers/db_string.pass.cpp libcxx/trunk/test/support/debug_mode

Re: r291955 - PR31606: Generalize our tentative DR resolution for inheriting copy/move

2017-01-17 Thread Richard Smith via cfe-commits
Yes, let's. On 17 Jan 2017 9:11 pm, "Hans Wennborg" wrote: What do you think; time to merge it? On Fri, Jan 13, 2017 at 1:21 PM, Richard Smith wrote: > I'd like to wait a bit to see how the dust settles on this one, but this is > a bugfix for a previous bugfix for a standard change, and we've

Re: [libcxx] r292013 - Fix last_write_time tests for filesystems that don't support negative and very large times

2017-01-17 Thread Hans Wennborg via cfe-commits
I went ahead and merged it in r292341. On Tue, Jan 17, 2017 at 4:26 PM, Eric Fiselier wrote: > @Jonas please go ahead and merge this patch. > > On Tue, Jan 17, 2017 at 5:24 PM, Hans Wennborg wrote: >> >> Yes, go ahead. >> >> Apologies for the delay. >> >> - Hans >> >> On Sat, Jan 14, 2017 at 5:

[libcxx] r292341 - Merging r292013:

2017-01-17 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Jan 17 23:07:58 2017 New Revision: 292341 URL: http://llvm.org/viewvc/llvm-project?rev=292341&view=rev Log: Merging r292013: r292013 | hahnfeld | 2017-01-14 03:35:15 -0800 (Sat, 14 Jan 2017) | 6 lines

Re: r291955 - PR31606: Generalize our tentative DR resolution for inheriting copy/move

2017-01-17 Thread Hans Wennborg via cfe-commits
What do you think; time to merge it? On Fri, Jan 13, 2017 at 1:21 PM, Richard Smith wrote: > I'd like to wait a bit to see how the dust settles on this one, but this is > a bugfix for a previous bugfix for a standard change, and we've had several > user complaints requesting that we fix the bug i

[libcxx] r292337 - More configuration changes for running the test suite against MSVC's STL

2017-01-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Jan 17 21:57:38 2017 New Revision: 292337 URL: http://llvm.org/viewvc/llvm-project?rev=292337&view=rev Log: More configuration changes for running the test suite against MSVC's STL Added: libcxx/trunk/test/std/experimental/string.view/lit.local.cfg Modified: libcx

[PATCH] D28845: Prototype of modules codegen

2017-01-17 Thread David Blaikie via Phabricator via cfe-commits
dblaikie created this revision. First pass at generating weak definitions of inline functions from module files (& currently skipping definitions of those functions in uses) I've done some manual testing (haven't delved into the preferred testing strategy for modules). Seems to work for simplest

[PATCH] D28844: clang-format: fix fallback style set to "none" not formatting

2017-01-17 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added inline comments. Comment at: lib/Format/Format.cpp:1906 - // FIXME: If FallbackStyle is explicitly "none", format is disabled. - if (!getPredefinedStyle(FallbackStyle, Style.Language, &Style)) -return make_string_error("Invalid fallback style \"" + Fallba

[PATCH] D28844: clang-format: fix fallback style set to "none" not formatting

2017-01-17 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano created this revision. This change fixes the fact that fallback style set to "none" should not format. Without this change, fallback style "none" ends up applying LLVM formatting. https://reviews.llvm.org/D28844 Files: lib/Format/Format.cpp test/Format/style-on-command-line.cpp

[libclc] r292335 - math: Add logb builtin

2017-01-17 Thread Aaron Watry via cfe-commits
Author: awatry Date: Tue Jan 17 21:14:10 2017 New Revision: 292335 URL: http://llvm.org/viewvc/llvm-project?rev=292335&view=rev Log: math: Add logb builtin Ported from the amd-builtins branch. Signed-off-by: Aaron Watry Reviewed-by: Matt Arsenault CC: Tom Stellard Added: libclc/trunk/gen

[libclc] r292334 - math: Add expm1 builtin function

2017-01-17 Thread Aaron Watry via cfe-commits
Author: awatry Date: Tue Jan 17 21:13:37 2017 New Revision: 292334 URL: http://llvm.org/viewvc/llvm-project?rev=292334&view=rev Log: math: Add expm1 builtin function Ported from the amd-builtins branch. Signed-off-by: Aaron Watry Reviewed-by: Matt Arsenault CC: Tom Stellard Added: libclc

[PATCH] D28843: IRGen: Start using the WriteThinLTOBitcode pass.

2017-01-17 Thread Peter Collingbourne via Phabricator via cfe-commits
pcc created this revision. This is the final change necessary to support CFI with ThinLTO. TODO: avoid breaking Darwin. Depends on https://reviews.llvm.org/D28840 https://reviews.llvm.org/D28843 Files: clang/lib/CodeGen/BackendUtil.cpp clang/test/CodeGenCXX/type-metadata-thinlto.cpp Inde

r292329 - [AVX-512] Replace subvector broadcast builtins with shufflevectors and selects.

2017-01-17 Thread Craig Topper via cfe-commits
Author: ctopper Date: Tue Jan 17 20:17:10 2017 New Revision: 292329 URL: http://llvm.org/viewvc/llvm-project?rev=292329&view=rev Log: [AVX-512] Replace subvector broadcast builtins with shufflevectors and selects. Verified that the backend codegens this equally well. Modified: cfe/trunk/incl

[PATCH] D28837: [libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants.

2017-01-17 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. The changes sure look funny but I have no issue with them. https://reviews.llvm.org/D28837 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[libcxx] r292326 - Add support for running our test suite against MSVC's STL

2017-01-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Jan 17 19:48:54 2017 New Revision: 292326 URL: http://llvm.org/viewvc/llvm-project?rev=292326&view=rev Log: Add support for running our test suite against MSVC's STL Modified: libcxx/trunk/test/libcxx/test/config.py libcxx/trunk/test/std/thread/thread.mutex/threa

[PATCH] D28837: [libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants.

2017-01-17 Thread Stephan T. Lavavej via Phabricator via cfe-commits
STL_MSFT created this revision. [libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants. MSVC has compiler warnings C4127 "conditional expression is constant" (enabled by /https://reviews.llvm.org/W4) and C6326 "Potential comparison of a constant with another constant" (enabled by /ana

r292324 - [WebAssembly] Update grow_memory's return type.

2017-01-17 Thread Dan Gohman via cfe-commits
Author: djg Date: Tue Jan 17 19:03:35 2017 New Revision: 292324 URL: http://llvm.org/viewvc/llvm-project?rev=292324&view=rev Log: [WebAssembly] Update grow_memory's return type. The grow_memory instruction now returns the previous memory size. Add the return type to the clang intrinsic. Modified

Re: r292052 - [code-completion] Fix crash when trying to do postfix completion of instance member inside a static function.

2017-01-17 Thread Argyrios Kyrtzidis via cfe-commits
Thank you! > On Jan 17, 2017, at 4:35 PM, Hans Wennborg wrote: > > Merged in r292313. > > Thanks, > Hans > > On Tue, Jan 17, 2017 at 8:56 AM, Argyrios Kyrtzidis wrote: >> Hi Hans, >> >> Could this go into the stable branch ? >> >> On Sat, Jan 14, 2017 at 10:11 PM, Argyrios Kyrtzidis via cfe

[PATCH] D28779: [ASTReader] Add a DeserializationListener callback for IMPORTED_MODULES

2017-01-17 Thread Manman Ren via Phabricator via cfe-commits
manmanren accepted this revision. manmanren added a comment. This revision is now accepted and ready to land. LGTM Manman https://reviews.llvm.org/D28779 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[PATCH] D28790: [Modules] Correct test comment from obsolete earlier version of code. NFC

2017-01-17 Thread Manman Ren via Phabricator via cfe-commits
manmanren accepted this revision. manmanren added a comment. This revision is now accepted and ready to land. LGTM Manman https://reviews.llvm.org/D28790 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[PATCH] D28835: [coroutines] NFC: Refactor Sema::CoroutineBodyStmt construction.

2017-01-17 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov created this revision. Herald added a subscriber: mehdi_amini. Sema::CheckCompletedCoroutineBody was growing unwieldy with building all of the substatements. Also, constructors for CoroutineBodyStmt had way too many parameters. Instead, CoroutineBodyStmt now defines CtorArgs struct

Re: r292052 - [code-completion] Fix crash when trying to do postfix completion of instance member inside a static function.

2017-01-17 Thread Hans Wennborg via cfe-commits
Merged in r292313. Thanks, Hans On Tue, Jan 17, 2017 at 8:56 AM, Argyrios Kyrtzidis wrote: > Hi Hans, > > Could this go into the stable branch ? > > On Sat, Jan 14, 2017 at 10:11 PM, Argyrios Kyrtzidis via cfe-commits > wrote: >> >> Author: akirtzidis >> Date: Sun Jan 15 00:11:04 2017 >> New Re

Re: r292032 - Fix PR31644 introduced by r287138 and add a regression test.

2017-01-17 Thread Hans Wennborg via cfe-commits
On Sat, Jan 14, 2017 at 1:26 PM, Dimitry Andric wrote: > On 14 Jan 2017, at 22:12, Yaron Keren via cfe-commits > wrote: >> Author: yrnkrn >> Date: Sat Jan 14 15:12:08 2017 >> New Revision: 292032 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=292032&view=rev >> Log: >> Fix PR31644 introduced

Re: [libcxx] r292013 - Fix last_write_time tests for filesystems that don't support negative and very large times

2017-01-17 Thread Eric Fiselier via cfe-commits
@Jonas please go ahead and merge this patch. On Tue, Jan 17, 2017 at 5:24 PM, Hans Wennborg wrote: > Yes, go ahead. > > Apologies for the delay. > > - Hans > > On Sat, Jan 14, 2017 at 5:54 AM, Eric Fiselier wrote: > > +1 from me. @Hans am I OK to merge this? > > > > On Sat, Jan 14, 2017 at 4:5

Re: [libcxx] r292294 - Fix type_info's constructor by making it explicit again.

2017-01-17 Thread Eric Fiselier via cfe-commits
Merged into the 4.0 branch in r292309. On Tue, Jan 17, 2017 at 4:55 PM, Eric Fiselier wrote: > FYI Once the bots finish checking this commit I'm going to merge this into > the 4.0 branch. > > This fixes a very recently introduced regression. > > /Eric > > On Tue, Jan 17, 2017 at 4:41 PM, Eric Fi

[libcxx] r292309 - Merge r292294: Fix type_info's constructor by making it explicit again.

2017-01-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Jan 17 18:14:31 2017 New Revision: 292309 URL: http://llvm.org/viewvc/llvm-project?rev=292309&view=rev Log: Merge r292294: Fix type_info's constructor by making it explicit again. In recent changes type_info's private constructor was accidentally made implicit. This patch

Re: [libcxx] r292013 - Fix last_write_time tests for filesystems that don't support negative and very large times

2017-01-17 Thread Hans Wennborg via cfe-commits
Yes, go ahead. Apologies for the delay. - Hans On Sat, Jan 14, 2017 at 5:54 AM, Eric Fiselier wrote: > +1 from me. @Hans am I OK to merge this? > > On Sat, Jan 14, 2017 at 4:53 AM, Hahnfeld, Jonas > wrote: >> >> Hi Hans, >> >> can this be merged for 4.0? Eric suggested this in >> https://revi

[PATCH] D28785: Split exception.cpp and new.cpp implementation into different files for different runtimes

2017-01-17 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 84770. EricWF added a comment. Herald added a subscriber: mgorny. - Allow standalone libc++ build on OS X to default to using `libc++abi`. https://reviews.llvm.org/D28785 Files: CMakeLists.txt include/exception include/new include/typeinfo src/exce

Re: r291963 - [clang] Emit `diagnose_if` warnings from system headers

2017-01-17 Thread Hans Wennborg via cfe-commits
Richard, what do you think? On Fri, Jan 13, 2017 at 3:16 PM, Eric Fiselier wrote: > I would love to see this merged. It would make it easier to write libc++ > tests if the tests didn't have to worry about the old 4.0 behavior. > > CC'ing Richard: Would merging this be OK? > > On Fri, Jan 13, 2017

[libcxx] r292297 - Allow sym_diff.py to report non-zero for non-breaking ABI changes

2017-01-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Jan 17 18:05:01 2017 New Revision: 292297 URL: http://llvm.org/viewvc/llvm-project?rev=292297&view=rev Log: Allow sym_diff.py to report non-zero for non-breaking ABI changes Modified: libcxx/trunk/lib/abi/CMakeLists.txt libcxx/trunk/utils/sym_check/sym_check/diff.

Re: [libcxx] r292294 - Fix type_info's constructor by making it explicit again.

2017-01-17 Thread Eric Fiselier via cfe-commits
FYI Once the bots finish checking this commit I'm going to merge this into the 4.0 branch. This fixes a very recently introduced regression. /Eric On Tue, Jan 17, 2017 at 4:41 PM, Eric Fiselier via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ericwf > Date: Tue Jan 17 17:41:42 201

[libcxx] r292294 - Fix type_info's constructor by making it explicit again.

2017-01-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Jan 17 17:41:42 2017 New Revision: 292294 URL: http://llvm.org/viewvc/llvm-project?rev=292294&view=rev Log: Fix type_info's constructor by making it explicit again. In recent changes type_info's private constructor was accidentally made implicit. This patch fixes that. M

[PATCH] D28832: Improve redefinition errors pointing to the same header.

2017-01-17 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno created this revision. Diagnostics related to redefinition errors that point to the same header file do not provide much information that helps fixing the issue. In modules context it usually happens because of a non modular include, in non-module context it might happen because of the la

[libcxx] r292291 - Don't strip -m32 from the user provide command line flags. This fixes the compiler-rt 32 bit sanitizer build

2017-01-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Jan 17 17:27:56 2017 New Revision: 292291 URL: http://llvm.org/viewvc/llvm-project?rev=292291&view=rev Log: Don't strip -m32 from the user provide command line flags. This fixes the compiler-rt 32 bit sanitizer build Modified: libcxx/trunk/CMakeLists.txt Modified: l

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-17 Thread Delesley Hutchins via Phabricator via cfe-commits
delesley added a comment. Sorry about the slow response. My main concern here is that the thread safety analysis was designed for use with a library that wraps the system mutex in a separate Mutex class. We did that specifically to avoid breaking anything; code has to opt-in to the static ch

[libcxx] r292281 - [libcxx] [test] Don't ask whether Incomplete& can be assigned to.

2017-01-17 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Tue Jan 17 16:24:45 2017 New Revision: 292281 URL: http://llvm.org/viewvc/llvm-project?rev=292281&view=rev Log: [libcxx] [test] Don't ask whether Incomplete& can be assigned to. This is the subject of an active NB comment. Regardless of what the Working Paper currently says

Re: [libcxx] r292276 - Fix std::string assignment ambiguity from braced initializer lists.

2017-01-17 Thread Eric Fiselier via cfe-commits
Hi Marshall, We should merge this fix into the 4.0 release. It fixes a regression which was reported by the FreeBSD maintainers here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216177 Am I OK to merge this? /Eric On Tue, Jan 17, 2017 at 3:10 PM, Eric Fiselier via cfe-commits < cfe-commit

[libcxx] r292276 - Fix std::string assignment ambiguity from braced initializer lists.

2017-01-17 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Tue Jan 17 16:10:32 2017 New Revision: 292276 URL: http://llvm.org/viewvc/llvm-project?rev=292276&view=rev Log: Fix std::string assignment ambiguity from braced initializer lists. When support for `basic_string_view` was added to string it also added new assignment operators

[PATCH] D28793: [NVPTX] Auto-upgrade some NVPTX intrinsics to LLVM target-generic code.

2017-01-17 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: clang/lib/Headers/__clang_cuda_runtime_wrapper.h:124 +} +inline long long __nvvm_max_i(long long __a, long long __b) { + return __a >= __b ? __a : __b; Shouldn't that be `_ll` ? That was the name of the max of long long arg

[PATCH] D27202: [analyzer] Do not conjure a symbol for return value of a conservatively evaluated function

2017-01-17 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added a comment. From what I recall, it is not clear that this patch is the step in the right direction. At least, it need more investigation. https://reviews.llvm.org/D27202 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://

r292269 - [WebAssembly] Add minimal support for the new wasm object format triple.

2017-01-17 Thread Dan Gohman via cfe-commits
Author: djg Date: Tue Jan 17 15:46:38 2017 New Revision: 292269 URL: http://llvm.org/viewvc/llvm-project?rev=292269&view=rev Log: [WebAssembly] Add minimal support for the new wasm object format triple. Modified: cfe/trunk/lib/Basic/Targets.cpp cfe/trunk/lib/CodeGen/BackendUtil.cpp cf

r292268 - [xray] try to fix thumb buildbot

2017-01-17 Thread Renato Golin via cfe-commits
Author: rengolin Date: Tue Jan 17 15:37:24 2017 New Revision: 292268 URL: http://llvm.org/viewvc/llvm-project?rev=292268&view=rev Log: [xray] try to fix thumb buildbot Modified: cfe/trunk/lib/Driver/Tools.cpp Modified: cfe/trunk/lib/Driver/Tools.cpp URL: http://llvm.org/viewvc/llvm-project/

r292265 - UsersManual.rst: add missing newline

2017-01-17 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Jan 17 15:31:57 2017 New Revision: 292265 URL: http://llvm.org/viewvc/llvm-project?rev=292265&view=rev Log: UsersManual.rst: add missing newline Modified: cfe/trunk/docs/UsersManual.rst Modified: cfe/trunk/docs/UsersManual.rst URL: http://llvm.org/viewvc/llvm-project/

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-17 Thread Dimitry Andric via Phabricator via cfe-commits
dim added inline comments. Comment at: include/__threading_support:43 +#if defined(__clang__) && __has_attribute(acquire_capability) +#define _LIBCPP_THREAD_SAFETY_ATTRIBUTE(x) __attribute__((x)) I think the least intrusive way would be to add a `defined(__Free

[PATCH] D28146: [compiler-rt] [test] [builtins] Remove obsolete/UB tests in __fixuns?fdi based

2017-01-17 Thread Michał Górny via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292257: [test] [builtins] Remove obsolete/UB tests in __fixuns?fdi based (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D28146?vs=82625&id=84737#toc Repository: rL LLVM http

[PATCH] D28514: [CodeCompletion] Reset the hidden declaration obtained after lookup when caching UsingShadowDecls

2017-01-17 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added inline comments. Comment at: lib/Sema/SemaCodeComplete.cpp:961 +// then incorrectly applied to the target declaration. This can be avoided +// by resetting the declaration that's being hidden. +if (Hiding && isa(Hiding)) I'm not sure ab

[PATCH] D28821: [CMake] Separate LLVM_ENABLE_LTO and LLVM_ENABLE_LLD

2017-01-17 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added a comment. Yes, thanks! Repository: rL LLVM https://reviews.llvm.org/D28821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D28821: [CMake] Separate LLVM_ENABLE_LTO and LLVM_ENABLE_LLD

2017-01-17 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. Many thanks for the quick cleanup! LGTM! Repository: rL LLVM https://reviews.llvm.org/D28821 ___ cfe-commits mailing list cfe-commits@lists.llvm

r292247 - Fix Python 3 language issues and add an explicit check for Python version == 2.

2017-01-17 Thread Jonathan Coe via cfe-commits
Author: jbcoe Date: Tue Jan 17 14:03:54 2017 New Revision: 292247 URL: http://llvm.org/viewvc/llvm-project?rev=292247&view=rev Log: Fix Python 3 language issues and add an explicit check for Python version == 2. Summary: Python bindings cannot support Python 3 without work being done to fix Unico

[PATCH] D26649: [CMake] Support lld with LTO bootstrap

2017-01-17 Thread Petr Hosek via Phabricator via cfe-commits
phosek added inline comments. Comment at: cfe/trunk/CMakeLists.txt:531 + if(BOOTSTRAP_LLVM_ENABLE_LLD) +add_dependencies(clang-bootstrap-deps lld) + elseif(LLVM_BINUTILS_INCDIR) beanz wrote: > mehdi_amini wrote: > > I come back to this a bit lat

[PATCH] D28821: [CMake] Separate LLVM_ENABLE_LTO and LLVM_ENABLE_LLD

2017-01-17 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. Herald added a subscriber: mgorny. These two are options independent: it's possible to use LLD without LTO, and it's possible to do LTO build without LLD. Repository: rL LLVM https://reviews.llvm.org/D28821 Files: CMakeLists.txt Index: CMakeLists.txt ==

[PATCH] D28820: Warn when calling a non interrupt function from an interrupt on ARM

2017-01-17 Thread Jonathan Roelofs via Phabricator via cfe-commits
jroelofs created this revision. Herald added a subscriber: aemerson. The idea for this originated from a really tricky bug: ISRs on ARM don't automatically save off the VFP regs, so if say, memcpy gets interrupted and the ISR itself calls memcpy, the regs are left clobbered when the ISR is done.

[PATCH] D28705: [Sema] Fix bug in handling of designated initializer

2017-01-17 Thread Akira Hatanaka via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292245: [Sema] Fix bug in handling of designated initializer. (authored by ahatanak). Changed prior to commit: https://reviews.llvm.org/D28705?vs=84418&id=84714#toc Repository: rL LLVM https://revie

r292245 - [Sema] Fix bug in handling of designated initializer.

2017-01-17 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Tue Jan 17 13:35:54 2017 New Revision: 292245 URL: http://llvm.org/viewvc/llvm-project?rev=292245&view=rev Log: [Sema] Fix bug in handling of designated initializer. CheckDesignatedInitializer wasn't taking into account the base classes when computing the index for the fiel

[PATCH] D28146: [compiler-rt] [test] [builtins] Remove obsolete/UB tests in __fixuns?fdi based

2017-01-17 Thread Derek Schuff via Phabricator via cfe-commits
dschuff accepted this revision. dschuff added a comment. This revision is now accepted and ready to land. I don't have any particular ownership or knowledge of this file, but the change still LGTM https://reviews.llvm.org/D28146 ___ cfe-commits mai

[PATCH] D28781: [OpenMP] Support for the if-clause on the combined directive 'target parallel'.

2017-01-17 Thread Arpith Jacob via Phabricator via cfe-commits
arpith-jacob added a comment. Another correction. We'll have to create a similar scope OMPTeamsScope that inherits from OMPLexicalScope for target-teams combined directives. https://reviews.llvm.org/D28781 ___ cfe-commits mailing list cfe-commits@

[PATCH] D28620: Guard __gnuc_va_list typedef

2017-01-17 Thread Sean Fertile via Phabricator via cfe-commits
sfertile added a comment. I think the fix/test looks good, but someone with more experience than me should review it before accepting it https://reviews.llvm.org/D28620 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/c

[PATCH] D28080: [Docs][OpenCL] Added OpenCL feature description to user manual.

2017-01-17 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added inline comments. Comment at: docs/UsersManual.rst:2065 + + $ clang -cc1 -triple spir64-unknown-unknown -cl-ext=-cl_khr_fp64 test.cl + pekka.jaaskelainen wrote: > Is this correct? I cannot make it work: > > ``` > ~/local/stow/llvm-4.0-unpatche

[PATCH] D28781: [OpenMP] Support for the if-clause on the combined directive 'target parallel'.

2017-01-17 Thread Arpith Jacob via Phabricator via cfe-commits
arpith-jacob added inline comments. Comment at: lib/CodeGen/CGStmtOpenMP.cpp:84-115 +/// Lexical scope for OpenMP parallel construct, that handles correct codegen +/// for captured expressions. +class OMPParallelScope final : public CodeGenFunction::LexicalScope { + void emitPre

[PATCH] D28781: [OpenMP] Support for the if-clause on the combined directive 'target parallel'.

2017-01-17 Thread Arpith Jacob via Phabricator via cfe-commits
arpith-jacob added inline comments. Comment at: lib/CodeGen/CGStmtOpenMP.cpp:84-115 +/// Lexical scope for OpenMP parallel construct, that handles correct codegen +/// for captured expressions. +class OMPParallelScope final : public CodeGenFunction::LexicalScope { + void emitPre

[PATCH] D28768: [clang-tidy] Add check 'modernize-return-braced-init-list'

2017-01-17 Thread Jonas Devlieghere via Phabricator via cfe-commits
JDevlieghere updated this revision to Diff 84700. JDevlieghere added a comment. - Added test cases suggested by @Prazek - Added test cases suggested by @alexfh I don't match on `CXXUnresolvedConstructExpr` so the template dependent cases are not impacted by this check. This is what I intended, b

[PATCH] D28799: [llvm-objdump tests] Copy the inputs of tests closer to tests.

2017-01-17 Thread Davide Italiano via Phabricator via cfe-commits
davide added a comment. In https://reviews.llvm.org/D28799#648062, @ioeric wrote: > @davide I think this change makes sense. I'll accept this to unbreak our > internal build. Let us know if you have any concern. Yes, makes sense. Thanks. Repository: rL LLVM https://reviews.llvm.org/D28799

[PATCH] D26649: [CMake] Support lld with LTO bootstrap

2017-01-17 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: cfe/trunk/CMakeLists.txt:531 + if(BOOTSTRAP_LLVM_ENABLE_LLD) +add_dependencies(clang-bootstrap-deps lld) + elseif(LLVM_BINUTILS_INCDIR) mehdi_amini wrote: > I come back to this a bit late, sorry, but I'm

[PATCH] D28814: [OpenCL] Add missing address spaces in IR generation of Blocks

2017-01-17 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia created this revision. ObjC IR generation for Blocks currently: I. Generates local to block variable declaration block literal in case it contains captures. II. Global variable block literal in case it doesn't have any captures. The address spaces are missing however if we use this gen

[PATCH] D28349: [Frontend] The macro that describes the Objective-C bool type should be defined in C as well

2017-01-17 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. Ping. Repository: rL LLVM https://reviews.llvm.org/D28349 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D28705: [Sema] Fix bug in handling of designated initializer

2017-01-17 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. lgtm https://reviews.llvm.org/D28705 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r292234 - Make sure that clang-format input is in the right encoding

2017-01-17 Thread Philipp Stephani via cfe-commits
Author: phst Date: Tue Jan 17 11:30:55 2017 New Revision: 292234 URL: http://llvm.org/viewvc/llvm-project?rev=292234&view=rev Log: Make sure that clang-format input is in the right encoding Summary: Add unit tests. Reviewers: klimek, massberg Reviewed By: massberg Differential Revision: https:

[PATCH] D28753: [OpenMP] Codegen support for 'target parallel' on the host.

2017-01-17 Thread Arpith Jacob via Phabricator via cfe-commits
arpith-jacob updated this revision to Diff 84689. arpith-jacob added a comment. The patch was updated to split 'emitParallelOrTeamsOutlinedFunction' into 'emitParallelOutlinedFunction' and 'emitTeamsOutlinedFunction' to enable the use of getCapturedStmt(). Also updated an assert statement for c

[PATCH] D28691: Support synchronisation scope in Clang atomic builtin functions

2017-01-17 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. The link for the RFC: http://lists.llvm.org/pipermail/cfe-dev/2017-January/052304.html https://reviews.llvm.org/D28691 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[PATCH] D28691: Support synchronisation scope in Clang atomic builtin functions

2017-01-17 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. In https://reviews.llvm.org/D28691#648267, @rjmccall wrote: > This patch changes the language design of the atomic builtins, which is > outside the normal scope of patch review. You need to post an RFC to > cfe-dev. I've gone ahead and made some material comments, but

[PATCH] D28753: [OpenMP] Codegen support for 'target parallel' on the host.

2017-01-17 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.h:543 virtual llvm::Value *emitParallelOrTeamsOutlinedFunction( - const OMPExecutableDirective &D, const VarDecl *ThreadIDVar, - OpenMPDirectiveKind InnermostKind, const RegionCodeGenTy &CodeGen);

[PATCH] D28691: Support synchronisation scope in Clang atomic builtin functions

2017-01-17 Thread John McCall via Phabricator via cfe-commits
rjmccall requested changes to this revision. rjmccall added a comment. This revision now requires changes to proceed. This patch changes the language design of the atomic builtins, which is outside the normal scope of patch review. You need to post an RFC to cfe-dev. I've gone ahead and made s

Re: r292052 - [code-completion] Fix crash when trying to do postfix completion of instance member inside a static function.

2017-01-17 Thread Argyrios Kyrtzidis via cfe-commits
Hi Hans, Could this go into the stable branch ? On Sat, Jan 14, 2017 at 10:11 PM, Argyrios Kyrtzidis via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: akirtzidis > Date: Sun Jan 15 00:11:04 2017 > New Revision: 292052 > > URL: http://llvm.org/viewvc/llvm-project?rev=292052&view=rev

[PATCH] D25001: [Module] Merge function prototype with a non-prototype function declaration

2017-01-17 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. Sorry for the delay in replying. Comment at: lib/Serialization/ASTReaderDecl.cpp:2715 return (FuncX->getLinkageInternal() == FuncY->getLinkageInternal()) && FuncX->getASTContext().hasSameType(FuncX->getType(), FuncY->getType()); } --

[PATCH] D28768: [clang-tidy] Add check 'modernize-return-braced-init-list'

2017-01-17 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added a comment. This fixes PR24967. Repository: rL LLVM https://reviews.llvm.org/D28768 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r292227 - [Clang] - Update code to match upcoming llvm::zlib API.

2017-01-17 Thread George Rimar via cfe-commits
Author: grimar Date: Tue Jan 17 09:45:31 2017 New Revision: 292227 URL: http://llvm.org/viewvc/llvm-project?rev=292227&view=rev Log: [Clang] - Update code to match upcoming llvm::zlib API. D28684 changed llvm::zlib to return Error instead of Status. It was accepted and committed in r292214, but t

[clang-tools-extra] r292229 - [clang-tidy] Fix crash in modernize-use-using (http://llvm.org/PR29135)

2017-01-17 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Jan 17 10:14:03 2017 New Revision: 292229 URL: http://llvm.org/viewvc/llvm-project?rev=292229&view=rev Log: [clang-tidy] Fix crash in modernize-use-using (http://llvm.org/PR29135) Modified: clang-tools-extra/trunk/clang-tidy/modernize/UseUsingCheck.cpp clang-tools

[PATCH] D28753: [OpenMP] Codegen support for 'target parallel' on the host.

2017-01-17 Thread Arpith Jacob via Phabricator via cfe-commits
arpith-jacob added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.h:543 virtual llvm::Value *emitParallelOrTeamsOutlinedFunction( - const OMPExecutableDirective &D, const VarDecl *ThreadIDVar, - OpenMPDirectiveKind InnermostKind, const RegionCodeGenTy &Code

[PATCH] D28807: [Clang] - Update code to match upcoming llvm::zlib API.

2017-01-17 Thread George Rimar via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292227: [Clang] - Update code to match upcoming llvm::zlib API. (authored by grimar). Changed prior to commit: https://reviews.llvm.org/D28807?vs=84669&id=84676#toc Repository: rL LLVM https://revie

Re: [PATCH] D28807: [Clang] - Update code to match upcoming llvm::zlib API.

2017-01-17 Thread Rafael Avila de Espindola via cfe-commits
LGTM George Rimar via Phabricator writes: > grimar created this revision. > > https://reviews.llvm.org/D28684 changed llvm::zlib to return Error instead of > Status. > It was accepted and committed in r292214, but then reverted in r292217 > because I missed that clang code also needs to be upda

[PATCH] D28807: [Clang] - Update code to match upcoming llvm::zlib API.

2017-01-17 Thread George Rimar via Phabricator via cfe-commits
grimar created this revision. https://reviews.llvm.org/D28684 changed llvm::zlib to return Error instead of Status. It was accepted and committed in r292214, but then reverted in r292217 because I missed that clang code also needs to be updated. Patch do that. https://reviews.llvm.org/D28807

Re: [PATCH] D28548: Improve include fixer's ranking by taking the paths into account.

2017-01-17 Thread David Blaikie via cfe-commits
On Tue, Jan 17, 2017 at 12:57 AM Manuel Klimek wrote: > It's by design. Do we want to change this? I always had the impression > turning on the state changes for the list is a bit noisy, but I'm happy if > that's not the general sentiment. > For approval it's important that that reaches the maili

[PATCH] D28799: [llvm-objdump tests] Copy the inputs of tests closer to tests.

2017-01-17 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL29: [llvm-objdump tests] Copy the inputs of tests closer to tests. (authored by krasimir). Changed prior to commit: https://reviews.llvm.org/D28799?vs=84653&id=84667#toc Repository: rL LLVM http

[PATCH] D28753: [OpenMP] Codegen support for 'target parallel' on the host.

2017-01-17 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.h:543 virtual llvm::Value *emitParallelOrTeamsOutlinedFunction( - const OMPExecutableDirective &D, const VarDecl *ThreadIDVar, - OpenMPDirectiveKind InnermostKind, const RegionCodeGenTy &CodeGen);

[clang-tools-extra] r292218 - Remove dead code.

2017-01-17 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Jan 17 07:46:59 2017 New Revision: 292218 URL: http://llvm.org/viewvc/llvm-project?rev=292218&view=rev Log: Remove dead code. Modified: clang-tools-extra/trunk/clang-move/ClangMove.cpp Modified: clang-tools-extra/trunk/clang-move/ClangMove.cpp URL: http://llvm.org/v

[PATCH] D28781: [OpenMP] Support for the if-clause on the combined directive 'target parallel'.

2017-01-17 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGStmtOpenMP.cpp:84-115 +/// Lexical scope for OpenMP parallel construct, that handles correct codegen +/// for captured expressions. +class OMPParallelScope final : public CodeGenFunction::LexicalScope { + void emitPreInitS

[PATCH] D27621: [clang-tidy] check to find declarations declaring more than one name

2017-01-17 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. A few more comments. Comment at: clang-tidy/readability/OneNamePerDeclarationCheck.cpp:153 + const SourceRange FVLoc(DeclStmt->getLocStart(), Location); + std::st

  1   2   >