r304385 - docs: Document LLD's cache dir argument.

2017-05-31 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Wed May 31 22:48:12 2017 New Revision: 304385 URL: http://llvm.org/viewvc/llvm-project?rev=304385&view=rev Log: docs: Document LLD's cache dir argument. Modified: cfe/trunk/docs/ThinLTO.rst Modified: cfe/trunk/docs/ThinLTO.rst URL: http://llvm.org/viewvc/llvm-project/cfe/t

[libcxx] r304384 - Fix name used in -verify diagnostic to match trunk

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 21:31:01 2017 New Revision: 304384 URL: http://llvm.org/viewvc/llvm-project?rev=304384&view=rev Log: Fix name used in -verify diagnostic to match trunk Modified: libcxx/trunk/test/libcxx/utilities/tuple/tuple.tuple/diagnose_reference_binding.fail.cpp Modified

[libcxx] r304383 - Fix more unreserved names

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 21:29:37 2017 New Revision: 304383 URL: http://llvm.org/viewvc/llvm-project?rev=304383&view=rev Log: Fix more unreserved names Modified: libcxx/trunk/include/limits libcxx/trunk/include/memory libcxx/trunk/include/stdexcept libcxx/trunk/include/stri

[libcxx] r304382 - Rename unreserved names in tuple

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 21:14:21 2017 New Revision: 304382 URL: http://llvm.org/viewvc/llvm-project?rev=304382&view=rev Log: Rename unreserved names in tuple Modified: libcxx/trunk/include/tuple Modified: libcxx/trunk/include/tuple URL: http://llvm.org/viewvc/llvm-project/libcxx/tru

[PATCH] D33733: CGCleanup: No need to do domination fixups for static allocas

2017-05-31 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov closed this revision. GorNishanov added a comment. Tested checked in. Thank you for looking into this, Reid! r304380 = 1c0d15a4bf10876bb233e921907e114d52bee82e https://reviews.llvm.org/D33733 ___ cfe-commits mailing list cfe-commits@lis

[PATCH] D33750: CGCleanup: (NFC) add another test for r304335 - Don't try to spill static allocas

2017-05-31 Thread Gor Nishanov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL304380: CGCleanup: (NFC) add another test for r304335 - Don't try to spill static… (authored by GorNishanov). Changed prior to commit: https://reviews.llvm.org/D33750?vs=100951&id=100955#toc Repository

[PATCH] D33108: Generate extra .ll files before/after optimization when using -save-temps.

2017-05-31 Thread Jorge Gorbe via Phabricator via cfe-commits
jgorbe added inline comments. Comment at: lib/Driver/Driver.cpp:2600-2603 + // When saving temps, add extra actions to write unoptimized and optimized + // IR besides the normal bitcode outputs if possible. This is not possible + // for multi-arch builds because

r304380 - CGCleanup: (NFC) add another test for r304335 - Don't try to spill static allocas

2017-05-31 Thread Gor Nishanov via cfe-commits
Author: gornishanov Date: Wed May 31 20:15:25 2017 New Revision: 304380 URL: http://llvm.org/viewvc/llvm-project?rev=304380&view=rev Log: CGCleanup: (NFC) add another test for r304335 - Don't try to spill static allocas Summary: Coroutine related test that used to trigger broken IR prior to r304

[PATCH] D33108: Generate extra .ll files before/after optimization when using -save-temps.

2017-05-31 Thread Jorge Gorbe via Phabricator via cfe-commits
jgorbe updated this revision to Diff 100954. jgorbe added a comment. Clarify that we only skip saving IR for multiarch Mach-O universal builds, not other multi-arch builds like CUDA. https://reviews.llvm.org/D33108 Files: include/clang/Driver/Driver.h lib/Driver/Driver.cpp test/Driver/cu

[PATCH] D31830: Emit invariant.group.barrier when using union field

2017-05-31 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: test/CodeGenCXX/strict-vtable-pointers.cpp:263 + +struct VirtualInVBase : virtual Empty, HoldingVirtuals { +}; "virtual" applies to an individual base, not to all following bases. You need "virtual HoldingVirtuals" he

[libcxx] r304377 - Upgrade Clang version used by appveyor

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 20:00:59 2017 New Revision: 304377 URL: http://llvm.org/viewvc/llvm-project?rev=304377&view=rev Log: Upgrade Clang version used by appveyor Modified: libcxx/trunk/appveyor-reqs-install.cmd Modified: libcxx/trunk/appveyor-reqs-install.cmd URL: http://llvm.org/

[PATCH] D33588: Fix two sources of UB in __next_hash_pow2 (from __hash_table)

2017-05-31 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: include/__hash_table:139 { -return size_t(1) << (std::numeric_limits::digits - __clz(__n-1)); +return (__n > 1) ? (size_t(1) << (std::numeric_limits::digits - __clz(__n-1))) : __n; } Shouldn't this return `__n

[PATCH] D33437: Emit available_externally vtables opportunistically

2017-05-31 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Looks great, thanks! https://reviews.llvm.org/D33437 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/ma

[PATCH] D33706: [AMDGPU] Fix address space for global and temporary variables in C++

2017-05-31 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. Please split this up into two patches: - one for your target-specific changes to the global address space and so on - one for the generic fix to CreateTempAlloca etc. =

[PATCH] D33750: CGCleanup: (NFC) add a test that used to trigger broken IR

2017-05-31 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov created this revision. Coroutine related test that used to trigger broken IR prior to r304335. https://reviews.llvm.org/D33750 Files: test/CodeGenCoroutines/coro-await-domination.cpp Index: test/CodeGenCoroutines/coro-await-domination.cpp

Re: r304376 - PR33232: implement support for MSVC's __is_trivially_destructible trait.

2017-05-31 Thread Eric Fiselier via cfe-commits
I'm assuming libc++ should move to this trait instead? /Eric On Wed, May 31, 2017 at 6:28 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rsmith > Date: Wed May 31 19:28:16 2017 > New Revision: 304376 > > URL: http://llvm.org/viewvc/llvm-project?rev=304376&view=r

Re: [PATCH] D24371: Add diagnostics to require_constant_initialization

2017-05-31 Thread Keno Fischer via cfe-commits
Go for it On May 31, 2017 20:07, "Eric Fiselier via Phabricator" < revi...@reviews.llvm.org> wrote: > EricWF added a comment. > > @loladiro The patch doesn't apply correctly to the test. Do you mind if I > hijack this and fix it? > > > Repository: > rL LLVM > > https://reviews.llvm.org/D24371 >

[PATCH] D24371: Add diagnostics to require_constant_initialization

2017-05-31 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. LGTM. @loladiro Would you like to commit this? https://reviews.llvm.org/D24371 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lis

[PATCH] D24371: Add diagnostics to require_constant_initialization

2017-05-31 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 100949. EricWF added a comment. - Fix patch so it applies cleanly. https://reviews.llvm.org/D24371 Files: lib/Sema/SemaDecl.cpp test/SemaCXX/attr-require-constant-initialization.cpp Index: test/SemaCXX/attr-require-constant-initialization.cpp ==

r304376 - PR33232: implement support for MSVC's __is_trivially_destructible trait.

2017-05-31 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed May 31 19:28:16 2017 New Revision: 304376 URL: http://llvm.org/viewvc/llvm-project?rev=304376&view=rev Log: PR33232: implement support for MSVC's __is_trivially_destructible trait. Unlike the GCC-compatible __has_trivial_destructor trait, this one computes the right answe

[PATCH] D33108: Generate extra .ll files before/after optimization when using -save-temps.

2017-05-31 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: lib/Driver/Driver.cpp:2600-2603 + // When saving temps, add extra actions to write unoptimized and optimized + // IR besides the normal bitcode outputs if possible. This is not possible + // for multi-arch builds because in

[libcxxabi] r304374 - [libcxxabi] Rework CMakeLists.txt into modules

2017-05-31 Thread Martell Malone via cfe-commits
Author: martell Date: Wed May 31 19:09:20 2017 New Revision: 304374 URL: http://llvm.org/viewvc/llvm-project?rev=304374&view=rev Log: [libcxxabi] Rework CMakeLists.txt into modules Refactor cmake to remove dependence on LLVM's cmake modules. This improves handling of cmake checks when cross compi

[PATCH] D24371: Add diagnostics to require_constant_initialization

2017-05-31 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. @loladiro The patch doesn't apply correctly to the test. Do you mind if I hijack this and fix it? Repository: rL LLVM https://reviews.llvm.org/D24371 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.ll

[PATCH] D33663: CGCleanup: Use correct insertion point for AllocaInst

2017-05-31 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov abandoned this revision. GorNishanov added a comment. Abandoning... Reid fixed the problem with "r304335 - Don't try to spill static allocas when emitting expr cleanups with branches" Thank you Reid for looking into it! https://reviews.llvm.org/D33663 ___

[PATCH] D33726: [driver][netbsd] Build and pass `-L` arguments to the linker

2017-05-31 Thread Kamil Rytarowski via Phabricator via cfe-commits
krytarowski added a comment. What software in particular, besides compilers? Repository: rL LLVM https://reviews.llvm.org/D33726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r304373 - [coroutines] Fix checking for prvalue-ness of `await_suspend` return type

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 18:41:11 2017 New Revision: 304373 URL: http://llvm.org/viewvc/llvm-project?rev=304373&view=rev Log: [coroutines] Fix checking for prvalue-ness of `await_suspend` return type Summary: @rsmith Does this correctly address the issues mentioned in https://reviews.llvm

[PATCH] D33636: [coroutines] Fix checking for prvalue-ness of `await_suspend` return type

2017-05-31 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. LGTM. https://reviews.llvm.org/D33636 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[libcxx] r304372 - Define -DNOMINMAX when running the tests on Windows

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 18:27:25 2017 New Revision: 304372 URL: http://llvm.org/viewvc/llvm-project?rev=304372&view=rev Log: Define -DNOMINMAX when running the tests on Windows Modified: libcxx/trunk/utils/libcxx/test/config.py Modified: libcxx/trunk/utils/libcxx/test/config.py URL:

[PATCH] D33741: [libc++] Undef min/max in test_macros.h

2017-05-31 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF abandoned this revision. EricWF added a comment. In https://reviews.llvm.org/D33741#769421, @CaseyCarter wrote: > In https://reviews.llvm.org/D33741#769381, @EricWF wrote: > > > In https://reviews.llvm.org/D33741#769371, @STL_MSFT wrote: > > > > > I haven't seen min/max test failures, prob

[PATCH] D33741: [libc++] Undef min/max in test_macros.h

2017-05-31 Thread Casey Carter via Phabricator via cfe-commits
CaseyCarter added a comment. In https://reviews.llvm.org/D33741#769381, @EricWF wrote: > In https://reviews.llvm.org/D33741#769371, @STL_MSFT wrote: > > > I haven't seen min/max test failures, probably because our CRT/STL headers > > never drag in Windows.h. > > > Ah, that makes sense. Libc++ cu

[PATCH] D33304: [clang-tidy][Part1] Add a new module Android and three new checks.

2017-05-31 Thread Yan Wang via Phabricator via cfe-commits
yawanng updated this revision to Diff 100934. yawanng edited the summary of this revision. https://reviews.llvm.org/D33304 Files: clang-tidy/CMakeLists.txt clang-tidy/android/AndroidTidyModule.cpp clang-tidy/android/CMakeLists.txt clang-tidy/android/FileOpenFlagCheck.cpp clang-tidy/andr

[PATCH] D33741: [libc++] Undef min/max in test_macros.h

2017-05-31 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. In https://reviews.llvm.org/D33741#769371, @STL_MSFT wrote: > I haven't seen min/max test failures, probably because our CRT/STL headers > never drag in Windows.h. Ah, that makes sense. Libc++ currently does although the plan is to fix that eventually. :-S > I have no

[PATCH] D33741: [libc++] Undef min/max in test_macros.h

2017-05-31 Thread Stephan T. Lavavej via Phabricator via cfe-commits
STL_MSFT added a comment. I haven't seen min/max test failures, probably because our CRT/STL headers never drag in Windows.h. I have no objection to undeffing min/max although I wouldn't do this myself (it creates order dependencies which I think are totally evil). https://reviews.llvm.org/D3

[PATCH] D33741: [libc++] Undef min/max in test_macros.h

2017-05-31 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. After changing libc++ to push/pop the min/max macros on Windows we have a bunch of new test failures, caused by tests using min/max. I would like to use test_macros.h to undefine it. Would this work for you? How have you been dealing with these failures? https:/

[PATCH] D33726: [driver][netbsd] Build and pass `-L` arguments to the linker

2017-05-31 Thread Joerg Sonnenberger via Phabricator via cfe-commits
joerg added a comment. sysroot is already handled in NetBSD.cpp line 118 or so. Repository: rL LLVM https://reviews.llvm.org/D33726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D33726: [driver][netbsd] Build and pass `-L` arguments to the linker

2017-05-31 Thread Joerg Sonnenberger via Phabricator via cfe-commits
joerg added a comment. Such knowledge is necessary anyway. There is enough software that wants to use the linker directly. Repository: rL LLVM https://reviews.llvm.org/D33726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

[PATCH] D33304: [clang-tidy] Add a new module Android and three new checks.

2017-05-31 Thread Yan Wang via Phabricator via cfe-commits
yawanng updated this revision to Diff 100928. yawanng added a comment. Split the commit to three ones that each of them contains one. This is the first part. https://reviews.llvm.org/D33304 Files: clang-tidy/CMakeLists.txt clang-tidy/android/AndroidTidyModule.cpp clang-tidy/android/CMake

[PATCH] D32595: CMakeLists: Don't set LLVM_MAIN_SRC_DIR when building stand-alone clang

2017-05-31 Thread NAKAMURA Takumi via Phabricator via cfe-commits
chapuni added a comment. I don't think this would be ready to land. https://reviews.llvm.org/D32595 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D32595: CMakeLists: Don't set LLVM_MAIN_SRC_DIR when building stand-alone clang

2017-05-31 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. Ah. I see what you're saying. I was thinking of the mismatch in a different way, but your solution makes sense. LGTM. https://reviews.llvm.org/D32595

[PATCH] D33726: [driver][netbsd] Build and pass `-L` arguments to the linker

2017-05-31 Thread Kamil Rytarowski via Phabricator via cfe-commits
krytarowski added a comment. Regardless of LLD, `--sysroot` is still needed I think. Repository: rL LLVM https://reviews.llvm.org/D33726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[libcxx] r304364 - Fix silly mistakes in recent changes made to coroutine test

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 17:20:42 2017 New Revision: 304364 URL: http://llvm.org/viewvc/llvm-project?rev=304364&view=rev Log: Fix silly mistakes in recent changes made to coroutine test Modified: libcxx/trunk/test/std/experimental/language.support/support.coroutines/end.to.end/fullexp

[PATCH] D33726: [driver][netbsd] Build and pass `-L` arguments to the linker

2017-05-31 Thread Simon Atanasyan via Phabricator via cfe-commits
atanasyan added a comment. In https://reviews.llvm.org/D33726#769301, @joerg wrote: > I'm against it. I consider this a strong bug on the LLD side and the behavior > of clang correct. Do you suggest to add knowledge about various OS (linux/*bsd) and arch (x86,arm,mips,...) specific paths to t

[libcxx] r304360 - Fix Libc++ build with MinGW64

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 17:14:05 2017 New Revision: 304360 URL: http://llvm.org/viewvc/llvm-project?rev=304360&view=rev Log: Fix Libc++ build with MinGW64 Summary: This patch corrects the build errors I encountered when building on MinGW64. Reviewers: mati865, rnk, compnerd, smeenai, bc

[PATCH] D33082: Fix Libc++ build with MinGW64

2017-05-31 Thread Eric Fiselier via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL304360: Fix Libc++ build with MinGW64 (authored by EricWF). Changed prior to commit: https://reviews.llvm.org/D33082?vs=100358&id=100926#toc Repository: rL LLVM https://reviews.llvm.org/D33082 Files

[PATCH] D33726: [driver][netbsd] Build and pass `-L` arguments to the linker

2017-05-31 Thread Joerg Sonnenberger via Phabricator via cfe-commits
joerg added a comment. I'm against it. I consider this a strong bug on the LLD side and the behavior of clang correct. Repository: rL LLVM https://reviews.llvm.org/D33726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.

[PATCH] D33178: Remove requirement for libunwind sources.

2017-05-31 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF closed this revision. EricWF added a comment. Committed as r304359. Repository: rL LLVM https://reviews.llvm.org/D33178 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxxabi] r304359 - Remove requirement for libunwind sources. Patch by Shiz.

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 17:11:42 2017 New Revision: 304359 URL: http://llvm.org/viewvc/llvm-project?rev=304359&view=rev Log: Remove requirement for libunwind sources. Patch by Shiz. As per r241993, libunwind_ext.h is not used anymore, and thus only the public libunwind includes are neede

[PATCH] D33080: [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows

2017-05-31 Thread Eric Fiselier via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL304357: [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows (authored by EricWF). Changed prior to commit: https://reviews.llvm.org/D33080?vs=100361&id=100925#toc Repository:

[libcxx] r304357 - [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 17:07:49 2017 New Revision: 304357 URL: http://llvm.org/viewvc/llvm-project?rev=304357&view=rev Log: [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows Summary: This patch improves how libc++ handles min/max macros within the headers. Pr

[PATCH] D33305: [ubsan] Add a check for pointer overflow UB

2017-05-31 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added a comment. Thanks for the review! I've rebased the patch and plan on checking it in tomorrow. At the moment I'm getting some additional test coverage (running check-libcxx and testing more backends). https://reviews.llvm.org/D33305 ___ c

[PATCH] D33080: [Libc++] Use #pragma push_macro/pop_macro to better handle min/max on Windows

2017-05-31 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. LGTM. https://reviews.llvm.org/D33080 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r304352 - Guard against more macros in tchar.h

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 16:39:54 2017 New Revision: 304352 URL: http://llvm.org/viewvc/llvm-project?rev=304352&view=rev Log: Guard against more macros in tchar.h Modified: libcxx/trunk/test/support/nasty_macros.hpp Modified: libcxx/trunk/test/support/nasty_macros.hpp URL: http://llv

[libcxx] r304351 - Transform the libc++ coroutine shell tests into normal .pass.cpp tests.

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 16:34:43 2017 New Revision: 304351 URL: http://llvm.org/viewvc/llvm-project?rev=304351&view=rev Log: Transform the libc++ coroutine shell tests into normal .pass.cpp tests. The shell test versions didn't get all of the flags normal tests do, specifically warning fl

[libcxx] r304348 - Remove uses of _UI because Windows is evil and tchar.h #define's it

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 16:20:18 2017 New Revision: 304348 URL: http://llvm.org/viewvc/llvm-project?rev=304348&view=rev Log: Remove uses of _UI because Windows is evil and tchar.h #define's it Modified: libcxx/trunk/include/algorithm libcxx/trunk/include/random libcxx/trunk/te

[PATCH] D33616: [MS] Fix _bittest* intrinsics for values bigger than 31

2017-05-31 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. My feeling is that there's not much value in adding an LLVM intrinsic for something that can be expressed directly in a handful of IR instructions; those instructions seem like the way to express this that would allow the most optimization potential, and the backend shou

r304346 - [modules] When compiling a preprocessed module map, look for headers relative

2017-05-31 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed May 31 15:56:55 2017 New Revision: 304346 URL: http://llvm.org/viewvc/llvm-project?rev=304346&view=rev Log: [modules] When compiling a preprocessed module map, look for headers relative to the original module map. Also use the path and name of the original module map when

[PATCH] D33616: [MS] Fix _bittest* intrinsics for values bigger than 31

2017-05-31 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. Darn, I think Richard is right, the signed div/mod doesn't do the right thing for negative values. Honestly I need to rig up a test case for this, and then I'll come back to it. What do you folks think is best: - Add an LLVM intrinsic for this and use it - Use inline assem

[PATCH] D33739: [Sema] Improve -Wstrict-prototypes diagnostic message for blocks

2017-05-31 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak created this revision. Currently, clang prints the same warning message "this function declaration is not a prototype" for non-prototype declarations of blocks and normal functions. This commit makes changes needed to print a more accurate warning "this block declaration is not a proto

r304345 - [clang-cl] Expose -nostdinc and -nobuiltininc

2017-05-31 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed May 31 15:42:43 2017 New Revision: 304345 URL: http://llvm.org/viewvc/llvm-project?rev=304345&view=rev Log: [clang-cl] Expose -nostdinc and -nobuiltininc These are already wired up to work in the MSVC toolchain header search code. However, they were unreachable from clang-cl

[PATCH] D33721: [ARM] Add support for target("arm") and target("thumb").

2017-05-31 Thread Eric Christopher via Phabricator via cfe-commits
echristo added inline comments. Comment at: include/clang/Basic/Attr.td:1790-1794 +// target features respectively. +if (Feature.compare("arm") == 0) + Ret.first.push_back("-thumb-mode"); +else if (Feature.compare("thumb") == 0) + Ret.fir

r304337 - Fix cl-diagnostics.c test by hardcoding the version of MSVC to mimic

2017-05-31 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed May 31 15:07:36 2017 New Revision: 304337 URL: http://llvm.org/viewvc/llvm-project?rev=304337&view=rev Log: Fix cl-diagnostics.c test by hardcoding the version of MSVC to mimic Modified: cfe/trunk/test/Driver/cl-diagnostics.c Modified: cfe/trunk/test/Driver/cl-diagnosti

r304336 - Add test case for r304316 which implemented clang-cl /diagnostics:*

2017-05-31 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed May 31 15:02:27 2017 New Revision: 304336 URL: http://llvm.org/viewvc/llvm-project?rev=304336&view=rev Log: Add test case for r304316 which implemented clang-cl /diagnostics:* Added: cfe/trunk/test/Driver/cl-diagnostics.c Added: cfe/trunk/test/Driver/cl-diagnostics.c UR

r304335 - Don't try to spill static allocas when emitting expr cleanups with branches

2017-05-31 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed May 31 14:59:41 2017 New Revision: 304335 URL: http://llvm.org/viewvc/llvm-project?rev=304335&view=rev Log: Don't try to spill static allocas when emitting expr cleanups with branches Credit goes to Gor Nishanov for putting together the fix in https://reviews.llvm.org/D33733

[PATCH] D33733: CGCleanup: No need to do domination fixups for static allocas

2017-05-31 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added inline comments. This revision is now accepted and ready to land. Comment at: test/CodeGenCoroutines/coro-await-domination.cpp:33 + int x = 42; + x = co_await A{}; +} rnk wrote: > It looks like this is the expression in que

[PATCH] D33722: [clang-tidy] Add checker for undelegated copy of base classes

2017-05-31 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added inline comments. Comment at: docs/ReleaseNotes.rst:83 + + Finds copy constructors where the ctor don't call the constructor of the base class. + I think will be good idea to replace ctor with constructor. Or re-phrase sentence to avoid rep

[PATCH] D32595: CMakeLists: Don't set LLVM_MAIN_SRC_DIR when building stand-alone clang

2017-05-31 Thread Tom Stellard via Phabricator via cfe-commits
tstellar added a comment. In https://reviews.llvm.org/D32595#769044, @beanz wrote: > Is this really something we should be supporting? Building and testing clang > with potentially out-of-sync lit or gtest seems undesirable to me. This is actually what this patch is trying to avoid. For exam

[PATCH] D33398: Mangle __unaligned in Itanium ABI

2017-05-31 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D33398#769152, @rnk wrote: > Isn't there a space in the mangling for vendor extensions? Can we use that > here? We are using that here: that's what `mangleVendorQualifier` does. Comment at: lib/AST/ItaniumMangle.cpp:2210 +

r304331 - [coroutines] Fix assertion during -Wuninitialized analysis

2017-05-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 31 14:36:59 2017 New Revision: 304331 URL: http://llvm.org/viewvc/llvm-project?rev=304331&view=rev Log: [coroutines] Fix assertion during -Wuninitialized analysis Summary: @rsmith Is there a better place to put this test? Reviewers: GorNishanov, rsmith Reviewed By:

[PATCH] D33398: Mangle __unaligned in Itanium ABI

2017-05-31 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. This was filed as https://bugs.llvm.org/show_bug.cgi?id=33178 Isn't there a space in the mangling for vendor extensions? Can we use that here? https://reviews.llvm.org/D33398 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[PATCH] D31370: [clang-tidy] Prototype to check for exception specification

2017-05-31 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. In https://reviews.llvm.org/D31370#768684, @baloghadamsoftware wrote: > The matcher in https://reviews.llvm.org/D33537 could be reused here as well. > Maybe I should make it common, but it is more complex than any of the common > matchers. yes, the matcher seems int

[PATCH] D32595: CMakeLists: Don't set LLVM_MAIN_SRC_DIR when building stand-alone clang

2017-05-31 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. (note that I don't mind removing the llvm-config bit for it; but we need the cache variable to stay) https://reviews.llvm.org/D32595 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailm

[PATCH] D32595: CMakeLists: Don't set LLVM_MAIN_SRC_DIR when building stand-alone clang

2017-05-31 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. This is going to break Gentoo. We're relying on the ability to specify LLVM_MAIN_SRC_DIR to provide unpacked LLVM sources with gtest. Without that, I don't see how we can use tests. https://reviews.llvm.org/D32595 ___ cfe-c

[PATCH] D33733: CGCleanup: No need to do domination fixups for static allocas

2017-05-31 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added inline comments. Comment at: test/CodeGenCoroutines/coro-await-domination.cpp:33 + int x = 42; + x = co_await A{}; +} It looks like this is the expression in question. This expression should have aggregate evaluation kind, not scalar. We don't need t

r304326 - [TableGen] Clang changes to support Record::getValueAsString and getValueAsListOfStrings returning StringRef instead of std::string

2017-05-31 Thread Craig Topper via cfe-commits
Author: ctopper Date: Wed May 31 14:01:22 2017 New Revision: 304326 URL: http://llvm.org/viewvc/llvm-project?rev=304326&view=rev Log: [TableGen] Clang changes to support Record::getValueAsString and getValueAsListOfStrings returning StringRef instead of std::string This is the clang version of D

[PATCH] D33711: [TableGen] Clang changes to support Record::getValueAsString and getValueAsListOfStrings returning StringRef instead of std::string

2017-05-31 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL304326: [TableGen] Clang changes to support Record::getValueAsString and… (authored by ctopper). Changed prior to commit: https://reviews.llvm.org/D33711?vs=100826&id=100906#toc Repository: rL LLVM

r304322 - [CodeGen] Surround assertion with parens and format.

2017-05-31 Thread Davide Italiano via cfe-commits
Author: davide Date: Wed May 31 13:51:36 2017 New Revision: 304322 URL: http://llvm.org/viewvc/llvm-project?rev=304322&view=rev Log: [CodeGen] Surround assertion with parens and format. This should placate GCC7 with -Werror. Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp Modified: cfe/tr

[PATCH] D33735: [DebugInfo] Add ThisOrSelf attribute for emission of FlagObjectPointer.

2017-05-31 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev created this revision. If the first parameter of the function is the ImplicitParamDecl codegen automatically marks it as an implicit argument with `this` or `self` pointer. To fix this problem Implicit ThisOrSelfAttr is added. This attribute is used to mark real `this` or `self` pointers o

[PATCH] D33706: [AMDGPU] Fix address space for global and temporary variables in C++

2017-05-31 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 100899. yaxunl marked an inline comment as done. yaxunl added a comment. Remove redundant code. https://reviews.llvm.org/D33706 Files: lib/Basic/Targets.cpp lib/CodeGen/CGCall.cpp lib/CodeGen/CGDecl.cpp lib/CodeGen/CGExpr.cpp lib/CodeGen/CodeGenFun

[PATCH] D33726: [driver][netbsd] Build and pass `-L` arguments to the linker

2017-05-31 Thread Kamil Rytarowski via Phabricator via cfe-commits
krytarowski added a comment. This works for me! Repository: rL LLVM https://reviews.llvm.org/D33726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D33733: CGCleanup: No need to do domination fixups for static allocas

2017-05-31 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov created this revision. This is a follow up for the https://reviews.llvm.org/rL297084 which made sure that dominance is preserved during expression cleanup emission. We ran into a case where dominance fixup code was inserting the store in the middle of allocas. %x = alloca i32, ali

[PATCH] D33706: [AMDGPU] Fix address space for global and temporary variables in C++

2017-05-31 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl marked an inline comment as done. yaxunl added inline comments. Comment at: lib/CodeGen/CGDecl.cpp:1107 assert(T.getAddressSpace() == LangAS::Default); if (getASTAllocaAddressSpace() != LangAS::Default) { auto *Addr = getTargetHooks().performAddrSpaceCast( -

[PATCH] D32817: [CMake] Build runtimes for Fuchsia targets

2017-05-31 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. This all looks great. I'm really excited to have such a complete toolchain build example in-tree. Thank you! Repository: rL LLVM https://reviews.llvm.org/D32817 __

[PATCH] D33663: CGCleanup: Use correct insertion point for AllocaInst

2017-05-31 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov added inline comments. Comment at: lib/CodeGen/CGCleanup.cpp:458 InsertBefore = Invoke->getNormalDest()->getFirstInsertionPt(); +else if (isa(Inst)) + InsertBefore = std::next(AllocaInsertPt->getIterator()); rnk wrote: > This doesn't s

[PATCH] D33722: [clang-tidy] Add checker for undelegated copy of base classes

2017-05-31 Thread Dominik Szabó via Phabricator via cfe-commits
szdominik updated this revision to Diff 100892. szdominik added a comment. Update with fixed docs. https://reviews.llvm.org/D33722 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/UndelegatedCopyOfBaseClassesCheck.cpp clang-tidy/misc/UndelegatedCo

[PATCH] D32595: CMakeLists: Don't set LLVM_MAIN_SRC_DIR when building stand-alone clang

2017-05-31 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. Is this really something we should be supporting? Building and testing clang with potentially out-of-sync lit or gtest seems undesirable to me. It is worth noting that we do have mods to gtest, so supporting any standard distribution of it seems like a not great idea. The

[PATCH] D33732: Catch invalid bitwise operation on vector of floats

2017-05-31 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff created this revision. Bitwise complement applied to vector of floats described with attribute `ext_vector_type` is not diagnosed as error. Attempt to compile such construct causes assertion violation in Instruction.cpp. With this change the complement is treated similar to the case of v

[PATCH] D31972: Do not force the frame pointer by default for ARM EABI

2017-05-31 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added reviewers: t.p.northover, efriedma. efriedma added inline comments. Comment at: lib/Driver/ToolChains/Clang.cpp:569 + if (Triple.getEnvironment() == llvm::Triple::EABI) { +switch (Triple.getArch()) { Specifically checking for "llvm::Triple::

[PATCH] D33663: CGCleanup: Use correct insertion point for AllocaInst

2017-05-31 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov updated this revision to Diff 100889. GorNishanov added a comment. Make sure that we use AllocaInsertPt for only static allocas in the entry block https://reviews.llvm.org/D33663 Files: lib/CodeGen/CGCleanup.cpp test/CodeGenCoroutines/coro-await-domination.cpp Index: test/Code

[PATCH] D33706: [AMDGPU] Fix address space for global and temporary variables in C++

2017-05-31 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added inline comments. Comment at: lib/CodeGen/CGDecl.cpp:1107 assert(T.getAddressSpace() == LangAS::Default); if (getASTAllocaAddressSpace() != LangAS::Default) { auto *Addr = getTargetHooks().performAddrSpaceCast( Is this code still needed

[PATCH] D32604: CMakeLists: Deprecate using llvm-config to find llvm install path

2017-05-31 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. LGTM! https://reviews.llvm.org/D32604 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[PATCH] D33304: [clang-tidy] Add a new module Android and three new checks.

2017-05-31 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. In https://reviews.llvm.org/D33304#768961, @yawanng wrote: > In https://reviews.llvm.org/D33304#768731, @alexfh wrote: > > > It's awesome to see another two checks, and it seems to justify adding a > > separate module, but I'd prefer the other two checks to be sent for re

[PATCH] D33663: CGCleanup: Use correct insertion point for AllocaInst

2017-05-31 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added inline comments. Comment at: lib/CodeGen/CGCleanup.cpp:458 InsertBefore = Invoke->getNormalDest()->getFirstInsertionPt(); +else if (isa(Inst)) + InsertBefore = std::next(AllocaInsertPt->getIterator()); This doesn't seem right, `Inst` cou

r304316 - [clang-cl] Implement /diagnostic: flag

2017-05-31 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed May 31 12:37:49 2017 New Revision: 304316 URL: http://llvm.org/viewvc/llvm-project?rev=304316&view=rev Log: [clang-cl] Implement /diagnostic: flag This flag has three possible values: caret, column, and classic. "caret" corresponds to clang's default mode, "column" removes

[PATCH] D33304: [clang-tidy] Add a new module Android and three new checks.

2017-05-31 Thread Yan Wang via Phabricator via cfe-commits
yawanng added a comment. In https://reviews.llvm.org/D33304#768731, @alexfh wrote: > It's awesome to see another two checks, and it seems to justify adding a > separate module, but I'd prefer the other two checks to be sent for review as > separate patches to make the review easier and faster.

[PATCH] D33671: [analyzer] In plist alternate mode, don't add weird control flow pieces from ObjC property declarations to uses.

2017-05-31 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna accepted this revision. zaks.anna added inline comments. This revision is now accepted and ready to land. Comment at: lib/StaticAnalyzer/Core/BugReporter.cpp:1674 const Decl *D = CalleeLC->getDecl(); -addEdgeToPath(PD.getActivePath(), PrevLoc, -

[PATCH] D33722: [clang-tidy] Add checker for undelegated copy of base classes

2017-05-31 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added a comment. Please mention this check in docs/ReleaseNotes.rst (in alphabetical order). Comment at: docs/clang-tidy/checks/misc-undelegated-copy-of-base-classes.rst:29 + +The checker suggests a FixItHint in every scenario including multiple +missing initial

[PATCH] D33711: [TableGen] Clang changes to support Record::getValueAsString and getValueAsListOfStrings returning StringRef instead of std::string

2017-05-31 Thread Matthias Braun via Phabricator via cfe-commits
MatzeB accepted this revision. MatzeB added a comment. I assume you have checked that the tablegen output doesn't change. Apart from that I'm all for more StringRef and SmallStrings or even Twines where possible. So LGTM. https://reviews.llvm.org/D33711 _

[PATCH] D33726: [driver][netbsd] Build and pass `-L` arguments to the linker

2017-05-31 Thread Kamil Rytarowski via Phabricator via cfe-commits
krytarowski added inline comments. Comment at: lib/Driver/ToolChains/NetBSD.cpp:324 : Generic_ELF(D, Triple, Args) { if (getDriver().UseStdLib) { // When targeting a 32-bit platform, try the special directory used on What's the rationale for this con

[PATCH] D33698: [CodeGen][ObjC] Fix assertion failure in CodeGenFunction::EmitARCStoreStrongCall

2017-05-31 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D33698 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D33726: [driver][netbsd] Build and pass `-L` arguments to the linker

2017-05-31 Thread Kamil Rytarowski via Phabricator via cfe-commits
krytarowski added a comment. Looks great! I'm going to test it. Repository: rL LLVM https://reviews.llvm.org/D33726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >