[PATCH] D47687: [Sema] Missing -Wlogical-op-parentheses warnings in macros (PR18971)

2018-06-15 Thread Xing via Phabricator via cfe-commits
Higuoxing updated this revision to Diff 151605. https://reviews.llvm.org/D47687 Files: lib/Sema/SemaExpr.cpp test/Sema/parentheses.c Index: test/Sema/parentheses.c === --- test/Sema/parentheses.c +++ test/Sema/parentheses.c @@ -

[PATCH] D47687: [Sema] Missing -Wlogical-op-parentheses warnings in macros (PR18971)

2018-06-15 Thread Xing via Phabricator via cfe-commits
Higuoxing updated this revision to Diff 151604. Higuoxing added a comment. Ping, thanks https://reviews.llvm.org/D47687 Files: lib/Sema/SemaExpr.cpp test/Sema/parentheses.c Index: test/Sema/parentheses.c === --- test/Sema/pare

[PATCH] D47687: [Sema] Missing -Wlogical-op-parentheses warnings in macros (PR18971)

2018-06-15 Thread Xing via Phabricator via cfe-commits
Higuoxing updated this revision to Diff 151599. https://reviews.llvm.org/D47687 Files: lib/Sema/SemaExpr.cpp test/Sema/parentheses.c Index: test/Sema/parentheses.c === --- test/Sema/parentheses.c +++ test/Sema/parentheses.c @@

r334879 - Call CreateTempAllocaWithoutCast for ActiveFlag

2018-06-15 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Fri Jun 15 18:20:52 2018 New Revision: 334879 URL: http://llvm.org/viewvc/llvm-project?rev=334879&view=rev Log: Call CreateTempAllocaWithoutCast for ActiveFlag This is partial re-commit of r332982. Modified: cfe/trunk/lib/CodeGen/CGCleanup.cpp Modified: cfe/trunk/lib/Co

[PATCH] D48241: [DebugInfo] Emit ObjC methods as part of interface.

2018-06-15 Thread Jonas Devlieghere via Phabricator via cfe-commits
JDevlieghere updated this revision to Diff 151596. JDevlieghere marked 3 inline comments as done. JDevlieghere added a comment. - Feedback Adrian https://reviews.llvm.org/D48241 Files: clang/lib/CodeGen/CGDebugInfo.cpp clang/lib/CodeGen/CGDebugInfo.h clang/test/CodeGenObjC/debug-info-cate

[PATCH] D37035: Implement __builtin_LINE() et. al. to support source location capture.

2018-06-15 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: include/clang/AST/SourceLocExprScope.h:39 +//static_assert(foo() == __LINE__); +return OldVal == nullptr || isa(DefaultExpr) || + !OldVal->isInSameContext(EvalContext); Do we want the `isa` check her

[PATCH] D48241: [DebugInfo] Emit ObjC methods as part of interface.

2018-06-15 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added inline comments. Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:4250 + + SmallVector EltTys; + EltTys.append(InterfaceDecl->getElements().begin(), ``` auto &Elements = InterfaceDecl->getElements(); EltTys.append(Elements.begin(), Elements.e

[PATCH] D48242: [ASTMatchers] Add support for matching the type of a friend decl.

2018-06-15 Thread David L. Jones via Phabricator via cfe-commits
dlj added inline comments. Comment at: include/clang/ASTMatchers/ASTMatchers.h:2900-2904 +AST_POLYMORPHIC_MATCHER_P_OVERLOAD( +hasType, +AST_POLYMORPHIC_SUPPORTED_TYPES(Expr, FriendDecl, ValueDecl), +internal::Matcher, InnerMatcher, 1) { + QualType QT = internal::get

[PATCH] D48242: [ASTMatchers] Add support for matching the type of a friend decl.

2018-06-15 Thread David L. Jones via Phabricator via cfe-commits
dlj updated this revision to Diff 151593. dlj marked 3 inline comments as done. Repository: rC Clang https://reviews.llvm.org/D48242 Files: include/clang/ASTMatchers/ASTMatchers.h include/clang/ASTMatchers/ASTMatchersInternal.h unittests/ASTMatchers/ASTMatchersNodeTest.cpp Index: unitt

[PATCH] D48241: [DebugInfo] Emit ObjC methods as part of interface.

2018-06-15 Thread Jonas Devlieghere via Phabricator via cfe-commits
JDevlieghere updated this revision to Diff 151591. JDevlieghere added a comment. - Use type cache & - Simplify method cache struct - Add custom test that verifies category methods are emitted https://reviews.llvm.org/D48241 Files: clang/lib/CodeGen/CGDebugInfo.cpp clang/lib/CodeGen/CGDebugI

[PATCH] D48242: [ASTMatchers] Add support for matching the type of a friend decl.

2018-06-15 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added inline comments. Comment at: include/clang/ASTMatchers/ASTMatchers.h:2904 +internal::Matcher, InnerMatcher, 1) { + QualType QT = internal::getUnderlyingType(Node); + if (!QT.isNull()) In which cases can getUnderlyingType return a null type? R

[PATCH] D48242: [ASTMatchers] Add support for matching the type of a friend decl.

2018-06-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM aside from some minor nits. Comment at: include/clang/ASTMatchers/ASTMatchers.h:2900-2904 +AST_POLYMORPHIC_MATCHER_P_OVERLOAD( +hasType, +AST_POLYM

[PATCH] D48241: [DebugInfo] Emit ObjC methods as part of interface.

2018-06-15 Thread Jonas Devlieghere via Phabricator via cfe-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D48241#1134240, @dblaikie wrote: > Not sure I should get too involved in this discussion, knowing so little > about Objective C - but if it seems sensible, could you provide some examples > (just in comments/description in this code revi

[PATCH] D48249: [analyzer] Add stubs for argument construction contexts for arguments of C++ constructors and Objective-C messages.

2018-06-15 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ updated this revision to Diff 151584. NoQ added a comment. Whoops, that was an old patch. https://reviews.llvm.org/D48249 Files: lib/Analysis/CFG.cpp lib/Analysis/ConstructionContext.cpp test/Analysis/cfg-rich-constructors.cpp test/Analysis/cfg-rich-constructors.mm test/Analysis/t

[PATCH] D48249: [analyzer] Add stubs for argument construction contexts for arguments of C++ constructors and Objective-C messages.

2018-06-15 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ created this revision. NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet, rnkovacs. Herald added subscribers: cfe-commits, mikhail.ramalho, baloghadamsoftware. This is similar to https://reviews.llvm.org/D45650. Constructors of pass-by-value arguments aren't simi

[PATCH] D48241: [DebugInfo] Emit ObjC methods as part of interface.

2018-06-15 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added a comment. > could you provide some examples (just in comments/description in this code > review) of what the DWARF used to look like and what it looks like after this > change? Thus far an Objective-C interface is a DW_TAG_structure_type that only has variables and properties as

r334870 - [docs] -fsanitize=cfi only allowed with -fvisibility=

2018-06-15 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Jun 15 16:11:18 2018 New Revision: 334870 URL: http://llvm.org/viewvc/llvm-project?rev=334870&view=rev Log: [docs] -fsanitize=cfi only allowed with -fvisibility= Modified: cfe/trunk/docs/SanitizerStats.rst Modified: cfe/trunk/docs/SanitizerStats.rst URL: http://llv

[PATCH] D48241: [DebugInfo] Emit ObjC methods as part of interface.

2018-06-15 Thread Jonas Devlieghere via Phabricator via cfe-commits
JDevlieghere updated this revision to Diff 151580. JDevlieghere marked 5 inline comments as done. JDevlieghere added a comment. CR feedback https://reviews.llvm.org/D48241 Files: clang/lib/CodeGen/CGDebugInfo.cpp clang/lib/CodeGen/CGDebugInfo.h clang/test/CodeGenObjC/debug-info-synthesis.

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

2018-06-15 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: clang/lib/CodeGen/CGExprScalar.cpp:1623 + const CXXRecordDecl *SourceClassDecl = + E->getType().getTypePtr()->getPointeeCXXRecordDecl(); + const CXXRecordDecl *DstClassDecl = DestTy->getPointeeCXXRecordDecl(); ---

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

2018-06-15 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek marked an inline comment as done. Prazek added inline comments. Comment at: clang/lib/CodeGen/CGExprScalar.cpp:1624 + E->getType().getTypePtr()->getPointeeCXXRecordDecl(); + const CXXRecordDecl *DstClassDecl = DestTy->getPointeeCXXRecordDecl(); +

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

2018-06-15 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added inline comments. Comment at: clang/lib/CodeGen/CGExprScalar.cpp:1633 + bool DstMayNotBeDynamic = + !DstClassDecl || DstClassDecl->mayBeNotDynamicClass(); + if (SourceMayBeNotDynamic && DstMayBeDynamic) { rjmccall wrote: > If you ma

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

2018-06-15 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek updated this revision to Diff 151575. Prazek added a comment. Refactor Repository: rL LLVM https://reviews.llvm.org/D47299 Files: clang/include/clang/AST/DeclCXX.h clang/include/clang/AST/Type.h clang/lib/AST/Type.cpp clang/lib/CodeGen/CGExpr.cpp clang/lib/CodeGen/CGExprScal

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

2018-06-15 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek marked 5 inline comments as done. Prazek added inline comments. Comment at: clang/lib/CodeGen/CGExprScalar.cpp:1623 + const CXXRecordDecl *SourceClassDecl = + E->getType().getTypePtr()->getPointeeCXXRecordDecl(); + const CXXRecordDecl *DstClassDecl = Des

[PATCH] D48241: [DebugInfo] Emit ObjC methods as part of interface.

2018-06-15 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added a comment. Thanks! Is there also a companion patch for LLVM that disables the objc accelerator table? Note that this is not a 100% replacement of the apple_objc accelerator table, since the apple_objc table also lists all methods defined in categories of that interface. Is the id

r334850 - [X86] Lowering sqrt intrinsics to native IR

2018-06-15 Thread Tomasz Krupa via cfe-commits
Author: tkrupa Date: Fri Jun 15 11:05:59 2018 New Revision: 334850 URL: http://llvm.org/viewvc/llvm-project?rev=334850&view=rev Log: [X86] Lowering sqrt intrinsics to native IR Reviewers: craig.topper, spatel, RKSimon, igorb, uriel.k Reviewed By: craig.topper Subscribers: tkrupa, cfe-commits D

r334839 - bpf: recognize target specific option -mattr=dwarfris in clang

2018-06-15 Thread Yonghong Song via cfe-commits
Author: yhs Date: Fri Jun 15 08:53:31 2018 New Revision: 334839 URL: http://llvm.org/viewvc/llvm-project?rev=334839&view=rev Log: bpf: recognize target specific option -mattr=dwarfris in clang The following is the usage example with clang: bash-4.2$ clang -target bpf -O2 -g -c -Xclang -target-f

[PATCH] D48241: [DebugInfo] Emit ObjC methods as part of interface.

2018-06-15 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. Not sure I should get too involved in this discussion, knowing so little about Objective C - but if it seems sensible, could you provide some examples (just in comments/description in this code review) of what the DWARF used to look like and what it looks like after th

[PATCH] D48242: [ASTMatchers] Add support for matching the type of a friend decl.

2018-06-15 Thread David L. Jones via Phabricator via cfe-commits
dlj created this revision. dlj added a reviewer: klimek. dlj added a project: clang. This allows matchers like: friendDecl(hasType(cxxRecordDecl(...))) friendDecl(hasType(asString(...))) It seems that hasType is probably the most reasonable narrowing matcher to overload, since it is already

[PATCH] D48241: [DebugInfo] Emit ObjC methods as part of interface.

2018-06-15 Thread Jonas Devlieghere via Phabricator via cfe-commits
JDevlieghere created this revision. JDevlieghere added reviewers: aprantl, dexonsmith, dblaikie, labath. As brought up during the discussion of the DWARF5 accelerator tables, there is currently no way to associate Objective-C methods with the interface they belong to, other than the .apple_objc ac

[PATCH] D47196: [Time-report ](2): Recursive timers in Clang

2018-06-15 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. Can you give an example of what the output looks like? Please don't define multiple different classes with the same name SortClassName. It seems like you've scattered the "start" and "stop" calls all over the place; can you put the start and stop calls in the same plac

[PATCH] D47819: [test] Support using libtirpc on Linux

2018-06-15 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. Gentle ping. Repository: rCRT Compiler Runtime https://reviews.llvm.org/D47819 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D47817: [sanitizer_common] Fix using libtirpc on Linux

2018-06-15 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. Gentle ping. Repository: rCRT Compiler Runtime https://reviews.llvm.org/D47817 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D45532: [StaticAnalyzer] Checker to find uninitialized fields after a constructor call

2018-06-15 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. Ok, let's land this one and see how it goes! I'm looking forward to seeing the follow-up patches. Comment at: lib/StaticAnalyzer/Checkers/UninitializedObjectChecker.cpp:359-372 + // Checking bases. + const auto *CXXRD = dyn_ca

[PATCH] D35110: [Analyzer] Constraint Manager Negates Difference

2018-06-15 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. I still don't think i fully understand your concern? Could you provide an example and point out what exactly goes wrong? https://reviews.llvm.org/D35110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.

[PATCH] D35110: [Analyzer] Constraint Manager Negates Difference

2018-06-15 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. > In the iterator checkers we do not know anything about the rearranged > expressions, it has no access to the sum/difference, the whole purpose of > your proposal was to put in into the infrastructure. It wasn't. The purpose was merely to move (de-duplicate) the code that

[PATCH] D48151: [CUDA] Make __host__/__device__ min/max overloads constexpr in C++14.

2018-06-15 Thread Justin Lebar via Phabricator via cfe-commits
jlebar added a comment. In https://reviews.llvm.org/D48151#1133954, @rsmith wrote: > LGTM Thank you for the review, Richard. Will check this in once the whole stack is ready -- just need https://reviews.llvm.org/D48036. https://reviews.llvm.org/D48151

[PATCH] D48208: [Fuchsia] Enable static libc++, libc++abi, libunwind

2018-06-15 Thread Roland McGrath via Phabricator via cfe-commits
mcgrathr accepted this revision. mcgrathr added a comment. This revision is now accepted and ready to land. lgtm Repository: rC Clang https://reviews.llvm.org/D48208 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cg

r334859 - [Modules] Improve .Private fix-its to handle 'explicit' and 'framework'

2018-06-15 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Fri Jun 15 13:13:28 2018 New Revision: 334859 URL: http://llvm.org/viewvc/llvm-project?rev=334859&view=rev Log: [Modules] Improve .Private fix-its to handle 'explicit' and 'framework' When in the context of suggestion the fix-it from .Private to _Private for private modules, t

[PATCH] D48232: [analyzer] Fix symbolic-pointer-to-boolean casts during load.

2018-06-15 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ created this revision. NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet, rnkovacs. Herald added subscribers: cfe-commits, mikhail.ramalho, baloghadamsoftware. The canonical way to represent the result of casting `&SymRegion{$x}` to `bool` is `($x != 0)`, not `$x

[PATCH] D48151: [CUDA] Make __host__/__device__ min/max overloads constexpr in C++14.

2018-06-15 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 https://reviews.llvm.org/D48151 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[PATCH] D48204: [analyzer] Make getDerefExpr() skip cleanups.

2018-06-15 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: test/Analysis/inlining/inline-defensive-checks.cpp:93 +S *conjure(); +S *get_conjured(S _) { + S *s = conjure(); george.karpenkov wrote: > what is the argument doing? Causing cleanups (: Repository: rC Clang https://re

[PATCH] D41168: [X86] Lowering X86 avx512 sqrt intrinsics to IR

2018-06-15 Thread Simon Pilgrim via Phabricator via cfe-commits
RKSimon added a comment. LGTM as well Repository: rL LLVM https://reviews.llvm.org/D41168 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D41168: [X86] Lowering X86 avx512 sqrt intrinsics to IR

2018-06-15 Thread Tomasz Krupa 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 rL334850: [X86] Lowering sqrt intrinsics to native IR (authored by tkrupa, committed by ). Herald added a subscriber: llvm-c

r334847 - [X86] __builtin_ia32_prord512_mask, __builtin_ia32_prorq512_mask, __builtin_ia32_shufpd should only accept an ICE constant.

2018-06-15 Thread Craig Topper via cfe-commits
Author: ctopper Date: Fri Jun 15 10:40:37 2018 New Revision: 334847 URL: http://llvm.org/viewvc/llvm-project?rev=334847&view=rev Log: [X86] __builtin_ia32_prord512_mask, __builtin_ia32_prorq512_mask, __builtin_ia32_shufpd should only accept an ICE constant. The rotates also need to check for the

[PATCH] D47687: [Sema] Missing -Wlogical-op-parentheses warnings in macros (PR18971)

2018-06-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added reviewers: arphaman, ahatanak. dexonsmith added subscribers: arphaman, ahatanak. dexonsmith added a comment. In https://reviews.llvm.org/D47687#1133222, @Higuoxing wrote: > I think I am almost there. > > Here, In my sight > > #define foo(op0, op1, x, y, z) ( (void)(x op0 y op1

[PATCH] D47946: [ASTmporter] Fix infinite recursion on function import with struct definition in parameters

2018-06-15 Thread Zoltán Gera via Phabricator via cfe-commits
gerazo updated this revision to Diff 151533. gerazo added a comment. Updated to not conflict with and use the stuff implemented in https://reviews.llvm.org/D47445 (so became a bit smaller) Now, it is ready for a review. Enjoy! https://reviews.llvm.org/D47946 Files: lib/AST/ASTImporter.cpp

r334846 - [X86] The immediate argument to getmantpd*_mask should be an ICE and it should only be 4 bits wide.

2018-06-15 Thread Craig Topper via cfe-commits
Author: ctopper Date: Fri Jun 15 10:03:32 2018 New Revision: 334846 URL: http://llvm.org/viewvc/llvm-project?rev=334846&view=rev Log: [X86] The immediate argument to getmantpd*_mask should be an ICE and it should only be 4 bits wide. We already checked this for the scalar version, but missed the

[PATCH] D48204: [analyzer] Make getDerefExpr() skip cleanups.

2018-06-15 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov added inline comments. Comment at: test/Analysis/inlining/inline-defensive-checks.cpp:93 +S *conjure(); +S *get_conjured(S _) { + S *s = conjure(); what is the argument doing? Repository: rC Clang https://reviews.llvm.org/D48204

[PATCH] D48205: [analyzer] Assert that nonloc::SymbolVal always wraps a non-Loc-type symbol.

2018-06-15 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov accepted this revision. george.karpenkov added inline comments. This revision is now accepted and ready to land. Comment at: lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp:1241 if (const llvm::APSInt *I = - SVB.getKnownValue(State, nonloc::Symb

[PATCH] D47630: [Sema] Allow creating types with multiple of the same addrspace.

2018-06-15 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. LGTM! Thanks! https://reviews.llvm.org/D47630 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

[PATCH] D48224: Don't let test/Driver/no-canonical-prefixes.c form a symlink cycle the second time it runs.

2018-06-15 Thread Nico Weber via Phabricator via cfe-commits
thakis created this revision. thakis added a reviewer: chandlerc. The test makes %t.fake a symlink to %t.real by running `ln -sf %t.real %t.fake`. If %t.fake already is a symlink to %t.real when this runs (e.g. if the test has run before), then this effectively becomes `ln -sf %t.real %t.real`,

r334837 - [NFC] Add CreateMemTempWithoutCast and CreateTempAllocaWithoutCast

2018-06-15 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Fri Jun 15 08:33:22 2018 New Revision: 334837 URL: http://llvm.org/viewvc/llvm-project?rev=334837&view=rev Log: [NFC] Add CreateMemTempWithoutCast and CreateTempAllocaWithoutCast This is partial re-commit of r332982 Modified: cfe/trunk/lib/CodeGen/CGCall.cpp cfe/trun

[PATCH] D48151: [CUDA] Make __host__/__device__ min/max overloads constexpr in C++14.

2018-06-15 Thread Justin Lebar via Phabricator via cfe-commits
jlebar added a comment. @rsmith friendly ping on this review. https://reviews.llvm.org/D48151 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D48036: [CUDA] Make min/max shims host+device.

2018-06-15 Thread Justin Lebar via Phabricator via cfe-commits
jlebar added a comment. @rsmith friendly ping on this one. https://reviews.llvm.org/D48036 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D48188: [SPIR] Prevent SPIR targets from using half conversion intrinsics

2018-06-15 Thread Stephen McGroarty via Phabricator via cfe-commits
smcgro updated this revision to Diff 151512. https://reviews.llvm.org/D48188 Files: lib/Basic/Targets/SPIR.h test/CodeGen/spir-half-type.cpp Index: test/CodeGen/spir-half-type.cpp === --- /dev/null +++ test/CodeGen/spir-half-typ

[PATCH] D48188: [SPIR] Prevent SPIR targets from using half conversion intrinsics

2018-06-15 Thread Stephen McGroarty via Phabricator via cfe-commits
smcgro added a comment. Thanks for the feedback @SjoerdMeijer I've updated the commit message and responded to the comments Comment at: lib/Basic/Targets/SPIR.h:50 UseAddrSpaceMapMangling = true; +HasLegalHalfType = true; // Define available target features -

[clang-tools-extra] r334829 - [clang-tidy] This patch is a fix for D45405 where spaces were mistakenly considered as a part of a type name. So length("int *") was 5 instead of 3 with RemoveStars=0 or

2018-06-15 Thread Zinovy Nis via cfe-commits
Author: zinovy.nis Date: Fri Jun 15 06:35:40 2018 New Revision: 334829 URL: http://llvm.org/viewvc/llvm-project?rev=334829&view=rev Log: [clang-tidy] This patch is a fix for D45405 where spaces were mistakenly considered as a part of a type name. So length("int *") was 5 instead of 3 with Remove

[PATCH] D45927: [clang-tidy] [modernize-use-auto] Correct way to calculate a type name length for multi-token types

2018-06-15 Thread Zinovy Nis via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE334829: [clang-tidy] This patch is a fix for D45405 where spaces were mistakenly… (authored by zinovy.nis, committed by ). Changed prior to commit: https://reviews.llvm.org/D45927?vs=146677&id=151500#

[PATCH] D48163: [clangd] UI for completion items that would trigger include insertion.

2018-06-15 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE334828: [clangd] UI for completion items that would trigger include insertion. (authored by ioeric, committed by ). Changed prior to commit: https://reviews.llvm.org/D48163?vs=151498&id=151499#toc Re

[clang-tools-extra] r334828 - [clangd] UI for completion items that would trigger include insertion.

2018-06-15 Thread Eric Liu via cfe-commits
Author: ioeric Date: Fri Jun 15 06:34:18 2018 New Revision: 334828 URL: http://llvm.org/viewvc/llvm-project?rev=334828&view=rev Log: [clangd] UI for completion items that would trigger include insertion. Summary: For completion items that would trigger include insertions (i.e. index symbols that

[PATCH] D48163: [clangd] UI for completion items that would trigger include insertion.

2018-06-15 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 151498. ioeric added a comment. - clang-format again... Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48163 Files: clangd/CodeComplete.cpp clangd/CodeComplete.h clangd/Headers.cpp clangd/Headers.h test/clangd/completion-snippets.t

[PATCH] D48169: [mips] Add '-mcrc', '-mno-crc' options to enable/disable CRC ASE

2018-06-15 Thread Simon Atanasyan via Phabricator via cfe-commits
atanasyan accepted this revision. atanasyan added inline comments. This revision is now accepted and ready to land. Comment at: include/clang/Driver/Options.td:2214 HelpText<"Disable SVR4-style position-independent code (Mips only)">; +def mno_crc : Flag<["-"], "mno-crc">, Gro

[PATCH] D48163: [clangd] UI for completion items that would trigger include insertion.

2018-06-15 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clangd/CodeComplete.h:63 - // Populated internally by clangd, do not set. + /// Populated internally by clangd, do not set. /// If `Index` is set, it is used to augment the code completion sammccall wrote: > if you

[PATCH] D48163: [clangd] UI for completion items that would trigger include insertion.

2018-06-15 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 151497. ioeric added a comment. - fix typo and clang-format Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48163 Files: clangd/CodeComplete.cpp clangd/CodeComplete.h clangd/Headers.cpp clangd/Headers.h test/clangd/completion-snippe

[PATCH] D48163: [clangd] UI for completion items that would trigger include insertion.

2018-06-15 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 151496. ioeric marked 6 inline comments as done. ioeric added a comment. - addressed review comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48163 Files: clangd/CodeComplete.cpp clangd/CodeComplete.h clangd/Headers.cpp clangd

[PATCH] D48169: [mips] Add '-mcrc', '-mno-crc' options to enable/disable CRC ASE

2018-06-15 Thread Simon Dardis via Phabricator via cfe-commits
sdardis added inline comments. Comment at: include/clang/Driver/Options.td:2214 HelpText<"Disable SVR4-style position-independent code (Mips only)">; +def mno_crc : Flag<["-"], "mno-crc">, Group, + HelpText<"Disallow use of CRC instructions (Mips only)">; ata

[PATCH] D48163: [clangd] UI for completion items that would trigger include insertion.

2018-06-15 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/CodeComplete.cpp:313 +I.label = +(InsertingInclude ? Opts.IncludeInsertionIndicator : " ") + I.label; I.scoreInfo = Scores; sammccall wrote: > string(IncludeInsertionIndicator.size(), ' ')? oops

[PATCH] D48169: [mips] Add '-mcrc', '-mno-crc' options to enable/disable CRC ASE

2018-06-15 Thread Simon Atanasyan via Phabricator via cfe-commits
atanasyan added inline comments. Comment at: include/clang/Driver/Options.td:2214 HelpText<"Disable SVR4-style position-independent code (Mips only)">; +def mno_crc : Flag<["-"], "mno-crc">, Group, + HelpText<"Disallow use of CRC instructions (Mips only)">; D

[PATCH] D48163: [clangd] UI for completion items that would trigger include insertion.

2018-06-15 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:301 + } else if (!IncludePath->empty()) { +if (auto Edit = Includes.insert(*IncludePath)) { +

[PATCH] D47474: Implement cpu_dispatch/cpu_specific Multiversioning

2018-06-15 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. Just a quick bump, I know most of you are still recovering from the Switzerland trip, but hopefully the others will have some time. https://reviews.llvm.org/D47474 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang-tools-extra] r334824 - [clangd] context key constructor is constexpr. NFC

2018-06-15 Thread Sam McCall via cfe-commits
Author: sammccall Date: Fri Jun 15 05:39:21 2018 New Revision: 334824 URL: http://llvm.org/viewvc/llvm-project?rev=334824&view=rev Log: [clangd] context key constructor is constexpr. NFC Modified: clang-tools-extra/trunk/clangd/Context.h Modified: clang-tools-extra/trunk/clangd/Context.h URL

[PATCH] D48163: [clangd] UI for completion items that would trigger include insertion.

2018-06-15 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. Thanks for the review! Comment at: clangd/CodeComplete.cpp:187 + // Whether or not this candidate is in a completion where index is allowed. + // This can affect how items are built (e.g. indent label to align with visual + // indicator in index resu

[PATCH] D48163: [clangd] UI for completion items that would trigger include insertion.

2018-06-15 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 151492. ioeric marked 6 inline comments as done. ioeric added a comment. - Addressed review comments. - Merged with orgin/master Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48163 Files: clangd/CodeComplete.cpp clangd/CodeComplete.h

[PATCH] D47957: [clangd] Add option to fold overloads into a single completion item.

2018-06-15 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. sammccall marked an inline comment as done. Closed by commit rCTE334822: [clangd] Add option to fold overloads into a single completion item. (authored by sammccall, committed by ). Changed prior to commit: https://review

[clang-tools-extra] r334822 - [clangd] Add option to fold overloads into a single completion item.

2018-06-15 Thread Sam McCall via cfe-commits
Author: sammccall Date: Fri Jun 15 04:06:29 2018 New Revision: 334822 URL: http://llvm.org/viewvc/llvm-project?rev=334822&view=rev Log: [clangd] Add option to fold overloads into a single completion item. Summary: Adds a CodeCompleteOption to folds together compatible function/method overloads in

[PATCH] D47957: [clangd] Add option to fold overloads into a single completion item.

2018-06-15 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov accepted this revision. ilya-biryukov added a comment. This revision is now accepted and ready to land. LGTM. (and a question on why we want to special-case the members) Comment at: clangd/CodeComplete.cpp:245 +// Methods are simply grouped by name. +

r334820 - [AArch64] Reverted rC334696 with Clang VCVTA test fix

2018-06-15 Thread Luke Geeson via cfe-commits
Author: lukegeeson Date: Fri Jun 15 03:10:45 2018 New Revision: 334820 URL: http://llvm.org/viewvc/llvm-project?rev=334820&view=rev Log: [AArch64] Reverted rC334696 with Clang VCVTA test fix Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp cfe/trunk/test/CodeGen/aarch64-v8.2a-neon-intrinsic

[PATCH] D48211: [clangd] Do not show namespace comments.

2018-06-15 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added a reviewer: sammccall. Herald added subscribers: jkorous, MaskRay, ioeric. Comments from namespaces that clangd produces are too noisy and often not useful. Namespaces have too many redecls and we don't have a good way of determining which

[PATCH] D47957: [clangd] Add option to fold overloads into a single completion item.

2018-06-15 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 151476. sammccall marked an inline comment as done. sammccall added a comment. Review comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47957 Files: clangd/CodeComplete.cpp clangd/CodeComplete.h clangd/tool/ClangdMain.cpp un

[PATCH] D47957: [clangd] Add option to fold overloads into a single completion item.

2018-06-15 Thread Sam McCall via Phabricator via cfe-commits
sammccall marked 4 inline comments as done. sammccall added inline comments. Comment at: clangd/CodeComplete.cpp:245 +// Methods are simply grouped by name. +return hash_combine('M', IndexResult->Name); + case index::SymbolKind::Function: ily

[PATCH] D48188: [SPIR] Prevent SPIR targets from using half conversion intrinsics

2018-06-15 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer added a comment. I know very little about SPIR, and Initially didn't understand this: > The SPIR target currently allows for half precision floating point types to > use the LLVM intrinsic functions to convert to floats and doubles. This is > illegal in SPIR as the only intrinsic a

[clang-tools-extra] r334812 - [clangd] Fix buildbot error.

2018-06-15 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Jun 15 02:32:36 2018 New Revision: 334812 URL: http://llvm.org/viewvc/llvm-project?rev=334812&view=rev Log: [clangd] Fix buildbot error. Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp URL: http://l

[PATCH] D47935: [clangd] Boost completion score according to file proximity.

2018-06-15 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL334810: [clangd] Boost completion score according to file proximity. (authored by ioeric, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D47935 F

[clang-tools-extra] r334810 - [clangd] Boost completion score according to file proximity.

2018-06-15 Thread Eric Liu via cfe-commits
Author: ioeric Date: Fri Jun 15 01:58:12 2018 New Revision: 334810 URL: http://llvm.org/viewvc/llvm-project?rev=334810&view=rev Log: [clangd] Boost completion score according to file proximity. Summary: Also move unittest: URI scheme to TestFS so that it can be shared by different tests. Reviewe

[PATCH] D47935: [clangd] Boost completion score according to file proximity.

2018-06-15 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. Thanks for the review! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47935 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D47935: [clangd] Boost completion score according to file proximity.

2018-06-15 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 151469. ioeric marked 6 inline comments as done. ioeric added a comment. - addressed review comments and rebase. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47935 Files: clangd/CodeComplete.cpp clangd/Quality.cpp clangd/Quality.h

[PATCH] D47931: [clangd] Customizable URI schemes for dynamic index.

2018-06-15 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: unittests/clangd/FileIndexTests.cpp:99 +class TestURIScheme : public URIScheme { +public: sammccall wrote: > This can use the shared unittest: scheme from the followup patch, right? > > Add a fixme or lift that into th

[PATCH] D47931: [clangd] Customizable URI schemes for dynamic index.

2018-06-15 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL334809: [clangd] Customizable URI schemes for dynamic index. (authored by ioeric, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D47931 Files:

[clang-tools-extra] r334809 - [clangd] Customizable URI schemes for dynamic index.

2018-06-15 Thread Eric Liu via cfe-commits
Author: ioeric Date: Fri Jun 15 01:55:00 2018 New Revision: 334809 URL: http://llvm.org/viewvc/llvm-project?rev=334809&view=rev Log: [clangd] Customizable URI schemes for dynamic index. Summary: This allows dynamic index to have consistent URI schemes with the static index which can have customiz

[PATCH] D47931: [clangd] Customizable URI schemes for dynamic index.

2018-06-15 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 151467. ioeric marked an inline comment as done. ioeric added a comment. - Pulled unittest URI refactoring from https://reviews.llvm.org/D47935 Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47931 Files: clangd/ClangdServer.cpp clangd/Cl

[PATCH] D47931: [clangd] Customizable URI schemes for dynamic index.

2018-06-15 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: unittests/clangd/FileIndexTests.cpp:99 +class TestURIScheme : public URIScheme { +public: This can use the shared unittest: scheme fr

[PATCH] D48171: [clangd] Do not report comments that only have special chars.

2018-06-15 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL334807: [clangd] Do not report comments that only have special chars. (authored by ibiryukov, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D4817

[clang-tools-extra] r334807 - [clangd] Do not report comments that only have special chars.

2018-06-15 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Jun 15 01:31:17 2018 New Revision: 334807 URL: http://llvm.org/viewvc/llvm-project?rev=334807&view=rev Log: [clangd] Do not report comments that only have special chars. Summary: Like the following: // --- // === // *** It does not cover all the case

[PATCH] D47957: [clangd] Add option to fold overloads into a single completion item.

2018-06-15 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Overall LG. It would be nice to mention somewhere that we since we bundle overloads client-side we might run into weird side-effects (e.g. return less completion items than the specified limit) in case the index returns too many non-bundled. Co

[PATCH] D47957: [clangd] Add option to fold overloads into a single completion item.

2018-06-15 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Oh, sorry, I forgot to submit the comments yesterday :-( Comment at: clangd/CodeComplete.cpp:245 +// Methods are simply grouped by name. +return hash_combine('M', IndexResult->Name); + case index::SymbolKind::Function: ---

[PATCH] D45202: [X86] Replacing X86-specific floor and ceil vector intrinsics with generic LLVM intrinsics

2018-06-15 Thread Mikhail Dvoretckii via Phabricator via cfe-commits
mike.dvoretsky abandoned this revision. mike.dvoretsky added a comment. Abandoning this due to https://reviews.llvm.org/D48067 being accepted instead. https://reviews.llvm.org/D45202 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lis

[PATCH] D47935: [clangd] Boost completion score according to file proximity.

2018-06-15 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. Thanks! Just nits Comment at: clangd/Quality.cpp:304 OS << formatv("\tForbidden: {0}\n", S.Forbidden); - OS << formatv("\tProximity: {0}\n", S.ProximityScore); + O

[PATCH] D47687: [Sema] Missing -Wlogical-op-parentheses warnings in macros (PR18971)

2018-06-15 Thread Xing via Phabricator via cfe-commits
Higuoxing added a comment. Ping https://reviews.llvm.org/D47687 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D47687: [Sema] Missing -Wlogical-op-parentheses warnings in macros (PR18971)

2018-06-15 Thread Xing via Phabricator via cfe-commits
Higuoxing updated this revision to Diff 151460. Higuoxing added a comment. I think I am almost there. Here, In my sight #define foo(op0, op1, x, y, z) ( (void)(x op0 y op1 z) ) is un-actionable, because `x op0 y op1 z` are from different arguments of function-like macro, so, we will not chec