[PATCH] D41495: [clangd] Skip function bodies when building the preamble

2018-01-02 Thread Nikolai Kosjar via Phabricator via cfe-commits
nik added a comment. Hmm, could libclang profit from something like this, too? (or does it already?) Repository: rL LLVM https://reviews.llvm.org/D41495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

[PATCH] D41660: [cmake] Add new linux toolchain file

2018-01-02 Thread Don Hinton via Phabricator via cfe-commits
hintonda created this revision. hintonda added reviewers: compnerd, beanz, phosek. Herald added a subscriber: mgorny. Add new linux toolchain file that allows cross compiling to linux from other systems, e.g., Darwin. Also, add a new variable, ADDITIONAL_CLANG_BOOTSTRAP_DEPS, which allows adding

r321639 - [Driver] Fix unused variables and test-writing-into-workdir after r321621

2018-01-02 Thread Sam McCall via cfe-commits
Author: sammccall Date: Tue Jan 2 01:35:10 2018 New Revision: 321639 URL: http://llvm.org/viewvc/llvm-project?rev=321639&view=rev Log: [Driver] Fix unused variables and test-writing-into-workdir after r321621 Modified: cfe/trunk/lib/Driver/Driver.cpp cfe/trunk/test/Driver/config-file.c

[PATCH] D41495: [clangd] Skip function bodies when building the preamble

2018-01-02 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. In https://reviews.llvm.org/D41495#965627, @nik wrote: > Hmm, could libclang profit from something like this, too? (or does it > already?) It could. The problem with ASTUnit is that it returns all diagnostics from `store_diag_begin`/`end`, not just the ones from

[PATCH] D41660: [cmake] Add new linux toolchain file

2018-01-02 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. Why is this a cache file rather than a toolchain file (but passing itself as a toolchain file to CMake under some circumstances?) Aren't toolchain files traditionally used for cross-compilation? Comment at: cmake/caches/linux-toolchain.cmake:20 +#

[PATCH] D41661: [clangd] Don't navigate to forward class declaration when go to definition.

2018-01-02 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. Herald added subscribers: ilya-biryukov, klimek. For some cases, GoToDefinition will navigate to the forward class declaration, we should always navigate to the class definition. Repository: rCTE Clang Tools Extra https://revie

[PATCH] D41326: [clang-tidy] Added diagnostics about incorrect usage of NOLINT comment

2018-01-02 Thread Anton via Phabricator via cfe-commits
xgsa added inline comments. Comment at: clang-tidy/ClangTidyDiagnosticConsumer.cpp:839-840 +case NolintCommentType::Nolint: + Message = "there is no diagnostics on this line, " +"the NOLINT comment is redundant"; + break;

[PATCH] D41660: [cmake] Add new linux toolchain file

2018-01-02 Thread Don Hinton via Phabricator via cfe-commits
hintonda added a comment. In https://reviews.llvm.org/D41660#965656, @smeenai wrote: > Why is this a cache file rather than a toolchain file (but passing itself as > a toolchain file to CMake under some circumstances?) Aren't toolchain files > traditionally used for cross-compilation? Thanks

[PATCH] D40712: [Driver] Add flag enabling the function stack size section that was added in r319430

2018-01-02 Thread Sean Eveson via Phabricator via cfe-commits
seaneveson added a comment. Ping. https://reviews.llvm.org/D40712 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D41660: [cmake] Add new linux toolchain file

2018-01-02 Thread Don Hinton via Phabricator via cfe-commits
hintonda updated this revision to Diff 128409. hintonda added a comment. Use CMAKE_(C|CXX)_COMPILER_TARGET instead of CMAKE_(C|CXX)_COMPILER_ARG1, and pass all target variables via CLANG_BOOTSTRAP_CMAKE_ARGS. Add variable tests and Fix/update comments. Repository: rC Clang https://reviews.ll

[PATCH] D41661: [clangd] Don't navigate to forward class declaration when go to definition.

2018-01-02 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clangd/XRefs.cpp:54 if (isSearchedLocation(FID, Offset)) - Decls.push_back(D); + Decls.push_back(ASTNode.OrigD); return true; --

[PATCH] D41386: [libunwind][PPC64] Port to ppc64le - initial version

2018-01-02 Thread Leandro Lupori via Phabricator via cfe-commits
luporl marked an inline comment as done. luporl added a comment. @compnerd, @mstorsjo, I don't have permission to commit to the repository. Could you check in the changes for me? https://reviews.llvm.org/D41386 ___ cfe-commits mailing list cfe-comm

[PATCH] D41301: ASan+operator new[]: Fix operator new[] cookie poisoning

2018-01-02 Thread Filipe Cabecinhas via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL321645: ASan+operator new[]: Fix operator new[] cookie poisoning (authored by filcab, committed by ). Repository: rL LLVM https://reviews.llvm.org/D41301 Files: cfe/trunk/lib/CodeGen/ItaniumCXXABI.c

r321645 - ASan+operator new[]: Fix operator new[] cookie poisoning

2018-01-02 Thread Filipe Cabecinhas via cfe-commits
Author: filcab Date: Tue Jan 2 05:21:50 2018 New Revision: 321645 URL: http://llvm.org/viewvc/llvm-project?rev=321645&view=rev Log: ASan+operator new[]: Fix operator new[] cookie poisoning Summary: The C++ Itanium ABI says: No cookie is required if the new operator being used is ::operator new[

r321647 - Revert "ASan+operator new[]: Fix operator new[] cookie poisoning"

2018-01-02 Thread Filipe Cabecinhas via cfe-commits
Author: filcab Date: Tue Jan 2 05:46:12 2018 New Revision: 321647 URL: http://llvm.org/viewvc/llvm-project?rev=321647&view=rev Log: Revert "ASan+operator new[]: Fix operator new[] cookie poisoning" This reverts r321645. I missed a compiler-rt test that needs updating. Modified: cfe/trunk/l

[PATCH] D41005: Reuse preamble even if an unsaved file does not exist

2018-01-02 Thread Nikolai Kosjar via Phabricator via cfe-commits
nik added inline comments. Comment at: lib/Frontend/PrecompiledPreamble.cpp:461 std::map::iterator Overridden = OverriddenFiles.find(Status.getUniqueID()); nik wrote: > ilya-biryukov wrote: > > Will anything fail if we remove the map from `UniqueI

[PATCH] D41005: Reuse preamble even if an unsaved file does not exist

2018-01-02 Thread Nikolai Kosjar via Phabricator via cfe-commits
nik updated this revision to Diff 128416. nik added a comment. Rebased and renamed the counter variable only. I do not feel comfortable changing the "std::map OverriddenFiles". I can do this in a follow-up change if you want. @Ivan: Coul you please run the tests with this change on Windows?! If

[PATCH] D41317: Infrastructure for adding C attributes

2018-01-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Post-holiday ping. https://reviews.llvm.org/D41317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D15935: Improve diagnostics for literal conversion to Boolean

2018-01-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Post-holiday ping. https://reviews.llvm.org/D15935 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D41553: Support parsing double square-bracket attributes in ObjC

2018-01-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Post-holiday ping. https://reviews.llvm.org/D41553 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D33563: Track whether a unary operation can overflow

2018-01-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Post-holiday ping. https://reviews.llvm.org/D33563 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D41660: [cmake] Add new linux toolchain file

2018-01-02 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. In https://reviews.llvm.org/D41660#965686, @hintonda wrote: > In https://reviews.llvm.org/D41660#965656, @smeenai wrote: > > > > > > Cache files are preferred since they are only loaded once Isn't that precisely the behavior needed for cross-compilation though? You want

[PATCH] D41660: [cmake] Add new linux toolchain file

2018-01-02 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. You should split the CMake cache file you created into two files, (1) a CMake Cache to manage the build configuration and (2) a tool chain file for targeting Linux. As @semeenai pointed out we absolutly want the behavior of the toolchain file being loaded multiple times.

[PATCH] D41668: [clangd] Add static index for the global code completion.

2018-01-02 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added reviewers: sammccall, ioeric. Herald added subscribers: ilya-biryukov, klimek. Use the YAML-format symbols (generated by the global-symbol-builder tool) to do the global code completion. It is **experimental** only , but it allows us to experience global

[libcxx] r321658 - Implement most of P0607: Inline Variables for the Standard Library. This involved marking a lot of variables as inline (but only for C++17 and later).

2018-01-02 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Jan 2 09:17:01 2018 New Revision: 321658 URL: http://llvm.org/viewvc/llvm-project?rev=321658&view=rev Log: Implement most of P0607: Inline Variables for the Standard Library. This involved marking a lot of variables as inline (but only for C++17 and later). Modified:

[PATCH] D41239: Turn a config macro (_LIBCPP_HAS_NO_INLINE_VARIABLES) into an attribute macro (_LIBCPP_INLINE_VAR)

2018-01-02 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists abandoned this revision. mclow.lists added a comment. This was committed as part of r321658 https://reviews.llvm.org/D41239 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

Re: [PATCH] D41039: Add support for attribute "trivial_abi"

2018-01-02 Thread David Blaikie via cfe-commits
On Tue, Dec 19, 2017 at 9:43 PM Akira Hatanaka wrote: > On Tue, Dec 12, 2017 at 12:12 PM, John McCall wrote: > >> On Tue, Dec 12, 2017 at 1:45 PM, David Blaikie >> wrote: >> >>> On Mon, Dec 11, 2017 at 5:38 PM John McCall wrote: >>> On Mon, Dec 11, 2017 at 6:19 PM, David Blaikie wro

[PATCH] D41512: [Sema] -Wtautological-constant-compare is too good. Cripple it.

2018-01-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/DiagnosticGroups.td:440 def TautologicalUnsignedEnumZeroCompare : DiagGroup<"tautological-unsigned-enum-zero-compare">; +def TautologicalRangeCompare : DiagGroup<"tautological-constant-range-compare">; def T

[PATCH] D41512: [Sema] -Wtautological-constant-compare is too good. Cripple it.

2018-01-02 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added inline comments. Comment at: include/clang/Basic/DiagnosticGroups.td:440 def TautologicalUnsignedEnumZeroCompare : DiagGroup<"tautological-unsigned-enum-zero-compare">; +def TautologicalRangeCompare : DiagGroup<"tautological-constant-range-compare">; def Tautolo

r321660 - [Sema] Don't emit the -Wstrict-prototypes warning for variadic functions.

2018-01-02 Thread Volodymyr Sapsai via cfe-commits
Author: vsapsai Date: Tue Jan 2 10:02:19 2018 New Revision: 321660 URL: http://llvm.org/viewvc/llvm-project?rev=321660&view=rev Log: [Sema] Don't emit the -Wstrict-prototypes warning for variadic functions. rdar://problem/33251668 Reviewers: arphaman, ahatanak Reviewed By: arphaman Subscriber

Re: [PATCH] D41414: [analyzer] Add keyboard j/k navigation to HTML reports

2018-01-02 Thread George Karpenkov via cfe-commits
This patch has already landed — also IIRC e.g. vim on dvorak also uses hjkl navigation with no issues. > On Dec 25, 2017, at 11:21 AM, David Blaikie wrote: > > any chance this can be implemented based on keyboard layout, so it's good for > dvorak users as well? (maybe it already is, I don't kn

[PATCH] D41528: [Sema] Don't emit the -Wstrict-prototypes warning for variadic functions.

2018-01-02 Thread Volodymyr Sapsai via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL321660: [Sema] Don't emit the -Wstrict-prototypes warning for variadic functions. (authored by vsapsai, committed by ). Changed prior to commit: https://reviews.llvm.org/D41528?vs=127965&id=128430#toc

[PATCH] D41512: [Sema] -Wtautological-constant-compare is too good. Cripple it.

2018-01-02 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. @aaron.ballman, @smeenai, thank you for feedback! Comment at: include/clang/Basic/DiagnosticGroups.td:440 def TautologicalUnsignedEnumZeroCompare : DiagGroup<"tautological-unsigned-enum-zero-compare">; +def TautologicalRangeCompare : DiagGroup<"ta

Re: [PATCH] D41414: [analyzer] Add keyboard j/k navigation to HTML reports

2018-01-02 Thread David Blaikie via cfe-commits
Sure, this is post-commit review feedback. vim with dvorak works in the sense that it's not unusable, but it's pretty awkward (see, for example, discussions like this: http://vim.wikia.com/wiki/Using_Vim_with_the_Dvorak_keyboard_layout ) On Tue, Jan 2, 2018 at 10:03 AM George Karpenkov wrote: >

[PATCH] D41326: [clang-tidy] Added diagnostics about incorrect usage of NOLINT comment

2018-01-02 Thread Anton via Phabricator via cfe-commits
xgsa updated this revision to Diff 128431. xgsa added a comment. Rename the check `nolint-usage` => `readability-nolint-usage` for consistency. Update diagnostics message according to the review comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D41326 Files: clang-tidy/

[PATCH] D41660: [cmake] Add new linux toolchain file

2018-01-02 Thread Don Hinton via Phabricator via cfe-commits
hintonda added a comment. In https://reviews.llvm.org/D41660#965877, @beanz wrote: > You should split the CMake cache file you created into two files, (1) a CMake > Cache to manage the build configuration and (2) a tool chain file for > targeting Linux. As @semeenai pointed out we absolutly wan

[libcxx] r321661 - A couple more inlined variables that I missed the first time

2018-01-02 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Jan 2 10:41:01 2018 New Revision: 321661 URL: http://llvm.org/viewvc/llvm-project?rev=321661&view=rev Log: A couple more inlined variables that I missed the first time Modified: libcxx/trunk/include/type_traits libcxx/trunk/www/cxx1z_status.html Modified: libc

[PATCH] D41316: [libcxx] Allow random_device to be built optionally

2018-01-02 Thread Weiming Zhao via Phabricator via cfe-commits
weimingz added a comment. Should we go with current patch? or provide a srand/rand based implementation as an option? Repository: rCXX libc++ https://reviews.llvm.org/D41316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.ll

[PATCH] D40850: suppress undefined-template warnings when the pattern is declared in a system header

2018-01-02 Thread Nick Lewycky via Phabricator via cfe-commits
nlewycky added a comment. Ping! https://reviews.llvm.org/D40850 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D41416: [modules] [pch] Do not deserialize all lazy template specializations when looking for one.

2018-01-02 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. I think you should track lazy partial specializations separately from lazy full specializations -- we need to load all the partial specializations when doing partial specialization selection, and don't want to load all full specializations at the same time. ==

[libcxx] r321663 - Temporarily revert the inlining of 'piecewise_construct' because it is exported from the dylib.

2018-01-02 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Jan 2 10:57:47 2018 New Revision: 321663 URL: http://llvm.org/viewvc/llvm-project?rev=321663&view=rev Log: Temporarily revert the inlining of 'piecewise_construct' because it is exported from the dylib. Modified: libcxx/trunk/include/utility Modified: libcxx/trun

[libcxx] r321664 - Un-inline a few more variables that are exported from the dylib.

2018-01-02 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Jan 2 11:01:45 2018 New Revision: 321664 URL: http://llvm.org/viewvc/llvm-project?rev=321664&view=rev Log: Un-inline a few more variables that are exported from the dylib. Modified: libcxx/trunk/include/__functional_base libcxx/trunk/include/functional Modifie

[PATCH] D40850: suppress undefined-template warnings when the pattern is declared in a system header

2018-01-02 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. Thanks, I agree with your reasoning. https://reviews.llvm.org/D40850 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.or

[PATCH] D41655: [clang-tidy] New check bugprone-unused-return-value

2018-01-02 Thread Kalle Huttunen via Phabricator via cfe-commits
khuttun marked 7 inline comments as done. khuttun added a comment. In https://reviews.llvm.org/D41655#965551, @JonasToth wrote: > I think it would be more user friendly if the configured list can be a list > and the `|` concatenation is done within your code. What do you exactly mean by list?

r321665 - Suppress undefined-template warnings when the pattern is declared in a system header.

2018-01-02 Thread Nick Lewycky via cfe-commits
Author: nicholas Date: Tue Jan 2 11:10:12 2018 New Revision: 321665 URL: http://llvm.org/viewvc/llvm-project?rev=321665&view=rev Log: Suppress undefined-template warnings when the pattern is declared in a system header. The way to fix an undefined-template warning is to add lines to the header

[PATCH] D41316: [libcxx] Allow random_device to be built optionally

2018-01-02 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone added a comment. @weimingz: Since your platform supports `srand(0)`, is it possible to look at how your platform implements `srand(0)` and "inline" that implementation into `random_device`? That seems like it would be more in keeping with the other ifdefs in this file. I'm confiden

[PATCH] D41660: [cmake] Add new linux toolchain file

2018-01-02 Thread Don Hinton via Phabricator via cfe-commits
hintonda added a comment. In https://reviews.llvm.org/D41660#965935, @hintonda wrote: > In https://reviews.llvm.org/D41660#965877, @beanz wrote: > > > You should split the CMake cache file you created into two files, (1) a > > CMake Cache to manage the build configuration and (2) a tool chain fi

[libcxx] r321666 - One more (should be) inline variable that is defined in the dylib

2018-01-02 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Jan 2 11:23:30 2018 New Revision: 321666 URL: http://llvm.org/viewvc/llvm-project?rev=321666&view=rev Log: One more (should be) inline variable that is defined in the dylib Modified: libcxx/trunk/include/__mutex_base Modified: libcxx/trunk/include/__mutex_base URL

[PATCH] D15935: Improve diagnostics for literal conversion to Boolean

2018-01-02 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:3147-3149 +def warn_impcast_literal_to_bool : Warning< + "implicit conversion from %0 to %1; will always evaluate to " + "'%select{false|true}2'">, InGroup; Warning groups are

[PATCH] D41660: [cmake] Add new linux toolchain file

2018-01-02 Thread Petr Hosek via Phabricator via cfe-commits
phosek added a comment. @hintonda I think this should be a platform file in https://github.com/llvm-mirror/llvm/tree/master/cmake/platforms rather than Clang cache file. Platform files are concerned with the host platform (including cross-compilation), while cache files are related to the dis

[PATCH] D41677: Change memcpy/memove/memset to have dest and source alignment attributes.

2018-01-02 Thread Daniel Neilson via Phabricator via cfe-commits
dneilson created this revision. dneilson added a reviewer: rjmccall. Herald added subscribers: fedor.sergeev, kbarton, aheejin, sbc100, javed.absar, nhaehnle, nemanjai, jyknight. Upstream LLVM is changing the the prototypes of the @llvm.memcpy/memmove/memset intrinsics. This change updates the Cl

[libunwind] r321667 - [PPC64] Port to ppc64le - initial version

2018-01-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Jan 2 12:10:54 2018 New Revision: 321667 URL: http://llvm.org/viewvc/llvm-project?rev=321667&view=rev Log: [PPC64] Port to ppc64le - initial version Initial working version of libunwind for PowerPC 64. Tested on little-endian ppc64 host only. Based on the existing Powe

[PATCH] D41386: [libunwind][PPC64] Port to ppc64le - initial version

2018-01-02 Thread Martin Storsjö via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL321667: [PPC64] Port to ppc64le - initial version (authored by mstorsjo, committed by ). Changed prior to commit: https://reviews.llvm.org/D41386?vs=127516&id=128445#toc Repository: rL LLVM https://

[PATCH] D41213: [libcxx] [test] Improve MSVC portability.

2018-01-02 Thread Stephan T. Lavavej via Phabricator via cfe-commits
STL_MSFT added a comment. Ping? (And happy new year!) https://reviews.llvm.org/D41213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D41660: [cmake] Add new linux toolchain file

2018-01-02 Thread Don Hinton via Phabricator via cfe-commits
hintonda added a comment. In https://reviews.llvm.org/D41660#966023, @phosek wrote: > @hintonda I think this should be a platform file in > https://github.com/llvm-mirror/llvm/tree/master/cmake/platforms rather than > Clang cache file. Platform files are concerned with the host platform > (inc

r321669 - [DOXYGEN] Fix doxygen and content issues in emmintrin.h

2018-01-02 Thread Douglas Yung via cfe-commits
Author: dyung Date: Tue Jan 2 12:39:29 2018 New Revision: 321669 URL: http://llvm.org/viewvc/llvm-project?rev=321669&view=rev Log: [DOXYGEN] Fix doxygen and content issues in emmintrin.h - Fixed innaccurate instruction mappings for various intrinsics. - Fixed description of NaN handling in compa

[PATCH] D41516: emmintrin.h documentation fixes and updates

2018-01-02 Thread Douglas Yung via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL321669: [DOXYGEN] Fix doxygen and content issues in emmintrin.h (authored by dyung, committed by ). Changed prior to commit: https://reviews.llvm.org/D41516?vs=127939&id=128447#toc Repository: rL LLV

r321670 - [DOXYGEN] Fix doxygen and content issues in pmmintrin.h

2018-01-02 Thread Douglas Yung via cfe-commits
Author: dyung Date: Tue Jan 2 12:42:53 2018 New Revision: 321670 URL: http://llvm.org/viewvc/llvm-project?rev=321670&view=rev Log: [DOXYGEN] Fix doxygen and content issues in pmmintrin.h - Fix incorrect wording in various intrinsic descriptions. Previously the descriptions used "low-order" and

[PATCH] D41518: pmmintrin.h documentation fixes and updates

2018-01-02 Thread Douglas Yung via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL321670: [DOXYGEN] Fix doxygen and content issues in pmmintrin.h (authored by dyung, committed by ). Changed prior to commit: https://reviews.llvm.org/D41518?vs=127947&id=128448#toc Repository: rL LLV

[PATCH] D38320: [clang] Fix serializers for `TypeTemplateParmDecl` + related types

2018-01-02 Thread Steve O'Brien via Phabricator via cfe-commits
elsteveogrande added a comment. Hi @arphaman, thanks very much! Sorry, I didn't notice there was activity on this old patch until now. I'll make these changes as suggested and re-send it with full context. Repository: rL LLVM https://reviews.llvm.org/D38320 _

[PATCH] D41520: smmintrin.h documentation fixes and updates

2018-01-02 Thread Douglas Yung via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL321671: [DOXYGEN] Fix doxygen and content issues in smmintrin.h (authored by dyung, committed by ). Changed prior to commit: https://reviews.llvm.org/D41520?vs=127949&id=128449#toc Repository: rL LLV

r321671 - [DOXYGEN] Fix doxygen and content issues in smmintrin.h

2018-01-02 Thread Douglas Yung via cfe-commits
Author: dyung Date: Tue Jan 2 12:45:29 2018 New Revision: 321671 URL: http://llvm.org/viewvc/llvm-project?rev=321671&view=rev Log: [DOXYGEN] Fix doxygen and content issues in smmintrin.h - Fix formatting issue due to hyphenated terms at line breaks. - Fix typo This patch was made by Craig Flore

[PATCH] D41677: Change memcpy/memove/memset to have dest and source alignment attributes.

2018-01-02 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. I'm glad to hear that progress is finally happening on this. The change to CGBuilder looks good to me. I'm going to take your word for it that the test changes are all just obvious update

[PATCH] D41677: Change memcpy/memove/memset to have dest and source alignment attributes.

2018-01-02 Thread Daniel Neilson via Phabricator via cfe-commits
dneilson added a comment. In https://reviews.llvm.org/D41677#966094, @rjmccall wrote: > I'm glad to hear that progress is finally happening on this. > > The change to CGBuilder looks good to me. I'm going to take your word for it > that the test changes are all just obvious updates; if there's

r321676 - [WinEH] Allow for multiple terminatepads

2018-01-02 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Jan 2 13:34:16 2018 New Revision: 321676 URL: http://llvm.org/viewvc/llvm-project?rev=321676&view=rev Log: [WinEH] Allow for multiple terminatepads Fixes verifier errors with Windows EH and OpenMP, which injects a terminate scope around parallel blocks. Fixes PR35778 Modi

[PATCH] D41680: [analyzer] do not crash with assertion on processing locations of bodyfarmed functions

2018-01-02 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov created this revision. george.karpenkov added reviewers: dcoughlin, NoQ. Herald added subscribers: a.sidorin, szepet, kristof.beyls, xazax.hun, aemerson. This addresses an issue introduced in r183451: since `removePiecesWithInvalidLocations` is called *after* `adjustCallLocations

[PATCH] D41416: [modules] [pch] Do not deserialize all lazy template specializations when looking for one.

2018-01-02 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev updated this revision to Diff 128460. v.g.vassilev marked 2 inline comments as done. v.g.vassilev added a comment. Address inline comments: order the read operations. https://reviews.llvm.org/D41416 Files: include/clang/AST/DeclTemplate.h lib/AST/DeclTemplate.cpp lib/Serializ

[PATCH] D41512: [Sema] -Wtautological-constant-compare is too good. Cripple it.

2018-01-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/DiagnosticGroups.td:440 def TautologicalUnsignedEnumZeroCompare : DiagGroup<"tautological-unsigned-enum-zero-compare">; +def TautologicalRangeCompare : DiagGroup<"tautological-constant-range-compare">; def T

[PATCH] D41512: [Sema] -Wtautological-constant-compare is too good. Cripple it.

2018-01-02 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri updated this revision to Diff 128462. lebedev.ri marked 3 inline comments as done. lebedev.ri added a comment. Renamed `TautologicalRangeCompare` to `TautologicalInRangeCompare`. Given that previous version of this differential was already previously accepted, and the fact that this n

[PATCH] D38320: [clang] Fix serializers for `TypeTemplateParmDecl` + related types

2018-01-02 Thread Steve O'Brien via Phabricator via cfe-commits
elsteveogrande updated this revision to Diff 128466. elsteveogrande edited the summary of this revision. elsteveogrande added a comment. Fixed local var names. Using `arc diff` which hopefully submits latest changes w/ full context Repository: rC Clang https://reviews.llvm.org/D38320 Files

[PATCH] D41421: Eliminate a magic number. NFC.

2018-01-02 Thread Matt Davis via Phabricator via cfe-commits
mattd added a comment. Ping :) I would like someone to commit this on my behalf, thanks! https://reviews.llvm.org/D41421 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D41416: [modules] [pch] Do not deserialize all lazy template specializations when looking for one.

2018-01-02 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev updated this revision to Diff 128465. v.g.vassilev added a comment. Teach `ASTReader::CompleteRedeclChain` to load only the template specializations with the same template argument list. https://reviews.llvm.org/D41416 Files: include/clang/AST/DeclTemplate.h lib/AST/DeclTempla

[PATCH] D41416: [modules] [pch] Do not deserialize all lazy template specializations when looking for one.

2018-01-02 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev added inline comments. Comment at: lib/Serialization/ASTReaderDecl.cpp:92 for (unsigned I = 0, Size = Record.readInt(); I != Size; ++I) -IDs.push_back(ReadDeclID()); +IDs.push_back(LazySpecializationInfo(ReadDeclID(), Record.readInt())); }

[PATCH] D41386: [libunwind][PPC64] Port to ppc64le - initial version

2018-01-02 Thread Tim Shen via Phabricator via cfe-commits
timshen added a comment. The static_assert on line 1189 fails with the following build on x86: cmake -GNinja -DLIBUNWIND_ENABLE_CROSS_UNWINDING=ON -DLLVM_PATH=$PATH_TO_LLVM $PATH_TO_LIBUNWIND && ninja libunwind.a It seems that 136 in `# define _LIBUNWIND_CONTEXT_SIZE 136` is too small. Rever

[PATCH] D41386: [libunwind][PPC64] Port to ppc64le - initial version

2018-01-02 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In https://reviews.llvm.org/D41386#966187, @timshen wrote: > The static_assert on line 1189 fails with the following build on x86: > > cmake -GNinja -DLIBUNWIND_ENABLE_CROSS_UNWINDING=ON > -DLLVM_PATH=$PATH_TO_LLVM $PATH_TO_LIBUNWIND && ninja libunwind.a > > > It s

[libunwind] r321678 - Revert `rL321667: [PPC64] Port to ppc64le - initial version`

2018-01-02 Thread Tim Shen via cfe-commits
Author: timshen Date: Tue Jan 2 14:04:03 2018 New Revision: 321678 URL: http://llvm.org/viewvc/llvm-project?rev=321678&view=rev Log: Revert `rL321667: [PPC64] Port to ppc64le - initial version` Differential Revision: https://reviews.llvm.org/D41386 Modified: libunwind/trunk/include/__libunw

[PATCH] D41386: [libunwind][PPC64] Port to ppc64le - initial version

2018-01-02 Thread Tim Shen via Phabricator via cfe-commits
timshen added a comment. In https://reviews.llvm.org/D41386#966189, @mstorsjo wrote: > In https://reviews.llvm.org/D41386#966187, @timshen wrote: > > > The static_assert on line 1189 fails with the following build on x86: > > > > cmake -GNinja -DLIBUNWIND_ENABLE_CROSS_UNWINDING=ON > > -DLLVM_P

[PATCH] D41416: [modules] [pch] Do not deserialize all lazy template specializations when looking for one.

2018-01-02 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. This is looking like a really good start; we'll still want to do something about partial specializations, but this should already help a lot. Can you produce some sample performance numbers for this change? This is replacing a linear-time algorithm (with a high constant)

[libunwind] r321679 - Don't use a strict larger-than comparison in the check_fit/does_fit static assert

2018-01-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Jan 2 14:11:22 2018 New Revision: 321679 URL: http://llvm.org/viewvc/llvm-project?rev=321679&view=rev Log: Don't use a strict larger-than comparison in the check_fit/does_fit static assert For builds that only target one architecture, this was required to be an exact

[libunwind] r321680 - Reland [PPC64] Port to ppc64le - initial version

2018-01-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Jan 2 14:11:30 2018 New Revision: 321680 URL: http://llvm.org/viewvc/llvm-project?rev=321680&view=rev Log: Reland [PPC64] Port to ppc64le - initial version Initial working version of libunwind for PowerPC 64. Tested on little-endian ppc64 host only. Based on the existi

[PATCH] D41512: [Sema] -Wtautological-constant-compare is too good. Cripple it.

2018-01-02 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri updated this revision to Diff 128470. lebedev.ri added a comment. Actually update the diagnostic flag :) I'm going to hold off committing just yet, and wait for @rsmith to sign off. Repository: rC Clang https://reviews.llvm.org/D41512 Files: include/clang/Basic/DiagnosticGroups

[PATCH] D41680: [analyzer] do not crash with assertion on processing locations of bodyfarmed functions

2018-01-02 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov added a comment. The error is triggered when analyzer finds a bug *inside* the callable captured by the body farm. Probably we didn't see the crash in the wild because either a) the clang build did not have assertions enabled or b) the HTML output was not enabled and the bug nee

[PATCH] D41680: [analyzer] do not crash with assertion on processing locations of bodyfarmed functions

2018-01-02 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Yep, so it still doesn't answer if `removePiecesWithInvalidLocations()` was dead code to begin with (considering that the assertion in `adjustCallLocations()` says that everything but call locations

[PATCH] D33563: Track whether a unary operation can overflow

2018-01-02 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added inline comments. Comment at: include/clang/AST/Expr.h:1728 + UnaryOperator(Expr *input, Opcode opc, QualType type, ExprValueKind VK, +ExprObjectKind OK, SourceLocation l, bool CanOverflow = false) + : Expr(UnaryOperatorClass, type, VK, OK, ---

[PATCH] D23934: Add a -ffixed-date-time= flag that sets the initial value of __DATE__, __TIME__, __TIMESTAMP__

2018-01-02 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. Cannot tell for sure from code but looks like we are still emitting `-Wdate-time` "expansion of date or time macro is not reproducible" with this flag. At least it's not covered by tests. And another similar warning is `-Wpch-date-time`. https://reviews.llvm.org/D2393

r321682 - [analyzer] do not crash with assertion on processing locations of bodyfarmed functions

2018-01-02 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Jan 2 15:05:47 2018 New Revision: 321682 URL: http://llvm.org/viewvc/llvm-project?rev=321682&view=rev Log: [analyzer] do not crash with assertion on processing locations of bodyfarmed functions This addresses an issue introduced in r183451: since `removePieces

[PATCH] D41680: [analyzer] do not crash with assertion on processing locations of bodyfarmed functions

2018-01-02 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC321682: [analyzer] do not crash with assertion on processing locations of bodyfarmed… (authored by george.karpenkov, committed by ). Repository: rC Clang https://reviews.llvm.org/D41680 Files: lib/S

[PATCH] D23934: Add a -ffixed-date-time= flag that sets the initial value of __DATE__, __TIME__, __TIMESTAMP__

2018-01-02 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:2252 + TM.tm_isdst = -1; + mktime(&TM); + Opts.FixedDateTime = TM; Does using mktime like this depend on the local timezone? https://reviews.llvm.org/D23934 __

trivial_abi

2018-01-02 Thread John McCall via cfe-commits
Hey, Richard et al. Akira and I were talking about the right ABI rule for deciding can-pass-in-registers-ness for structs in the presence of trivial_abi, and I think I like Akira's approach but wanted to get your input. The current definition in Itanium is: non-trivial for the purposes of ca

r321683 - Fix and simplify handling of return type for (generic) lambda conversion function to function pointer.

2018-01-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Jan 2 15:52:42 2018 New Revision: 321683 URL: http://llvm.org/viewvc/llvm-project?rev=321683&view=rev Log: Fix and simplify handling of return type for (generic) lambda conversion function to function pointer. Previously, we would: * compute the type of the conversion

[PATCH] D41545: Replace cp -a in various Clang tests

2018-01-02 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno accepted this revision. bruno added a comment. This revision is now accepted and ready to land. Hi Hubert, Thanks for fixing this. `cp -R` is sufficient IMO. LGTM Repository: rC Clang https://reviews.llvm.org/D41545 ___ cfe-commits mailing

[PATCH] D41150: [CFG] Adding new CFGStmt LoopEntrance for the StaticAnalyzer

2018-01-02 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Because it wasn't immediately obvious to me how to apply both this patch and https://reviews.llvm.org/D39398 (there are a couple of minor conflicts between them), i wanted to post a few pictures for the reference, because `debug.ViewCFG` graphs are much easier to comprehend

[PATCH] D41150: [CFG] Adding new CFGStmt LoopEntrance for the StaticAnalyzer

2018-01-02 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. (edited my comment: fixed the suggested change to mention the right block) https://reviews.llvm.org/D41150 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D40398: Remove ValueDependent assertions on ICE checks.

2018-01-02 Thread Matt Davis via Phabricator via cfe-commits
mattd abandoned this revision. mattd added a comment. Abandoning as this is no longer a problem with release builds. https://reviews.llvm.org/D40398 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

[PATCH] D41539: [CodeGen] Decorate aggregate accesses with TBAA tags

2018-01-02 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. You're sure you just want a single TBAA tag on memcpy's? I would think that it might be useful to encode separate path information for the two operands. https://reviews.llvm.org/D41539 ___ cfe-commits mailing list cfe-com

[PATCH] D41547: [CodeGen] Fix TBAA info for accesses to members of base classes

2018-01-02 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. Ok. Repository: rL LLVM https://reviews.llvm.org/D41547 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

[PATCH] D41660: [cmake] Add new linux toolchain file

2018-01-02 Thread Don Hinton via Phabricator via cfe-commits
hintonda abandoned this revision. hintonda added a comment. Thanks for all your suggestions. Planning to rework and move the toolchain specific part to llvm/cmake/platform and abandon the cache part altogether. Repository: rC Clang https://reviews.llvm.org/D41660

[PATCH] D41562: [CodeGen] Generate TBAA info on passing arguments and returning values

2018-01-02 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Aren't these always loads and stores from allocas? I would expect TBAA to be useless here because it's always strictly less informative than basic-AA, which knows that the access doesn't alias with anything. Repository: rL LLVM https://reviews.llvm.org/D41562 _

[PATCH] D39398: [CFG][Analyzer] Add LoopExit element to the CFG in more cases

2018-01-02 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Herald added subscribers: dkrupp, a.sidorin, rnkovacs. These CFGs make perfect sense to me so far, and i guess this is a must-have. Thank you! > Note: In case of IndirectGotoStmt, it could happen that we generate LoopExit > elements even for loops which is not exited by tha

[PATCH] D41151: [analyzer] Adding LoopContext and improve loop modeling

2018-01-02 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. //*asked stuff in https://reviews.llvm.org/D39398 regarding how indirect gotos are supported*// https://reviews.llvm.org/D41151 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

  1   2   >