Re: [PATCH] D23293: Some place that could using TargetParser in clang

2016-08-16 Thread jojo.ma via cfe-commits
jojo closed this revision. jojo added a comment. Committed r278890. https://reviews.llvm.org/D23293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r278906 - [ThinLTO] Adapt backend invocation to llvm API changes.

2016-08-16 Thread Mehdi Amini via cfe-commits
Author: mehdi_amini Date: Wed Aug 17 01:23:08 2016 New Revision: 278906 URL: http://llvm.org/viewvc/llvm-project?rev=278906&view=rev Log: [ThinLTO] Adapt backend invocation to llvm API changes. Reviewers: tejohnson Subscribers: mehdi_amini, llvm-commits Differential Revision: https://reviews.ll

Re: r266775 - Pass dwarf-version to cc1as.

2016-08-16 Thread Dimitry Andric via cfe-commits
Ah, I missed Doug's follow-up commit r266797, which moved the code again. I noticed that the RenderDebugEnablingArgs() call was missing in the spot indicated below, but it was only moved. -Dimitry > On 17 Aug 2016, at 01:17, Hans Wennborg wrote: > > Looks like it was committed back in April,

[libcxx] r278904 - Support allocators with explicit conversion constructors. Fixes bug #29000

2016-08-16 Thread Marshall Clow via cfe-commits
Author: marshall Date: Wed Aug 17 00:58:40 2016 New Revision: 278904 URL: http://llvm.org/viewvc/llvm-project?rev=278904&view=rev Log: Support allocators with explicit conversion constructors. Fixes bug #29000 Modified: libcxx/trunk/include/map libcxx/trunk/include/unordered_map libcx

Re: [PATCH] D23595: [Clang] Fix some Clang-tidy modernize-use-using and Include What You Use warnings

2016-08-16 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: include/clang/Basic/IdentifierTable.h:34 @@ -26,2 +33,3 @@ namespace llvm { + template struct DenseMapInfo; Not sure the whitespace adds any benefit here. Comment at: include/clang/Basic/Identifier

Re: [PATCH] D23343: [clang-tidy] modernize-make-{smart_ptr} private ctor bugfix

2016-08-16 Thread Piotr Padlewski via cfe-commits
Prazek added inline comments. Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:35 @@ +34,3 @@ + auto CanCallCtor = unless(has(ignoringImpCasts(cxxConstructExpr( + hasDeclaration(decl(anyOf(isPrivate(), isProtected(; + aaron.ballman wrote: > Pra

r278898 - CodeGen: Avoid dereferencing end() in ScalarExprEmitter::EmitOverflowCheckedBinOp

2016-08-16 Thread Duncan P. N. Exon Smith via cfe-commits
Author: dexonsmith Date: Tue Aug 16 22:15:29 2016 New Revision: 278898 URL: http://llvm.org/viewvc/llvm-project?rev=278898&view=rev Log: CodeGen: Avoid dereferencing end() in ScalarExprEmitter::EmitOverflowCheckedBinOp Use BB.getNextNode(), which returns nullptr on end(), instead of &*BB.getIter

r278897 - [PM] Update Clang for LLVM's r278896 which re-organized a header.

2016-08-16 Thread Chandler Carruth via cfe-commits
Author: chandlerc Date: Tue Aug 16 22:09:11 2016 New Revision: 278897 URL: http://llvm.org/viewvc/llvm-project?rev=278897&view=rev Log: [PM] Update Clang for LLVM's r278896 which re-organized a header. (sorry this didn't get landed closer in time...) Modified: cfe/trunk/lib/CodeGen/BackendUt

Re: [PATCH] D21675: New ODR checker for modules

2016-08-16 Thread Richard Trieu via cfe-commits
rtrieu updated this revision to Diff 68278. rtrieu added a comment. Add function void ODRHash(llvm::FoldingSetNodeID &ID) to several classes for computing the hash. Decl, Stmt, TemplateArgument, Type and QualType now have this function, and can call among each others' functions. https://revie

Re: [PATCH] D23125: Modules: add command line option to support loading prebuilt modules on demand, without parsing any module map

2016-08-16 Thread Manman Ren via cfe-commits
manmanren added a comment. Richard, Are you okay with the patch now? Thanks, Manman https://reviews.llvm.org/D23125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r278891 - Add missing close brace to fix Windows bots. Oops :(

2016-08-16 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Aug 16 21:22:39 2016 New Revision: 278891 URL: http://llvm.org/viewvc/llvm-project?rev=278891&view=rev Log: Add missing close brace to fix Windows bots. Oops :( Modified: cfe/trunk/tools/driver/cc1_main.cpp Modified: cfe/trunk/tools/driver/cc1_main.cpp URL: http://l

r278890 - Some missing usage of TargetParser. NFC.

2016-08-16 Thread Zijiao Ma via cfe-commits
Author: zijiaoma Date: Tue Aug 16 21:13:33 2016 New Revision: 278890 URL: http://llvm.org/viewvc/llvm-project?rev=278890&view=rev Log: Some missing usage of TargetParser. NFC. Modified: cfe/trunk/lib/Basic/Targets.cpp cfe/trunk/lib/Driver/Tools.cpp Modified: cfe/trunk/lib/Basic/Targets.c

Re: Nomination for 3.9: r278786 - Left shifts of negative values are defined if -fwrapv is set

2016-08-16 Thread Richard Smith via cfe-commits
Looks fine to me. (At one point we were deliberately not following GCC in making -fwrapv affect left shift, because it's a bit operation rather than an arithmetic one, but this is ultimately supposed to be a GCC-compatible flag so behaving as they do seems reasonable.) On Tue, Aug 16, 2016 at 9:38

Re: [PATCH] D15031: CFG: Add CFGElement for automatic variables that leave the scope

2016-08-16 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. Thanks for patch! Some comments inline. You don't have to do it in this patch, but I think it would be good to get this working with AddImplicitDtors. I think it would also be good to (eventually) add CFGElements marking when the storage duration for underlying storag

r278882 - If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work

2016-08-16 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Aug 16 20:05:07 2016 New Revision: 278882 URL: http://llvm.org/viewvc/llvm-project?rev=278882&view=rev Log: If possible, set the stack rlimit to at least 8MiB on cc1 startup, and work around a Linux kernel bug where the actual amount of available stack may be a *lot* lower

[PATCH] D23596: [Documentation] Remove duplicated checks groups descriptions form clang-tidy/index.rst

2016-08-16 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko created this revision. Eugene.Zelenko added a reviewer: alexfh. Eugene.Zelenko added a subscriber: cfe-commits. Eugene.Zelenko set the repository for this revision to rL LLVM. Checks are described at beginning and directory names follow name prefixes, so another list is redundant.

[PATCH] D23595: [Clang] Fix some Clang-tidy modernize-use-using and Include What You Use warnings

2016-08-16 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko created this revision. Eugene.Zelenko added reviewers: compnerd, mehdi_amini. Eugene.Zelenko added a subscriber: cfe-commits. Eugene.Zelenko set the repository for this revision to rL LLVM. I checked this patch on my own build on RHEL 6. Regressions were OK. Repository: rL LLVM

Re: r277852 - PR26423: Assert on valid use of using declaration of a function with an undeduced auto return type

2016-08-16 Thread Hans Wennborg via cfe-commits
On Fri, Aug 5, 2016 at 12:03 PM, David Blaikie via cfe-commits wrote: > Author: dblaikie > Date: Fri Aug 5 14:03:01 2016 > New Revision: 277852 > > URL: http://llvm.org/viewvc/llvm-project?rev=277852&view=rev > Log: > PR26423: Assert on valid use of using declaration of a function with an > unde

Re: [PATCH] D23585: [ASTMatchers] Add narrowing matcher: hasExternalFormalLinkage

2016-08-16 Thread Visoiu Mistrih Francis via cfe-commits
thegameg marked an inline comment as done. thegameg added a comment. https://reviews.llvm.org/D23585 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23585: [ASTMatchers] Add narrowing matcher: hasExternalFormalLinkage

2016-08-16 Thread Visoiu Mistrih Francis via cfe-commits
thegameg updated this revision to Diff 68288. thegameg added a comment. Mention UniqueExternalLinkage type, add a test according to it. `EXPECT_FALSE(matches(` -> `EXPECT_TRUE(notMatches(` https://reviews.llvm.org/D23585 Files: include/clang/ASTMatchers/ASTMatchers.h unittests/ASTMatchers/A

Re: [PATCH] D23585: [ASTMatchers] Add narrowing matcher: hasExternalFormalLinkage

2016-08-16 Thread Visoiu Mistrih Francis via cfe-commits
thegameg updated this revision to Diff 68290. thegameg added a comment. Sorry, sent the wrong patch. https://reviews.llvm.org/D23585 Files: docs/LibASTMatchersReference.html include/clang/ASTMatchers/ASTMatchers.h lib/ASTMatchers/Dynamic/Registry.cpp unittests/ASTMatchers/ASTMatchersNar

Re: [PATCH] D23585: [ASTMatchers] Add narrowing matcher: hasExternalFormalLinkage

2016-08-16 Thread Visoiu Mistrih Francis via cfe-commits
thegameg marked an inline comment as done. thegameg added a comment. https://reviews.llvm.org/D23585 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22929: [CodeGen][ObjC] Fix infinite recursion in getObjCEncodingForTypeImpl

2016-08-16 Thread Manman Ren via cfe-commits
manmanren accepted this revision. manmanren added a reviewer: manmanren. manmanren added a comment. This revision is now accepted and ready to land. LGTM. Manman https://reviews.llvm.org/D22929 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

Re: r266775 - Pass dwarf-version to cc1as.

2016-08-16 Thread Hans Wennborg via cfe-commits
Looks like it was committed back in April, so unless I'm missing something it should already be in the branch (which was cut mid-July). Thanks, Hans On Tue, Aug 16, 2016 at 2:16 PM, Dimitry Andric wrote: > Hi Hans, > > Can we please merge this one to release_39 too? I forgot all about it, sorry

Re: [PATCH] D23585: [ASTMatchers] Add narrowing matcher: hasExternalFormalLinkage

2016-08-16 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: aaron.ballman. aaron.ballman added a reviewer: aaron.ballman. aaron.ballman added a comment. A few minor nits, but thank you for the patch! Comment at: include/clang/ASTMatchers/ASTMatchers.h:5481 @@ +5480,3 @@ +/// +/// Example matches only z (

[PATCH] D23585: [ASTMatchers] Add narrowing matcher: hasExternalFormalLinkage

2016-08-16 Thread Visoiu Mistrih Francis via cfe-commits
thegameg created this revision. thegameg added reviewers: bkramer, alexfh, hokein. thegameg added a subscriber: cfe-commits. Herald added a subscriber: klimek. Matches NamedDecl nodes whose linkage is external. https://reviews.llvm.org/D23585 Files: docs/LibASTMatchersReference.html include/

Re: [PATCH] D23343: [clang-tidy] modernize-make-{smart_ptr} private ctor bugfix

2016-08-16 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:35 @@ +34,3 @@ + auto CanCallCtor = unless(has(ignoringImpCasts(cxxConstructExpr( + hasDeclaration(decl(anyOf(isPrivate(), isProtected(; + Prazek wrote: > aar

Re: [PATCH] D23343: [clang-tidy] modernize-make-{smart_ptr} private ctor bugfix

2016-08-16 Thread Piotr Padlewski via cfe-commits
Prazek added inline comments. Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:35 @@ +34,3 @@ + auto CanCallCtor = unless(has(ignoringImpCasts(cxxConstructExpr( + hasDeclaration(decl(anyOf(isPrivate(), isProtected(; + aaron.ballman wrote: > Per

Re: [PATCH] D23462: Emit debug info for dynamic classes if they are imported from a DLL

2016-08-16 Thread Adrian McCarthy via cfe-commits
amccarth closed this revision. amccarth added a comment. Closed by r278861 https://reviews.llvm.org/D23462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r278862 - [CMake] Workflow improvements to PGO generation

2016-08-16 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Tue Aug 16 17:16:29 2016 New Revision: 278862 URL: http://llvm.org/viewvc/llvm-project?rev=278862&view=rev Log: [CMake] Workflow improvements to PGO generation This patch adds a few new convenience options used by the PGO CMake cache to setup options on bootstrap stages.

r278861 - Emit debug info for dynamic classes if they are imported from a DLL.

2016-08-16 Thread Adrian McCarthy via cfe-commits
Author: amccarth Date: Tue Aug 16 17:11:18 2016 New Revision: 278861 URL: http://llvm.org/viewvc/llvm-project?rev=278861&view=rev Log: Emit debug info for dynamic classes if they are imported from a DLL. With -debug-info-kind=limited, we omit debug info for dynamic classes that live in other TUs

Re: [PATCH] D9403: llvm.noalias - Clang CodeGen for local restrict-qualified pointers

2016-08-16 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGStmt.cpp:525 @@ +524,3 @@ +void CodeGenFunction::LexicalNoAliasInfo::addNoAliasMD() { + if (MemoryInsts.empty() || NoAliasScopes.empty()) +return; It's much more likely that NoAliasScopes will be empty

Re: [PATCH] D22929: [CodeGen][ObjC] Fix infinite recursion in getObjCEncodingForTypeImpl

2016-08-16 Thread Akira Hatanaka via cfe-commits
ahatanak added inline comments. Comment at: test/CodeGenObjCXX/encode.mm:231 @@ +230,3 @@ +struct S { + typedef T Ty; + Ty *t; manmanren wrote: > I wonder if we can further reduce the testing case. Is this necessary to > cause the infinite recursion? Yes. If I

Re: [PATCH] D9403: llvm.noalias - Clang CodeGen for local restrict-qualified pointers

2016-08-16 Thread Hal Finkel via cfe-commits
hfinkel added inline comments. Comment at: lib/CodeGen/CGStmt.cpp:537 @@ +536,3 @@ + llvm::LLVMContext::MD_noalias), + NewScopeList)); + rjmccall wrote: > This is a very strange representati

Re: [PATCH] D23462: Emit debug info for dynamic classes if they are imported from a DLL

2016-08-16 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm https://reviews.llvm.org/D23462 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D23581: [GraphWriter] Change GraphWriter to use NodeRef in GraphTraits

2016-08-16 Thread Tim Shen via cfe-commits
timshen created this revision. timshen added a reviewer: dblaikie. timshen added a subscriber: cfe-commits. Corresponding LLVM patch: D23580 https://reviews.llvm.org/D23581 Files: lib/Serialization/ModuleManager.cpp Index: lib/Serialization/ModuleManager.cpp ==

Re: r266775 - Pass dwarf-version to cc1as.

2016-08-16 Thread Dimitry Andric via cfe-commits
Hi Hans, Can we please merge this one to release_39 too? I forgot all about it, sorry. Doug, can you please approve? -Dimitry > On 19 Apr 2016, at 19:43, Douglas Katzman via cfe-commits > wrote: > > Author: dougk > Date: Tue Apr 19 12:43:54 2016 > New Revision: 266775 > > URL: http://llvm.

r278849 - [CMake] [Apple Cache] Set CLANG_VENDOR_UTI for Apple builds

2016-08-16 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Tue Aug 16 15:44:58 2016 New Revision: 278849 URL: http://llvm.org/viewvc/llvm-project?rev=278849&view=rev Log: [CMake] [Apple Cache] Set CLANG_VENDOR_UTI for Apple builds This is just a minor update to the Apple packaging configuration. Modified: cfe/trunk/cmake/cach

Re: [PATCH] D23322: [OpenCL] AMDGPU: Add extensions cl_amd_media_ops and cl_amd_media_ops2

2016-08-16 Thread Yaxun Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278851: [OpenCL] AMDGPU: Add extensions cl_amd_media_ops and cl_amd_media_ops2 (authored by yaxunl). Changed prior to commit: https://reviews.llvm.org/D23322?vs=67358&id=68250#toc Repository: rL LLVM

r278851 - [OpenCL] AMDGPU: Add extensions cl_amd_media_ops and cl_amd_media_ops2

2016-08-16 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Tue Aug 16 15:49:49 2016 New Revision: 278851 URL: http://llvm.org/viewvc/llvm-project?rev=278851&view=rev Log: [OpenCL] AMDGPU: Add extensions cl_amd_media_ops and cl_amd_media_ops2 Differential Revision: https://reviews.llvm.org/D23322 Modified: cfe/trunk/include/clang

r278850 - [CMake] Fixing typo in Info.plist generation

2016-08-16 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Tue Aug 16 15:49:49 2016 New Revision: 278850 URL: http://llvm.org/viewvc/llvm-project?rev=278850&view=rev Log: [CMake] Fixing typo in Info.plist generation This is causing an error in the generation of the clang info plist. Modified: cfe/trunk/tools/driver/Info.plist

Re: [PATCH] D23361: [OpenCL] AMDGCN: Fix size_t type

2016-08-16 Thread Matt Arsenault via cfe-commits
arsenm added inline comments. Comment at: lib/CodeGen/CodeGenModule.h:664 @@ +663,3 @@ + /// Get integer type of the same size as a pointer type. + llvm::IntegerType *getIntPtrTy(llvm::PointerType *PT); + This has the same purpose as DataLayout::getIntPtrType, s

Re: [PATCH] D23536: Remove excessive padding from ImmOp and RegOp.

2016-08-16 Thread Matt Arsenault via cfe-commits
arsenm closed this revision. arsenm added a comment. r278844 https://reviews.llvm.org/D23536 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r278842 - Try to work around an MSVC 2013 bug around defaulted default ctors

2016-08-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Aug 16 15:20:56 2016 New Revision: 278842 URL: http://llvm.org/viewvc/llvm-project?rev=278842&view=rev Log: Try to work around an MSVC 2013 bug around defaulted default ctors An UnresolvedSetIterator() is supposed to be zeroed out, but MSVC 2013 does not do that. Modified:

Re: [PATCH] D22794: [Sema] Propagate nullability when deducing type of auto

2016-08-16 Thread Akira Hatanaka via cfe-commits
ahatanak added a comment. I didn't think of this case, but no, it isn't a good idea. We shouldn't issue a warning unless we know the returned pointer is nullable. Comment at: lib/Sema/SemaDecl.cpp:9739 @@ +9738,3 @@ + DeducedType = DeducedType.setNullability( + In

Re: [PATCH] D23573: [OpenCL] Add extension cl_khr_subgroups to clang

2016-08-16 Thread Yaxun Liu via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. This revision is now accepted and ready to land. LGTM. Thanks! Better update the title to be `[OpenCL] AMDGPU: add support of cl_khr_subgroups` since cl_khr_subgroups is already in clang. Repository: rL LLVM https://reviews.llvm.org/D23

Re: [PATCH] D23361: [OpenCL] AMDGCN: Fix size_t type

2016-08-16 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 68241. yaxunl added a comment. Remove language dependency. Choose proper integer types for pointer arithmetic. https://reviews.llvm.org/D23361 Files: include/clang/Basic/TargetInfo.h lib/Basic/TargetInfo.cpp lib/Basic/Targets.cpp lib/CodeGen/CGExprSc

Re: [PATCH] D23546: Remove excessive padding from LineNoCacheTy

2016-08-16 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278838: Remove excessive padding from LineNoCacheTy (authored by d0k). Changed prior to commit: https://reviews.llvm.org/D23546?vs=68153&id=68240#toc Repository: rL LLVM https://reviews.llvm.org/D23

Re: [PATCH] D23555: [analyzer] CloneDetector now checks template arguments of function calls.

2016-08-16 Thread Artem Dergachev via cfe-commits
NoQ added inline comments. Comment at: lib/Analysis/CloneDetection.cpp:154 @@ -153,2 +153,3 @@ // Function pointers don't have a callee and we just skip hashing it. -if (S->getDirectCallee()) +if (S->getDirectCallee()) { + // If the function is a template instant

Re: [PATCH] D23361: [OpenCL] AMDGCN: Fix size_t type

2016-08-16 Thread Yaxun Liu via cfe-commits
yaxunl added inline comments. Comment at: lib/CodeGen/CodeGenModule.cpp:101 @@ -100,3 +100,3 @@ DoubleTy = llvm::Type::getDoubleTy(LLVMContext); PointerWidthInBits = C.getTargetInfo().getPointerWidth(0); PointerAlignInBytes = joey wrote: > What if you cre

Re: [PATCH] D23546: Remove excessive padding from LineNoCacheTy

2016-08-16 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. Thanks, no, i don't. I will be grateful to you if you land this patch. https://reviews.llvm.org/D23546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23546: Remove excessive padding from LineNoCacheTy

2016-08-16 Thread Benjamin Kramer via cfe-commits
bkramer accepted this revision. bkramer added a comment. This revision is now accepted and ready to land. looks good, thanks. Do you have commit access? https://reviews.llvm.org/D23546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://l

Re: [PATCH] D23375: Add kfree( ) to MallocChecker.cpp

2016-08-16 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. I would recommend putting the tests in existing test files next to tests that for similar diagnostics for other allocation/free schemes. So the test for printExpectedAllocName() should go in test/Analysis/free.c and the test for printExpectedDeallocName() should proba

Re: [PATCH] D23531: [Darwin] Stop linking libclang_rt.eprintf.a

2016-08-16 Thread Chris Bieneman via cfe-commits
Today, the code includes the eprintf archive on all linker invocations for i386 that include the OS X archive. Removing the eprintf library from the command and including eprintf only for i386 in the OS X archive should be equivalent to what we have today. -Chris > On Aug 16, 2016, at 8:27 AM,

[PATCH] D23573: [OpenCL] Add extension cl_khr_subgroups to clang

2016-08-16 Thread Aaron En Ye Shi via cfe-commits
ashi1 created this revision. ashi1 added reviewers: yaxunl, Anastasia. ashi1 added a subscriber: cfe-commits. ashi1 set the repository for this revision to rL LLVM. Adding extension cl_khr_subgroups to clang's OpenCL Extensions and initiated inside AMDGPU Target. Similar to https://reviews.llvm.o

Re: [PATCH] D23462: Emit debug info for dynamic classes if they are imported from a DLL

2016-08-16 Thread Adrian McCarthy via cfe-commits
amccarth added inline comments. Comment at: lib/CodeGen/CGDebugInfo.cpp:1688-1689 @@ -1687,3 +1687,4 @@ - if (CXXDecl->hasDefinition() && CXXDecl->isDynamicClass()) + if (CXXDecl->hasDefinition() && CXXDecl->isDynamicClass() && + !CXXDecl->hasAttr()) return true; ---

Re: [PATCH] D23462: Emit debug info for dynamic classes if they are imported from a DLL

2016-08-16 Thread Adrian McCarthy via cfe-commits
amccarth updated this revision to Diff 68225. amccarth added a comment. Add comment as requested. https://reviews.llvm.org/D23462 Files: lib/CodeGen/CGDebugInfo.cpp test/CodeGenCXX/debug-info-dllimport-base-class.cpp Index: test/CodeGenCXX/debug-info-dllimport-base-class.cpp ==

Re: [PATCH] D23455: [Tooling] Parse compilation database command lines properly on Windows

2016-08-16 Thread Manuel Klimek via cfe-commits
klimek added a reviewer: diltsman. klimek added a comment. +Daniel dilts who wrote the arguments support One problem is that getting into the game of parsing arbitrary shell modes is rather ugly. https://reviews.llvm.org/D23455 ___ cfe-commits mai

Re: [PATCH] D23003: [ObjC Availability] Warn upon unguarded use of partially available declaration

2016-08-16 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278826: [ObjC] Warn on unguarded use of partial declaration (authored by epilk). Changed prior to commit: https://reviews.llvm.org/D23003?vs=67713&id=68218#toc Repository: rL LLVM https://reviews.ll

r278826 - [ObjC] Warn on unguarded use of partial declaration

2016-08-16 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Tue Aug 16 12:44:11 2016 New Revision: 278826 URL: http://llvm.org/viewvc/llvm-project?rev=278826&view=rev Log: [ObjC] Warn on unguarded use of partial declaration This commit adds a traversal of the AST after Sema of a function that diagnoses unguarded references to declarati

Re: [PATCH] D23086: [OpenCL] Generate concrete struct type for ndrange_t

2016-08-16 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. In https://reviews.llvm.org/D23086#516741, @yaxunl wrote: > In https://reviews.llvm.org/D23086#516365, @Anastasia wrote: > > > Why not to just identify the type by the name? It seems much easier and > > also gives flexibility to implement the type in different ways if

Re: Nomination for 3.9: r278786 - Left shifts of negative values are defined if -fwrapv is set

2016-08-16 Thread Aaron Ballman via cfe-commits
I'm not Richard, but I agree with merging it into 3.9 nonetheless. :-) ~Aaron On Tue, Aug 16, 2016 at 12:30 PM, Hans Wennborg via cfe-commits wrote: > Seems reasonable to me if Richard agrees. > > On Tue, Aug 16, 2016 at 3:01 AM, James Molloy wrote: >> Hi Hans, >> >> [cc. Richard as code owner]

Re: [PATCH] D21134: clang-tidy: new check readability-misplaced-array-index

2016-08-16 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/readability/MisplacedArrayIndexCheck.cpp:56 @@ +55,3 @@ + if (hasMacroID(ArraySubscriptE) || + !Result.SourceManager->isWrittenInSameFile(ArraySubscriptE->getLoc

Re: [PATCH] D23455: [Tooling] Parse compilation database command lines properly on Windows

2016-08-16 Thread Zachary Turner via cfe-commits
zturner added a comment. In https://reviews.llvm.org/D23455#516753, @alexfh wrote: > In https://reviews.llvm.org/D23455#515527, @rnk wrote: > > > In https://reviews.llvm.org/D23455#515486, @brad.king wrote: > > > > > > the feasibility of emitting 'arguments' instead of 'command' into the > > > >

Re: Nomination for 3.9: r278786 - Left shifts of negative values are defined if -fwrapv is set

2016-08-16 Thread Hans Wennborg via cfe-commits
Seems reasonable to me if Richard agrees. On Tue, Aug 16, 2016 at 3:01 AM, James Molloy wrote: > Hi Hans, > > [cc. Richard as code owner] > > I'd like to nominate this commit for 3.9. The actual code churn is tiny, and > this fixes a problem noticed by and causing pain to the qemu project. > > Ch

RE: r278783 - [X86] Add xgetbv/x[X86] Add xgetbv xsetbv intrinsics to non-windows platforms

2016-08-16 Thread Yatsina, Marina via cfe-commits
Adding Guy, the author of this commit. From: Reid Kleckner [mailto:r...@google.com] Sent: Tuesday, August 16, 2016 19:14 To: Yatsina, Marina Cc: cfe-commits Subject: Re: r278783 - [X86] Add xgetbv/x[X86] Add xgetbv xsetbv intrinsics to non-windows platforms Reverted in r278814, it appears to b

Re: r278763 - PR28978: If we need overload resolution for the move constructor of an

2016-08-16 Thread Hans Wennborg via cfe-commits
r278817. Many thanks. On Mon, Aug 15, 2016 at 5:36 PM, Richard Smith wrote: > Hi Hans, Eric Fiselier requested that we fix this bug for 3.9 (it affects > libc++'s std::optional implementation), so this would be a good candidate > for the branch. > > On Mon, Aug 15, 2016 at 5:13 PM, Richard Smith

Re: [PATCH] D23455: [Tooling] Parse compilation database command lines properly on Windows

2016-08-16 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Adding Aaron, since he seems to have interest in Windows support for clang-tidy. https://reviews.llvm.org/D23455 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

Re: [PATCH] D23455: [Tooling] Parse compilation database command lines properly on Windows

2016-08-16 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. In https://reviews.llvm.org/D23455#515527, @rnk wrote: > In https://reviews.llvm.org/D23455#515486, @brad.king wrote: > > > > the feasibility of emitting 'arguments' instead of 'command' into the > > > JSON compilation database. > > > > > > CMake constructs the command li

Re: [PATCH] D21959: [X86] Add xgetbv xsetbv intrinsics

2016-08-16 Thread Reid Kleckner via cfe-commits
rnk added a subscriber: rnk. rnk added a comment. Reverted in r278814, it appears to break usage of _xgetbv on Windows: https://build.chromium.org/p/chromium.fyi/builders/ClangToTWin%28dll%29/builds/5846/steps/compile/logs/stdio ../../base/cpu.cc(194,10): error: use of undeclared identifier '_xge

[clang-tools-extra] r278815 - Remove most instances of REQUIRES: shell from the tools/extra tests

2016-08-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Aug 16 11:07:46 2016 New Revision: 278815 URL: http://llvm.org/viewvc/llvm-project?rev=278815&view=rev Log: Remove most instances of REQUIRES: shell from the tools/extra tests None of these tests actually require bash, they just have quoting bugs when paths contain backslash

Re: r278783 - [X86] Add xgetbv/x[X86] Add xgetbv xsetbv intrinsics to non-windows platforms

2016-08-16 Thread Reid Kleckner via cfe-commits
Reverted in r278814, it appears to break usage of _xgetbv on Windows: https://build.chromium.org/p/chromium.fyi/builders/ClangToTWin%28dll%29/builds/5846/steps/compile/logs/stdio ../../base/cpu.cc(194,10): error: use of undeclared identifier '_xgetbv' (_xgetbv(0) & 6) == 6 /* XSAVE enabled

r278814 - Revert "[X86] Add xgetbv/x[X86] Add xgetbv xsetbv intrinsics to non-windows platforms"

2016-08-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Aug 16 11:04:14 2016 New Revision: 278814 URL: http://llvm.org/viewvc/llvm-project?rev=278814&view=rev Log: Revert "[X86] Add xgetbv/x[X86] Add xgetbv xsetbv intrinsics to non-windows platforms" This reverts commit r278783. It breaks usage of _xgetbv on Windows. Modified:

Re: [PATCH] D23546: Remove excessive padding from LineNoCacheTy

2016-08-16 Thread Chris Lattner via cfe-commits
lattner resigned from this revision. lattner removed a reviewer: lattner. lattner added a comment. Seems obvious to me, but it would be best to find another reviewer, I haven't worked on this code for some time. https://reviews.llvm.org/D23546 ___

Re: [PATCH] D23086: [OpenCL] Generate concrete struct type for ndrange_t

2016-08-16 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. In https://reviews.llvm.org/D23086#516365, @Anastasia wrote: > Why not to just identify the type by the name? It seems much easier and also > gives flexibility to implement the type in different ways if needed. > Considering that similar approach is already used for some

Re: [PATCH] D23531: [Darwin] Stop linking libclang_rt.eprintf.a

2016-08-16 Thread Daniel Dunbar via cfe-commits
The original motivation for organizing things this way was to try and always be in the situation where, when linking against the latest deployment target, we should never need the extra library (because the content will be present in libSystem). This is useful in helping to ensure we don't unnecess

Re: [PATCH] D23462: Emit debug info for dynamic classes if they are imported from a DLL

2016-08-16 Thread Reid Kleckner via cfe-commits
rnk added inline comments. Comment at: lib/CodeGen/CGDebugInfo.cpp:1688-1689 @@ -1687,3 +1687,4 @@ - if (CXXDecl->hasDefinition() && CXXDecl->isDynamicClass()) + if (CXXDecl->hasDefinition() && CXXDecl->isDynamicClass() && + !CXXDecl->hasAttr()) return true;

Re: [PATCH] D22515: [analyzer] Added custom hashing to the CloneDetector.

2016-08-16 Thread Vassil Vassilev via cfe-commits
v.g.vassilev accepted this revision. v.g.vassilev added a comment. LGTM. https://reviews.llvm.org/D22515 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15332: new clang-tidy checker readability-non-const-parameter

2016-08-16 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/readability/NonConstParameterCheck.cpp:95-98 @@ +94,6 @@ +const QualType T = VD->getType(); +if (T->isPointerType() && !T->getPointeeType().isConstQualified())

Re: [PATCH] D23329: [NFC] Reducing allocations in AST attributes

2016-08-16 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: aaron.ballman. aaron.ballman closed this revision. aaron.ballman added a comment. Thank you! I've commit in r278812. https://reviews.llvm.org/D23329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lis

r278812 - Reduce the number of allocations required for AST attributes. In test cases, the max resident memory changed from 65760k to 64476k which is 1.9% improvement. Allocations in grow_pod changed

2016-08-16 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Aug 16 09:48:39 2016 New Revision: 278812 URL: http://llvm.org/viewvc/llvm-project?rev=278812&view=rev Log: Reduce the number of allocations required for AST attributes. In test cases, the max resident memory changed from 65760k to 64476k which is 1.9% improvement.

r278811 - Reorder stderr redirection in test command.

2016-08-16 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Tue Aug 16 09:38:39 2016 New Revision: 278811 URL: http://llvm.org/viewvc/llvm-project?rev=278811&view=rev Log: Reorder stderr redirection in test command. Modified: cfe/trunk/test/Driver/cuda-detect.cu Modified: cfe/trunk/test/Driver/cuda-detect.cu URL: http://llvm.or

r278806 - Add empty --gcc-toolchain empty to cuda-detect test.

2016-08-16 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Tue Aug 16 09:31:39 2016 New Revision: 278806 URL: http://llvm.org/viewvc/llvm-project?rev=278806&view=rev Log: Add empty --gcc-toolchain empty to cuda-detect test. Unless we overload the default gcc toolchain with an empty string the system root used in the tests will be i

Re: [PATCH] D22515: [analyzer] Added custom hashing to the CloneDetector.

2016-08-16 Thread Raphael Isemann via cfe-commits
teemperor planned changes to this revision. teemperor added a comment. - As the hash_stream patch will take a while to land upstream, we will change this to use FoldingSetNodeID and change it to hash_stream once that landed. https://reviews.llvm.org/D22515 ___

Re: [PATCH] D23533: [clang-tidy] Rewrite compilation database test to not require shell

2016-08-16 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: test/clang-tidy/clang-tidy-run-with-database.cpp:11 @@ -10,3 @@ -// RUN: echo '#include "header.h"' > %T/compilation-database-test/b/d.cpp -// RUN: sed 's|test_dir|%T/compilation-database-test|g' %S/Inputs/compilation-database/template.js

[PATCH] D23555: [analyzer] CloneDetector now checks template arguments of function calls.

2016-08-16 Thread Raphael Isemann via cfe-commits
teemperor created this revision. teemperor added reviewers: v.g.vassilev, NoQ. teemperor added a subscriber: cfe-commits. The CloneDetector currently ignores template arguments in function calls which leads to false-positive clones such as `isa(S)` and `isa(S)`. This patch adds functionality to

Re: [PATCH] D23343: [clang-tidy] modernize-make-{smart_ptr} private ctor bugfix

2016-08-16 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM with one minor nit (you can fix it during the commit). Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:35 @@ +34,3 @@ + auto CanCallCtor = unless(ha

StaticAnalyzer: Fix GCC 6 indention warning in ArrayBoundCheckerV2.cpp

2016-08-16 Thread Christoph Grüninger via cfe-commits
Dear Clang developers, please find attached a tiny patch which fixes a indentation warning from GCC 6 within ArrayBoundCheckerV2.cpp Proposed commit message: > StaticAnalyzer: Fix GCC 6 indention warning in ArrayBoundCheckerV2.cpp > > Patch by Christoph Grüninger Bye Christoph Index: lib/StaticAn

Re: [PATCH] D23427: [Clang-tidy] Comparison Misuse

2016-08-16 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. Thank you for working on this check! We already have a frontend diagnostic for comparisons between string literals and pointers, so I'm not certain of the utility of adding a clang-tidy check for that case (see -Wstring-compare, aka, http://coliru.stacked-crooked

Re: [PATCH] D22515: [analyzer] Added custom hashing to the CloneDetector.

2016-08-16 Thread Raphael Isemann via cfe-commits
teemperor marked 2 inline comments as done. teemperor added a comment. https://reviews.llvm.org/D22515 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22220: [clang-tidy] Add check 'misc-move-forwarding-reference'

2016-08-16 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/misc/MoveForwardingReferenceCheck.cpp:46-56 @@ +45,13 @@ +// std::move(). This will hopefully prevent erroneous replacements if the +// code does unusual things (e.g. create an alias for std::move() in +// ano

Re: [PATCH] D22515: [analyzer] Added custom hashing to the CloneDetector.

2016-08-16 Thread Raphael Isemann via cfe-commits
teemperor updated this revision to Diff 68170. teemperor added a comment. - Renamed FoldingSetWrapper to FoldingSetNodeIDWrapper - Added missing // end anonymous namespace https://reviews.llvm.org/D22515 Files: include/clang/Analysis/CloneDetection.h lib/Analysis/CloneDetection.cpp lib/St

[PATCH] D23550: [analyzer] Small cleanups when checkers retrieving statements from exploded nodes.

2016-08-16 Thread Gábor Horváth via cfe-commits
xazax.hun created this revision. xazax.hun added reviewers: zaks.anna, dcoughlin, NoQ. xazax.hun added a subscriber: cfe-commits. Small cleanup to utilize PathDiagnosticLocation::getStmt where appropriate. https://reviews.llvm.org/D23550 Files: lib/StaticAnalyzer/Checkers/DynamicTypeChecker.cp

Re: [PATCH] D23528: [OpenMP] Sema and parsing for 'teams distribute simd' pragma

2016-08-16 Thread Alexey Bataev via cfe-commits
ABataev requested changes to this revision. ABataev added a comment. This revision now requires changes to proceed. No tests for serialization/deserialization/AST printing https://reviews.llvm.org/D23528 ___ cfe-commits mailing list cfe-commits@list

Re: [PATCH] D23284: Add -Rpass-with-hotness

2016-08-16 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. This LGTM, but you should wait for confirmation on the behavior of the R_Group behavior from @dnovillo or @rsmith before committing. https://reviews.llvm.org/D23284 _

[clang-tools-extra] r278791 - [clang-tidy] readability-implicit-bool-cast forgets to store its options.

2016-08-16 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Aug 16 06:15:05 2016 New Revision: 278791 URL: http://llvm.org/viewvc/llvm-project?rev=278791&view=rev Log: [clang-tidy] readability-implicit-bool-cast forgets to store its options. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: https://reviews.llvm.o

Re: [PATCH] D15227: [analyzer] Valist checkers.

2016-08-16 Thread Gábor Horváth via cfe-commits
xazax.hun updated this revision to Diff 68157. xazax.hun marked 5 inline comments as done. xazax.hun added a comment. - Improvements according to review comments. https://reviews.llvm.org/D15227 Files: include/clang/StaticAnalyzer/Checkers/Checkers.td lib/StaticAnalyzer/Checkers/CMakeLists.

Re: [PATCH] D23544: [clang-tidy] readability-implicit-bool-cast forgets to store its options.

2016-08-16 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278791: [clang-tidy] readability-implicit-bool-cast forgets to store its options. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D23544?vs=68154&id=68158#toc Repository: rL L

Re: [PATCH] D23544: [clang-tidy] readability-implicit-bool-cast forgets to store its options.

2016-08-16 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 68154. hokein added a comment. Move ctor body to .cpp file. https://reviews.llvm.org/D23544 Files: clang-tidy/readability/ImplicitBoolCastCheck.cpp clang-tidy/readability/ImplicitBoolCastCheck.h Index: clang-tidy/readability/ImplicitBoolCastCheck.h

Re: [PATCH] D23086: [OpenCL] Generate concrete struct type for ndrange_t

2016-08-16 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. In https://reviews.llvm.org/D23086#515590, @yaxunl wrote: > In https://reviews.llvm.org/D23086#515506, @Anastasia wrote: > > > > > > > > > Surely vendors can re-implement all OpenCL types with an implicit typedef. > > For example this would just work: > > > > > > ty

  1   2   >