Re: r259507 - Make the remaining headers self-contained.

2016-02-02 Thread NAKAMURA Takumi via cfe-commits
I am not enabling modules builder(s) since my local branch has a few commits. I will create more builders after release_38 released. On Wed, Feb 3, 2016 at 3:56 PM Sean Silva wrote: > On Tue, Feb 2, 2016 at 11:15 AM, David Blaikie via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> >> >>

Re: [PATCH] D16784: [OpenMP] Reorganize code to allow specialized code generation for different devices.

2016-02-02 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntimeCommon.h:1 @@ +1,2 @@ +//=== CGOpenMPRuntimeCommon.h - Helpers for OpenMP Runtimes Codegen ==// +// I don't think we need this new file and new namespace. If some (currently) internal

Re: r259507 - Make the remaining headers self-contained.

2016-02-02 Thread Sean Silva via cfe-commits
On Tue, Feb 2, 2016 at 11:15 AM, David Blaikie via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > > On Tue, Feb 2, 2016 at 11:11 AM, Rafael Espíndola < > cfe-commits@lists.llvm.org> wrote: > >> Out of curiosity, what technique were you using to find out if the >> headers were self-contained?

[PATCH] D16843: [Sema] Fix bug in TypeLocBuilder::pushImpl

2016-02-02 Thread Akira Hatanaka via cfe-commits
ahatanak created this revision. ahatanak added reviewers: doug.gregor, rjmccall, vsk. ahatanak added a subscriber: cfe-commits. This patch fixes a bug in the code between line 117-126 of TypeLocBuilder.cpp which was causing the assert in line 132. The bug manifests itself when an element of size

r259628 - clang-format: [JS/TypeScript] Support "enum" as an optional property name, too.

2016-02-02 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Feb 2 23:33:44 2016 New Revision: 259628 URL: http://llvm.org/viewvc/llvm-project?rev=259628&view=rev Log: clang-format: [JS/TypeScript] Support "enum" as an optional property name, too. Before: enum?: string []; After: enum?: string[]; Modified: cfe/trunk/l

Re: [PATCH] D16748: Cleanup MemRegion.cpp/MemRegion.h

2016-02-02 Thread Alexander Riccio via cfe-commits
ariccio added a comment. All set. http://reviews.llvm.org/D16748 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16748: Cleanup MemRegion.cpp/MemRegion.h

2016-02-02 Thread Alexander Riccio via cfe-commits
ariccio updated this revision to Diff 46737. ariccio marked 2 inline comments as done. ariccio added a comment. Removed single `const`. http://reviews.llvm.org/D16748 Files: C:/LLVM/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h C:/LLVM/llvm/tools/clang/lib/St

Re: [PATCH] D16801: [OpenMP] Change in initial size of DSAStackTy::StackTy

2016-02-02 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG. Will you commit it yourself or you want me to do this? http://reviews.llvm.org/D16801 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

r259624 - Make CF constant string decl visible to name lookup to fix module errors

2016-02-02 Thread Ben Langmuir via cfe-commits
Author: benlangmuir Date: Tue Feb 2 21:26:19 2016 New Revision: 259624 URL: http://llvm.org/viewvc/llvm-project?rev=259624&view=rev Log: Make CF constant string decl visible to name lookup to fix module errors The return type of the __builtin___*StringMakeConstantString functions is a pointer to

r259622 - Fix miscompile and rejects-valids when disambiguating after an ambiguous

2016-02-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Feb 2 20:58:20 2016 New Revision: 259622 URL: http://llvm.org/viewvc/llvm-project?rev=259622&view=rev Log: Fix miscompile and rejects-valids when disambiguating after an ambiguous C-style-cast to function/array type or parenthesized function-style cast/array indexing. Mo

Re: [PATCH] D16686: [OpenCL] Generate metadata for opencl_unroll_hint attribute

2016-02-02 Thread Xiuli PAN via cfe-commits
pxli168 added inline comments. Comment at: lib/Sema/SemaStmtAttr.cpp:216 @@ +215,3 @@ +S.Diag(A.getLoc(), diag::err_attribute_too_many_arguments) +<< "opencl_unroll_hint" << 1; +return nullptr; I think you should not use hard code here, just use A.

Re: [PATCH] D16638: [CUDA] Added device-side std::{malloc/free}

2016-02-02 Thread Justin Lebar via cfe-commits
jlebar added inline comments. Comment at: lib/Headers/__clang_cuda_runtime_wrapper.h:215 @@ +214,3 @@ +// Device-side CUDA system calls. +// http://docs.nvidia.com/cuda/ptx-writers-guide-to-interoperability/index.html#system-calls + It seems that only vprintf, fr

Re: [PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

2016-02-02 Thread Evgeniy Stepanov via cfe-commits
eugenis added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:2642 @@ +2641,3 @@ + llvm::MDString::get(CGM.getLLVMContext(), "all-vtables")); + llvm::Value *ValidVtable = Builder.CreateZExt( + Builder.CreateCall(CGM.getIntrinsic(llvm::Intrinsic::bitset_test), --

r259618 - Fix typo in OpenCL type mangling. This is still bogus (we should either use the

2016-02-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Feb 2 19:43:59 2016 New Revision: 259618 URL: http://llvm.org/viewvc/llvm-project?rev=259618&view=rev Log: Fix typo in OpenCL type mangling. This is still bogus (we should either use the actual source name of the typedef or a vendor mangling) but at least it stands a chan

Re: [PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

2016-02-02 Thread Alexey Samsonov via cfe-commits
samsonov added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:2642 @@ +2641,3 @@ + llvm::MDString::get(CGM.getLLVMContext(), "all-vtables")); + llvm::Value *ValidVtable = Builder.CreateZExt( + Builder.CreateCall(CGM.getIntrinsic(llvm::Intrinsic::bitset_test), -

Re: [cfe-commits] r170428 [1/3] - in /cfe/trunk: include/clang/AST/ include/clang/Basic/ include/clang/Sema/ include/clang/Serialization/ lib/AST/ lib/CodeGen/ lib/Parse/ lib/Sema/ lib/Serialization/

2016-02-02 Thread Richard Smith via cfe-commits
Fixed as part of r259616. On Tue, Feb 2, 2016 at 4:45 PM, Richard Smith wrote: > Hi Guy, > >> Modified: cfe/trunk/lib/CodeGen/CGRTTI.cpp >> URL: >> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRTTI.cpp?rev=170428&r1=170427&r2=170428&view=diff >> ===

r259616 - Fix Itanium RTTI emission so that we emit fundamental type information into the

2016-02-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Feb 2 19:32:42 2016 New Revision: 259616 URL: http://llvm.org/viewvc/llvm-project?rev=259616&view=rev Log: Fix Itanium RTTI emission so that we emit fundamental type information into the C++ ABI library for the same set of types for which we expect the C++ ABI library to

Re: [PATCH] D16638: [CUDA] Added device-side std::{malloc/free}

2016-02-02 Thread Artem Belevich via cfe-commits
tra updated this revision to Diff 46729. tra added a comment. Added few more device-side system calls and related wrapper functions. Added nothrow attributes on malloc/free. http://reviews.llvm.org/D16638 Files: lib/Headers/__clang_cuda_runtime_wrapper.h Index: lib/Headers/__clang_cuda_runti

Re: [PATCH] D15305: [CUDA] Do not allow dynamic initialization of global device side variables.

2016-02-02 Thread Artem Belevich via cfe-commits
tra added inline comments. Comment at: lib/Sema/SemaCUDA.cpp:429-430 @@ +428,4 @@ + CXXConstructorDecl *CD) { + if (!CD->isDefined() && CD->isTemplateInstantiation()) +InstantiateFunctionDefinition(VarLoc, CD->getFirstDecl()); + --

Re: [PATCH] D16748: Cleanup MemRegion.cpp/MemRegion.h

2016-02-02 Thread Alexander Riccio via cfe-commits
ariccio marked 3 inline comments as done. ariccio added a comment. I will remove that `const` later tonight. Comment at: C:/LLVM/llvm/tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp:1396 @@ -1395,3 +1395,3 @@ const auto &ReferencedBlockVars = AC->getReferencedBlockVars(BC->

Fwd: [cfe-commits] r170428 [1/3] - in /cfe/trunk: include/clang/AST/ include/clang/Basic/ include/clang/Sema/ include/clang/Serialization/ lib/AST/ lib/CodeGen/ lib/Parse/ lib/Sema/ lib/Serialization/

2016-02-02 Thread Richard Smith via cfe-commits
Hi Guy, > Modified: cfe/trunk/lib/CodeGen/CGRTTI.cpp > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRTTI.cpp?rev=170428&r1=170427&r2=170428&view=diff > == > --- cfe/trunk/lib/CodeGen/CGRTTI.cpp (orig

Re: [PATCH] D14471: [AArch64] Fix a crash in driver

2016-02-02 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 46725. ahatanak added a comment. Sorry for taking so long to get back to this patch. I've updated the patch based on your review comments. I defined a new helper function getAArch64FeaturesFromCPU which gets the target features from the cpu name and checks

Re: [PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

2016-02-02 Thread Evgeniy Stepanov via cfe-commits
eugenis added inline comments. Comment at: lib/CodeGen/CodeGenModule.cpp:4053 @@ +4052,3 @@ + + if (!CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFIVCall) || + !CodeGenOpts.SanitizeTrap.has(SanitizerKind::CFINVCall) || I don't like emitting all these bitset

Re: [PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

2016-02-02 Thread Evgeniy Stepanov via cfe-commits
eugenis updated this revision to Diff 46723. eugenis marked an inline comment as done. Repository: rL LLVM http://reviews.llvm.org/D16823 Files: lib/CodeGen/CGClass.cpp lib/CodeGen/CGExpr.cpp lib/CodeGen/CodeGenModule.cpp lib/CodeGen/CodeGenModule.h test/CodeGen/cfi-check-fail.c te

Re: [PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

2016-02-02 Thread Evgeniy Stepanov via cfe-commits
eugenis updated this revision to Diff 46718. eugenis added a comment. Moved bitset.text call outside. LLVM is smart enough to sink it along the cold branch, so performance should not suffer. Repository: rL LLVM http://reviews.llvm.org/D16823 Files: lib/CodeGen/CGClass.cpp lib/CodeGen/CG

r259609 - PR24989: Stop trying to use the C++11 rules for lambda return type inference in

2016-02-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Feb 2 17:58:56 2016 New Revision: 259609 URL: http://llvm.org/viewvc/llvm-project?rev=259609&view=rev Log: PR24989: Stop trying to use the C++11 rules for lambda return type inference in C++14 generic lambdas. It conflicts with the C++14 return type deduction mechanism, a

Re: [PATCH] D15120: Add support for __float128 type to be used by targets that support it

2016-02-02 Thread Hubert Tong via cfe-commits
hubert.reinterpretcast added a comment. In http://reviews.llvm.org/D15120#340515, @nemanjai wrote: > If the reviewers don't mind, I would like to keep this patch with diagnostics > for interoperability between the two types for now. This is simply because > enabling such interoperability requir

Re: [PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

2016-02-02 Thread Evgeniy Stepanov via cfe-commits
eugenis added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:2494 @@ +2493,3 @@ + llvm::Value *ValidVtable = nullptr; + if (CheckAndAppendValidVtable) { +llvm::Value *AllVtables = llvm::MetadataAsValue::get( pcc wrote: > eugenis wrote: > > samsonov wrot

r259604 - Fix rejects-valid when forming a pointer-to-member with 'decltype(expr)::*'.

2016-02-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Feb 2 17:34:49 2016 New Revision: 259604 URL: http://llvm.org/viewvc/llvm-project?rev=259604&view=rev Log: Fix rejects-valid when forming a pointer-to-member with 'decltype(expr)::*'. Modified: cfe/trunk/lib/Parse/ParseDecl.cpp cfe/trunk/test/Parser/cxx0x-decl.cp

Re: r259598 - Work around build failure due to GCC 4.8.1 bug. We don't completely understand

2016-02-02 Thread Hans Wennborg via cfe-commits
Yes! r259603. Cheers, Hans On Tue, Feb 2, 2016 at 3:17 PM, Richard Smith wrote: > Hans, this fixes a compile failure with one of our supported host > compilers (GCC 4.8.1). Can we get this patch into 3.8? > > On Tue, Feb 2, 2016 at 3:11 PM, Richard Smith via cfe-commits > wrote: >> Author: rsmi

Re: [PATCH] D16503: [MSVC Compat] Warn when suppressing a trailing comma in macro args

2016-02-02 Thread Ehsan Akhgari via cfe-commits
ehsan added a comment. In http://reviews.llvm.org/D16503#342116, @thakis wrote: > Sorry for the slow response. I was reading http://reviews.llvm.org/D15670 to > understand this patch, and I couldn't find anything in that patch that > enables this extension only in Microsoft mode. Trying > supp

Re: r259598 - Work around build failure due to GCC 4.8.1 bug. We don't completely understand

2016-02-02 Thread Richard Smith via cfe-commits
Hans, this fixes a compile failure with one of our supported host compilers (GCC 4.8.1). Can we get this patch into 3.8? On Tue, Feb 2, 2016 at 3:11 PM, Richard Smith via cfe-commits wrote: > Author: rsmith > Date: Tue Feb 2 17:11:49 2016 > New Revision: 259598 > > URL: http://llvm.org/viewvc/ll

Re: [PATCH] D16819: Remove llvm::(cast|isa) from lib/CodeGen/Address.h to fix build with gcc-4.8.1

2016-02-02 Thread Richard Smith via cfe-commits
rsmith closed this revision. rsmith added a comment. Thanks, committed as r259598. http://reviews.llvm.org/D16819 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r259598 - Work around build failure due to GCC 4.8.1 bug. We don't completely understand

2016-02-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Feb 2 17:11:49 2016 New Revision: 259598 URL: http://llvm.org/viewvc/llvm-project?rev=259598&view=rev Log: Work around build failure due to GCC 4.8.1 bug. We don't completely understand the details of the bug, but avoiding overloading llvm::cast with another function temp

Re: [PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

2016-02-02 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:2494 @@ +2493,3 @@ + llvm::Value *ValidVtable = nullptr; + if (CheckAndAppendValidVtable) { +llvm::Value *AllVtables = llvm::MetadataAsValue::get( eugenis wrote: > samsonov wrote: > > This is real

Re: [PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

2016-02-02 Thread Evgeniy Stepanov via cfe-commits
eugenis added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:2494 @@ +2493,3 @@ + llvm::Value *ValidVtable = nullptr; + if (CheckAndAppendValidVtable) { +llvm::Value *AllVtables = llvm::MetadataAsValue::get( samsonov wrote: > This is really ugly. Why ar

Re: [PATCH] D15977: [Clang] Supporting all entities declared in lexical scope in LLVM debug info

2016-02-02 Thread David Blaikie via cfe-commits
dblaikie added a comment. Looks good - though you could do that one further simplification to the test case, I think. (removing x/if x) Comment at: test/CodeGenCXX/debug-info-lb.cpp:5 @@ +4,3 @@ + static int bar = 1; + if (x) + { Looks like you could remove

Re: [PATCH] D15977: [Clang] Supporting all entities declared in lexical scope in LLVM debug info

2016-02-02 Thread Amjad Aboud via cfe-commits
aaboud updated this revision to Diff 46708. aaboud added a comment. Reduced the LIT tests and added comment explaining part of it. http://reviews.llvm.org/D15977 Files: lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.h lib/CodeGen/CGDecl.cpp test/CodeGenCXX/debug-info-lb.cpp Index:

Re: [PATCH] D15977: [Clang] Supporting all entities declared in lexical scope in LLVM debug info

2016-02-02 Thread Amjad Aboud via cfe-commits
aaboud marked an inline comment as done. aaboud added a comment. Thanks David for the comments. See answer below. Comment at: lib/CodeGen/CGDebugInfo.cpp:1489 @@ +1488,3 @@ + if (I != LexicalBlockMap.end()) { +RetainedTypes.push_back(Ty.getAsOpaquePtr()); +return I->sec

Re: [PATCH] D15305: [CUDA] Do not allow dynamic initialization of global device side variables.

2016-02-02 Thread Artem Belevich via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL259592: [CUDA] Do not allow dynamic initialization of global device side variables. (authored by tra). Changed prior to commit: http://reviews.llvm.org/D15305?vs=46696&id=46707#toc Repository: rL LLV

r259592 - [CUDA] Do not allow dynamic initialization of global device side variables.

2016-02-02 Thread Artem Belevich via cfe-commits
Author: tra Date: Tue Feb 2 16:29:48 2016 New Revision: 259592 URL: http://llvm.org/viewvc/llvm-project?rev=259592&view=rev Log: [CUDA] Do not allow dynamic initialization of global device side variables. In general CUDA does not allow dynamic initialization of global device-side variables. One

Re: [PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

2016-02-02 Thread Alexey Samsonov via cfe-commits
samsonov added a subscriber: samsonov. Comment at: lib/CodeGen/CGExpr.cpp:2494 @@ +2493,3 @@ + llvm::Value *ValidVtable = nullptr; + if (CheckAndAppendValidVtable) { +llvm::Value *AllVtables = llvm::MetadataAsValue::get( This is really ugly. Why are you not

r259591 - ObjCXX: fix a crash during typo correction.

2016-02-02 Thread Manman Ren via cfe-commits
Author: mren Date: Tue Feb 2 16:23:03 2016 New Revision: 259591 URL: http://llvm.org/viewvc/llvm-project?rev=259591&view=rev Log: ObjCXX: fix a crash during typo correction. For ObjCXX, we can create a CastExpr with Kind being CK_UserDefinedConversion and SubExpr being BlockExpr. Specifically on

[PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

2016-02-02 Thread Evgeniy Stepanov via cfe-commits
eugenis created this revision. eugenis added reviewers: pcc, kcc. eugenis added a subscriber: cfe-commits. eugenis set the repository for this revision to rL LLVM. Avoid crashing when printing diagnostics for vtable-related CFI errors. In diagnostic mode, the frontend does an additional check of t

[PATCH] D16821: Add whole-program vtable optimization feature to Clang.

2016-02-02 Thread Peter Collingbourne via cfe-commits
pcc created this revision. pcc added reviewers: joker.eph, pete, chandlerc. pcc added subscribers: hans, kcc, cfe-commits. This patch introduces the -fwhole-program-vtables flag, which enables the whole-program vtable optimization feature (D16795) in Clang. http://reviews.llvm.org/D16821 Files:

Re: [PATCH] D15305: [CUDA] Do not allow dynamic initialization of global device side variables.

2016-02-02 Thread Artem Belevich via cfe-commits
tra updated this revision to Diff 46696. tra marked 8 inline comments as done. tra added a comment. Addressed Richard's comments. Relaxed restrictions a bit to allow constant initializers even those CUDA would not considered to be empty. Updated test case accordingly. http://reviews.llvm.org/D1

Re: [PATCH] D16819: Remove llvm::(cast|isa) from lib/CodeGen/Address.h to fix build with gcc-4.8.1

2016-02-02 Thread John McCall via cfe-commits
rjmccall added a comment. LGTM, too. http://reviews.llvm.org/D16819 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15829: [PGO] Clang Option that enables IR level PGO instrumentation

2016-02-02 Thread Bob Wilson via cfe-commits
> On Jan 22, 2016, at 1:43 PM, Sean Silva via cfe-commits > wrote: > > silvas added a comment. > > In http://reviews.llvm.org/D15829#333902, @davidxl wrote: > >> For the longer term, one possible solution is to make FE based >> instrumentation only used for coverage testing which can be turne

Re: [PATCH] D14274: Add alloc_size attribute to clang

2016-02-02 Thread George Burgess IV via cfe-commits
george.burgess.iv updated this revision to Diff 46693. george.burgess.iv marked 2 inline comments as done. george.burgess.iv added a comment. Addressed all feedback. http://reviews.llvm.org/D14274 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td include/clang/Basic/Diagn

Re: [PATCH] D16819: Remove llvm::(cast|isa) from lib/CodeGen/Address.h to fix build with gcc-4.8.1

2016-02-02 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. Yuck. Yeah, LGTM. Do you need someone to commit this for you? Hans, this should go into 3.8 as well. http://reviews.llvm.org/D16819 ___ cfe-comm

Re: [PATCH] D14274: Add alloc_size attribute to clang

2016-02-02 Thread George Burgess IV via cfe-commits
george.burgess.iv added inline comments. Comment at: lib/Sema/SemaDeclAttr.cpp:737 @@ +736,3 @@ +unsigned FuncParamNo, unsigned AttrArgNo) { + assert(Attr.getArg(AttrArgNo).is()); + // FuncParamNo is base-1 aaron.ballman wrote

[libcxxabi] r259565 - Creating release candidate rc2 from release_380 branch

2016-02-02 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Feb 2 15:10:55 2016 New Revision: 259565 URL: http://llvm.org/viewvc/llvm-project?rev=259565&view=rev Log: Creating release candidate rc2 from release_380 branch Added: libcxxabi/tags/RELEASE_380/rc2/ (props changed) - copied from r259564, libcxxabi/branches/re

[libunwind] r259571 - Creating release candidate rc2 from release_380 branch

2016-02-02 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Feb 2 15:11:13 2016 New Revision: 259571 URL: http://llvm.org/viewvc/llvm-project?rev=259571&view=rev Log: Creating release candidate rc2 from release_380 branch Added: libunwind/tags/RELEASE_380/rc2/ - copied from r259570, libunwind/branches/release_38/ ___

[libcxx] r259564 - Creating release candidate rc2 from release_380 branch

2016-02-02 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Feb 2 15:10:52 2016 New Revision: 259564 URL: http://llvm.org/viewvc/llvm-project?rev=259564&view=rev Log: Creating release candidate rc2 from release_380 branch Added: libcxx/tags/RELEASE_380/rc2/ (props changed) - copied from r259563, libcxx/branches/release_

Re: [PATCH] D16503: [MSVC Compat] Warn when suppressing a trailing comma in macro args

2016-02-02 Thread Nico Weber via cfe-commits
thakis added a comment. Sorry for the slow response. I was reading http://reviews.llvm.org/D15670 to understand this patch, and I couldn't find anything in that patch that enables this extension only in Microsoft mode. Trying suppressed-comma-msextension.cpp locally, it seems to pass without -f

[PATCH] D16819: Remove llvm::(cast|isa) from lib/CodeGen/Address.h to fix build with gcc-4.8.1

2016-02-02 Thread Igor Sugak via cfe-commits
sugak created this revision. sugak added reviewers: rsmith, rjmccall. sugak added subscribers: hans, cfe-commits. gcc-4.8.1 fails to build clang because of a regression in that version of gcc (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58022). See details about the generated error in https://llv

Re: [PATCH] D16786: [Clang-tidy] Make modernize-redundant-void-arg working with included files

2016-02-02 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In http://reviews.llvm.org/D16786#342075, @Eugene.Zelenko wrote: > In http://reviews.llvm.org/D16786#342074, @aaron.ballman wrote: > > > In http://reviews.llvm.org/D16786#342072, @Eugene.Zelenko wrote: > > > > > I think proper solution will be to create tests for in

Re: [PATCH] D16786: [Clang-tidy] Make modernize-redundant-void-arg working with included files

2016-02-02 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. In http://reviews.llvm.org/D16786#342074, @aaron.ballman wrote: > In http://reviews.llvm.org/D16786#342072, @Eugene.Zelenko wrote: > > > I think proper solution will be to create tests for included files ot the > > fly, bu renaming main test to .h and creating dum

Re: [PATCH] D16786: [Clang-tidy] Make modernize-redundant-void-arg working with included files

2016-02-02 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In http://reviews.llvm.org/D16786#342072, @Eugene.Zelenko wrote: > I think proper solution will be to create tests for included files ot the > fly, bu renaming main test to .h and creating dummy source file. But this is > task for scripts wizards :-) I'm not cer

Re: [PATCH] D16794: [Clang-tidy] Make readability-simplify-boolean-expr working with included files

2016-02-02 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. I think proper solution will be to create tests for included files ot the fly, bu renaming main test to .h and creating dummy source file. But this is task for scripts wizards :-) Repository: rL LLVM http://reviews.llvm.org/D16794 _

Re: [PATCH] D16786: [Clang-tidy] Make modernize-redundant-void-arg working with included files

2016-02-02 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In http://reviews.llvm.org/D16786#341938, @Eugene.Zelenko wrote: > I didn't notice test cases for included files for other checkers. So it's > hard to tell for should special test case introduced for this specific > problem or not. Generally speaking, all change

Re: [PATCH] D16786: [Clang-tidy] Make modernize-redundant-void-arg working with included files

2016-02-02 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. I think proper solution will be to create tests for included files ot the fly, bu renaming main test to .h and creating dummy source file. But this is task for scripts wizards :-) Repository: rL LLVM http://reviews.llvm.org/D16786 _

Re: [PATCH] D16804: [analyzer] AnalysisConsumer: print fully-qualified function name while displaying progress

2016-02-02 Thread Anna Zaks via cfe-commits
zaks.anna accepted this revision. zaks.anna added a comment. This revision is now accepted and ready to land. Thank you! http://reviews.llvm.org/D16804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

Re: [PATCH] D15861: Support fully-qualified names for all QualTypes

2016-02-02 Thread Sterling Augustine via cfe-commits
Richard, Please take another look when you get a chance. Thanks. On Tue, Feb 2, 2016 at 11:14 AM, Sterling Augustine wrote: > saugustine updated this revision to Diff 46680. > saugustine marked 19 inline comments as done. > saugustine added a comment. > > - Update docs. Handle keywords and anon

Re: [PATCH] D16759: [OpenMP] Parsing + sema for target parallel for directive.

2016-02-02 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG with small comment Comment at: lib/Parse/ParseOpenMP.cpp:185 @@ -182,3 +184,3 @@ /// 'distribute' | 'target enter data' | 'target exit data' | -/// 'targ

Re: r259507 - Make the remaining headers self-contained.

2016-02-02 Thread David Blaikie via cfe-commits
On Tue, Feb 2, 2016 at 11:11 AM, Rafael Espíndola < cfe-commits@lists.llvm.org> wrote: > Out of curiosity, what technique were you using to find out if the > headers were self-contained? Just "clang -c foo.h"? > Building LLVM & Clang with C++ modules enabled > > Cheers, > Rafael > > > On 2 Febr

Re: [PATCH] D15861: Support fully-qualified names for all QualTypes

2016-02-02 Thread Sterling Augustine via cfe-commits
saugustine updated this revision to Diff 46680. saugustine marked 19 inline comments as done. saugustine added a comment. - Update docs. Handle keywords and anonymous namespaces. - Address code review issues. Cleanup many http://reviews.llvm.org/D15861 Files: include/clang/Tooling/Core/QualTy

Re: r259507 - Make the remaining headers self-contained.

2016-02-02 Thread Rafael Espíndola via cfe-commits
Out of curiosity, what technique were you using to find out if the headers were self-contained? Just "clang -c foo.h"? Cheers, Rafael On 2 February 2016 at 09:24, Benjamin Kramer via cfe-commits wrote: > Author: d0k > Date: Tue Feb 2 08:24:21 2016 > New Revision: 259507 > > URL: http://llvm.or

Re: [PATCH] D16794: [Clang-tidy] Make readability-simplify-boolean-expr working with included files

2016-02-02 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. I didn't notice test cases for included files for other checkers. So it's hard to tell for should special test case introduced for this specific problem or not. Repository: rL LLVM http://reviews.llvm.org/D16794

Re: [PATCH] D16786: [Clang-tidy] Make modernize-redundant-void-arg working with included files

2016-02-02 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. I didn't notice test cases for included files for other checkers. So it's hard to tell for should special test case introduced for this specific problem or not. Repository: rL LLVM http://reviews.llvm.org/D16786

Re: [PATCH] D16700: [Clang-tidy] Make null pointer literals for fixes configurable for two checks

2016-02-02 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko abandoned this revision. Eugene.Zelenko added a comment. I'll wait for global options implementation. Repository: rL LLVM http://reviews.llvm.org/D16700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

Re: [PATCH] D16808: [MCU] PR26438: Fix assertion failure on function returning an empty struct or union

2016-02-02 Thread Reid Kleckner via cfe-commits
rnk added a comment. If the ABI is still open to small changes and clarifications, can we make sure that C and C++ empty structs are passed the same way? Unfortunately, on normal x86_64 SysV GCC doesn't pass them the same way and Clang has to follow suit. http://reviews.llvm.org/D16808

r259537 - ARM: allow both vfma and vfms intrinsics on v7.

2016-02-02 Thread Tim Northover via cfe-commits
Author: tnorthover Date: Tue Feb 2 12:02:10 2016 New Revision: 259537 URL: http://llvm.org/viewvc/llvm-project?rev=259537&view=rev Log: ARM: allow both vfma and vfms intrinsics on v7. The main purpose here is that vfma/vfms should be symmetric, and they are supported on most v7 cores. The new A

Re: [PATCH] D16630: PR23057: Fix assertion `Val && "isa<> used on a null pointer"' on invalid for-range expression

2016-02-02 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL259532: PR23057: Fix assertion `Val && "isa<> used on a null pointer"' on invalid for… (authored by dzobnin). Changed prior to commit: http://reviews.llvm.org/D16630?vs=46131&id=46669#toc Repository:

r259532 - PR23057: Fix assertion `Val && "isa<> used on a null pointer"' on invalid for-range expression.

2016-02-02 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Tue Feb 2 11:33:09 2016 New Revision: 259532 URL: http://llvm.org/viewvc/llvm-project?rev=259532&view=rev Log: PR23057: Fix assertion `Val && "isa<> used on a null pointer"' on invalid for-range expression. Fix the issue discovered by fuzzing (PR23057, comment 18) by handl

Re: [PATCH] D16788: PS4 ABI Round 2. Actual PS4 code.

2016-02-02 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/TargetCXXABI.h:118 @@ -115,1 +117,3 @@ +/// in LLVM 3.2. +PS4 }; probinson wrote: > rjmccall wrote: > > I'm not sure why you added a new C++ ABI kind here. The bug fix you're > > opting o

Re: [PATCH] D16717: [clang-tidy] Add non-constant references in function parameters check.

2016-02-02 Thread Alexander Kornienko via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL259530: [clang-tidy] Add non-constant references in function parameters check. (authored by alexfh). Changed prior to commit: http://reviews.llvm.org/D16717?vs=46628&id=4#toc Repository: rL LLVM

[clang-tools-extra] r259531 - [clang-tidy] Removed unnecessary parameters in the test

2016-02-02 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Feb 2 11:27:08 2016 New Revision: 259531 URL: http://llvm.org/viewvc/llvm-project?rev=259531&view=rev Log: [clang-tidy] Removed unnecessary parameters in the test Modified: clang-tools-extra/trunk/test/clang-tidy/google-runtime-references.cpp Modified: clang-tools-e

[clang-tools-extra] r259530 - [clang-tidy] Add non-constant references in function parameters check.

2016-02-02 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Feb 2 11:27:01 2016 New Revision: 259530 URL: http://llvm.org/viewvc/llvm-project?rev=259530&view=rev Log: [clang-tidy] Add non-constant references in function parameters check. Summary: This is implemented originally by Alexander Kornienko. Reviewers: alexfh Subscribe

Re: [PATCH] D16308: clang-tidy Enhance readability-simplify-boolean-expr check to handle implicit conversions of integral types to bool and member pointers

2016-02-02 Thread Richard via cfe-commits
LegalizeAdulthood added a comment. I do not have commit access. If someone could commit this for me, I would appreciate it. Patch by Richard Thomson. Thanks. http://reviews.llvm.org/D16308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D16308: clang-tidy Enhance readability-simplify-boolean-expr check to handle implicit conversions of integral types to bool and member pointers

2016-02-02 Thread Richard via cfe-commits
LegalizeAdulthood added inline comments. Comment at: clang-tidy/readability/SimplifyBooleanExprCheck.cpp:366 @@ +365,3 @@ + binaryOperator( + isExpansionInMainFile(), hasOperatorName(OperatorName), + hasLHS(allOf( aaron.ballman wrote: > Sorr

Re: [PATCH] D16717: [clang-tidy] Add non-constant references in function parameters check.

2016-02-02 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good with one nit. Thank you! Comment at: test/clang-tidy/google-runtime-references.cpp:1 @@ +1,2 @@ +// RUN: %check_clang_tidy %s google-runtime-references %t -- -- -s

Re: [PATCH] D16808: [MCU] PR26438: Fix assertion failure on function returning an empty struct or union

2016-02-02 Thread H.J Lu via cfe-commits
hjl.tools added a subscriber: hjl.tools. hjl.tools added a comment. Why should empty structs and unions) be return in memory? I don't remember I called for it in MCU psABI. http://reviews.llvm.org/D16808 ___ cfe-commits mailing list cfe-commits@list

Re: [PATCH] D16539: [FIX] 26194 - LLVM crash in CXXNameMangler::mangleType

2016-02-02 Thread Igor Chesnokov via cfe-commits
ichesnokov added a comment. Please support discussion about MicrosoftMangle+CL at https://llvm.org/bugs/show_bug.cgi?id=26194 Comment at: tools/driver/driver.cpp:367 @@ -367,1 +366,3 @@ +int Result = ExecuteCC1Tool(argv, argv[1] + 4); +return Result; // Useful for debugg

[PATCH] D16808: [MCU] PR26438: Fix assertion failure on function returning an empty struct or union

2016-02-02 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla created this revision. d.zobnin.bugzilla added reviewers: mkuper, rnk, DavidKreitzer. d.zobnin.bugzilla added a subscriber: cfe-commits. Add missing check for zero-sized type for MCU ABI in order to return zero-sized types (empty structs and unions) via memory. http://reviews.l

Re: [PATCH] D16630: PR23057: Fix assertion `Val && "isa<> used on a null pointer"' on invalid for-range expression

2016-02-02 Thread David Majnemer via cfe-commits
majnemer accepted this revision. majnemer added a reviewer: majnemer. majnemer added a comment. This revision is now accepted and ready to land. LGTM http://reviews.llvm.org/D16630 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists

Re: [PATCH] D16572: PR23057: fix use-after-free due to local token buffer in ParseCXXAmbiguousParenExpression

2016-02-02 Thread David Majnemer via cfe-commits
majnemer accepted this revision. majnemer added a reviewer: majnemer. majnemer added a comment. This revision is now accepted and ready to land. LGTM http://reviews.llvm.org/D16572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists

r259518 - Make CodeGen headers self-contained.

2016-02-02 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Tue Feb 2 10:05:18 2016 New Revision: 259518 URL: http://llvm.org/viewvc/llvm-project?rev=259518&view=rev Log: Make CodeGen headers self-contained. Modified: cfe/trunk/lib/CodeGen/CGRecordLayout.h Modified: cfe/trunk/lib/CodeGen/CGRecordLayout.h URL: http://llvm.org/viewv

Re: [PATCH] D16788: PS4 ABI Round 2. Actual PS4 code.

2016-02-02 Thread Paul Robinson via cfe-commits
probinson added inline comments. Comment at: include/clang/Basic/TargetCXXABI.h:118 @@ -115,1 +117,3 @@ +/// in LLVM 3.2. +PS4 }; rjmccall wrote: > I'm not sure why you added a new C++ ABI kind here. The bug fix you're > opting out of is not at all sp

Re: [PATCH] D16682: 19957 - OpenCL incorrectly accepts implicit address space conversion with ternary operator

2016-02-02 Thread Igor Chesnokov via cfe-commits
ichesnokov added inline comments. Comment at: test/CodeGenOpenCL/ternary-implicit-casts-fail.cl:2 @@ +1,3 @@ +// RUN: %clang_cc1 %s +// XFAIL: * + ichesnokov wrote: > asl wrote: > > ichesnokov wrote: > > > asl wrote: > > > > Don't do XFAIL tests - they will be "ok

RE: r259489 - Move DebugInfoKind into its own header to cut the cyclic dependency edge from Driver to Frontend.

2016-02-02 Thread Robinson, Paul via cfe-commits
Maybe Basic would be a better home for the new header? Having CodeGen pull in something from Driver seems weird and unprecedented. Thanks, --paulr > -Original Message- > From: cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] On Behalf Of > Benjamin Kramer via cfe-commits > Sent: Tue

Re: [PATCH] D16682: 19957 - OpenCL incorrectly accepts implicit address space conversion with ternary operator

2016-02-02 Thread Igor Chesnokov via cfe-commits
ichesnokov removed rL LLVM as the repository for this revision. ichesnokov updated this revision to Diff 46655. ichesnokov added a comment. Test cases moved to single file. Please review and accept. http://reviews.llvm.org/D16682 Files: test/SemaOpenCL/ternary-implicit-casts.cl Index: test/S

Re: [PATCH] D16686: [OpenCL] Generate metadata for opencl_unroll_hint attribute

2016-02-02 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 46651. yaxunl marked 9 inline comments as done. yaxunl added a comment. Revised as Xiuli and Anastasia suggested. http://reviews.llvm.org/D16686 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td include/clang/Basic/DiagnosticParseKinds

Re: [PATCH] D12834: add gcc abi_tag support

2016-02-02 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: cfe-commits. aaron.ballman added reviewers: rsmith, majnemer. aaron.ballman added a comment. I don't have the expertise to review the semantics of the attribute, but here are some cursory thoughts on the attribute itself. Comment at: include/cl

r259506 - [StaticAnalyzer] Pull SymExpr and SymbolData into its own header to avoid cyclic includes.

2016-02-02 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Tue Feb 2 08:24:11 2016 New Revision: 259506 URL: http://llvm.org/viewvc/llvm-project?rev=259506&view=rev Log: [StaticAnalyzer] Pull SymExpr and SymbolData into its own header to avoid cyclic includes. Added: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/SymExp

r259507 - Make the remaining headers self-contained.

2016-02-02 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Tue Feb 2 08:24:21 2016 New Revision: 259507 URL: http://llvm.org/viewvc/llvm-project?rev=259507&view=rev Log: Make the remaining headers self-contained. Modified: cfe/trunk/include/clang/AST/BaseSubobject.h cfe/trunk/include/clang/AST/DeclOpenMP.h cfe/trunk/include

Re: [PATCH] D14274: Add alloc_size attribute to clang

2016-02-02 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. The attribute part looks mostly good (a few small nits), but the rest should be reviewed by @rsmith. Comment at: lib/Sema/SemaDeclAttr.cpp:737 @@ +736,3 @@ +unsigned FuncParamNo, unsigned AttrArgNo) { + assert(

Re: [PATCH] D16572: PR23057: fix use-after-free due to local token buffer in ParseCXXAmbiguousParenExpression

2016-02-02 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin updated this revision to Diff 46644. DmitryPolukhin added a comment. Use EOF token instead of copy buffer. This approach looks a bit more fragile but definitely more efficient, PTAL. http://reviews.llvm.org/D16572 Files: lib/Parse/ParseExprCXX.cpp test/Parser/cxx-ambig-paren

r259499 - Add backend dignostic printer for unsupported features

2016-02-02 Thread Oliver Stannard via cfe-commits
Author: olista01 Date: Tue Feb 2 07:52:52 2016 New Revision: 259499 URL: http://llvm.org/viewvc/llvm-project?rev=259499&view=rev Log: Add backend dignostic printer for unsupported features Re-commit of r258950 after fixing layering violation. The related LLVM patch adds a backend diagnostic typ

Re: [PATCH] D16219: PR8901: attribute "mode" rejected for enums and dependent types

2016-02-02 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL259497: Fix for PR8901: attribute "mode" rejected for enums and dependent types. (authored by dzobnin). Changed prior to commit: http://reviews.llvm.org/D16219?vs=46521&id=46643#toc Repository: rL LL

  1   2   >