[PATCH] D43110: [Sema] Don't mark plain MS enums as fixed

2018-02-08 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. We've seen lots of spurious warnings from this. Thanks for the fix! https://reviews.llvm.org/D43110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D40045: AMDGPU/GCN: Bring processors in sync with AMDGPUUsage

2018-02-08 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
kzhuravl added a comment. In https://reviews.llvm.org/D40045#925400, @t-tye wrote: > LGTM except for Bonaire. Done. Also removed gfx800 as per latest docs. Repository: rL LLVM https://reviews.llvm.org/D40045 ___ cfe-commits mailing list cfe-co

[PATCH] D40045: AMDGPU/GCN: Bring processors in sync with AMDGPUUsage

2018-02-08 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Changes Planned". This revision was automatically updated to reflect the committed changes. kzhuravl marked an inline comment as done. Closed by commit rL324714: AMDGPU/GCN: Bring processors in sync with AMDGPUUsage (authored by k

r324714 - AMDGPU/GCN: Bring processors in sync with AMDGPUUsage

2018-02-08 Thread Konstantin Zhuravlyov via cfe-commits
Author: kzhuravl Date: Thu Feb 8 23:02:28 2018 New Revision: 324714 URL: http://llvm.org/viewvc/llvm-project?rev=324714&view=rev Log: AMDGPU/GCN: Bring processors in sync with AMDGPUUsage - Remove gfx800 - Remove gfx804 - Remove gfx901 - Remove gfx903 Differential Revision: https://reviews.llvm

[PATCH] D42344: [libc++] Use multi-key tree search for {map, set}::{count, equal_range}

2018-02-08 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. This LGTM. https://reviews.llvm.org/D42344 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D42645: New simple Checker for mmap calls

2018-02-08 Thread David CARLIER via Phabricator via cfe-commits
devnexen updated this revision to Diff 133564. Repository: rC Clang https://reviews.llvm.org/D42645 Files: include/clang/StaticAnalyzer/Checkers/Checkers.td lib/StaticAnalyzer/Checkers/CMakeLists.txt lib/StaticAnalyzer/Checkers/MmapWriteExecChecker.cpp test/Analysis/mmap-writeexec.c I

[PATCH] D43110: [Sema] Don't mark plain MS enums as fixed

2018-02-08 Thread Dean Michael Berris via Phabricator via cfe-commits
dberris accepted this revision. dberris added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D43110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[PATCH] D43094: AMDGPU: Enable PIC by default for amdgcn

2018-02-08 Thread Mark Searles via Phabricator via cfe-commits
msearles accepted this revision. msearles added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D43094 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

[PATCH] D43094: AMDGPU: Enable PIC by default for amdgcn

2018-02-08 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
kzhuravl added a comment. I thought we could override `isPICDefault` in AMDGPUToolChain instead of doing what is posted. But AMDGPUToolChain is only created for AMDHSA OS. Do we want to enable PIC by default for all AMDGCNs? Or only for AMDHSA? https://reviews.llvm.org/D43094 __

r324701 - AST: support ObjC lifetime qualifiers in MS ABI

2018-02-08 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Feb 8 19:23:54 2018 New Revision: 324701 URL: http://llvm.org/viewvc/llvm-project?rev=324701&view=rev Log: AST: support ObjC lifetime qualifiers in MS ABI Adjust the ObjC protocol conformance workaround to be more extensible. Use a synthetic type for the protocol (`str

[PATCH] D42704: [clang-format] Do not break Objective-C string literals inside array literals

2018-02-08 Thread Stephane Moore via Phabricator via cfe-commits
stephanemoore added a comment. Thanks for the explanation 👌 I'm still learning the inner workings of clang 😅 The change looks good to me. Repository: rC Clang https://reviews.llvm.org/D42704 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[PATCH] D43105: [RISCV] Enable __int128_t and uint128_t through clang flag

2018-02-08 Thread Kito Cheng via Phabricator via cfe-commits
kito-cheng added a comment. Hi Eli: We need that because compiler-rt implement 128 bits soft floating point with int128_t, and RISC-V need that but RV32 doesn't support int128_t, we know it's can be just return true to support that. but we don't want to bring any ABI contemptible issue between

[PATCH] D42549: [CodeGen] Use the zero initializer instead of storing an all zero representation.

2018-02-08 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. No worries. LGTM! https://reviews.llvm.org/D42549 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

[PATCH] D43104: [analyzer] Find correct region for simple temporary destructor calls and inline them if possible.

2018-02-08 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin added inline comments. Comment at: lib/StaticAnalyzer/Core/ExprEngine.cpp:939 std::make_pair(D.getBindTemporaryExpr(), Pred->getStackFrame())); +// *MRPtr may still be null when the construction context for the temporary +// was not implemented. ---

[PATCH] D43110: [Sema] Don't mark plain MS enums as fixed

2018-02-08 Thread Reid Kleckner via Phabricator via cfe-commits
rnk created this revision. rnk added a reviewer: rsmith. This fixes a flaw in our AST: PR27098 MSVC always gives plain enums the underlying type 'int'. Clang does this as well, but we claim the enum is "fixed", as if the user actually wrote ': int'. It means we end up emitting spurious -Wsign-com

[PATCH] D43105: [RISCV] Enable __int128_t and uint128_t through clang flag

2018-02-08 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. > This flag can then be used to build compiler-rt for RISCV32. Can you give a little more context for why this is necessary? As far as I know, compiler-rt generally supports building for targets which don't have __int128_t. (If all riscv targets are supposed to suppo

[PATCH] D43108: Support for the mno-stack-arg-probe flag

2018-02-08 Thread Ruslan Nikolaev via Phabricator via cfe-commits
nruslan created this revision. nruslan added a reviewer: clang. Herald added a subscriber: cfe-commits. Adds support for this flag. There is also another piece for llvm (separate review). More info: https://bugs.llvm.org/show_bug.cgi?id=36221 Repository: rC Clang https://reviews.llvm.org/D43

[PATCH] D43105: [RISCV] Enable __int128_t and uint128_t through clang flag

2018-02-08 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang added a comment. Related compiler-rt patch: https://reviews.llvm.org/D43106 Repository: rC Clang https://reviews.llvm.org/D43105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D43105: [RISCV] Enable __int128_t and uint128_t through clang flag

2018-02-08 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang created this revision. mgrang added reviewers: asb, kito-cheng, apazos. Herald added subscribers: cfe-commits, niosHD, sabuasal, jordy.potman.lists, simoncook, johnrusso, rbar, aheejin, jgravelle-google, sbc100, sdardis, dschuff, jfb. If the flag -fuse-int128 is passed, it will enable sup

r324697 - [CFG] Squash an unused variable introduced in r324668.

2018-02-08 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Thu Feb 8 17:43:26 2018 New Revision: 324697 URL: http://llvm.org/viewvc/llvm-project?rev=324697&view=rev Log: [CFG] Squash an unused variable introduced in r324668. Found by -Werror buildbot. Modified: cfe/trunk/lib/Analysis/CFG.cpp Modified: cfe/trunk/lib/Analysis

[PATCH] D43104: [analyzer] Find correct region for simple temporary destructor calls and inline them if possible.

2018-02-08 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Core/ExprEngine.cpp:68-71 typedef llvm::ImmutableMap, SVal> -CXXNewAllocatorValuesMap; + const LocationContext *>, + SVal> +CXXNewAllocatorValuesMa

[PATCH] D43104: [analyzer] Find correct region for simple temporary destructor calls and inline them if possible.

2018-02-08 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ created this revision. NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet. Herald added subscribers: cfe-commits, rnkovacs. NoQ added inline comments. Comment at: lib/StaticAnalyzer/Core/ExprEngine.cpp:68-71 typedef llvm::ImmutableMap, SVal> -

r324695 - [modules] Fix incorrect diagnostic mapping computation when a module changes

2018-02-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Feb 8 17:15:13 2018 New Revision: 324695 URL: http://llvm.org/viewvc/llvm-project?rev=324695&view=rev Log: [modules] Fix incorrect diagnostic mapping computation when a module changes diagnostic settings using _Pragma within a macro. The AST writer had previously been as

[PATCH] D42549: [CodeGen] Use the zero initializer instead of storing an all zero representation.

2018-02-08 Thread Matt Davis via Phabricator via cfe-commits
mattd updated this revision to Diff 133540. mattd added a comment. Thanks for the test tips. I realize the original was a bit carried away, my apologies for that. This updated test visits the same code path that we're trying to test, and is much more concise. https://reviews.llvm.org/D42549

[PATCH] D43065: [clangd] Remove threading-related code from ClangdUnit.h

2018-02-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. :-D Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D43065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://li

[PATCH] D42640: [clangd] collect symbol #include & insert #include in global code completion.

2018-02-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Some comments on the insert side, which looks pretty good. I'll take another look at indexing tomorrow. Comment at: clangd/ClangdServer.cpp:465 +auto &HeaderSearchInfo = Clang->getPreprocessor().getHeaderSearchInfo(); +std::string Suggested =

[PATCH] D43068: [clangd] Remove codeComplete that returns std::future<>

2018-02-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. One down! I'd like to know what you think about a generic "block the call and capture the result" mechanism rather than method-specific wrappers. But if you're not convinced or just want

[PATCH] D43033: [WinEH] Put funclet bundles on inline asm calls

2018-02-08 Thread Reid Kleckner via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL324689: [WinEH] Put funclet bundles on inline asm calls (authored by rnk, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D43033?vs=133263&id=1

r324689 - [WinEH] Put funclet bundles on inline asm calls

2018-02-08 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Feb 8 16:16:41 2018 New Revision: 324689 URL: http://llvm.org/viewvc/llvm-project?rev=324689&view=rev Log: [WinEH] Put funclet bundles on inline asm calls Summary: Fixes PR36247, which is where WinEHPrepare replaces inline asm in funclets with unreachable. Make getBundlesF

[PATCH] D42549: [CodeGen] Use the zero initializer instead of storing an all zero representation.

2018-02-08 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Oh. It's not a good idea to try to match exact local IR names like this for two reasons: - First, many IR names are different in builds with and without assertions. - Second, it's pretty susceptible to innocuous changes in output. You should use FileCheck patterns (`[

r324687 - Fix UBSan issue with PPC::isValidCPUName

2018-02-08 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Thu Feb 8 16:13:49 2018 New Revision: 324687 URL: http://llvm.org/viewvc/llvm-project?rev=324687&view=rev Log: Fix UBSan issue with PPC::isValidCPUName Apparently storing the pointer to a StringLiteral as a StringRef caused this section of code to issue a ubsan warning.

[PATCH] D43089: clang: Add ARCTargetInfo

2018-02-08 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added inline comments. Comment at: clang/lib/CodeGen/TargetInfo.cpp:8220 + +} // End anonymous namespace. Please change to // namespace https://reviews.llvm.org/D43089 ___ cfe-commits mailing list

r324682 - Add size to constexpr Arrays

2018-02-08 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Thu Feb 8 15:49:40 2018 New Revision: 324682 URL: http://llvm.org/viewvc/llvm-project?rev=324682&view=rev Log: Add size to constexpr Arrays What seems to be a bug in older versions of MSVC, constexpr member arrays with a redefinition (to force emission) require their ini

[PATCH] D42993: [AArch64] Fixes for ARMv8.2-A FP16 scalar intrinsic

2018-02-08 Thread Abderrazek Zaafrani via Phabricator via cfe-commits
az updated this revision to Diff 133505. az added a comment. > Question about the failures: I am now wondering if this means we were and > still are missing tests? Given that this work is fixing https://reviews.llvm.org/D41792 which is mainly about adding frontend intrinsic support, then there

[PATCH] D42978: Make march/target-cpu print a note with the list of valid values for ARM

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL324673: Make march/target-cpu print a note with the list of valid values for ARM (authored by erichkeane, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://review

[PATCH] D43094: AMDGPU: Enable PIC by default for amdgcn

2018-02-08 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
kzhuravl created this revision. kzhuravl added reviewers: nhaehnle, t-tye, timcorringham, tpr, tstellar. Herald added subscribers: dstuttard, yaxunl, wdng. https://reviews.llvm.org/D43094 Files: lib/Driver/ToolChains/CommonArgs.cpp test/Driver/amdgcn-toolchain-pic.cl Index: test/Driver/amdg

[PATCH] D42745: [analyzer] Add support for __builtin_constant_p to BuiltinFunctionChecker

2018-02-08 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Do you have commit access, or do you want me to commit this for you? https://reviews.llvm.org/D42745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D42978: Make march/target-cpu print a note with the list of valid values for ARM

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 133452. erichkeane added a comment. Relaxed the test further. https://reviews.llvm.org/D42978 Files: include/clang/Basic/DiagnosticCommonKinds.td include/clang/Basic/TargetInfo.h lib/Basic/Targets.cpp lib/Basic/Targets/AArch64.cpp lib/Basic/Tar

[PATCH] D42978: Make march/target-cpu print a note with the list of valid values for ARM

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: test/Misc/target-invalid-cpu-note.c:1 +// RUN: not %clang_cc1 -triple armv5--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix ARM +// ARM: error: unknown target CPU 'not-a-cpu' erichkeane w

[PATCH] D42978: Make march/target-cpu print a note with the list of valid values for ARM

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: test/Misc/target-invalid-cpu-note.c:1 +// RUN: not %clang_cc1 -triple armv5--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix ARM +// ARM: error: unknown target CPU 'not-a-cpu' Hahnfeld wro

[PATCH] D42978: Make march/target-cpu print a note with the list of valid values for ARM

2018-02-08 Thread Florian Hahn via Phabricator via cfe-commits
fhahn accepted this revision. fhahn added a comment. This revision is now accepted and ready to land. LGTM thanks. Please wait a day or so with committing so others can raise additional concerns. Comment at: test/Misc/target-invalid-cpu-note.c:8 +// AARCH64: note: valid target

[PATCH] D42978: Make march/target-cpu print a note with the list of valid values for ARM

2018-02-08 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: test/Misc/target-invalid-cpu-note.c:1 +// RUN: not %clang_cc1 -triple armv5--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix ARM +// ARM: error: unknown target CPU 'not-a-cpu' Is there a rea

[PATCH] D42978: Make march/target-cpu print a note with the list of valid values for ARM

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 133442. erichkeane marked an inline comment as done. erichkeane added a comment. Removed extra newline. https://reviews.llvm.org/D42978 Files: include/clang/Basic/DiagnosticCommonKinds.td include/clang/Basic/TargetInfo.h lib/Basic/Targets.cpp lib

[PATCH] D42978: Make march/target-cpu print a note with the list of valid values for ARM

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. That makes sense. I changed the ARM one to check ONLY the first one, since in each case that seems like the oldest anyway. It at least makes sure that the lists are distinct, and avoids this cross-repo fragility. https://reviews.llvm.org/D42978

[PATCH] D42978: Make march/target-cpu print a note with the list of valid values for ARM

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 133435. erichkeane added a comment. Simplified ARM tests as requested. https://reviews.llvm.org/D42978 Files: include/clang/Basic/DiagnosticCommonKinds.td include/clang/Basic/TargetInfo.h lib/Basic/Targets.cpp lib/Basic/Targets/AArch64.cpp lib/

[PATCH] D43074: [Analyzer] Fix a typo about `categories::MemoryError` in `MallocChecker.cpp`

2018-02-08 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC324680: [analyzer] MallocChecker: Fix one more bug category. (authored by dergachev, committed by ). Changed prior to commit: https://reviews.llvm.org/D43074?vs=133423&id=133521#toc Repository: rC Cl

[PATCH] D43047: [Builtins] Overload __builtin_operator_new/delete to allow forwarding to usual allocation/deallocation functions.

2018-02-08 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 133517. EricWF retitled this revision from "[Builtins] Overload __builtin_operator_new/delete to accept an optional alignment parameter." to "[Builtins] Overload __builtin_operator_new/delete to allow forwarding to usual allocation/deallocation functions.". E

[PATCH] D43074: [Analyzer] Fix a typo about `categories::MemoryError` in `MallocChecker.cpp`

2018-02-08 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL324680: [analyzer] MallocChecker: Fix one more bug category. (authored by dergachev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D43074?vs=

[PATCH] D43095: Make attribute-target on a Definition-after-use update the LLVM attributes

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane created this revision. erichkeane added reviewers: echristo, craig.topper, aaron.ballman. Herald added a subscriber: mgrang. As reported here: https://bugs.llvm.org/show_bug.cgi?id=36301 The issue is that the 'use' causes the plain declaration to emit the attributes to LLVM-IR. However,

r324680 - [analyzer] MallocChecker: Fix one more bug category.

2018-02-08 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Thu Feb 8 15:28:29 2018 New Revision: 324680 URL: http://llvm.org/viewvc/llvm-project?rev=324680&view=rev Log: [analyzer] MallocChecker: Fix one more bug category. Even though most of the inconsistencies in MallocChecker's bug categories were fixed in r302016, one more wa

[PATCH] D43057: Add Rest of Targets Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC324676: Add Rest of Targets Support to ValidCPUList (enabling march notes) (authored by erichkeane, committed by ). Changed prior to commit: https://reviews.llvm.org/D43057?vs=133459&id=133509#toc Repo

[PATCH] D43045: Add NVPTX Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL324675: Add NVPTX Support to ValidCPUList (enabling march notes) (authored by erichkeane, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D4304

r324676 - Add Rest of Targets Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Thu Feb 8 15:16:55 2018 New Revision: 324676 URL: http://llvm.org/viewvc/llvm-project?rev=324676&view=rev Log: Add Rest of Targets Support to ValidCPUList (enabling march notes) A followup to: https://reviews.llvm.org/D42978 Most of the rest of the Targets were pretty r

r324675 - Add NVPTX Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Thu Feb 8 15:16:00 2018 New Revision: 324675 URL: http://llvm.org/viewvc/llvm-project?rev=324675&view=rev Log: Add NVPTX Support to ValidCPUList (enabling march notes) A followup to: https://reviews.llvm.org/D42978 This patch adds NVPTX support for enabling the march not

[PATCH] D43041: Add X86 Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL324674: Add X86 Support to ValidCPUList (enabling march notes) (authored by erichkeane, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D43041?

[PATCH] D42942: [clangd] Collect definitions when indexing.

2018-02-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 133502. sammccall added a comment. Revert hack in global-symbol-builder to filter the input files. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42942 Files: clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp clangd/index/Index

r324674 - Add X86 Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Thu Feb 8 15:15:02 2018 New Revision: 324674 URL: http://llvm.org/viewvc/llvm-project?rev=324674&view=rev Log: Add X86 Support to ValidCPUList (enabling march notes) A followup to: https://reviews.llvm.org/D42978 This patch adds X86 and X86_64 support for enabling the ma

r324673 - Make march/target-cpu print a note with the list of valid values for ARM

2018-02-08 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Thu Feb 8 15:14:15 2018 New Revision: 324673 URL: http://llvm.org/viewvc/llvm-project?rev=324673&view=rev Log: Make march/target-cpu print a note with the list of valid values for ARM When rejecting a march= or target-cpu command line parameter, the message is quite lack

[PATCH] D42942: [clangd] Collect definitions when indexing.

2018-02-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Thanks for the comments! And sorry for the delay, I was haunted by useless gtest messages, which https://reviews.llvm.org/D43091 should fix. Comment at: clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp:159 + // Output phase: emit YAML for re

[PATCH] D42942: [clangd] Collect definitions when indexing.

2018-02-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 133501. sammccall marked 6 inline comments as done. sammccall added a comment. Address review comments. Make SymbolsToYAML take an ostream instead of returning a string. Define SymbolSlab::iterator so googletest will print it as a container. Repository:

[PATCH] D43074: [Analyzer] Fix a typo about `categories::MemoryError` in `MallocChecker.cpp`

2018-02-08 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. I guess this happened due to a race with https://reviews.llvm.org/rL301913. My bad anyways^^ Repository: rC Clang https://reviews.llvm.org/D43074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

[PATCH] D42672: [CFG] [analyzer] Heavier CFGConstructor elements.

2018-02-08 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC324668: [CFG] Add extra context to C++ constructor statement elements. (authored by dergachev, committed by ). Changed prior to commit: https://reviews.llvm.org/D42672?vs=133139&id=133500#toc Repositor

[PATCH] D42672: [CFG] [analyzer] Heavier CFGConstructor elements.

2018-02-08 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL324668: [CFG] Add extra context to C++ constructor statement elements. (authored by dergachev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/

r324668 - [CFG] Add extra context to C++ constructor statement elements.

2018-02-08 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Thu Feb 8 14:58:15 2018 New Revision: 324668 URL: http://llvm.org/viewvc/llvm-project?rev=324668&view=rev Log: [CFG] Add extra context to C++ constructor statement elements. This patch adds a new CFGStmt sub-class, CFGConstructor, which replaces the regular CFGStmt with C

[PATCH] D42549: [CodeGen] Use the zero initializer instead of storing an all zero representation.

2018-02-08 Thread Matt Davis via Phabricator via cfe-commits
mattd updated this revision to Diff 133497. mattd added a comment. Thanks for the look @rjmccall . I tossed in the shortcut as you suggested. I also had to fix the instruction numbering in the test case. https://reviews.llvm.org/D42549 Files: lib/CodeGen/CGExprConstant.cpp test/CodeGen/a

[PATCH] D42560: [analyzer] dump() ExprEngine's internal traits into the ExplodedGraph view.

2018-02-08 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC324663: [analyzer] Self-debug: Dump the core's internal state traits to the egraph. (authored by dergachev, committed by ). Repository: rC Clang https://reviews.llvm.org/D42560 Files: include/clang/

r324663 - [analyzer] Self-debug: Dump the core's internal state traits to the egraph.

2018-02-08 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Thu Feb 8 14:32:38 2018 New Revision: 324663 URL: http://llvm.org/viewvc/llvm-project?rev=324663&view=rev Log: [analyzer] Self-debug: Dump the core's internal state traits to the egraph. It is useful for debugging problems with C++ operator new() or temporaries. Differen

[PATCH] D42552: [analyzer] dump() environment frame-by-frame.

2018-02-08 Thread Phabricator 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 rL324660: [analyzer] Self-debug: Dump environment frame-by-frame. (authored by dergachev, committed by ). Herald added a sub

r324660 - [analyzer] Self-debug: Dump environment frame-by-frame.

2018-02-08 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Thu Feb 8 14:24:38 2018 New Revision: 324660 URL: http://llvm.org/viewvc/llvm-project?rev=324660&view=rev Log: [analyzer] Self-debug: Dump environment frame-by-frame. It makes it easier to discriminate between values of similar expressions in different stack frames. It a

[PATCH] D35894: [clangd] Code hover for Clangd

2018-02-08 Thread Simon Marchi via Phabricator via cfe-commits
simark added inline comments. Comment at: unittests/clangd/XRefsTests.cpp:231 +TEST(Hover, All) { + + struct OneTest { ilya-biryukov wrote: > NIT: remove empty line at the start of the function Done. Comment at: unittests/clangd/XRefsTests.cpp

[PATCH] D35894: [clangd] Code hover for Clangd

2018-02-08 Thread Simon Marchi via Phabricator via cfe-commits
simark added inline comments. Comment at: clangd/ClangdLSPServer.cpp:325 +void ClangdLSPServer::onHover(TextDocumentPositionParams &Params) { + + llvm::Expected> H = ilya-biryukov wrote: > NIT: remove the empty line at the start of function Done. =

[PATCH] D43089: clang: Add ARCTargetInfo

2018-02-08 Thread Pete Couperus via Phabricator via cfe-commits
petecoup created this revision. petecoup added a reviewer: tatyana-krasnukha. Herald added subscribers: hintonda, mgorny. https://reviews.llvm.org/D43089 Files: clang/lib/Basic/CMakeLists.txt clang/lib/Basic/Targets.cpp clang/lib/Basic/Targets/ARC.cpp clang/lib/Basic/Targets/ARC.h clang

[PATCH] D43074: [Analyzer] Fix a typo about `categories::MemoryError` in `MallocChecker.cpp`

2018-02-08 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. Woohoo thanks nice. Repository: rC Clang https://reviews.llvm.org/D43074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D42672: [CFG] [analyzer] Heavier CFGConstructor elements.

2018-02-08 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. All right, so this change is indeed safe, i.e. no crashes or changes in analyzer behavior so far on my large codebase run. Will commit now. https://reviews.llvm.org/D42672 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r324652 - [analyzer] [tests] Test different projects concurrently

2018-02-08 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Feb 8 13:22:42 2018 New Revision: 324652 URL: http://llvm.org/viewvc/llvm-project?rev=324652&view=rev Log: [analyzer] [tests] Test different projects concurrently Differential Revision: https://reviews.llvm.org/D43031 Modified: cfe/trunk/utils/analyzer/SAT

r324651 - PR36307: Consume the #pragma options align annotation token after

2018-02-08 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Feb 8 13:20:43 2018 New Revision: 324651 URL: http://llvm.org/viewvc/llvm-project?rev=324651&view=rev Log: PR36307: Consume the #pragma options align annotation token after semantic analysis to prevent incorrect -Wpragma-pack warning for an included file rdar://3735495

[PATCH] D42745: [analyzer] Add support for __builtin_constant_p to BuiltinFunctionChecker

2018-02-08 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. Tests look good. You can't test deadcode :) https://reviews.llvm.org/D42745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.o

[PATCH] D42645: New simple Checker for mmap calls

2018-02-08 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Hmm, maybe it'd also be a good idea to disable the check completely when a likely-correct value for the macro cannot be determined. Comment at: lib/StaticAnalyzer/Checkers/MmapWriteExecChecker.cpp:74-75 + mgr.registerChecker(); + Mwec->ProtExecOv = +

[PATCH] D35894: [clangd] Code hover for Clangd

2018-02-08 Thread Simon Marchi via Phabricator via cfe-commits
simark added a comment. In https://reviews.llvm.org/D35894#1001875, @ilya-biryukov wrote: > Thanks for picking this up! > I have just one major comment related to how we generate the hover text. > > Current implementation tries to get the actual source code for every > declaration and then patc

[PATCH] D42300: [Analyzer] Add PreStmt and PostStmt callbacks for OffsetOfExpr

2018-02-08 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. All right, i guess we already do have a pair of callbacks for `IntegerLiteral` and it doesn't hurt, especially because here they'd eventually be actually useful. I think it should land, just to make

[PATCH] D42983: [clang-tidy] Add readability-simd-intrinsics check.

2018-02-08 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay updated this revision to Diff 133476. MaskRay added a comment. .rst Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42983 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/ReadabilityTidyModule.cpp clang-tidy/readability/SIMDIntrinsicsCheck.cpp

[PATCH] D43062: [analyzer] Support CXXTemporaryObjectExpr constructors that have destructors.

2018-02-08 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ updated this revision to Diff 133475. NoQ added a comment. Add a simple test for a class with no destructor. https://reviews.llvm.org/D43062 Files: lib/StaticAnalyzer/Core/ExprEngineCXX.cpp test/Analysis/temporaries.cpp Index: test/Analysis/temporaries.cpp =

[PATCH] D42983: [clang-tidy] Add readability-simd-intrinsics check.

2018-02-08 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay updated this revision to Diff 133474. MaskRay added a comment. Herald added subscribers: kbarton, nemanjai. Split test/clang-tidy/readability-simd-intrinsics.cpp to x86 and ppc Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42983 Files: clang-tidy/readability/CMakeLis

[PATCH] D42300: [Analyzer] Add PreStmt and PostStmt callbacks for OffsetOfExpr

2018-02-08 Thread Henry Wong via Phabricator via cfe-commits
MTC added a comment. @NoQ Sorry to bother you again. It seems that this patch is useless to analyzer temporarily, if you think so, I will abandon it : ). Repository: rC Clang https://reviews.llvm.org/D42300 ___ cfe-commits mailing list cfe-commi

r324647 - [X86] Replace kortest intrinsics with native IR.

2018-02-08 Thread Craig Topper via cfe-commits
Author: ctopper Date: Thu Feb 8 12:16:17 2018 New Revision: 324647 URL: http://llvm.org/viewvc/llvm-project?rev=324647&view=rev Log: [X86] Replace kortest intrinsics with native IR. Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp cfe/trunk/test/CodeGen/avx512f-builtins.c Modified: cfe/tru

r324644 - Fix improper indentation issue in CodeGenModule [NFC]

2018-02-08 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Thu Feb 8 12:04:22 2018 New Revision: 324644 URL: http://llvm.org/viewvc/llvm-project?rev=324644&view=rev Log: Fix improper indentation issue in CodeGenModule [NFC] Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp U

[PATCH] D43045: Add NVPTX Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: test/Misc/target-invalid-cpu-note.c:38 +// NVPTX: note: valid target CPU values are: sm_20, sm_21, sm_30, sm_32, sm_35, +// NVPTX-SAME: sm_37, sm_50, sm_52, sm_53, sm_60, sm_61, sm_62, sm_70, sm_72 erichkeane wrote: > tra wr

[PATCH] D43045: Add NVPTX Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: test/Misc/target-invalid-cpu-note.c:38 +// NVPTX: note: valid target CPU values are: sm_20, sm_21, sm_30, sm_32, sm_35, +// NVPTX-SAME: sm_37, sm_50, sm_52, sm_53, sm_60, sm_61, sm_62, sm_70, sm_72 tra wrote: > Nit: G

[PATCH] D42581: [NVPTX] Emit debug info in DWARF-2 by default for Cuda devices.

2018-02-08 Thread Artem Belevich via Phabricator via cfe-commits
tra accepted this revision. tra added a comment. This revision is now accepted and ready to land. LGTM Repository: rC Clang https://reviews.llvm.org/D42581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

Re: [PATCH] D43045: Add NVPTX Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Eric Christopher via cfe-commits
Fair. Did you want to handle this a different way? I thought the list at least seemed reasonable for spelling. On Thu, Feb 8, 2018, 11:44 AM Artem Belevich via Phabricator < revi...@reviews.llvm.org> wrote: > tra added inline comments. > > > > Comment at: test/Misc/target-invalid

[PATCH] D43045: Add NVPTX Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: test/Misc/target-invalid-cpu-note.c:38 +// NVPTX: note: valid target CPU values are: sm_20, sm_21, sm_30, sm_32, sm_35, +// NVPTX-SAME: sm_37, sm_50, sm_52, sm_53, sm_60, sm_61, sm_62, sm_70, sm_72 Nit: Generally speaking th

[PATCH] D43078: Fix crash on array initializer with non-0 alloca addrspace

2018-02-08 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm closed this revision. arsenm added a comment. r324641 https://reviews.llvm.org/D43078 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r324641 - Fix crash on array initializer with non-0 alloca addrspace

2018-02-08 Thread Matt Arsenault via cfe-commits
Author: arsenm Date: Thu Feb 8 11:37:09 2018 New Revision: 324641 URL: http://llvm.org/viewvc/llvm-project?rev=324641&view=rev Log: Fix crash on array initializer with non-0 alloca addrspace Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp cfe/trunk/test/CodeGenOpenCL/address-space-constant-in

[PATCH] D43057: Add Rest of Targets Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Eric Christopher via Phabricator via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. I've glanced at this and didn't notice anything. I think any problems can be fixed in post-commit review if necessary. https://reviews.llvm.org/D43057 _

[PATCH] D43045: Add NVPTX Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Eric Christopher via Phabricator via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. LGTM with an inline comment. Comment at: include/clang/Basic/Cuda.h:49 SM_72, + LAST, }; We have last, invalid, etc... maybe we should pick one amon

[libcxx] r324640 - The apple versions of clang don't support deduction guides yet.

2018-02-08 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu Feb 8 11:33:03 2018 New Revision: 324640 URL: http://llvm.org/viewvc/llvm-project?rev=324640&view=rev Log: The apple versions of clang don't support deduction guides yet. Modified: libcxx/trunk/test/std/strings/basic.string/string.cons/iter_alloc_deduction.fail.cp

[PATCH] D43057: Add Rest of Targets Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 133459. erichkeane added a comment. rebased, reflowed tests. https://reviews.llvm.org/D43057 Files: lib/Basic/Targets/AMDGPU.cpp lib/Basic/Targets/AMDGPU.h lib/Basic/Targets/AVR.cpp lib/Basic/Targets/AVR.h lib/Basic/Targets/BPF.cpp lib/Basic/

[PATCH] D43045: Add NVPTX Support to ValidCPUList (enabling march notes)

2018-02-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 133458. erichkeane added a comment. rebased, reflowed tests. https://reviews.llvm.org/D43045 Files: include/clang/Basic/Cuda.h lib/Basic/Cuda.cpp lib/Basic/Targets/NVPTX.cpp lib/Basic/Targets/NVPTX.h test/Misc/target-invalid-cpu-note.c Index:

[PATCH] D42983: [clang-tidy] Add readability-simd-intrinsics check.

2018-02-08 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay updated this revision to Diff 133457. MaskRay added a comment. Set `Enabled` to 1 in test/clang-tidy/readability-simd-intrinsics.cpp Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42983 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/ReadabilityT

[PATCH] D42549: [CodeGen] Use the zero initializer instead of storing an all zero representation.

2018-02-08 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. I'm somewhat surprised LLVM doesn't already canonicalize this, but ok. Should we also do this when building a constant struct? Comment at: lib/CodeGen/CGExprConstant.cpp:873 Elts.push_back(C); + if (!C->isNullValue()) +AllNullValue

  1   2   >