[PATCH] D68117: [DWARF-5] Support for C++11 defaulted, deleted member functions.

2019-10-01 Thread Sourabh Singh Tomar via Phabricator via cfe-commits
SouraVX marked 2 inline comments as done. SouraVX added a comment. Will be adding llvm-dwarfdump tests soon. Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:1608 + if (CGM.getCodeGenOpts().DwarfVersion >= 5) { +// DWARF-5 support for, defaulted, deleted member functions --

[clang-tools-extra] r373392 - [clang-tidy] Rename objc-avoid-spinlock check to darwin-avoid-spinlock

2019-10-01 Thread Stephane Moore via cfe-commits
Author: stephanemoore Date: Tue Oct 1 14:18:40 2019 New Revision: 373392 URL: http://llvm.org/viewvc/llvm-project?rev=373392&view=rev Log: [clang-tidy] Rename objc-avoid-spinlock check to darwin-avoid-spinlock Summary: OSSpinLock* are Apple/Darwin functions, but were previously located with ObjC

[PATCH] D68148: [clang-tidy] Rename objc-avoid-spinlock check to darwin-avoid-spinlock

2019-10-01 Thread Stephane Moore via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL373392: [clang-tidy] Rename objc-avoid-spinlock check to darwin-avoid-spinlock (authored by stephanemoore, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://revie

[PATCH] D68300: [HIP] Add option -fno-hip-link-builtin-bitcode to disable linking device lib

2019-10-01 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. yaxunl added a reviewer: tra. https://reviews.llvm.org/D68300 Files: include/clang/Driver/Options.td lib/Driver/ToolChains/HIP.cpp test/Driver/hip-no-device-libs.hip Index: test/Driver/hip-no-device-libs.hip ===

[PATCH] D68157: [X86][ABI] Keep empty class argument passing by value compatible with GCC.

2019-10-01 Thread Michael Liao via Phabricator via cfe-commits
hliao added a comment. PING Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68157/new/ https://reviews.llvm.org/D68157 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

r373396 - CGExprAgg - remove duplicate code. NFCI.

2019-10-01 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Tue Oct 1 14:50:30 2019 New Revision: 373396 URL: http://llvm.org/viewvc/llvm-project?rev=373396&view=rev Log: CGExprAgg - remove duplicate code. NFCI. Remove duplicate getAs<> call, avoiding a clang static analyzer null dereference warning. Modified: cfe/trunk/lib/Co

r373398 - CGVTables - silence static analyzer getAs null dereference warnings. NFCI.

2019-10-01 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Tue Oct 1 15:02:46 2019 New Revision: 373398 URL: http://llvm.org/viewvc/llvm-project?rev=373398&view=rev Log: CGVTables - silence static analyzer getAs null dereference warnings. NFCI. The static analyzer is warning about potential null dereferences, but we should be abl

r373400 - [clang][OpenMP][NFC] #include GlobalDecl.h to avoid incomplete class type

2019-10-01 Thread Jordan Rupprecht via cfe-commits
Author: rupprecht Date: Tue Oct 1 15:30:10 2019 New Revision: 373400 URL: http://llvm.org/viewvc/llvm-project?rev=373400&view=rev Log: [clang][OpenMP][NFC] #include GlobalDecl.h to avoid incomplete class type Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.h Modified: cfe/trunk/lib/CodeGen/

[PATCH] D67249: [Modules][PCH] Hash input files content

2019-10-01 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a reviewer: v.g.vassilev. bruno added a comment. Ping! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D67249/new/ https://reviews.llvm.org/D67249 ___ cfe-commits mailing list cfe-commits@list

[PATCH] D67010: [Modules] Move search paths from control block to unhashed control block

2019-10-01 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a reviewer: v.g.vassilev. bruno added a comment. Ping! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D67010/new/ https://reviews.llvm.org/D67010 ___ cfe-commits mailing list cfe-commits@list

[PATCH] D68300: [HIP] Add option -fno-hip-link-builtin-bitcode to disable linking device lib

2019-10-01 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. The functionality looks generic enough. Should it be just `flink_builtin_bitcode`? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68300/new/ https://reviews.llvm.org/D68300 ___ cfe-commits mailing list cfe-commits@list

[PATCH] D68284: [HIP] Support -emit-llvm for device compilation

2019-10-01 Thread Artem Belevich via Phabricator via cfe-commits
tra accepted this revision. tra added a comment. LGTM. Does it produce textual IR if used with `-S`? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68284/new/ https://reviews.llvm.org/D68284 ___ cfe-commits mailing list cfe-commits@lists.ll

r373407 - Emit TypeNodes.def with tblgen.

2019-10-01 Thread John McCall via cfe-commits
Author: rjmccall Date: Tue Oct 1 16:13:03 2019 New Revision: 373407 URL: http://llvm.org/viewvc/llvm-project?rev=373407&view=rev Log: Emit TypeNodes.def with tblgen. The primary goal here is to make the type node hierarchy available to other tblgen backends, although it should also make it easie

r373406 - Use scope qualifiers in Clang's tblgen backends to get useful

2019-10-01 Thread John McCall via cfe-commits
Author: rjmccall Date: Tue Oct 1 16:12:57 2019 New Revision: 373406 URL: http://llvm.org/viewvc/llvm-project?rev=373406&view=rev Log: Use scope qualifiers in Clang's tblgen backends to get useful redeclaration checking. NFC. Modified: cfe/trunk/utils/TableGen/ClangASTNodesEmitter.cpp cf

[PATCH] D67901: [clangd] Improve semantic highlighting in dependent contexts (fixes #154)

2019-10-01 Thread Nathan Ridge via Phabricator via cfe-commits
nridge added inline comments. Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:219 + bool VisitDependentNameTypeLoc(DependentNameTypeLoc L) { +addToken(L.getNameLoc(), HighlightingKind::DependentType); +return true; hokein wrote: > nit: we h

[PATCH] D67901: [clangd] Improve semantic highlighting in dependent contexts (fixes #154)

2019-10-01 Thread Nathan Ridge via Phabricator via cfe-commits
nridge updated this revision to Diff 222725. nridge marked 9 inline comments as done. nridge added a comment. Address review comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D67901/new/ https://reviews.llvm.org/D67901 Files: clang-tools-ext

r373410 - Fix unused variable warning. NFCI.

2019-10-01 Thread Michael Liao via cfe-commits
Author: hliao Date: Tue Oct 1 17:22:45 2019 New Revision: 373410 URL: http://llvm.org/viewvc/llvm-project?rev=373410&view=rev Log: Fix unused variable warning. NFCI. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp URL: http://llvm.org

[PATCH] D67249: [Modules][PCH] Hash input files content

2019-10-01 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. LGTM Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D67249/new/ https://reviews.llvm.org/D67249 ___

[PATCH] D67010: [Modules] Move search paths from control block to unhashed control block

2019-10-01 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. This seems reasonable to me, but a test case would be nice. A mode to validate that header path changes don't change anything would be nice (essentially: redo all the header searches with the new set of paths and new filesystem and make sure they find the same thing), bu

r373416 - Remove TypeNodes.def from the modulemap.

2019-10-01 Thread John McCall via cfe-commits
Author: rjmccall Date: Tue Oct 1 18:02:27 2019 New Revision: 373416 URL: http://llvm.org/viewvc/llvm-project?rev=373416&view=rev Log: Remove TypeNodes.def from the modulemap. We currently just look for files named in the modulemap in its associated source directory. This means that we can't nam

r373418 - Fix crash on constant-evaluation of pseudo-destruction of a pointer.

2019-10-01 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Oct 1 18:13:57 2019 New Revision: 373418 URL: http://llvm.org/viewvc/llvm-project?rev=373418&view=rev Log: Fix crash on constant-evaluation of pseudo-destruction of a pointer. We got confused and thought we might be pseudo-destroying the pointee instead. Modified: c

Re: r373407 - Emit TypeNodes.def with tblgen.

2019-10-01 Thread Nico Weber via cfe-commits
All other tablegen outputs are called .inc instead of .def. Any reason this one's different? On Tue, Oct 1, 2019 at 7:10 PM John McCall via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rjmccall > Date: Tue Oct 1 16:13:03 2019 > New Revision: 373407 > > URL: http://llvm.org/viewvc/l

Re: r373407 - Emit TypeNodes.def with tblgen.

2019-10-01 Thread John McCall via cfe-commits
On 1 Oct 2019, at 21:20, Nico Weber wrote: All other tablegen outputs are called .inc instead of .def. Any reason this one's different? This was an existing file; it’s just generated now instead of written in source. I was deliberately not changing anything about the existing use sites. That

Re: r373407 - Emit TypeNodes.def with tblgen.

2019-10-01 Thread Nico Weber via cfe-commits
I think that'd be nice; I believe I renamed one .def output with the same history for the same reason a while ago. On Tue, Oct 1, 2019 at 9:25 PM John McCall wrote: > On 1 Oct 2019, at 21:20, Nico Weber wrote: > > All other tablegen outputs are called .inc instead of .def. Any reason > > this >

Re: r372681 - Support for DWARF-5 C++ language tags.

2019-10-01 Thread David Blaikie via cfe-commits
This broke gnu_pubnames and other forms of DWARF index of C++ code - fixed in r373420 (feel free to post-comimt review, etc, of course) On Mon, Sep 23, 2019 at 5:36 PM Adrian Prantl via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: adrian > Date: Mon Sep 23 17:38:49 2019 > New Revisi

r373421 - Revert r368237 - Update fix-it hints for std::move warnings.

2019-10-01 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Tue Oct 1 19:32:15 2019 New Revision: 373421 URL: http://llvm.org/viewvc/llvm-project?rev=373421&view=rev Log: Revert r368237 - Update fix-it hints for std::move warnings. r368237 attempted to improve fix-its for move warnings, but introduced some regressions to -Wpessimizin

[PATCH] D68300: [HIP] Add option -fno-link-builtin-bitcode to disable linking device lib

2019-10-01 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 222746. yaxunl retitled this revision from "[HIP] Add option -fno-hip-link-builtin-bitcode to disable linking device lib" to "[HIP] Add option -fno-link-builtin-bitcode to disable linking device lib". yaxunl added a comment. change the option name CHANGES S

[PATCH] D68315: [libTooling] Add various Stencil combinators for expressions.

2019-10-01 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel created this revision. ymandel added a reviewer: gribozavr. Herald added a project: clang. This revision adds three new Stencil combinators: - `expression`, which idiomatically constructs the source for an expression, including wrapping the expression's source in parentheses if needed. -

[PATCH] D63978: Clang Interface Stubs merger plumbing for Driver

2019-10-01 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd accepted this revision. compnerd added inline comments. This revision is now accepted and ready to land. Comment at: clang/lib/Driver/Driver.cpp:3372 + if (Phase == phases::IfsMerge) { +assert(Phase == PL.back() && "merging must be final compilation step.")

[PATCH] D68055: Add -fgnuc-version= to control __GNUC__ and other GCC macros

2019-10-01 Thread Jacob Lifshay via Phabricator via cfe-commits
programmerjake added a comment. The `__GNUG__` macro is defined to be 4 rather than matching `__GNUC__` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68055/new/ https://reviews.llvm.org/D68055 ___ cfe-

[PATCH] D68055: Add -fgnuc-version= to control __GNUC__ and other GCC macros

2019-10-01 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay accepted this revision. MaskRay added a comment. This will make it much easier to test clang's compatibility with GCC, especially in projects that heavily use `__GNUC__` or its friends, e.g. glibc :) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm

r373425 - Rename TypeNodes.def to TypeNodes.inc for consistency across all

2019-10-01 Thread John McCall via cfe-commits
Author: rjmccall Date: Tue Oct 1 23:35:23 2019 New Revision: 373425 URL: http://llvm.org/viewvc/llvm-project?rev=373425&view=rev Log: Rename TypeNodes.def to TypeNodes.inc for consistency across all our autogenerated files. NFC. As requested by Nico Weber. Modified: cfe/trunk/include/clang

Re: r373407 - Emit TypeNodes.def with tblgen.

2019-10-01 Thread John McCall via cfe-commits
On 1 Oct 2019, at 21:31, Nico Weber wrote: I think that'd be nice; I believe I renamed one .def output with the same history for the same reason a while ago. r373425 John. On Tue, Oct 1, 2019 at 9:25 PM John McCall wrote: On 1 Oct 2019, at 21:20, Nico Weber wrote: All other tablegen out

<    1   2