[PATCH] D48159: [clangd] Implement hover for "auto" and "decltype"

2018-07-02 Thread Manuel Klimek via Phabricator via cfe-commits
klimek accepted this revision. klimek added inline comments. Comment at: clangd/XRefs.cpp:559 + //- auto& i = 1; + bool VisitDeclaratorDecl(DeclaratorDecl *D) { +if (!D->getTypeSourceInfo() || klimek wrote: > malaperle wrote: > > klimek wrote: > > > sammcca

[PATCH] D45094: [LibTooling] Make interface of VFS injection into ClangTool more user-friendly

2018-07-02 Thread Whisperity via Phabricator via cfe-commits
whisperity added a comment. Pinging this as the talk has stalled. https://reviews.llvm.org/D45094 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D45094: [LibTooling] Make interface of VFS injection into ClangTool more user-friendly

2018-07-02 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added inline comments. Comment at: lib/Basic/VirtualFileSystem.cpp:328 void OverlayFileSystem::pushOverlay(IntrusiveRefCntPtr FS) { + // FIXME: OverlayFS containing another one in its stack could be flattened. FSList.push_back(FS); ilya-biryukov wrote

[PATCH] D28462: clang-format: Add new style option AlignConsecutiveMacros

2018-07-02 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added a comment. In https://reviews.llvm.org/D28462#1148732, @enyquist wrote: > @klimek having gotten that out of the way, I do occasionally drink too much > and have sudden urges to re-implement things from scratch. Close it if you > need to, since I can't commit to anything, but it

[PATCH] D46013: [ARM] Conform to AAPCS when passing overaligned composites as arguments

2018-07-02 Thread Momchil Velikov via Phabricator via cfe-commits
chill added a comment. Ping? https://reviews.llvm.org/D46013 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D48821: [clangd] ClangdServer::codeComplete return CodeCompleteResult, not LSP struct.

2018-07-02 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: ioeric. Herald added subscribers: cfe-commits, jkorous, MaskRay, ilya-biryukov. This provides more structured information that embedders can use for rendering. ClangdLSPServer continues to call render(), so NFC. The patch is: - trivial

[PATCH] D48441: [clangd] Incorporate transitive #includes into code complete proximity scoring.

2018-07-02 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lgtm. Again, we might still want to measure the performance impact on files with potentially large #include tree ;) Comment at: clangd/FileDistance.cpp:26 +// /bar/foo

[PATCH] D48716: [clang-format] Fix counting parameters/arguments for ObjC

2018-07-02 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak marked 6 inline comments as done. jolesiak added inline comments. Comment at: lib/Format/FormatToken.h:247-248 + /// If this is the first ObjC selector name in an ObjC method + /// definition or call, this contains the number of parts that whole selector + /// consist

[PATCH] D48716: [clang-format] Fix counting parameters/arguments for ObjC

2018-07-02 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak marked 6 inline comments as done. jolesiak added a comment. In https://reviews.llvm.org/D48716#1146796, @benhamilton wrote: > > Count selector parts also for method declarations. > > What bug does this fix? Can you add a test which breaks before this change > and is fixed by this change

[PATCH] D48821: [clangd] ClangdServer::codeComplete return CodeCompleteResult, not LSP struct.

2018-07-02 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lgtm Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

[PATCH] D48716: [clang-format] Fix counting parameters/arguments for ObjC

2018-07-02 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak updated this revision to Diff 153689. jolesiak added a comment. Fix grammar mistakes. Repository: rC Clang https://reviews.llvm.org/D48716 Files: lib/Format/FormatToken.h lib/Format/TokenAnnotator.cpp Index: lib/Format/TokenAnnotator.cpp ===

[PATCH] D48718: [clang-format] Prohibit breaking after a bracket opening ObjC method expression

2018-07-02 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak added a comment. In https://reviews.llvm.org/D48718#1146805, @benhamilton wrote: > Can you add a test, please? The test could look like: a = [a aa:aa aa:aa]; with appropriate column limit. Right now, however, this would be formatted: a = [a aa:aa aa:aa

[clang-tools-extra] r336094 - [clangd] ClangdServer::codeComplete return CodeCompleteResult, not LSP struct.

2018-07-02 Thread Sam McCall via cfe-commits
Author: sammccall Date: Mon Jul 2 04:13:16 2018 New Revision: 336094 URL: http://llvm.org/viewvc/llvm-project?rev=336094&view=rev Log: [clangd] ClangdServer::codeComplete return CodeCompleteResult, not LSP struct. Summary: This provides more structured information that embedders can use for rend

[PATCH] D48821: [clangd] ClangdServer::codeComplete return CodeCompleteResult, not LSP struct.

2018-07-02 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL336094: [clangd] ClangdServer::codeComplete return CodeCompleteResult, not LSP struct. (authored by sammccall, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://revie

[PATCH] D48827: [clang-format ]Extend IncludeCategories regex documentation

2018-07-02 Thread Wim Leflere via Phabricator via cfe-commits
WimLeflere created this revision. WimLeflere added reviewers: krasimir, Typz. Herald added a subscriber: cfe-commits. Extend the Clang-Format IncludeCategories documentation by adding a link to the supported regular expression standard (POSIX). And extenting the example with a system header regex

[PATCH] D48781: [ms] Fix mangling of char16_t and char32_t to be compatible with MSVC.

2018-07-02 Thread Hans Wennborg via Phabricator via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. lgtm with nit Comment at: clang/lib/AST/MicrosoftMangle.cpp:3262 + // Enforce our 32 bytes max, except wchar_t which gets 32 chars instead. + unsigned MaxBytesToWrite = SL->isW

r336097 - [ms] Fix mangling of char16_t and char32_t to be compatible with MSVC.

2018-07-02 Thread Nico Weber via cfe-commits
Author: nico Date: Mon Jul 2 05:31:20 2018 New Revision: 336097 URL: http://llvm.org/viewvc/llvm-project?rev=336097&view=rev Log: [ms] Fix mangling of char16_t and char32_t to be compatible with MSVC. MSVC limits char16_t and char32_t string literal names to 32 bytes of character data, not to 32

[PATCH] D48781: [ms] Fix mangling of char16_t and char32_t to be compatible with MSVC.

2018-07-02 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Thanks, landed with nit addressed in r336097. https://reviews.llvm.org/D48781 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D48764: [Analyzer] Hotfix for iterator checkers: Mark left-hand side of `SymIntExpr` objects as live in the program state maps.

2018-07-02 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware updated this revision to Diff 153698. baloghadamsoftware added a comment. Updated according to the comments and assertions added to fail the tests without the fix. https://reviews.llvm.org/D48764 Files: lib/StaticAnalyzer/Checkers/IteratorChecker.cpp Index: lib/StaticAna

[PATCH] D48427: [Analyzer] Fix for D47417 to make the tests pass

2018-07-02 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware added a comment. Hmm, then the only solution that comes to my mind is to link iterator positions to container data instead of the container regions. I also have to store a link to the class definition of the container in the container data for the invalidation rules. Containe

[PATCH] D48829: [NEON] Fix support for vrndi_f32(), vrndiq_f32() and vrndns_f32() intrinsics

2018-07-02 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev created this revision. kosarev added reviewers: SjoerdMeijer, jgreenhalgh, rengolin. kosarev added a project: clang. Herald added a reviewer: javed.absar. Herald added a subscriber: kristof.beyls. This patch adds support for vrndi_f32() and vrndiq_f32() intrinsics in AArch32 mode and for

[PATCH] D48720: [clang-format] Put ObjC method arguments into one line when they fit

2018-07-02 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak updated this revision to Diff 153705. jolesiak added a comment. Improve condition. Repository: rC Clang https://reviews.llvm.org/D48720 Files: lib/Format/ContinuationIndenter.cpp lib/Format/FormatToken.h lib/Format/TokenAnnotator.cpp unittests/Format/FormatTestObjC.cpp Inde

[PATCH] D48720: [clang-format] Put ObjC method arguments into one line when they fit

2018-07-02 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak updated this revision to Diff 153706. jolesiak added a comment. Rebase. Repository: rC Clang https://reviews.llvm.org/D48720 Files: lib/Format/ContinuationIndenter.cpp unittests/Format/FormatTestObjC.cpp Index: unittests/Format/FormatTestObjC.cpp ==

[PATCH] D48720: [clang-format] Put ObjC method arguments into one line when they fit

2018-07-02 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak marked an inline comment as done. jolesiak added inline comments. Comment at: lib/Format/ContinuationIndenter.cpp:1411 + // line). + if (Current.MatchingParen && Current.MatchingParen->Previous) { +const FormatToken &CurrentScopeOpener = *Current.MatchingParen->Pre

[PATCH] D47814: Teach libc++ to use native NetBSD's max_align_t

2018-07-02 Thread Kamil Rytarowski via Phabricator via cfe-commits
krytarowski added a comment. ping^3 Repository: rL LLVM https://reviews.llvm.org/D47814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r336108 - Test commit access

2018-07-02 Thread Balazs Keri via cfe-commits
Author: balazske Date: Mon Jul 2 07:14:07 2018 New Revision: 336108 URL: http://llvm.org/viewvc/llvm-project?rev=336108&view=rev Log: Test commit access Modified: cfe/trunk/unittests/AST/ASTImporterTest.cpp Modified: cfe/trunk/unittests/AST/ASTImporterTest.cpp URL: http://llvm.org/viewvc/l

Re: r336021 - PR33924: merge local declarations that have linkage of some kind within

2018-07-02 Thread Hans Wennborg via cfe-commits
Hi Richard, This introduced test failures on Windows, but for some reason only in 32-bit builds: https://bugs.llvm.org/show_bug.cgi?id=38015 I don't know what's going on yet, just finished the bisection. Maybe it reproduces in 32-bit linux builds too? - Hans On Fri, Jun 29, 2018 at 11:58 PM, R

[PATCH] D48808: [CodeGen] Emit parallel_loop_access for each loop in the loop stack.

2018-07-02 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. I don't think that this is the intended behavior of the `#pragma clang loop`. it is better to ask the author of this pragma is this correct or not. Repository: rC Clang https://reviews.llvm.org/D48808 ___ cfe-commits mai

[PATCH] D48808: [CodeGen] Emit parallel_loop_access for each loop in the loop stack.

2018-07-02 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D48808#1149534, @ABataev wrote: > I don't think that this is the intended behavior of the `#pragma clang loop`. > it is better to ask the author of this pragma is this correct or not. It is the intended behavior that the memory accesses are

[PATCH] D48808: [CodeGen] Emit parallel_loop_access for each loop in the loop stack.

2018-07-02 Thread Michael Kruse via Phabricator via cfe-commits
Meinersbur added a comment. In https://reviews.llvm.org/D48808#1149534, @ABataev wrote: > I don't think that this is the intended behavior of the `#pragma clang loop`. > it is better to ask the author of this pragma is this correct or not. I understand it as the intended behavior of the `assum

[PATCH] D48833: [Driver] Add PPC64 as supported for Scudo

2018-07-02 Thread Kostya Kortchinsky via Phabricator via cfe-commits
cryptoad created this revision. cryptoad added reviewers: eugenis, alekseyshl. Scudo works on PPC64 as is, so mark the architecture as supported for it. This will also require a change to config-ix.cmake on the compiler-rt side. Update the tests accordingly. Repository: rC Clang https://revi

[PATCH] D48159: [clangd] Implement hover for "auto" and "decltype"

2018-07-02 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle updated this revision to Diff 153737. malaperle added a comment. Tweak comment with FIXME. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48159 Files: clangd/XRefs.cpp unittests/clangd/TestTU.cpp unittests/clangd/TestTU.h unittests/clangd/XRefsTests.cpp Index

[PATCH] D48159: [clangd] Implement hover for "auto" and "decltype"

2018-07-02 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added inline comments. Comment at: clangd/XRefs.cpp:559 + //- auto& i = 1; + bool VisitDeclaratorDecl(DeclaratorDecl *D) { +if (!D->getTypeSourceInfo() || klimek wrote: > klimek wrote: > > malaperle wrote: > > > klimek wrote: > > > > sammccall wro

[clang-tools-extra] r336119 - [clangd] Implement hover for "auto" and "decltype"

2018-07-02 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Mon Jul 2 09:28:34 2018 New Revision: 336119 URL: http://llvm.org/viewvc/llvm-project?rev=336119&view=rev Log: [clangd] Implement hover for "auto" and "decltype" Summary: This allows hovering on keywords that refer to deduced types. This should cover most useful cases. No

[PATCH] D48159: [clangd] Implement hover for "auto" and "decltype"

2018-07-02 Thread Marc-Andre Laperle via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL336119: [clangd] Implement hover for "auto" and "decltype" (authored by malaperle, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D48159 Files:

[PATCH] D47846: [clangd] Implementation of textDocument/documentSymbol

2018-07-02 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle updated this revision to Diff 153742. malaperle added a comment. Rebased. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47846 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/ClangdServer.cpp clangd/ClangdServer.h clangd/FindSymbols.cpp c

[PATCH] D48427: [Analyzer] Fix for D47417 to make the tests pass

2018-07-02 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. That'd be a hell for you because when the container is updated you won't be able to easily find iterators all that iterate over it. Normally what you want to do is keep mapping iterators to container regions, and when the region dies, "freeze" the data (make sure it can no

[PATCH] D48716: [clang-format] Fix counting parameters/arguments for ObjC

2018-07-02 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton accepted this revision. benhamilton added a comment. This revision is now accepted and ready to land. In https://reviews.llvm.org/D48716#1149293, @jolesiak wrote: > General comment to changes https://reviews.llvm.org/D48716, > https://reviews.llvm.org/D48718, https://reviews.llvm.org

[PATCH] D48718: [clang-format] Prohibit breaking after a bracket opening ObjC method expression

2018-07-02 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton accepted this revision. benhamilton added a comment. This revision is now accepted and ready to land. > Sorry for the confusion. If you prefer me to add this test and modify in > later commit I'll do it. I see. Just mentioning what you did in the diff description is probably OK. Re

[PATCH] D48072: Sema: Fix PR12350 destructor name lookup, addressing (some of) DR244

2018-07-02 Thread Jeremy Morse via Phabricator via cfe-commits
jmorse added a comment. Ping Repository: rC Clang https://reviews.llvm.org/D48072 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r336124 - [analyzer] [tests] Pass clang executable path to prefix-less executor scripts.

2018-07-02 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Mon Jul 2 10:10:40 2018 New Revision: 336124 URL: http://llvm.org/viewvc/llvm-project?rev=336124&view=rev Log: [analyzer] [tests] Pass clang executable path to prefix-less executor scripts. Modified: cfe/trunk/utils/analyzer/SATestBuild.py Modified: cfe/trunk/

Re: [PATCH] D48808: [CodeGen] Emit parallel_loop_access for each loop in the loop stack.

2018-07-02 Thread Tyler Nowicki via cfe-commits
Hi Michael, Hal, Sorry it has been a while since I looked at this. My memory is a little fuzzy. The intent of 'assume_safety' is to tell LAA to skip dependency checking on loads and stores so the vectorizer doesn't stop as soon as it sees both in a loop. At the time 'assume_safety' was implemented

[PATCH] D48808: [CodeGen] Emit parallel_loop_access for each loop in the loop stack.

2018-07-02 Thread Michael Kruse via Phabricator via cfe-commits
Meinersbur added a comment. In https://reviews.llvm.org/D48808#1149549, @hfinkel wrote: > In https://reviews.llvm.org/D48808#1149534, @ABataev wrote: > > > > > > Michael, can you please add a test with two inner loops, one where more than > one is annotated, and one where only the outer loop is

[PATCH] D48722: [ASTImporter] Update isUsed flag at Decl import.

2018-07-02 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added a comment. Hello Gabor, I have a strong feeling of duplication with attribute and flags merging move in https://reviews.llvm.org/D47632. Maybe it is better to be resolved in that review by using the same code for attr/flag merging for both newly-created and mapped decls? Repo

[PATCH] D48722: [ASTImporter] Update isUsed flag at Decl import.

2018-07-02 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added a comment. Whoops, sorry Balázs. Didn't look at the review author :( Repository: rC Clang https://reviews.llvm.org/D48722 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[PATCH] D48808: [CodeGen] Emit parallel_loop_access for each loop in the loop stack.

2018-07-02 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D48808#1149828, @Meinersbur wrote: > In https://reviews.llvm.org/D48808#1149549, @hfinkel wrote: > > > In https://reviews.llvm.org/D48808#1149534, @ABataev wrote: > > > > > > > > > > > Michael, can you please add a test with two inner loops, on

Re: [PATCH] D48808: [CodeGen] Emit parallel_loop_access for each loop in the loop stack.

2018-07-02 Thread Hal Finkel via cfe-commits
On 07/02/2018 12:27 PM, Tyler Nowicki wrote: > Hi Michael, Hal, > > Sorry it has been a while since I looked at this. My memory is a > little fuzzy. The intent of 'assume_safety' is to tell LAA to > skip dependency checking on loads and stores so the vectorizer doesn't > stop as soon as it sees bo

[PATCH] D48808: [CodeGen] Emit parallel_loop_access for each loop in the loop stack.

2018-07-02 Thread Michael Kruse via Phabricator via cfe-commits
Meinersbur added a comment. In https://reviews.llvm.org/D48808#1149845, @hfinkel wrote: > We specifically defined the metadata to support nested loops. The LangRef > says, "The llvm.mem.parallel_loop_access metadata refers to a loop > identifier, or metadata containing a list of loop identifier

[PATCH] D48808: [CodeGen] Emit parallel_loop_access for each loop in the loop stack.

2018-07-02 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D48808#1149862, @Meinersbur wrote: > In https://reviews.llvm.org/D48808#1149845, @hfinkel wrote: > > > We specifically defined the metadata to support nested loops. The LangRef > > says, "The llvm.mem.parallel_loop_access metadata refers to a

[libcxx] r336132 - Implement LWG 2946, 3075 and 3076. Reviewed as https://reviews.llvm.org/D48616

2018-07-02 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Jul 2 11:41:15 2018 New Revision: 336132 URL: http://llvm.org/viewvc/llvm-project?rev=336132&view=rev Log: Implement LWG 2946, 3075 and 3076. Reviewed as https://reviews.llvm.org/D48616 Added: libcxx/trunk/test/std/strings/basic.string/string.cons/string_view_dedu

[PATCH] D47299: [CodeGenCXX] Emit strip.invariant.group with -fstrict-vtable-pointers

2018-07-02 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: clang/lib/CodeGen/CGExprScalar.cpp:1647 + } +} + Prazek wrote: > rsmith wrote: > > Prazek wrote: > > > rjmccall wrote: > > > > Prazek wrote: > > > > > rjmccall wrote: > > > > > > Incidentally, how do you protec

[PATCH] D48617: [Builtins][Attributes][X86] Tag all X86 builtins with their required vector width. Add a min_vector_width function attribute and tag all x86 instrinsics with it.

2018-07-02 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: test/Sema/attr-min-vector-width.c:8 + +void f3(void) __attribute__((__min_vector_width__(128), __min_vector_width__(256))); /* expected-warning {{attribute '__min_vector_width__' is already applied with different parameters}} */ -

[PATCH] D48617: [Builtins][Attributes][X86] Tag all X86 builtins with their required vector width. Add a min_vector_width function attribute and tag all x86 instrinsics with it.

2018-07-02 Thread Craig Topper via Phabricator via cfe-commits
craig.topper updated this revision to Diff 153763. craig.topper added a comment. -Rebase the intrinsic headers and builtins file -Add documentation for the attribute. Open to feedback on improvements here -Add tests for wrong number of arguments to the attribute. https://reviews.llvm.org/D48617

[PATCH] D48617: [Builtins][Attributes][X86] Tag all X86 builtins with their required vector width. Add a min_vector_width function attribute and tag all x86 instrinsics with it.

2018-07-02 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: include/clang/Basic/Attr.td:1949 + let Args = [UnsignedArgument<"VectorWidth">]; + let Subjects = SubjectList<[Function], ErrorDiag>; + let Documentation = [Undocumented]; aaron.ballman wrote: > Should this apply

[PATCH] D48617: [Builtins][Attributes][X86] Tag all X86 builtins with their required vector width. Add a min_vector_width function attribute and tag all x86 instrinsics with it.

2018-07-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: test/Sema/attr-min-vector-width.c:8 + +void f3(void) __attribute__((__min_vector_width__(128), __min_vector_width__(256))); /* expected-warning {{attribute '__min_vector_width__' is already applied with different parameters}} */

[PATCH] D48342: [libcxx] Optimize vectors construction of trivial types from an iterator range with const-ness mismatch.

2018-07-02 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. In https://reviews.llvm.org/D48342#1148751, @mclow.lists wrote: > I want to point out that this code (not -necessarily- this patch, but where > it lives) needs to be rewritten. > > There is no prohibition on users specializing `allocator_traits` for their > allocators,

[PATCH] D48342: [libcxx] Optimize vectors construction of trivial types from an iterator range with const-ness mismatch.

2018-07-02 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai planned changes to this revision. vsapsai added inline comments. Comment at: libcxx/include/memory:1479 +struct __has_construct_missing +: false_type +{ vsapsai wrote: > vsapsai wrote: > > erik.pilkington wrote: > > > vsapsai wrote: > > > > erik.pilki

r336137 - [CodeGenCXX] Emit strip.invariant.group with -fstrict-vtable-pointers

2018-07-02 Thread Piotr Padlewski via cfe-commits
Author: prazek Date: Mon Jul 2 12:21:36 2018 New Revision: 336137 URL: http://llvm.org/viewvc/llvm-project?rev=336137&view=rev Log: [CodeGenCXX] Emit strip.invariant.group with -fstrict-vtable-pointers Summary: Emmiting new intrinsic that strips invariant.groups to make devirtulization sound, as

[PATCH] D47299: [CodeGenCXX] Emit strip.invariant.group with -fstrict-vtable-pointers

2018-07-02 Thread Piotr Padlewski via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rC336137: [CodeGenCXX] Emit strip.invariant.group with -fstrict-vtable-pointers (authored by Prazek, committed by ). Change

[PATCH] D48808: [CodeGen] Emit parallel_loop_access for each loop in the loop stack.

2018-07-02 Thread Michael Kruse via Phabricator via cfe-commits
Meinersbur updated this revision to Diff 153769. Meinersbur added a comment. - Allow multiple parallel annotations Repository: rC Clang https://reviews.llvm.org/D48808 Files: lib/CodeGen/CGLoopInfo.cpp test/CodeGenCXX/pragma-loop-safety-nested.cpp test/CodeGenCXX/pragma-loop-safety-out

[PATCH] D48617: [Builtins][Attributes][X86] Tag all X86 builtins with their required vector width. Add a min_vector_width function attribute and tag all x86 instrinsics with it.

2018-07-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/Attr.td:1949 + let Args = [UnsignedArgument<"VectorWidth">]; + let Subjects = SubjectList<[Function], ErrorDiag>; + let Documentation = [Undocumented]; craig.topper wrote: > aaron.ballman wro

[PATCH] D48342: [libcxx] Optimize vectors construction of trivial types from an iterator range with const-ness mismatch.

2018-07-02 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone added inline comments. Comment at: libcxx/include/memory:1479 +struct __has_construct_missing +: false_type +{ vsapsai wrote: > vsapsai wrote: > > vsapsai wrote: > > > erik.pilkington wrote: > > > > vsapsai wrote: > > > > > erik.pilkington wrote:

[PATCH] D48601: Added -fcrash-diagnostics-dir flag

2018-07-02 Thread Chijioke Kamanu via Phabricator via cfe-commits
j10kay updated this revision to Diff 153773. j10kay marked 3 inline comments as done. j10kay added a comment. Implemented the code review changes Repository: rL LLVM https://reviews.llvm.org/D48601 Files: clang/include/clang/Driver/Options.td clang/lib/Driver/Driver.cpp clang/test/Driv

[PATCH] D48749: [Win32] Overload ==, != for locale_t and long long

2018-07-02 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCXX336141: [Win32] Overload ==, != for locale_t and long long (authored by pirama, committed by ). Changed prior to commit: https://reviews.llvm.org/D48749?vs=153411&id=153778#toc Repository: rCXX lib

[libcxx] r336141 - [Win32] Overload ==, != for locale_t and long long

2018-07-02 Thread Pirama Arumuga Nainar via cfe-commits
Author: pirama Date: Mon Jul 2 13:11:15 2018 New Revision: 336141 URL: http://llvm.org/viewvc/llvm-project?rev=336141&view=rev Log: [Win32] Overload ==, != for locale_t and long long Summary: _is_chartype_l (needed for isxdigit_l) in MinGW compares locale_t and NULL. NULL is 'long long' for 64-b

[PATCH] D48617: [Builtins][Attributes][X86] Tag all X86 builtins with their required vector width. Add a min_vector_width function attribute and tag all x86 instrinsics with it.

2018-07-02 Thread Chandler Carruth via Phabricator via cfe-commits
chandlerc added a comment. FWIW, I looked at an early version of this patch and am generally happy with the target-specific / IR-specific behavior aspects of it. Totally leaving the detailed review of the attribute stuff to you Aaron, as you're already doing an amazing job there. Minor clarific

[PATCH] D48617: [Builtins][Attributes][X86] Tag all X86 builtins with their required vector width. Add a min_vector_width function attribute and tag all x86 instrinsics with it.

2018-07-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/Attr.td:1949 + let Args = [UnsignedArgument<"VectorWidth">]; + let Subjects = SubjectList<[Function], ErrorDiag>; + let Documentation = [Undocumented]; chandlerc wrote: > aaron.ballman wrote:

[PATCH] D48617: [Builtins][Attributes][X86] Tag all X86 builtins with their required vector width. Add a min_vector_width function attribute and tag all x86 instrinsics with it.

2018-07-02 Thread Craig Topper via Phabricator via cfe-commits
craig.topper updated this revision to Diff 153786. craig.topper marked 4 inline comments as done. craig.topper added a comment. -Added a negative test -Hopefully fixed all the grammatical/spelling errors. -Attempted to clarify some more about prefer-vector-width and builtins. https://reviews.llv

[PATCH] D48341: [clang-doc] Adding a second reduce pass

2018-07-02 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett updated this revision to Diff 153787. juliehockett marked 12 inline comments as done. juliehockett added a comment. Refactoring second reduce code into the library, and adding bitcode reader/writer support https://reviews.llvm.org/D48341 Files: clang-tools-extra/clang-doc/Bitcod

[PATCH] D48395: Added PublicOnly flag

2018-07-02 Thread Annie Cherkaev via Phabricator via cfe-commits
anniecherk updated this revision to Diff 153790. anniecherk added a comment. Updated the tests to more accurately check that the files that we expect to not be generated by clang-doc with the public flag are in fact not being created. The tests now run clang-doc over the test files with and with

[PATCH] D48341: [clang-doc] Adding a second reduce pass

2018-07-02 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added inline comments. Comment at: clang-tools-extra/clang-doc/tool/ClangDocMain.cpp:249 +if (EnclosingScope.get().RefType == doc::InfoType::IT_function) + continue; + ioeric wrote: > Are symbols declared in functions indexed by the tool

[PATCH] D48681: [CFG] [analyzer] Add construction contexts for function arguments.

2018-07-02 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: include/clang/Analysis/ConstructionContext.h:90 assert(Other); return (Trigger == Other->Trigger); } Uhm. Will fix. Repository: rC Clang https://reviews.llvm.org/D48681 __

[PATCH] D48849: [Driver][Darwin] Use Host Triple to infer target os version

2018-07-02 Thread Steven Wu via Phabricator via cfe-commits
steven_wu created this revision. steven_wu added reviewers: arphaman, dexonsmith. When clang required to infer target os version from --target option and the os version is not specified in targets, check the host triple. If the host and target are both macOS, use host triple to infer target os ver

[PATCH] D48849: [Driver][Darwin] Use Host Triple to infer target os version

2018-07-02 Thread Steven Wu via Phabricator via cfe-commits
steven_wu added a comment. Unfortunately, I wasn't able to write a test for this because the host triple in the configuration can either be x86_64-apple-darwin* or x86_64-apple-macosx*, but the one used passed by driver is always macosx one. I can't reliably compare those two. Repository: r

[PATCH] D48395: Added PublicOnly flag

2018-07-02 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added a reviewer: ioeric. juliehockett added inline comments. Comment at: clang-tools-extra/clang-doc/ClangDoc.h:27 +struct ClangDocContext { +tooling::ExecutionContext *ECtx; Can we put this in `Representation.h`? Here, you have a potential ci

[PATCH] D48852: [Sema] -Wformat-pedantic only for NSInteger/NSUInteger %tu/%td on Darwin

2018-07-02 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman created this revision. arphaman added a reviewer: jfb. Herald added a subscriber: dexonsmith. The '%tu'/'%td' as formatting specifiers have been used to print out the NSInteger/NSUInteger values for a long time. Typically their ABI matches (i.e. ptrdiff_t = NSInteger), but that's not th

[PATCH] D48808: [CodeGen] Emit parallel_loop_access for each loop in the loop stack.

2018-07-02 Thread Michael Kruse via Phabricator via cfe-commits
Meinersbur updated this revision to Diff 153803. Meinersbur added a comment. - Adapt test file message. Repository: rC Clang https://reviews.llvm.org/D48808 Files: lib/CodeGen/CGLoopInfo.cpp test/CodeGenCXX/pragma-loop-safety-nested.cpp test/CodeGenCXX/pragma-loop-safety-outer.cpp In

[PATCH] D45898: [SemaCXX] Mark destructor as referenced

2018-07-02 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 153779. ahatanak added a comment. Herald added a subscriber: dexonsmith. Implement the new rule defined here: http://wg21.link/p0968r0#2227. Produce a diagnostic if a class is initialized with aggregate initialization and one of its element's destructor is

[PATCH] D48854: Use ExprMutationAnalyzer in performance-for-range-copy

2018-07-02 Thread Shuai Wang via Phabricator via cfe-commits
shuaiwang created this revision. Herald added a reviewer: george.karpenkov. Herald added subscribers: cfe-commits, a.sidorin. This gives better coverage to the check as ExprMutationAnalyzer is more accurate comparing to isOnlyUsedAsConst. Majority of wins come from const usage of member field, e.

[PATCH] D48849: [Driver][Darwin] Use Host Triple to infer target os version

2018-07-02 Thread Steven Wu via Phabricator via cfe-commits
steven_wu updated this revision to Diff 153814. steven_wu added a comment. Update patch. Use a better API. Repository: rC Clang https://reviews.llvm.org/D48849 Files: lib/Driver/ToolChains/Darwin.cpp test/Driver/clang-g-opts.c Index: test/Driver/clang-g-opts.c =

[PATCH] D44609: [Clang-Format] New option BreakBeforeLambdaBody to manage lambda line break inside function parameter call

2018-07-02 Thread Francois JEAN via Phabricator via cfe-commits
Wawha updated this revision to Diff 153813. Wawha added a comment. Here the third version to manage break with lambda in Allman. I implement the modification propose by klimek. If a lambda is detected, the BlockParameterCount and ParameterCount are increment one more time in order to avoid extra

[PATCH] D48849: [Driver][Darwin] Use Host Triple to infer target os version

2018-07-02 Thread Steven Wu via Phabricator via cfe-commits
steven_wu updated this revision to Diff 153816. steven_wu added a comment. Rebase the commit correctly Repository: rC Clang https://reviews.llvm.org/D48849 Files: lib/Driver/ToolChains/Darwin.cpp test/Driver/clang-g-opts.c Index: test/Driver/clang-g-opts.c =

[PATCH] D48849: [Driver][Darwin] Use Host Triple to infer target os version

2018-07-02 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. Hmm, the driver should not call `inferDeploymentTargetFromArch` when `-target` is passed. Or am I missing something? Repository: rC Clang https://reviews.llvm.org/D48849 ___ cfe-commits mailing list cfe-commits@lists.ll

[PATCH] D48849: [Driver][Darwin] Use Host Triple to infer target os version

2018-07-02 Thread Steven Wu via Phabricator via cfe-commits
steven_wu added a comment. In https://reviews.llvm.org/D48849#1150246, @arphaman wrote: > Hmm, the driver should not call `inferDeploymentTargetFromArch` when > `-target` is passed. Or am I missing something? Good call. This only handles the *-apple-darwin case. Maybe the same should happen t

[PATCH] D48661: [Fixed Point Arithmetic] Fixed Point Constant

2018-07-02 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan updated this revision to Diff 153821. leonardchan marked 10 inline comments as done. leonardchan edited the summary of this revision. leonardchan added a comment. - Added tests - Moved all conversion logic into `convert` - Saturation is checked by checking the bits above the sign bit i

[PATCH] D48616: Implement LWG 2946, 3075 and 3076

2018-07-02 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists closed this revision. mclow.lists added a comment. Committed as revision 336132. https://reviews.llvm.org/D48616 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D48661: [Fixed Point Arithmetic] Fixed Point Constant

2018-07-02 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added inline comments. Comment at: include/clang/Basic/FixedPoint.h:31 + SatNoPadding, +}; + ebevhan wrote: > rjmccall wrote: > > I figured you'd want this to be a struct which include the scale, width, > > signed-ness, and saturating-ness; and then

[PATCH] D48849: [Driver][Darwin] Use Host Triple to infer target os version

2018-07-02 Thread Steven Wu via Phabricator via cfe-commits
steven_wu updated this revision to Diff 153822. steven_wu added a comment. handle *-apple-macosx target option Repository: rC Clang https://reviews.llvm.org/D48849 Files: lib/Driver/ToolChains/Darwin.cpp test/Driver/clang-g-opts.c test/Driver/target-triple-deployment.c Index: test/Dr

[PATCH] D48395: Added PublicOnly flag

2018-07-02 Thread Annie Cherkaev via Phabricator via cfe-commits
anniecherk updated this revision to Diff 153825. anniecherk marked 4 inline comments as done. anniecherk added a comment. Addressed Julie's comments https://reviews.llvm.org/D48395 Files: clang-tools-extra/clang-doc/ClangDoc.cpp clang-tools-extra/clang-doc/ClangDoc.h clang-tools-extra/cla

[PATCH] D48027: [analyzer] Improve `CallDescription` to handle c++ method.

2018-07-02 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp:68 : IILockGuard(nullptr), IIUniqueLock(nullptr), - LockFn("lock"), UnlockFn("unlock"), SleepFn("sleep"), GetcFn("getc"), - FgetsFn("fgets"), ReadFn("read"), RecvFn

r336153 - Per C++ [over.match.copy]p1, direct-initialization of a reference can

2018-07-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Jul 2 16:25:22 2018 New Revision: 336153 URL: http://llvm.org/viewvc/llvm-project?rev=336153&view=rev Log: Per C++ [over.match.copy]p1, direct-initialization of a reference can only invoke converting constructors of the reference's underlying type. Modified: cfe/trun

[PATCH] D48831: alpha.unix.cstring.OutOfBounds checker enable/disable fix

2018-07-02 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Uhm, so we had an alpha checker enabled all along? Thanks for patching this up! Comment at: lib/StaticAnalyzer/Checkers/CStringChecker.cpp:308 // These checks are either enabled by the CString out-of-bounds checker -// explicitly or the "basic" CSt

[PATCH] D48322: [Sema] Discarded statment should be an evaluatable context

2018-07-02 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added a comment. In https://reviews.llvm.org/D48322#1148424, @rsmith wrote: > Hmm, so this will mean that we can have internal linkage declarations marked > `Used` for which there is no definition, and we need to not warn on that. > > I think it might be better to avoid marking t

[PATCH] D48849: [Driver][Darwin] Use Host Triple to infer target os version

2018-07-02 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. Nit: Could you please try to extract the shared code into a function, e.g. Optional overrideMacOSTripleDefaultVersion(const llvm::Triple &Triple, ... OSTy, ... TheDriver) { if (Triple.getOSMajorVersion()) return None; llvm::Triple SystemTriple(llvm

Buildbot numbers for the week of 6/17/2018 - 6/23/2018

2018-07-02 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the week of 6/17/2018 - 6/23/2018. Please see the same data in attached csv files: The longest time each builder was red during the week; "Status change ratio" by active builder (percent of builds that changed the builder status from greed to r

Buildbot numbers for the week of 6/24/2018 - 6/30/2018

2018-07-02 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the last week of 6/24/2018 - 6/30/2018. Please see the same data in attached csv files: The longest time each builder was red during the week; "Status change ratio" by active builder (percent of builds that changed the builder status from greed

[PATCH] D48721: Patch to fix pragma metadata for do-while loops

2018-07-02 Thread Bjorn Pettersson via Phabricator via cfe-commits
bjope added a comment. I tried running /clang -cc1 -O3 -funroll-loops -S -emit-llvm pragma-do-while-unroll.cpp -o - -mllvm -print-after-all and I get this ... !2 = distinct !{!2, !3} !3 = !{!"llvm.loop.unroll.count", i32 3} !4 = !{!5, !5, i64 0} !5 = !{!"int", !6, i64 0} !6 = !{!

[libcxxabi] r336157 - [demangler] Fix a MSVC alignment warning.

2018-07-02 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Mon Jul 2 17:23:18 2018 New Revision: 336157 URL: http://llvm.org/viewvc/llvm-project?rev=336157&view=rev Log: [demangler] Fix a MSVC alignment warning. This should fix llvm.org/PR37944 Modified: libcxxabi/trunk/src/cxa_demangle.cpp Modified: libcxxabi/trunk/src/cxa_dem

[libcxxabi] r336159 - Some buildbots were choking on std::max_align_t, try using the global alias.

2018-07-02 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Mon Jul 2 17:48:27 2018 New Revision: 336159 URL: http://llvm.org/viewvc/llvm-project?rev=336159&view=rev Log: Some buildbots were choking on std::max_align_t, try using the global alias. Modified: libcxxabi/trunk/src/cxa_demangle.cpp Modified: libcxxabi/trunk/src/cxa_de

[PATCH] D48849: [Driver][Darwin] Use Host Triple to infer target os version

2018-07-02 Thread Steven Wu via Phabricator via cfe-commits
steven_wu updated this revision to Diff 153836. steven_wu added a comment. It is easier and cleaner if I just fold everything into getOSVersion. Repository: rC Clang https://reviews.llvm.org/D48849 Files: lib/Driver/ToolChains/Darwin.cpp test/Driver/clang-g-opts.c test/Driver/target-tr

  1   2   >