[PATCH] D51564: Distinguish `__block` variables that are captured by escaping blocks from those that aren't

2018-08-31 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/AST/Decl.h:977 + +unsigned EscapingByref : 1; }; This doesn't actually seem to be initialized anywhere. Comment at: include/clang/AST/Decl.h:1422 + + bool isNonEscapingByref() co

[PATCH] D51084: Implement -Watomic-implicit-seq-cst

2018-08-31 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/Sema/SemaChecking.cpp:4924 +<< Callee->getSourceRange(); + } + rjmccall wrote: > Why is the diagnostic at the end location? And why are you separately > checking whether it's ignored at the begin location

[PATCH] D51567: CMake: Consolidate gtest detection code

2018-08-31 Thread Tom Stellard via Phabricator via cfe-commits
tstellar created this revision. tstellar added reviewers: chandlerc, beanz. Herald added a subscriber: mgorny. This makes it possible to build the unittests with only the gtest sources and without a full LLVM source tree. Repository: rC Clang https://reviews.llvm.org/D51567 Files: CMakeLis

[PATCH] D51539: [clangd] Add symbol slab size to index memory consumption estimates

2018-08-31 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clang-tools-extra/clangd/index/FileIndex.cpp:91 + for (const auto &P : FileToSlabs) +Result += P.second->size(); + return Result; Why not `bytes` here as well? https://reviews.llvm.org/D51539

[PATCH] D51539: [clangd] Add symbol slab size to index memory consumption estimates

2018-08-31 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clang-tools-extra/clangd/index/dex/DexIndex.cpp:184 + size_t Bytes = PairedSlabSize; + Bytes += LookupTable.size() * sizeof(std::pair); Bytes += SymbolQuality.size() * sizeof(std::pair); Why not use `LookupTable.ge

[PATCH] D51510: Move AESNI generation to Skylake and Goldmont

2018-08-31 Thread Thiago Macieira via Phabricator via cfe-commits
thiagomacieira added a comment. See https://reviews.llvm.org/D51565 Repository: rC Clang https://reviews.llvm.org/D51510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D51510: Move AESNI generation to Skylake and Goldmont

2018-08-31 Thread Thiago Macieira via Phabricator via cfe-commits
thiagomacieira added a comment. Sure. Hadn't seen that file. Repository: rC Clang https://reviews.llvm.org/D51510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2018-08-31 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added inline comments. This revision is now accepted and ready to land. Comment at: lib/Sema/SemaInit.cpp:1827-1829 + if (SemaRef.DiagnoseUseOfDecl(Destructor, Loc)) +return false; + return true; Usual Clang convention

[PATCH] D51564: Distinguish `__block` variables that are captured by escaping blocks from those that aren't

2018-08-31 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak created this revision. ahatanak added a reviewer: rjmccall. Herald added a subscriber: dexonsmith. This patch changes the way `__block` variables that aren't captured by escaping blocks are handled: - Since non-escaping blocks on the stack never get copied to the heap (see https://revi

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

2018-08-31 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 163612. ahatanak marked 3 inline comments as done. ahatanak added a comment. Move the call that checks the element's destructor into InitListChecker::CheckStructUnionTypes. Repository: rC Clang https://reviews.llvm.org/D45898 Files: lib/Sema/SemaInit

[PATCH] D51329: [Attribute/Diagnostics] Print macro instead of whole attribute for address_space

2018-08-31 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added inline comments. Comment at: lib/AST/TypePrinter.cpp:1370 + +// Remove the underlying address space so it won't be printed. +SplitQualType SplitTy = T->getModifiedType().split(); rsmith wrote: > leonardchan wrote: > > rsmith wrote: > > >

[PATCH] D51329: [Attribute/Diagnostics] Print macro instead of whole attribute for address_space

2018-08-31 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan updated this revision to Diff 163604. leonardchan marked 8 inline comments as done. leonardchan added a comment. - Removed default value for `getAttributedType` and added any macro identifier necessary as a fourth argument to `getAttributedType` - Added tracking for `LateAttr`s to kee

[PATCH] D51333: Diagnose likely typos in include statements

2018-08-31 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D51333#1220878, @christylee wrote: > In https://reviews.llvm.org/D51333#1219938, @rsmith wrote: > > > Instead of guessing whether the corrected filename would be valid, why not > > strip off the leading and trailing non-alphanumeric characters,

r341265 - [X86] Add ktest intrinsics to match gcc and icc.

2018-08-31 Thread Craig Topper via cfe-commits
Author: ctopper Date: Fri Aug 31 15:29:56 2018 New Revision: 341265 URL: http://llvm.org/viewvc/llvm-project?rev=341265&view=rev Log: [X86] Add ktest intrinsics to match gcc and icc. These aren't documented in the Intel Intrinsics Guide, but are supported by gcc and icc. Includes these intrinsi

[PATCH] D51554: [CUDA][OPENMP][NVPTX]Improve logic of the debug info support.

2018-08-31 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. Nice. So, in effect, for optimized builds we'll generate pre-DWARF line info only, unless --cuda-noopt-device-debug is specified. Will this deal with the warnings about back-end being unable to handl

[PATCH] D51448: [WebAssembly] clang-format (NFC)

2018-08-31 Thread Heejin Ahn via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341254: [WebAssembly] clang-format (NFC) (authored by aheejin, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D51448 Files: cfe/trunk/lib/Drive

r341254 - [WebAssembly] clang-format (NFC)

2018-08-31 Thread Heejin Ahn via cfe-commits
Author: aheejin Date: Fri Aug 31 13:57:00 2018 New Revision: 341254 URL: http://llvm.org/viewvc/llvm-project?rev=341254&view=rev Log: [WebAssembly] clang-format (NFC) Summary: This patch runs clang-format on all wasm-only files. Subscribers: dschuff, sbc100, jgravelle-google, sunfish, jfb, cfe-c

[PATCH] D51448: [WebAssembly] clang-format (NFC)

2018-08-31 Thread Heejin Ahn via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC341254: [WebAssembly] clang-format (NFC) (authored by aheejin, committed by ). Changed prior to commit: https://reviews.llvm.org/D51448?vs=163152&id=163590#toc Repository: rL LLVM https://reviews.ll

r341251 - [X86] Add k-mask conversion and load/store instrinsics to match gcc and icc.

2018-08-31 Thread Craig Topper via cfe-commits
Author: ctopper Date: Fri Aug 31 13:41:06 2018 New Revision: 341251 URL: http://llvm.org/viewvc/llvm-project?rev=341251&view=rev Log: [X86] Add k-mask conversion and load/store instrinsics to match gcc and icc. This adds: _cvtmask8_u32, _cvtmask16_u32, _cvtmask32_u32, _cvtmask64_u64 _cvtu32_mask8

[PATCH] D51507: Allow all supportable attributes to be used with #pragma clang attribute.

2018-08-31 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith updated this revision to Diff 163584. rsmith added a comment. Don't add #pragma clang attribute support for 'mode' and 'ext_vector_type'. Repository: rC Clang https://reviews.llvm.org/D51507 Files: include/clang/Basic/Attr.td test/Misc/pragma-attribute-supported-attributes-list.te

Re: r341117 - [MS ABI] Fix mangling issue with dynamic initializer stubs.

2018-08-31 Thread Galina Kistanova via cfe-commits
The builder is just fixed, so I am wrong. Sorry to bother you. Thanks Galina On Fri, Aug 31, 2018 at 1:08 PM Zachary Turner wrote: > Are we sure it was my commit? Because this seems like a very unusual > failure given the nature of the commit. I'll try to reproduce it locally > and report ba

Re: r341117 - [MS ABI] Fix mangling issue with dynamic initializer stubs.

2018-08-31 Thread Zachary Turner via cfe-commits
It looks like tnorthover has fixed these in r341240 On Fri, Aug 31, 2018 at 1:08 PM Zachary Turner wrote: > Are we sure it was my commit? Because this seems like a very unusual > failure given the nature of the commit. I'll try to reproduce it locally > and report back. > > On Fri, Aug 31, 201

Re: r341117 - [MS ABI] Fix mangling issue with dynamic initializer stubs.

2018-08-31 Thread Zachary Turner via cfe-commits
Are we sure it was my commit? Because this seems like a very unusual failure given the nature of the commit. I'll try to reproduce it locally and report back. On Fri, Aug 31, 2018 at 11:49 AM Galina Kistanova wrote: > Hello Zachary, > > It looks like this commit added broken tests on one of ou

[PATCH] D51279: [clangd] Implement findOccurrences interface in dynamic index.

2018-08-31 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE341242: [clangd] Implement findOccurrences interface in dynamic index. (authored by hokein, committed by ). Changed prior to commit: https://reviews.llvm.org/D51279?vs=163539&id=163580#toc Repository

[clang-tools-extra] r341242 - [clangd] Implement findOccurrences interface in dynamic index.

2018-08-31 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Aug 31 12:53:37 2018 New Revision: 341242 URL: http://llvm.org/viewvc/llvm-project?rev=341242&view=rev Log: [clangd] Implement findOccurrences interface in dynamic index. Summary: Implement the interface in - FileIndex - MemIndex - MergeIndex Depends on https://rev

[PATCH] D51554: [CUDA][OPENMP][NVPTX]Improve logic of the debug info support.

2018-08-31 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev created this revision. ABataev added reviewers: tra, echristo. Herald added subscribers: JDevlieghere, guansong, aprantl. Added support for the -gline-directives-only option + fixed logic of the debug info for CUDA devices. If optimization level is O0, then options --[no-]cuda-noopt-device

[PATCH] D51084: Implement -Watomic-implicit-seq-cst

2018-08-31 Thread JF Bastien via Phabricator via cfe-commits
jfb updated this revision to Diff 163577. jfb added a comment. - Don't diagnose initialization, only assignment. Repository: rC Clang https://reviews.llvm.org/D51084 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaChecking.cpp test/Sema/atomic-implicit-seq_cst.c test/S

r341240 - Tests: fix tests encoding specific hash values for 32-bit systems.

2018-08-31 Thread Tim Northover via cfe-commits
Author: tnorthover Date: Fri Aug 31 12:24:37 2018 New Revision: 341240 URL: http://llvm.org/viewvc/llvm-project?rev=341240&view=rev Log: Tests: fix tests encoding specific hash values for 32-bit systems. I changed the seed slightly, but forgot to run the tests on a 32-bit system, so tests which h

Re: [PATCH] D51507: Allow all supportable attributes to be used with #pragma clang attribute.

2018-08-31 Thread Richard Smith via cfe-commits
On Fri, 31 Aug 2018 at 06:35, Aaron Ballman via cfe-commits < cfe-commits@lists.llvm.org> wrote: > My reasoning is because type attributes have more impact than variable > attributes and types appear more frequently. Consider using > address_space where the region includes function definitions. Sh

Re: r341117 - [MS ABI] Fix mangling issue with dynamic initializer stubs.

2018-08-31 Thread Galina Kistanova via cfe-commits
Hello Zachary, It looks like this commit added broken tests on one of our builders: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/19508 . . . Failing Tests (2): LLVM-Unit :: ADT/./ADTTests.exe/HashingTest.HashCombineRangeGoldenTest Clang :: Code

[PATCH] D50783: [CodeGen] Merge identical block descriptor global variables

2018-08-31 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. The GNUstep documentation I found replaces '@' with '\1'. Would that fix the problem? https://github.com/gnustep/libobjc2/blob/master/ABIDoc/abi.tex Repository: rC Clang https://reviews.llvm.org/D50783 ___ cfe-commits

r341234 - [X86] Add kshift intrinsics to match gcc and icc.

2018-08-31 Thread Craig Topper via cfe-commits
Author: ctopper Date: Fri Aug 31 11:22:52 2018 New Revision: 341234 URL: http://llvm.org/viewvc/llvm-project?rev=341234&view=rev Log: [X86] Add kshift intrinsics to match gcc and icc. This adds the following intrinsics: _kshiftli_mask8 _kshiftli_mask16 _kshiftli_mask32 _kshiftli_mask64 _kshiftri_

[PATCH] D51508: Export public functions implemented in assembly on Windows.

2018-08-31 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341232: Export public functions implemented in assembly on Windows. (authored by cdavis, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D51508 Fi

[libunwind] r341232 - Export public functions implemented in assembly on Windows.

2018-08-31 Thread Charles Davis via cfe-commits
Author: cdavis Date: Fri Aug 31 11:11:48 2018 New Revision: 341232 URL: http://llvm.org/viewvc/llvm-project?rev=341232&view=rev Log: Export public functions implemented in assembly on Windows. Summary: By default, symbols aren't visible outside of the module that defines them. To make them visibl

[PATCH] D51508: Export public functions implemented in assembly on Windows.

2018-08-31 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Comment at: src/assembly.h:76-78 + .section .drectve,"yn" SEPARATOR\ + .ascii "-export:", #name, "\0" SEPARATOR\ + .text ---

[PATCH] D51521: Refactor Addlibgcc to make the when and what logic more straightfoward.

2018-08-31 Thread Sterling Augustine via Phabricator via cfe-commits
saugustine closed this revision. saugustine added a comment. commited as r341231. Repository: rC Clang https://reviews.llvm.org/D51521 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

r341231 - Refactor Addlibgcc to make the when and what logic more straightfoward.

2018-08-31 Thread Sterling Augustine via cfe-commits
Author: saugustine Date: Fri Aug 31 10:59:03 2018 New Revision: 341231 URL: http://llvm.org/viewvc/llvm-project?rev=341231&view=rev Log: Refactor Addlibgcc to make the when and what logic more straightfoward. Add Android tests. Modified: cfe/trunk/lib/Driver/ToolChains/CommonArgs.cpp cf

[PATCH] D51359: Adding HardLink Support to VirtualFileSystem.

2018-08-31 Thread UTKARSH SAXENA via Phabricator via cfe-commits
usaxena95 added a comment. Made the suggested changes. Comment at: include/clang/Basic/VirtualFileSystem.h:359 + public: + /// Add a HardLink to a File. + /// The To path must be an existing file or a hardlink. The From file must not ilya-biryukov wrote: >

[PATCH] D51521: Refactor Addlibgcc to make the when and what logic more straightfoward.

2018-08-31 Thread Stephen Hines via Phabricator via cfe-commits
srhines accepted this revision. srhines added a comment. This revision is now accepted and ready to land. Thanks for cleaning this up and adding better checks for Android. :) Repository: rC Clang https://reviews.llvm.org/D51521 ___ cfe-commits ma

[PATCH] D51359: Adding HardLink Support to VirtualFileSystem.

2018-08-31 Thread UTKARSH SAXENA via Phabricator via cfe-commits
usaxena95 updated this revision to Diff 163549. usaxena95 marked 15 inline comments as done. usaxena95 added a comment. - Made suggested changes. Repository: rC Clang https://reviews.llvm.org/D51359 Files: include/clang/Basic/VirtualFileSystem.h lib/Basic/VirtualFileSystem.cpp unittest

[PATCH] D51545: Enable -Wtautological-unsigned-zero-compare under -Wextra

2018-08-31 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added reviewers: thakis, vsk, phosek. lebedev.ri added a comment. In https://reviews.llvm.org/D51545#1220967, @eandrews wrote: > @lebedev.ri is there a specific reason -Wtautological-unsigned-zero-compare > was removed? All the issues I am aware of talks about comparisons with > min/

[PATCH] D51545: Enable -Wtautological-unsigned-zero-compare under -Wextra

2018-08-31 Thread Elizabeth Andrews via Phabricator via cfe-commits
eandrews added a comment. @lebedev.ri is there a specific reason -Wtautological-unsigned-zero-compare was removed? All the issues I am aware of talks about comparisons with min/max. https://reviews.llvm.org/D51545 ___ cfe-commits mailing list cfe-c

[PATCH] D51531: [analyzer][UninitializedObjectChecker] Uninit regions are only reported once

2018-08-31 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 163542. https://reviews.llvm.org/D51531 Files: lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObject.h lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp lib/StaticAnalyzer/Checkers/UninitializedObject/Uniniti

[PATCH] D51545: Enable -Wtautological-unsigned-zero-compare under -Wextra

2018-08-31 Thread Elizabeth Andrews via Phabricator via cfe-commits
eandrews created this revision. eandrews added reviewers: lebedev.ri, rsmith, rjmccall, rnk, mclow.lists, erichkeane. GCC enables -Wtype-limits under -Wextra. Warnings under GCC's -Wtype-limits is covered in Clang by -Wtautological-type-limit-compare and -Wtautological-unsigned-zero-compare. S

[PATCH] D51539: [clangd] Add symbol slab size to index memory consumption estimates

2018-08-31 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev planned changes to this revision. kbobyrev added a comment. I'll rebase it on top of https://reviews.llvm.org/D51422 and address the last comment before proceeding to the review. https://reviews.llvm.org/D51539 ___ cfe-commits mailing list

[PATCH] D51544: [OpenCL] Split opencl-c.h header

2018-08-31 Thread Andrew Savonichev via Phabricator via cfe-commits
asavonic created this revision. asavonic added reviewers: Anastasia, yaxunl, bader. Herald added subscribers: cfe-commits, jfb, mgorny. TL;DR - This patch splits huge opencl-c.h header into multiple headers to support efficient use of Precompiled Headers (or Modules): - opencl-c-defs.h conta

[PATCH] D51440: [ToolChains] Link to compiler-rt with -L + -l when possible

2018-08-31 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In https://reviews.llvm.org/D51440#1220925, @phosek wrote: > In https://reviews.llvm.org/D51440#1218859, @mstorsjo wrote: > > > I'll see if I can get to looking at that sometime soon. I had this patch > > lying around as an attempt to work around the libtool issue in >

[PATCH] D51481: [clangd] Implement proximity path boosting for Dex

2018-08-31 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added inline comments. Comment at: clang-tools-extra/clangd/index/dex/Token.h:54 Scope, +/// Path to symbol declaration. +/// ioeric wrote: > As this is called `Path`, I'd try to decouple it from URIs, so that we don't > need special handli

[PATCH] D51279: [clangd] Implement findOccurrences interface in dynamic index.

2018-08-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 163539. hokein marked 3 inline comments as done. hokein added a comment. address review comments: - build memindex with symbol slab and occurrence slab - remove withAllCode in TestTU Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51279 File

[PATCH] D51481: [clangd] Implement proximity path boosting for Dex

2018-08-31 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 163538. kbobyrev marked an inline comment as not done. kbobyrev added a comment. Fix tests https://reviews.llvm.org/D51481 Files: clang-tools-extra/clangd/CMakeLists.txt clang-tools-extra/clangd/index/dex/DexIndex.cpp clang-tools-extra/clangd/index/d

[PATCH] D51440: [ToolChains] Link to compiler-rt with -L + -l when possible

2018-08-31 Thread Petr Hosek via Phabricator via cfe-commits
phosek added a comment. In https://reviews.llvm.org/D51440#1218859, @mstorsjo wrote: > I'll see if I can get to looking at that sometime soon. I had this patch > lying around as an attempt to work around the libtool issue in > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866 which doesn't se

[PATCH] D51481: [clangd] Implement proximity path boosting for Dex

2018-08-31 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 163537. kbobyrev marked 14 inline comments as done. https://reviews.llvm.org/D51481 Files: clang-tools-extra/clangd/CMakeLists.txt clang-tools-extra/clangd/index/dex/DexIndex.cpp clang-tools-extra/clangd/index/dex/DexIndex.h clang-tools-extra/clangd/

[PATCH] D51422: [clangd] Factor out the data-swapping functionality from MemIndex/DexIndex.

2018-08-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/index/FileIndex.h:47 + // The shared_ptr keeps the symbols alive. + std::shared_ptr buildMemIndex(); ioeric wrote: > Maybe avoid hardcoding the index name, so that we could potentially switch to > use a dif

[PATCH] D51543: [Sema] Fix uninitialized OverloadCandidate::FoundDecl member

2018-08-31 Thread Jan Korous via Phabricator via cfe-commits
jkorous created this revision. jkorous added reviewers: arphaman, vsapsai, dexonsmith, rsmith. jkorous added a project: clang. Herald added subscribers: cfe-commits, mgorny. It's rather error-prone to leave that member variable uninitialized. The DeclAccessPair seems to be intentionally POD and i

[PATCH] D51530: [libunwind] Fix existing code for SEH on ARM to compile correctly

2018-08-31 Thread Martin Storsjö via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341217: Fix existing code for SEH on ARM to compile correctly (authored by mstorsjo, committed by ). Herald added subscribers: llvm-commits, christof. Changed prior to commit: https://reviews.llvm.org/D

[libunwind] r341217 - Fix existing code for SEH on ARM to compile correctly

2018-08-31 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Fri Aug 31 07:56:55 2018 New Revision: 341217 URL: http://llvm.org/viewvc/llvm-project?rev=341217&view=rev Log: Fix existing code for SEH on ARM to compile correctly Even though SEH for ARM is incomplete, make what code already exists at least compile correctly. The _LIBUN

[PATCH] D51279: [clangd] Implement findOccurrences interface in dynamic index.

2018-08-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: unittests/clangd/TestTU.h:41 + static TestTU withAllCode(llvm::StringRef HeaderCode, llvm::StringRef Code, +llvm::StringRef Filename = "") { hokein wrote: > sammccall wrote: > > We've avo

[PATCH] D51333: Diagnose likely typos in include statements

2018-08-31 Thread Christy Lee via Phabricator via cfe-commits
christylee marked 2 inline comments as done. christylee added a comment. In https://reviews.llvm.org/D51333#1219938, @rsmith wrote: > Instead of guessing whether the corrected filename would be valid, why not > strip off the leading and trailing non-alphanumeric characters, look up the > result

[PATCH] D51422: [clangd] Factor out the data-swapping functionality from MemIndex/DexIndex.

2018-08-31 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clangd/index/MemIndex.h:30 + /// Builds an index from a slab. The shared_ptr manages the slab's lifetime. + static std::shared_ptr build(SymbolSlab Slab); sammccall wrote: > ioeric wrote: > > (It's a bit unfortunate t

[PATCH] D51279: [clangd] Implement findOccurrences interface in dynamic index.

2018-08-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 163532. hokein added a comment. Minor cleanup. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51279 Files: clangd/index/FileIndex.cpp clangd/index/FileIndex.h clangd/index/Index.h clangd/index/MemIndex.cpp clangd/index/MemIndex.h

[PATCH] D51279: [clangd] Implement findOccurrences interface in dynamic index.

2018-08-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clangd/index/MemIndex.cpp:35 std::unique_ptr MemIndex::build(SymbolSlab Slab) { auto Idx = llvm::make_unique(); sammccall wrote: > This is still implicitly creating an index with no occurrences. Did you mean > to a

[PATCH] D51279: [clangd] Implement findOccurrences interface in dynamic index.

2018-08-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 163531. hokein marked 4 inline comments as done. hokein added a comment. - rebase - address review comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51279 Files: clangd/index/FileIndex.cpp clangd/index/FileIndex.h clangd/index/In

[PATCH] D51177: [DEBUGINFO] Add support for emission of the debug directives only.

2018-08-31 Thread Alexey Bataev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341212: [DEBUGINFO] Add support for emission of the debug directives only. (authored by ABataev, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D5

r341212 - [DEBUGINFO] Add support for emission of the debug directives only.

2018-08-31 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Aug 31 06:56:14 2018 New Revision: 341212 URL: http://llvm.org/viewvc/llvm-project?rev=341212&view=rev Log: [DEBUGINFO] Add support for emission of the debug directives only. Summary: Added option -gline-directives-only to support emission of the debug directives only. I

[PATCH] D51508: Export public functions implemented in assembly on Windows.

2018-08-31 Thread Charles Davis via Phabricator via cfe-commits
cdavis5x added inline comments. Comment at: src/assembly.h:76-78 + .section .drectve,"yn" SEPARATOR\ + .ascii "-export:", #name, "\0" SEPARATOR\ + .text rnk wrote: > Maybe .pushsection / .popsection is better than assumi

[clang-tools-extra] r341211 - [clangd] Flatten out Symbol::Details. It was ill-conceived, sorry.

2018-08-31 Thread Sam McCall via cfe-commits
Author: sammccall Date: Fri Aug 31 06:55:01 2018 New Revision: 341211 URL: http://llvm.org/viewvc/llvm-project?rev=341211&view=rev Log: [clangd] Flatten out Symbol::Details. It was ill-conceived, sorry. Reviewers: ioeric Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commi

[PATCH] D51504: [clangd] Flatten out Symbol::Details. It was ill-conceived, sorry.

2018-08-31 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341211: [clangd] Flatten out Symbol::Details. It was ill-conceived, sorry. (authored by sammccall, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/

[PATCH] D51539: [clangd] Add symbol slab size to index memory consumption estimates

2018-08-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. This looks reasonable! This is going to conflict with https://reviews.llvm.org/D51422, you might want to rebase. Comment at: clang-tools-extra/clangd/index/MemIndex.h:26 + void build(std::shared_ptr> Symbols, + size_t SlabSize=0);

[PATCH] D51539: [clangd] Add symbol slab size to index memory consumption estimates

2018-08-31 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 163523. kbobyrev added a comment. Resolved the issues. Measurements show that static Dex index for LLVM takes ~140 MB, ~80 MB of which is the size of `SymbolSlab`. https://reviews.llvm.org/D51539 Files: clang-tools-extra/clangd/index/FileIndex.cpp cl

[PATCH] D51481: [clangd] Implement proximity path boosting for Dex

2018-08-31 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clang-tools-extra/clangd/index/dex/DexIndex.cpp:137 + BoostingIterators.push_back( + createBoost(create(It->second), P.second + 10)); + } Could you comment on `P.second + 10` here? It sounds lik

[PATCH] D51422: [clangd] Factor out the data-swapping functionality from MemIndex/DexIndex.

2018-08-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/index/Index.h:416 + // until the call returns (even if reset() is called). + bool fuzzyFind(const FuzzyFindRequest &, + llvm::function_ref) const override; kbobyrev wrote: > Do we want these fu

[PATCH] D51509: [AddressSpace] Use the macro to set hidden visibility on LocalAddressSpace.

2018-08-31 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341210: [AddressSpace] Use the macro to set hidden visibility on LocalAddressSpace. (authored by cdavis, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llv

[libunwind] r341210 - [AddressSpace] Use the macro to set hidden visibility on LocalAddressSpace.

2018-08-31 Thread Charles Davis via cfe-commits
Author: cdavis Date: Fri Aug 31 06:41:05 2018 New Revision: 341210 URL: http://llvm.org/viewvc/llvm-project?rev=341210&view=rev Log: [AddressSpace] Use the macro to set hidden visibility on LocalAddressSpace. Summary: That attribute has no effect on Windows anyway--classes are hidden by default.

[PATCH] D51291: [clangd] Support multiple #include headers in one symbol.

2018-08-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clangd/CodeComplete.cpp:396 +// Prefer includes that do not need edits (i.e. already exist). +std::stable_sort(Completion.Includes.begin(), Comp

Re: [PATCH] D51507: Allow all supportable attributes to be used with #pragma clang attribute.

2018-08-31 Thread Aaron Ballman via cfe-commits
On Fri, Aug 31, 2018 at 9:23 AM, Duncan P. N. Exon Smith via Phabricator wrote: > dexonsmith added inline comments. > > > > Comment at: test/Misc/pragma-attribute-supported-attributes-list.test:50 > // CHECK-NEXT: EnumExtensibility (SubjectMatchRule_enum) > +// CHECK-NEXT: ExtVec

[PATCH] D51422: [clangd] Factor out the data-swapping functionality from MemIndex/DexIndex.

2018-08-31 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clangd/index/dex/DexIndex.h:42 + // All symbols must outlive this index. + template DexIndex(Range &&Symbols) { +for (auto &&Sym : Symbols) Why is this constructor needed? I think this could restrict the flexibilit

[PATCH] D51539: [clangd] Add symbol slab size to index memory consumption estimates

2018-08-31 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev planned changes to this revision. kbobyrev added a comment. I should use `SymbolSlab.bytes()` instead of `SymbolSlab.size()`. Either way, something seems to be wrong, because manually checking the `PairedSlabSize` made me suspicious. https://reviews.llvm.org/D51539

[PATCH] D51507: Allow all supportable attributes to be used with #pragma clang attribute.

2018-08-31 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added inline comments. Comment at: test/Misc/pragma-attribute-supported-attributes-list.test:50 // CHECK-NEXT: EnumExtensibility (SubjectMatchRule_enum) +// CHECK-NEXT: ExtVectorType (SubjectMatchRule_type_alias) // CHECK-NEXT: ExternalSourceSymbol ((SubjectMatchRule

[PATCH] D32845: [Analyzer] Iterator Checker - Part 4: Mismatched iterator checker for function parameters

2018-08-31 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware updated this revision to Diff 163517. baloghadamsoftware removed a reviewer: george.karpenkov. baloghadamsoftware added a comment. Herald added a reviewer: george.karpenkov. Since https://reviews.llvm.org/rL338263 fixed a bug in the cleanup phase the tests for mismatched iterat

[PATCH] D51539: [clangd] Add symbol slab size to index memory consumption estimates

2018-08-31 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev created this revision. kbobyrev added reviewers: ioeric, sammccall. kbobyrev added a project: clang-tools-extra. Herald added subscribers: kadircet, arphaman, jkorous, MaskRay. Currently, `SymbolIndex::estimateMemoryUsage()` returns the "overhead" estimate, i.e. the estimate of the Index

[PATCH] D50385: [clangd] Collect symbol occurrences in SymbolCollector

2018-08-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein closed this revision. hokein added a comment. Committed in https://reviews.llvm.org/rL341208. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50385 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

[clang-tools-extra] r341208 - [clangd] Collect symbol occurrences in SymbolCollector.

2018-08-31 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Aug 31 05:54:13 2018 New Revision: 341208 URL: http://llvm.org/viewvc/llvm-project?rev=341208&view=rev Log: [clangd] Collect symbol occurrences in SymbolCollector. SymbolCollector will be used for two cases: - collect Symbol type only, used for indexing preamble AST. -

[PATCH] D51329: [Attribute/Diagnostics] Print macro instead of whole attribute for address_space

2018-08-31 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/AST/Type.h:4343 QualType getEquivalentType() const { return EquivalentType; } + IdentifierInfo *getAddressSpaceMacroII() const { return AddressSpaceMacroII; } + bool hasAddressSpaceMacroII() const { return Addre

[PATCH] D51279: [clangd] Implement findOccurrences interface in dynamic index.

2018-08-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein marked 3 inline comments as done. hokein added a comment. Sorry! Just realised I messed up this patch with https://reviews.llvm.org/D50385 (mostly SymbolCollector changes), all the comments about `SymbolCollector` are fixed in https://reviews.llvm.org/D50385. Repository: rCTE Clang To

[PATCH] D50385: [clangd] Collect symbol occurrences in SymbolCollector

2018-08-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 163512. hokein added a comment. Address review comments in https://reviews.llvm.org/D51279. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D50385 Files: clangd/index/Index.cpp clangd/index/Index.h clangd/index/SymbolCollector.cpp clan

[PATCH] D51507: Allow all supportable attributes to be used with #pragma clang attribute.

2018-08-31 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: test/Misc/pragma-attribute-supported-attributes-list.test:50 // CHECK-NEXT: EnumExtensibility (SubjectMatchRule_enum) +// CHECK-NEXT: ExtVectorType (SubjectMatchRule_type_alias) // CHECK-NEXT: ExternalSourceSymbol ((SubjectMatchR

[PATCH] D51192: Fix reported range of partial token replacement

2018-08-31 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. I think the fix generally looks good, but can you please add some test coverage for the change? Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51192 ___ cfe-commits mailing list cfe-commits@lists.llvm

Re: [PATCH] D51473: Improve attribute documentation to list which spellings are used in which syntaxes.

2018-08-31 Thread Aaron Ballman via cfe-commits
On Thu, Aug 30, 2018 at 4:12 PM, Richard Smith wrote: > On Thu, 30 Aug 2018 at 12:27, Aaron Ballman via cfe-commits > wrote: >> >> On Thu, Aug 30, 2018 at 3:21 PM, Richard Smith - zygoloid via >> Phabricator wrote: >> > rsmith marked an inline comment as done. >> > rsmith added inline comments.

[PATCH] D51333: Diagnose likely typos in include statements

2018-08-31 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D51333#1219938, @rsmith wrote: > Instead of guessing whether the corrected filename would be valid, why not > strip off the leading and trailing non-alphanumeric characters, look up the > resulting filename, and find out? If we did that

[PATCH] D51481: [clangd] Implement proximity path boosting for Dex

2018-08-31 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 163507. kbobyrev added a comment. Canonicalize URIs, slightly simplify code structure. https://reviews.llvm.org/D51481 Files: clang-tools-extra/clangd/CMakeLists.txt clang-tools-extra/clangd/index/dex/DexIndex.cpp clang-tools-extra/clangd/index/dex/D

[PATCH] D51356: [docs][mips] Clang 7.0 Release notes

2018-08-31 Thread Simon Atanasyan via Phabricator via cfe-commits
atanasyan added a comment. Thanks for review. Repository: rL LLVM https://reviews.llvm.org/D51356 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D51356: [docs][mips] Clang 7.0 Release notes

2018-08-31 Thread Simon Atanasyan via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341201: [docs][mips] Clang 7.0 Release notes (authored by atanasyan, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D51356?vs=162850&id=163501

[PATCH] D51057: [analyzer][UninitializedObjectChecker] Fixed dereferencing

2018-08-31 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 163499. Szelethus added a comment. Reuploaded with `-U9`. Oops. https://reviews.llvm.org/D51057 Files: lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObject.h lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker

[PATCH] D51279: [clangd] Implement findOccurrences interface in dynamic index.

2018-08-31 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. This basically looks good to go (some fixes needed but they're pretty clear I think let me know if not!) Comment at: clangd/index/FileIndex.cpp:63 + auto Occurrences

[PATCH] D51507: Allow all supportable attributes to be used with #pragma clang attribute.

2018-08-31 Thread Kristina Brooks via Phabricator via cfe-commits
kristina added a comment. Giving it a second glance, just as an idea, maybe it's better to leave ObjC pragmas out for now, for another more narrower-scope revision/review specific to ObjC(/Swift)? Since they could cause incorrect code generation if combined in odd ways (as well as making no sen

[PATCH] D50783: [CodeGen] Merge identical block descriptor global variables

2018-08-31 Thread David Chisnall via Phabricator via cfe-commits
theraven added inline comments. Comment at: lib/CodeGen/CGBlocks.cpp:163 + std::string TypeAtEncoding = + CGM.getContext().getObjCEncodingForBlock(BlockInfo.getBlockExpr()); + Name += "e" + llvm::to_string(TypeAtEncoding.size()) + "_" + TypeAtEncoding; Spe

[PATCH] D50783: [CodeGen] Merge identical block descriptor global variables

2018-08-31 Thread David Chisnall via Phabricator via cfe-commits
theraven added a comment. This revision broke blocks on all ELF targets. The block descriptors' symbol names can now include the @ character, which is reserved on ELF platforms as a separator between symbol name and symbol version. As a result, nothing containing a block that has an Objective

[PATCH] D51422: [clangd] Factor out the data-swapping functionality from MemIndex/DexIndex.

2018-08-31 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added inline comments. Comment at: clangd/index/Index.h:416 + // until the call returns (even if reset() is called). + bool fuzzyFind(const FuzzyFindRequest &, + llvm::function_ref) const override; Do we want these functions to be `fina

[PATCH] D51533: [ASTImporter] Merge ExprBits

2018-08-31 Thread Gabor Marton via Phabricator via cfe-commits
martong created this revision. martong added reviewers: a_sidorin, r.stahl, xazax.hun. Herald added subscribers: cfe-commits, dkrupp, rnkovacs. Herald added a reviewer: a.sidorin. Some `Expr` classes set up default values for the `ExprBits` of `Stmt`. These default values are then overwritten by

[PATCH] D51475: [clangd] Load YAML static index asynchronously.

2018-08-31 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added inline comments. Comment at: clangd/tool/ClangdMain.cpp:48 +// loading. +class AsyncLoadIndex : public SymbolIndex { +public: Also, do we want only static index to be built asynchronously? Do we want it to be used only in our Clangd tool driver? L

  1   2   >