[PATCH] D17562: [CUDA] Add hack so code which includes "curand.h" doesn't break.

2016-02-23 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added subscribers: cfe-commits, echristo. curand.h includes curand_mtgp32_kernel.h. In host mode, this header redefines threadIdx and blockDim, giving them their "proper" types of uint3 and dim3, respectively. clang has its own p

Re: [PATCH] D17550: Adding doxygen comments to the LLVM intrinsics (part 6, popcntintrin.h)

2016-02-23 Thread Eric Christopher via cfe-commits
Yeah, we should be doing this. Nice catch Paul and Greg. On Tue, Feb 23, 2016, 10:34 PM Greg Bedwell wrote: > gbedwell added a subscriber: gbedwell. > gbedwell added a comment. > > In http://reviews.llvm.org/D17550#360177, @probinson wrote: > > > One question I have, which shouldn't block this (

Re: [PATCH] D17550: Adding doxygen comments to the LLVM intrinsics (part 6, popcntintrin.h)

2016-02-23 Thread Eric Christopher via cfe-commits
echristo added a subscriber: echristo. echristo added a comment. Yeah, we should be doing this. Nice catch Paul and Greg. Repository: rL LLVM http://reviews.llvm.org/D17550 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm

[PATCH] D17561: [CUDA] Add conversion operators for threadIdx, blockIdx, gridDim, and blockDim to uint3 and dim3.

2016-02-23 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added subscribers: cfe-commits, echristo. This lets you write, e.g. uint3 a = threadIdx; uint3 b = blockIdx; dim3 c = gridDim; dim3 d = blockDim; which is legal in nvcc, but was not legal in clang. The fact that e.g. the

Re: [PATCH] D17550: Adding doxygen comments to the LLVM intrinsics (part 6, popcntintrin.h)

2016-02-23 Thread Greg Bedwell via cfe-commits
gbedwell added a subscriber: gbedwell. gbedwell added a comment. In http://reviews.llvm.org/D17550#360177, @probinson wrote: > One question I have, which shouldn't block this (as we've done several like > this already): > Is is okay to be using C++ style comments in these headers? > (Is there

Re: [PATCH] D16154: Default vaarg lowering should support indirect struct types.

2016-02-23 Thread James Y Knight via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261717: Default vaarg lowering should support indirect struct types. (authored by jyknight). Changed prior to commit: http://reviews.llvm.org/D16154?vs=44785&id=48881#toc Repository: rL LLVM http://

RE: r261719 - [OpenCL] Add Sema checks for OpenCL 2.0 block

2016-02-23 Thread xiuli pan via cfe-commits
Hi, Does anyone knows why the svn seems to be stuck after I commit this patch. Thanks Xiuli -Original Message- From: cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] On Behalf Of Xiuli Pan via cfe-commits Sent: Wednesday, February 24, 2016 12:41 PM To: cfe-commits@lists.llvm.org

Re: [PATCH] D17436: [OpenCL] Add Sema checks for OpenCL 2.0 block

2016-02-23 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261719: [OpenCL] Add Sema checks for OpenCL 2.0 block (authored by pxl). Changed prior to commit: http://reviews.llvm.org/D17436?vs=48774&id=48880#toc Repository: rL LLVM http://reviews.llvm.org/D17

r261719 - [OpenCL] Add Sema checks for OpenCL 2.0 block

2016-02-23 Thread Xiuli Pan via cfe-commits
Author: pxl Date: Tue Feb 23 22:29:36 2016 New Revision: 261719 URL: http://llvm.org/viewvc/llvm-project?rev=261719&view=rev Log: [OpenCL] Add Sema checks for OpenCL 2.0 block Summary: Add Sema checks for opencl 2.0 new features: Block. This patch is partitioned from http://reviews.llvm.org/D1604

Re: [PATCH] D17558: Add __builtin_canonicalize

2016-02-23 Thread Matt Arsenault via cfe-commits
arsenm updated this revision to Diff 48879. arsenm added a comment. Add long double version. Add the short summary before linking to the intrinsic doc http://reviews.llvm.org/D17558 Files: docs/LanguageExtensions.rst include/clang/Basic/Builtins.def lib/CodeGen/CGBuiltin.cpp test/CodeG

r261717 - Default vaarg lowering should support indirect struct types.

2016-02-23 Thread James Y Knight via cfe-commits
Author: jyknight Date: Tue Feb 23 20:59:33 2016 New Revision: 261717 URL: http://llvm.org/viewvc/llvm-project?rev=261717&view=rev Log: Default vaarg lowering should support indirect struct types. Fixes PR11517 for SPARC. On most targets, clang lowers va_arg itself, eschewing the use of the llvm

Re: [PATCH] D17438: [OpenCL] Add Sema checks for atomics and implicit declaration

2016-02-23 Thread Xiuli PAN via cfe-commits
pxli168 added a comment. It now gives a warning for both C99 and OpenCL. But for target SPIR it gives an err only because it treat unprototyped function as varidic function: /// \brief Checks whether the given calling convention supports variadic /// calls. Unprototyped calls also use the va

Re: [PATCH] D17437: [OpenCL] Add Sema checks for types

2016-02-23 Thread Xiuli PAN via cfe-commits
pxli168 updated this revision to Diff 48872. pxli168 marked an inline comment as done. http://reviews.llvm.org/D17437 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp lib/Sema/SemaType.cpp test/CodeGenOpenCL/opencl_types.cl test/SemaOpenCL/invalid-image.cl test/

Re: [PATCH] D17558: Add __builtin_canonicalize

2016-02-23 Thread Richard Smith via cfe-commits
rsmith added a subscriber: rsmith. rsmith accepted this revision. rsmith added a reviewer: rsmith. rsmith added a comment. This revision is now accepted and ready to land. Sure, it makes sense to expose this. Comment at: docs/LanguageExtensions.rst:1743 @@ +1742,3 @@ + +This pro

[PATCH] D17558: Add __builtin_canonicalize

2016-02-23 Thread Matt Arsenault via cfe-commits
arsenm created this revision. arsenm added a subscriber: cfe-commits. http://reviews.llvm.org/D17558 Files: docs/LanguageExtensions.rst include/clang/Basic/Builtins.def lib/CodeGen/CGBuiltin.cpp test/CodeGen/builtins.c Index: test/CodeGen/builtins.c ==

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-23 Thread Richard Smith via cfe-commits
On Tue, Feb 23, 2016 at 8:28 AM, H.J. Lu wrote: > On Tue, Feb 23, 2016 at 8:15 AM, Michael Matz wrote: >> Hi, >> >> On Tue, 23 Feb 2016, H.J. Lu wrote: >> >>> I thought >>> >>> --- >>> An empty type is a type where it and all of its subobjects (recursively) >>> are of class, structure, union, or

Re: [PATCH] D17239: Sema: typo correct both sides of binary expression

2016-02-23 Thread Richard Trieu via cfe-commits
rtrieu added a comment. While this change does add the intended error messages, it won't produce a correct a typo-corrected AST. For instance: void run(int sss) { sss = ? : ; } Will produce an empty function body: `-FunctionDecl 0x7082ef0 line:1:6 run 'void (int)'

Re: [PATCH][modules][PR26237]

2016-02-23 Thread Richard Smith via cfe-commits
Calling getMostRecentDecl seems like a slightly fragile way to avoid iterator invalidation here. Instead... @@ -214,6 +212,19 @@ namespace clang { unsigned I = Record.size(); Record.push_back(0); + auto &Specializations = Common->Specializations; + auto &&PartialSpecializa

[libclc] r261714 - math: Fix ilogb(double) return type

2016-02-23 Thread Aaron Watry via cfe-commits
Author: awatry Date: Tue Feb 23 18:52:15 2016 New Revision: 261714 URL: http://llvm.org/viewvc/llvm-project?rev=261714&view=rev Log: math: Fix ilogb(double) return type Signed-off-by: Aaron Watry Reviewed-by: Jan Vesely Modified: libclc/trunk/generic/lib/math/ilogb.cl Modified: libclc/tru

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

2016-02-23 Thread Rong Xu via cfe-commits
xur updated this revision to Diff 48859. xur marked 2 inline comments as done. xur added a comment. Integrated with David's comments. Thanks, -Rong http://reviews.llvm.org/D15829 Files: include/clang/Driver/CC1Options.td include/clang/Driver/Options.td include/clang/Frontend/CodeGenOpti

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

2016-02-23 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. OK, let's go with this as a starting point. We don't need to get maximally-precise type information in the first iteration. http://reviews.llvm.org/D16821 _

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

2016-02-23 Thread Rong Xu via cfe-commits
xur marked 4 inline comments as done. Comment at: lib/CodeGen/CodeGenModule.cpp:151 @@ -151,1 +150,3 @@ + if (CodeGenOpts.hasProfileClangUse() && + !CodeGenOpts.InstrProfileInput.empty()) { auto ReaderOrErr = davidxl wrote: > Is the second condition sti

Re: [PATCH] D17550: Adding doxygen comments to the LLVM intrinsics (part 6, popcntintrin.h)

2016-02-23 Thread Paul Robinson via cfe-commits
probinson accepted this revision. probinson added a comment. This revision is now accepted and ready to land. LGTM. One question I have, which shouldn't block this (as we've done several like this already): Is is okay to be using C++ style comments in these headers? (Is there a C-style comment t

Re: [PATCH] D17348: Add -Wcast-calling-convention to warn when casting away calling conventions

2016-02-23 Thread Richard Trieu via cfe-commits
rtrieu added inline comments. Comment at: lib/Sema/SemaCast.cpp:1729 @@ +1728,3 @@ +/// defined in the current TU. +static void diagnoseCallingConvCast(Sema &Self, const ExprResult &SrcExpr, +QualType DstType, SourceRange OpRange) {

Re: [PATCH] D17183: Make TargetInfo store an actual DataLayout instead of a string.

2016-02-23 Thread James Y Knight via cfe-commits
jyknight added a comment. Ping. I'm pretty sure you said you were going to look at this. :) http://reviews.llvm.org/D17183 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15636: Reduce false positives in printf/scanf format checker

2016-02-23 Thread Richard Trieu via cfe-commits
rtrieu added a comment. A few more comments. In http://reviews.llvm.org/D15636#358588, @AndyG wrote: > Patch additionally re-based off r261522. It's usually a bad idea to rebase in the middle of a string of patches. Phabricator isn't aware of revisions, so while a base to latest patch will s

Re: [PATCH] SemaCXX: Support templates in availability attributes

2016-02-23 Thread Duncan P. N. Exon Smith via cfe-commits
> On 2016-Feb-23, at 11:18, Aaron Ballman wrote: > > On Tue, Feb 23, 2016 at 1:52 PM, Manman Ren wrote: >> This patch looks good to me. But I am not sure if Aaron has any comment. >> >> On Feb 22, 2016, at 6:19 PM, Duncan P. N. Exon Smith >> wrote: >> >> >> On 2016-Feb-22, at 17:24, Manman

r261705 - PR24667: fix quadratic runtime if textually-included modular headers define large numbers of macros.

2016-02-23 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Feb 23 17:20:51 2016 New Revision: 261705 URL: http://llvm.org/viewvc/llvm-project?rev=261705&view=rev Log: PR24667: fix quadratic runtime if textually-included modular headers define large numbers of macros. Modified: cfe/trunk/include/clang/Lex/Preprocessor.h c

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

2016-02-23 Thread David Li via cfe-commits
davidxl added inline comments. Comment at: include/clang/Frontend/CodeGenOptions.h:83 @@ -82,2 +82,3 @@ enum ProfileInstrKind { ProfileNoInstr,// No instrumentation. +ProfileClangInstr, // Clang instrumentation to generate execution counts Maybe Pr

r261703 - [analyzer] Find ObjC 'self' decl even when block captures local named 'self'.

2016-02-23 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Tue Feb 23 16:26:04 2016 New Revision: 261703 URL: http://llvm.org/viewvc/llvm-project?rev=261703&view=rev Log: [analyzer] Find ObjC 'self' decl even when block captures local named 'self'. When looking up the 'self' decl in block captures, make sure to find the actual sel

[libcxx] r261690 - Creating release candidate rc3 from release_380 branch

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

[libunwind] r261697 - Creating release candidate rc3 from release_380 branch

2016-02-23 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Feb 23 15:40:24 2016 New Revision: 261697 URL: http://llvm.org/viewvc/llvm-project?rev=261697&view=rev Log: Creating release candidate rc3 from release_380 branch Added: libunwind/tags/RELEASE_380/rc3/ - copied from r261696, libunwind/branches/release_38/ ___

[libcxxabi] r261691 - Creating release candidate rc3 from release_380 branch

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

Re: r261669 - Amends r252104 to evaluate the controlling expression in an unevaluated context. This eliminates false-positive diagnostics about null pointer dereferences (etc) in the controlling expre

2016-02-23 Thread Hans Wennborg via cfe-commits
On Tue, Feb 23, 2016 at 11:12 AM, Aaron Ballman wrote: > On Tue, Feb 23, 2016 at 2:03 PM, Hans Wennborg wrote: >> Hi Aaron, >> >> I'll let it sit in the tree for a bit, and will then merge it later today. > > Sounds great, thank you! r261684. >> Many thanks, >> Hans >> >> On Tue, Feb 23, 2016

Re: r261674 - Rename Action::begin() to Action::input_begin().

2016-02-23 Thread David Blaikie via cfe-commits
On Tue, Feb 23, 2016 at 1:02 PM, Nico Weber wrote: > On Tue, Feb 23, 2016 at 3:55 PM, David Blaikie wrote: > >> >> >> On Tue, Feb 23, 2016 at 12:46 PM, Nico Weber wrote: >> >>> On Tue, Feb 23, 2016 at 2:44 PM, David Blaikie via cfe-commits < >>> cfe-commits@lists.llvm.org> wrote: >>>

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

2016-02-23 Thread Rong Xu via cfe-commits
xur updated this revision to Diff 48846. xur marked an inline comment as done. xur added a comment. Here is the new patch that removes the auto detection of profile kind. In this patch, I replace the CC1 option of -fprofile-instr-use=<> with -fprofile-instrument={llvm-use|clang-use}. For the use

Re: r261674 - Rename Action::begin() to Action::input_begin().

2016-02-23 Thread Nico Weber via cfe-commits
On Tue, Feb 23, 2016 at 3:55 PM, David Blaikie wrote: > > > On Tue, Feb 23, 2016 at 12:46 PM, Nico Weber wrote: > >> On Tue, Feb 23, 2016 at 2:44 PM, David Blaikie via cfe-commits < >> cfe-commits@lists.llvm.org> wrote: >> >>> >>> >>> On Tue, Feb 23, 2016 at 11:30 AM, Nico Weber via cfe-commits

Re: r261674 - Rename Action::begin() to Action::input_begin().

2016-02-23 Thread David Blaikie via cfe-commits
On Tue, Feb 23, 2016 at 12:46 PM, Nico Weber wrote: > On Tue, Feb 23, 2016 at 2:44 PM, David Blaikie via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> >> >> On Tue, Feb 23, 2016 at 11:30 AM, Nico Weber via cfe-commits < >> cfe-commits@lists.llvm.org> wrote: >> >>> Author: nico >>> Date:

[PATCH] D17550: Adding doxygen comments to the LLVM intrinsics (part 6, popcntintrin.h)

2016-02-23 Thread Katya Romanova via cfe-commits
kromanova created this revision. kromanova added a subscriber: cfe-commits. kromanova set the repository for this revision to rL LLVM. Here is the patch with the doxygen comments for the intrinsincs in the header file popcntintrin.h. The doxygen comments are automatically generated based on SCE i

Re: r261674 - Rename Action::begin() to Action::input_begin().

2016-02-23 Thread Nico Weber via cfe-commits
On Tue, Feb 23, 2016 at 2:44 PM, David Blaikie via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > > On Tue, Feb 23, 2016 at 11:30 AM, Nico Weber via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: nico >> Date: Tue Feb 23 13:30:43 2016 >> New Revision: 261674 >> >> URL: http:

r261680 - [CMake] Add install-clang-format target by migrating to add_clang_tool

2016-02-23 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Tue Feb 23 14:33:15 2016 New Revision: 261680 URL: http://llvm.org/viewvc/llvm-project?rev=261680&view=rev Log: [CMake] Add install-clang-format target by migrating to add_clang_tool This change migrates clang-format to add_clang_tool which makes a component-based install

[libcxx] r261676 - More updates

2016-02-23 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Feb 23 13:48:09 2016 New Revision: 261676 URL: http://llvm.org/viewvc/llvm-project?rev=261676&view=rev Log: More updates Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html URL: http://llvm.org/viewvc/llvm-project/libc

[libcxx] r261677 - Fix a missing closing tag

2016-02-23 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Feb 23 13:48:44 2016 New Revision: 261677 URL: http://llvm.org/viewvc/llvm-project?rev=261677&view=rev Log: Fix a missing closing tag Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html URL: http://llvm.org/viewvc/llvm

Re: r261674 - Rename Action::begin() to Action::input_begin().

2016-02-23 Thread David Blaikie via cfe-commits
On Tue, Feb 23, 2016 at 11:30 AM, Nico Weber via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: nico > Date: Tue Feb 23 13:30:43 2016 > New Revision: 261674 > > URL: http://llvm.org/viewvc/llvm-project?rev=261674&view=rev > Log: > Rename Action::begin() to Action::input_begin(). > > Al

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-23 Thread Richard Smith via cfe-commits
On Sat, Feb 20, 2016 at 6:53 AM, Nico Weber wrote: > On Fri, Feb 19, 2016 at 10:32 PM, Nico Weber wrote: >> >> On Fri, Feb 19, 2016 at 10:02 PM, Nico Weber wrote: >>> >>> On Fri, Feb 19, 2016 at 8:01 PM, Richard Smith >>> wrote: On Fri, Feb 19, 2016 at 4:41 PM, Nico Weber wrote:

r261674 - Rename Action::begin() to Action::input_begin().

2016-02-23 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Feb 23 13:30:43 2016 New Revision: 261674 URL: http://llvm.org/viewvc/llvm-project?rev=261674&view=rev Log: Rename Action::begin() to Action::input_begin(). Also introduce inputs() that reutnrs an llvm::iterator_range. Iterating over A->inputs() is much less mysterious than

Re: r261657 - Remove an unnecessary workaround introduced in r259975. (NFC)

2016-02-23 Thread Adrian Prantl via cfe-commits
Done in r261673. -- adrian > On Feb 23, 2016, at 11:23 AM, Adrian Prantl via cfe-commits > wrote: > > I will carefully revert the revert of this commit on top of the current > trunk. Thanks for the notice. > > -- adrian > >> On Feb 23, 2016, at 11:15 AM, Hans Wennborg wrote: >> >> I'm sor

r261673 - Reapply r261657.

2016-02-23 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Tue Feb 23 13:30:08 2016 New Revision: 261673 URL: http://llvm.org/viewvc/llvm-project?rev=261673&view=rev Log: Reapply r261657. Remove an unnecessary workaround introduced in r259975. (NFC) Now that LLVM r259973 allows replacing a temporary type with another temporary we can

Re: r261657 - Remove an unnecessary workaround introduced in r259975. (NFC)

2016-02-23 Thread Adrian Prantl via cfe-commits
I will carefully revert the revert of this commit on top of the current trunk. Thanks for the notice. -- adrian > On Feb 23, 2016, at 11:15 AM, Hans Wennborg wrote: > > I'm sorry, but I had to revert this in order to revert r261634. r261657 > > On Tue, Feb 23, 2016 at 9:13 AM, Adrian Prantl v

Re: r261657 - Remove an unnecessary workaround introduced in r259975. (NFC)

2016-02-23 Thread Hans Wennborg via cfe-commits
On Tue, Feb 23, 2016 at 11:15 AM, Hans Wennborg wrote: > I'm sorry, but I had to revert this in order to revert r261634. r261657 Meant to say the revert is in r261670. > > On Tue, Feb 23, 2016 at 9:13 AM, Adrian Prantl via cfe-commits > wrote: >> Author: adrian >> Date: Tue Feb 23 11:13:47 2016

Re: [PATCH] SemaCXX: Support templates in availability attributes

2016-02-23 Thread Aaron Ballman via cfe-commits
On Tue, Feb 23, 2016 at 1:52 PM, Manman Ren wrote: > This patch looks good to me. But I am not sure if Aaron has any comment. > > On Feb 22, 2016, at 6:19 PM, Duncan P. N. Exon Smith > wrote: > > > On 2016-Feb-22, at 17:24, Manman Ren wrote: > > > > On Feb 8, 2016, at 8:17 PM, Duncan P. N. Exon

Re: r261657 - Remove an unnecessary workaround introduced in r259975. (NFC)

2016-02-23 Thread Hans Wennborg via cfe-commits
I'm sorry, but I had to revert this in order to revert r261634. r261657 On Tue, Feb 23, 2016 at 9:13 AM, Adrian Prantl via cfe-commits wrote: > Author: adrian > Date: Tue Feb 23 11:13:47 2016 > New Revision: 261657 > > URL: http://llvm.org/viewvc/llvm-project?rev=261657&view=rev > Log: > Remove a

r261670 - Revert r261634 "Supporting all entities declared in lexical scope in LLVM debug info." and r261657

2016-02-23 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Feb 23 13:10:16 2016 New Revision: 261670 URL: http://llvm.org/viewvc/llvm-project?rev=261670&view=rev Log: Revert r261634 "Supporting all entities declared in lexical scope in LLVM debug info." and r261657 r261634 and r261633 seems to have caused PR26715. r261657 depends

Re: [PATCH] D17019: [OpenMP] Code generation for teams - kernel launching

2016-02-23 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 48839. sfantao added a comment. Rebase. http://reviews.llvm.org/D17019 Files: lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CGStmtOpenMP.cpp lib/CodeGen/CodeGenFunction.h test/OpenMP/teams_codegen.cpp Index: test/OpenMP/teams_codegen.cpp

Re: r261669 - Amends r252104 to evaluate the controlling expression in an unevaluated context. This eliminates false-positive diagnostics about null pointer dereferences (etc) in the controlling expre

2016-02-23 Thread Aaron Ballman via cfe-commits
On Tue, Feb 23, 2016 at 2:03 PM, Hans Wennborg wrote: > Hi Aaron, > > I'll let it sit in the tree for a bit, and will then merge it later today. Sounds great, thank you! ~Aaron > > Many thanks, > Hans > > On Tue, Feb 23, 2016 at 11:01 AM, Aaron Ballman > wrote: >> Hans, this should be safe to

Re: r259975 - Fix a crash when emitting dbeug info for forward-declared scoped enums.

2016-02-23 Thread Eric Christopher via cfe-commits
Thanks Adrian! On Tue, Feb 23, 2016 at 9:19 AM Adrian Prantl wrote: > --> r261657. > > Author: adrian > Date: Tue Feb 23 17:13:47 2016 + > > Remove an unnecessary workaround introduced in r259975. (NFC) > > Now that LLVM r259973 allows replacing a temporary type with another >

Re: r261669 - Amends r252104 to evaluate the controlling expression in an unevaluated context. This eliminates false-positive diagnostics about null pointer dereferences (etc) in the controlling expre

2016-02-23 Thread Hans Wennborg via cfe-commits
Hi Aaron, I'll let it sit in the tree for a bit, and will then merge it later today. Many thanks, Hans On Tue, Feb 23, 2016 at 11:01 AM, Aaron Ballman wrote: > Hans, this should be safe to merge into 3.8 (as Richard had mentioned > in the review thread). Can you do the merge magic on my behalf?

Re: r261669 - Amends r252104 to evaluate the controlling expression in an unevaluated context. This eliminates false-positive diagnostics about null pointer dereferences (etc) in the controlling expre

2016-02-23 Thread Aaron Ballman via cfe-commits
Hans, this should be safe to merge into 3.8 (as Richard had mentioned in the review thread). Can you do the merge magic on my behalf? Thanks! ~Aaron On Tue, Feb 23, 2016 at 1:55 PM, Aaron Ballman via cfe-commits wrote: > Author: aaronballman > Date: Tue Feb 23 12:55:15 2016 > New Revision: 2616

Re: [PATCH] D17369: [OpenMP] Code generation for target exit data directive

2016-02-23 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 48835. sfantao added a comment. Rebase. http://reviews.llvm.org/D17369 Files: lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CGOpenMPRuntime.h lib/CodeGen/CGStmtOpenMP.cpp test/OpenMP/target_exit_data_codegen.cpp Index: test/OpenMP/target_exit_data_co

Re: [PATCH] D17507: The controlling expression for _Generic is unevaluated

2016-02-23 Thread Aaron Ballman via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. Thanks! I've commit in r261669. http://reviews.llvm.org/D17507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r261669 - Amends r252104 to evaluate the controlling expression in an unevaluated context. This eliminates false-positive diagnostics about null pointer dereferences (etc) in the controlling expressio

2016-02-23 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Feb 23 12:55:15 2016 New Revision: 261669 URL: http://llvm.org/viewvc/llvm-project?rev=261669&view=rev Log: Amends r252104 to evaluate the controlling expression in an unevaluated context. This eliminates false-positive diagnostics about null pointer dereferences (

Re: [PATCH] D17507: The controlling expression for _Generic is unevaluated

2016-02-23 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. LGTM for trunk and 3.8. http://reviews.llvm.org/D17507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

Re: [PATCH] SemaCXX: Support templates in availability attributes

2016-02-23 Thread Manman Ren via cfe-commits
This patch looks good to me. But I am not sure if Aaron has any comment. > On Feb 22, 2016, at 6:19 PM, Duncan P. N. Exon Smith > wrote: > >> >> On 2016-Feb-22, at 17:24, Manman Ren wrote: >> >> >> >>> On Feb 8, 2016, at 8:17 PM, Duncan P. N. Exon Smith >>> wrote: >>> >>> This patch add

Re: [PATCH] D17368: [OpenMP] Code generation for target enter data directive

2016-02-23 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 48834. sfantao added a comment. Rebase. http://reviews.llvm.org/D17368 Files: lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CGOpenMPRuntime.h lib/CodeGen/CGStmtOpenMP.cpp test/OpenMP/target_enter_data_codegen.cpp Index: test/OpenMP/target_enter_data_

Re: [PATCH] D17436: [OpenCL] Add Sema checks for OpenCL 2.0 block

2016-02-23 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/SemaOpenCL/invalid-block.cl:17 @@ +16,3 @@ +void f2(BlkInt *BlockPtr) { + BlkInt B = ^int(int I) {return 1;}; + BlkInt *P = &B; // expected-error {{invalid argument type 'BlkInt' (aka 'int (^)(int)') to unary expression}} --

Re: [PATCH] D17367: [OpenMP] Code generation for target data directive

2016-02-23 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 48831. sfantao updated the summary for this revision. sfantao added a comment. Rebase. http://reviews.llvm.org/D17367 Files: lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CGOpenMPRuntime.h lib/CodeGen/CGStmtOpenMP.cpp test/OpenMP/target_data_codegen.c

Re: [PATCH] D17345: [OpenCL] Improve diagnostics of address spaces for variables inside function

2016-02-23 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/SemaOpenCL/storageclass-cl20.cl:19 @@ -15,1 +18,2 @@ + extern int G6; // expected-error{{program scope variable must reside in global or constant address space}} } Khronos bug: https://cvs.khronos.org/bugzilla/s

Re: [PATCH] D16749: [OpenMP] Map clause codegeneration.

2016-02-23 Thread Samuel Antao via cfe-commits
sfantao added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:3901-3932 @@ +3900,34 @@ +// Reference types are ignored for mapping purposes. +if (auto *RefTy = ExprTy->getAs()) + ExprTy = RefTy->getPointeeType().getCanonicalType(); + +// Given that an

[libcxx] r261661 - These new tests fail on the green-dragon bots, which use an old Apple compiler.

2016-02-23 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Feb 23 12:09:38 2016 New Revision: 261661 URL: http://llvm.org/viewvc/llvm-project?rev=261661&view=rev Log: These new tests fail on the green-dragon bots, which use an old Apple compiler. Since they're scheduled to be updated soon, we'll just comment out this test for th

[PATCH] D17547: [OpenMP] Add support for multidimensional array sections in map clause SEMA.

2016-02-23 Thread Samuel Antao via cfe-commits
sfantao created this revision. sfantao added reviewers: ABataev, hfinkel, carlo.bertolli, arpith-jacob, kkwli0. sfantao added subscribers: caomhin, fraggamuffin, cfe-commits. In some cases it can be proved statically that multidimensional array section refer to contiguous storage and can therefor

Re: [PATCH] D17345: [OpenCL] Improve diagnostics of address spaces for variables inside function

2016-02-23 Thread Yaxun Liu via cfe-commits
yaxunl added inline comments. Comment at: test/SemaOpenCL/storageclass-cl20.cl:11 @@ -10,3 +10,3 @@ static global int S2 = 5; - static private int S3 = 5;// expected-error{{program scope variable must reside in global or constant address space}} + static private int S3 = 5;

Re: [PATCH] D17345: [OpenCL] Improve diagnostics of address spaces for variables inside function

2016-02-23 Thread Anastasia Stulova via cfe-commits
Anastasia removed a reviewer: pekka.jaaskelainen. Anastasia added a subscriber: pekka.jaaskelainen. Anastasia updated this revision to Diff 48826. Anastasia added a comment. I am adding a small clean up here for duplicate code! @Sam, could you please re-check again. Thanks! http://reviews.llvm.

Re: [PATCH] D17092: [X86] Add -mseparate-stack-seg

2016-02-23 Thread Michael LeMay via cfe-commits
mlemay-intel added a comment. Thank you for your feedback! Comment at: lib/CodeGen/TargetInfo.cpp:1569 @@ +1568,3 @@ +CGF.getTarget().getTargetOpts().Features; + if (std::find(TargetFeatures.begin(), TargetFeatures.end(), +"+separate-stack-seg") != TargetFea

Re: r259975 - Fix a crash when emitting dbeug info for forward-declared scoped enums.

2016-02-23 Thread Adrian Prantl via cfe-commits
--> r261657. Author: adrian Date: Tue Feb 23 17:13:47 2016 + Remove an unnecessary workaround introduced in r259975. (NFC) Now that LLVM r259973 allows replacing a temporary type with another temporary we can rely on the original implementation. It is possible for

r261657 - Remove an unnecessary workaround introduced in r259975. (NFC)

2016-02-23 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Tue Feb 23 11:13:47 2016 New Revision: 261657 URL: http://llvm.org/viewvc/llvm-project?rev=261657&view=rev Log: Remove an unnecessary workaround introduced in r259975. (NFC) Now that LLVM r259973 allows replacing a temporary type with another temporary we can rely on the orig

Re: r261626 - Fix a -Wunused-variable diagnostic.

2016-02-23 Thread Alexander Kornienko via cfe-commits
On Tue, Feb 23, 2016 at 5:51 PM, David Blaikie wrote: > > > On Tue, Feb 23, 2016 at 2:29 AM, Alexander Kornienko via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: alexfh >> Date: Tue Feb 23 04:29:04 2016 >> New Revision: 261626 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=

[libcxx] r261655 - More updates

2016-02-23 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Feb 23 11:07:15 2016 New Revision: 261655 URL: http://llvm.org/viewvc/llvm-project?rev=261655&view=rev Log: More updates Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html URL: http://llvm.org/viewvc/llvm-project/libc

Re: r261552 - [VFS] Add 'overlay-relative' field to YAML files

2016-02-23 Thread Bruno Cardoso Lopes via cfe-commits
Looks like r261551's fault. Reverted in r261654. On Mon, Feb 22, 2016 at 11:12 PM, Bruno Cardoso Lopes wrote: > Reverted r261552 & r261556 in r261613. Waiting for next win bot > results to see if it's necessary to revert r261551 as well. > > On Mon, Feb 22, 2016 at 7:16 PM, Bruno Cardoso Lopes >

r261654 - Revert "[VFS] Add support for handling path traversals"

2016-02-23 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Tue Feb 23 11:06:50 2016 New Revision: 261654 URL: http://llvm.org/viewvc/llvm-project?rev=261654&view=rev Log: Revert "[VFS] Add support for handling path traversals" This reverts commit r261551 due to failing tests in windows bots: http://lab.llvm.org:8011/builders/clang-x6

[libcxx] r261653 - Add tests for LWG#2560. No code changes, just tests

2016-02-23 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Feb 23 11:01:52 2016 New Revision: 261653 URL: http://llvm.org/viewvc/llvm-project?rev=261653&view=rev Log: Add tests for LWG#2560. No code changes, just tests Modified: libcxx/trunk/test/std/utilities/meta/meta.unary/meta.unary.prop/is_constructible.pass.cpp Modi

Re: [PATCH] D16876: [OpenCL] Refine pipe builtin support

2016-02-23 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. In http://reviews.llvm.org/D16876#359786, @pekka.jaaskelainen wrote: > In http://reviews.llvm.org/D16876#359781, @Anastasia wrote: > > > @Pekka, do you have any more comments? > > > Nope. Looking forward to finally implementing proper pipe support to pocl. > > With the

Re: [PATCH] D16876: [OpenCL] Refine pipe builtin support

2016-02-23 Thread Pekka Jääskeläinen via cfe-commits
pekka.jaaskelainen accepted this revision. pekka.jaaskelainen added a comment. This revision is now accepted and ready to land. In http://reviews.llvm.org/D16876#359781, @Anastasia wrote: > @Pekka, do you have any more comments? Nope. Looking forward to finally implementing proper pipe support

Re: r261626 - Fix a -Wunused-variable diagnostic.

2016-02-23 Thread David Blaikie via cfe-commits
On Tue, Feb 23, 2016 at 2:29 AM, Alexander Kornienko via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: alexfh > Date: Tue Feb 23 04:29:04 2016 > New Revision: 261626 > > URL: http://llvm.org/viewvc/llvm-project?rev=261626&view=rev > Log: > Fix a -Wunused-variable diagnostic. > > Modif

Re: [PATCH] D17437: [OpenCL] Add Sema checks for types

2016-02-23 Thread Anastasia Stulova via cfe-commits
Anastasia accepted this revision. Comment at: test/SemaOpenCL/sampler_t.cl:13 @@ -12,2 +12,3 @@ foo(5); // expected-error {{sampler_t variable required - got 'int'}} + sampler_t sa[] = {argsmp,const_smp}; // expected-error {{array of 'sampler_t' type is invalid in OpenCL}} }

Re: [PATCH] D16876: [OpenCL] Refine pipe builtin support

2016-02-23 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. Could you please address number 1 from my previous comment? Otherwise, I think we should try to proceed quickly here, it will be too hard to merge back in after long delay and also it would be nice to have as many corrections as possible ASAP. Could we move Richard t

Re: [PATCH] D17438: [OpenCL] Add Sema checks for atomics and implicit declaration

2016-02-23 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. I agree there seems to be nothing specifically on this topic in OpenCL spec. However, I wouldn't modify Clang and rely on its default behavior: 1. In C99 gives a warning 2. For some targets set up in a special way (i.e. SPIR) gives an error Comment a

[libcxx] r261648 - Add additional tests to ensure that we DTRT with short lists. This is LWG#2590, but there are no code changes, just additional tests

2016-02-23 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Feb 23 10:25:20 2016 New Revision: 261648 URL: http://llvm.org/viewvc/llvm-project?rev=261648&view=rev Log: Add additional tests to ensure that we DTRT with short lists. This is LWG#2590, but there are no code changes, just additional tests Modified: libcxx/trunk/

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-23 Thread H.J. Lu via cfe-commits
On Tue, Feb 23, 2016 at 8:15 AM, Michael Matz wrote: > Hi, > > On Tue, 23 Feb 2016, H.J. Lu wrote: > >> I thought >> >> --- >> An empty type is a type where it and all of its subobjects (recursively) >> are of class, structure, union, or array type. >> --- >> >> excluded >> >> struct empty >> { >>

[libcxx] r261647 - More updates; patch for 2583 ready

2016-02-23 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Feb 23 10:20:24 2016 New Revision: 261647 URL: http://llvm.org/viewvc/llvm-project?rev=261647&view=rev Log: More updates; patch for 2583 ready Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html URL: http://llvm.org/vi

r261646 - Fix a typo. NFC

2016-02-23 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Feb 23 10:12:08 2016 New Revision: 261646 URL: http://llvm.org/viewvc/llvm-project?rev=261646&view=rev Log: Fix a typo. NFC Modified: cfe/trunk/docs/ClangFormatStyleOptions.rst cfe/trunk/include/clang/Format/Format.h Modified: cfe/trunk/docs/ClangFormatStyleOptio

r261645 - Clean up clang-format options documentation. NFC

2016-02-23 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Feb 23 10:12:00 2016 New Revision: 261645 URL: http://llvm.org/viewvc/llvm-project?rev=261645&view=rev Log: Clean up clang-format options documentation. NFC Use uniform style for inline code blocks, specify language for YAML code blocks, various formatting fixes etc. Mod

r261644 - Support language selection for \code blocks.

2016-02-23 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Feb 23 10:11:55 2016 New Revision: 261644 URL: http://llvm.org/viewvc/llvm-project?rev=261644&view=rev Log: Support language selection for \code blocks. Modified: cfe/trunk/docs/tools/dump_format_style.py Modified: cfe/trunk/docs/tools/dump_format_style.py URL: http

r261643 - Update clang-format options docs.

2016-02-23 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Feb 23 10:11:51 2016 New Revision: 261643 URL: http://llvm.org/viewvc/llvm-project?rev=261643&view=rev Log: Update clang-format options docs. Modified: cfe/trunk/docs/ClangFormatStyleOptions.rst Modified: cfe/trunk/docs/ClangFormatStyleOptions.rst URL: http://llvm.o

r261642 - Allow running dump_format_style.py from any directory.

2016-02-23 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Tue Feb 23 10:11:43 2016 New Revision: 261642 URL: http://llvm.org/viewvc/llvm-project?rev=261642&view=rev Log: Allow running dump_format_style.py from any directory. Modified: cfe/trunk/docs/tools/dump_format_style.py Modified: cfe/trunk/docs/tools/dump_format_style.py

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-23 Thread Michael Matz via cfe-commits
Hi, On Tue, 23 Feb 2016, H.J. Lu wrote: > I thought > > --- > An empty type is a type where it and all of its subobjects (recursively) > are of class, structure, union, or array type. > --- > > excluded > > struct empty > { > empty () = default; > }; Why would that be excluded? There are no

r261641 - [CLANG] [AVX512] [BUILTIN] Adding prorv{d|q}{128|256|512} builtin to clang

2016-02-23 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Tue Feb 23 09:59:47 2016 New Revision: 261641 URL: http://llvm.org/viewvc/llvm-project?rev=261641&view=rev Log: [CLANG] [AVX512] [BUILTIN] Adding prorv{d|q}{128|256|512} builtin to clang Differential Revision: http://reviews.llvm.org/D17512 Modified: cfe/trunk/includ

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-23 Thread H.J. Lu via cfe-commits
On Tue, Feb 23, 2016 at 7:30 AM, Michael Matz wrote: > Hi, > > On Tue, 23 Feb 2016, H.J. Lu wrote: > >> > --- >> > An empty type is a type where it and all of its subobjects (recursively) >> > are of class, structure, union, or array type. No memory slot nor >> > register should be used to pass o

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-23 Thread Michael Matz via cfe-commits
Hi, On Tue, 23 Feb 2016, H.J. Lu wrote: > > --- > > An empty type is a type where it and all of its subobjects (recursively) > > are of class, structure, union, or array type. No memory slot nor > > register should be used to pass or return an object of empty type that's > > trivially copyable.

Re: [PATCH] D16040: [OpenCL] Refine OpenCLImageAccessAttr to OpenCLAccessAttr

2016-02-23 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. Mostly minor comments, but I like this approach! Comment at: include/clang/Basic/DiagnosticSemaKinds.td:7713 @@ +7712,3 @@ +def err_opencl_invalid_read_write : Error< + "access qualifier read_write can not be used for %0 %select{|earlier than Ope

Re: [PATCH] D17437: [OpenCL] Add Sema checks for types

2016-02-23 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! Comment at: lib/Sema/SemaType.cpp:2180 @@ -2179,1 +2179,3 @@ + // OpenCL v2.0 s6.16.13.1 - Arrays of pipe type are not supported. + // OpenCL v2.0 s6.9.b - Ar

  1   2   >