[libcxx] r304131 - Fix coroutine test failures caused by API misusages.

2017-05-28 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon May 29 01:42:01 2017 New Revision: 304131 URL: http://llvm.org/viewvc/llvm-project?rev=304131&view=rev Log: Fix coroutine test failures caused by API misusages. More tests to come. I think that from_address overload should be deleted or ill-formed, except for the 'void*'

[PATCH] D28404: IRGen: Add optnone attribute on function during O0

2017-05-28 Thread Mehdi AMINI via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL304127: IRGen: Add optnone attribute on function during O0 (authored by mehdi_amini). Changed prior to commit: https://reviews.llvm.org/D28404?vs=83480&id=100580#toc Repository: rL LLVM https://revi

r304127 - IRGen: Add optnone attribute on function during O0

2017-05-28 Thread Mehdi Amini via cfe-commits
Author: mehdi_amini Date: Mon May 29 00:38:20 2017 New Revision: 304127 URL: http://llvm.org/viewvc/llvm-project?rev=304127&view=rev Log: IRGen: Add optnone attribute on function during O0 Amongst other, this will help LTO to correctly handle/honor files compiled with O0, helping debugging failur

[libcxx] r304124 - Fix multiple bugs in coroutine tests.

2017-05-28 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon May 29 00:00:24 2017 New Revision: 304124 URL: http://llvm.org/viewvc/llvm-project?rev=304124&view=rev Log: Fix multiple bugs in coroutine tests. Modified: libcxx/trunk/include/experimental/coroutine libcxx/trunk/test/libcxx/experimental/language.support/support.

[PATCH] D33637: [libcxxabi][demangler] Fix a exponential string copying bug

2017-05-28 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL304113: [demangler] Fix a exponential string copying bug (authored by epilk). Changed prior to commit: https://reviews.llvm.org/D33637?vs=100568&id=100574#toc Repository: rL LLVM https://reviews.llv

[libcxxabi] r304113 - [demangler] Fix a exponential string copying bug

2017-05-28 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Sun May 28 18:15:50 2017 New Revision: 304113 URL: http://llvm.org/viewvc/llvm-project?rev=304113&view=rev Log: [demangler] Fix a exponential string copying bug The problem was that if base_name() was called from a context without an actual base name, it could gulp up the enti

[PATCH] D33437: Emit available_externally vtables opportunistically

2017-05-28 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/AST/VTableBuilder.h:160 + "GlobalDecl can be created only from virtual function"); +if (getKind() == CK_FunctionPointer) + return GlobalDecl(getFunctionDecl()); Prazek wrote: > rjmccall

[libcxxabi] r304110 - [libcxxabi] Disable DLL annotations on static

2017-05-28 Thread Martell Malone via cfe-commits
Author: martell Date: Sun May 28 17:46:50 2017 New Revision: 304110 URL: http://llvm.org/viewvc/llvm-project?rev=304110&view=rev Log: [libcxxabi] Disable DLL annotations on static rL288692 renames _LIBCXXABI_DISABLE_DLL_IMPORT_EXPORT to _LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS Modified: lib

[PATCH] D31830: Emit invariant.group.barrier when using union field

2017-05-28 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Looks great, thanks. One request for additional tests, but feel free to commit when that's ready. Comment at: test/CodeGenCXX/strict-vtable-pointers.cpp:258 + take(u.h

[PATCH] D32751: [ASTImporter] Support new kinds of declarations (mostly Using*)

2017-05-28 Thread Peter Szecsi via Phabricator via cfe-commits
szepet added a comment. Some nits added, other than these it looks good to me. Thank you! Just more one question, I can see 3 different cases how the import returns are handled: - if(!ToDecl) return nullptr; - if(!ToDecl && FromDecl) return nullptr; - no handling: ObjectXY::Create(...Import(Fro

[PATCH] D33637: [libcxxabi][demangler] Fix a exponential string copying bug

2017-05-28 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd accepted this revision. compnerd added a comment. This revision is now accepted and ready to land. Thanks for looking into this, its been on my list for a while now. Comment at: src/cxa_demangle.cpp:2918 } +if (!isalpha(*p0) && !isdigit(*p0) && *p0 !=

r304107 - [coroutines] Support "coroutines" feature in module map requires clause

2017-05-28 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun May 28 16:07:22 2017 New Revision: 304107 URL: http://llvm.org/viewvc/llvm-project?rev=304107&view=rev Log: [coroutines] Support "coroutines" feature in module map requires clause Summary: In order for libc++ to add `` to its module map, there has to be a feature that ca

[PATCH] D33538: [coroutines] Support "coroutines" feature in module map requires clause

2017-05-28 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 100567. EricWF added a comment. This patch was initially reverted due to a failing test it caused elsewhere; which has been address in this version. https://reviews.llvm.org/D33538 Files: docs/Modules.rst lib/Basic/Module.cpp test/Index/index-module.m

[libcxx] r304106 - Correct XFAIL's in coroutine tests to only list ubsan

2017-05-28 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun May 28 15:56:16 2017 New Revision: 304106 URL: http://llvm.org/viewvc/llvm-project?rev=304106&view=rev Log: Correct XFAIL's in coroutine tests to only list ubsan Modified: libcxx/trunk/test/std/experimental/language.support/support.coroutines/end.to.end/bool_await_su

[libcxx] r304104 - XFAIL tests which trigger coroutine debug info crash in Clang

2017-05-28 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun May 28 15:49:11 2017 New Revision: 304104 URL: http://llvm.org/viewvc/llvm-project?rev=304104&view=rev Log: XFAIL tests which trigger coroutine debug info crash in Clang Modified: libcxx/trunk/test/std/experimental/language.support/support.coroutines/end.to.end/bool_

[libcxx] r304105 - Fix use of uninitialized memory

2017-05-28 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun May 28 15:49:13 2017 New Revision: 304105 URL: http://llvm.org/viewvc/llvm-project?rev=304105&view=rev Log: Fix use of uninitialized memory Modified: libcxx/trunk/test/std/experimental/language.support/support.coroutines/end.to.end/expected.sh.cpp Modified: libcxx/

Re: [PATCH] D33625: [coroutines] Diagnose invalid result types for `await_resume` and `await_suspend` and add missing conversions.

2017-05-28 Thread Richard Smith via cfe-commits
On 28 May 2017 at 12:53, Eric Fiselier via Phabricator < revi...@reviews.llvm.org> wrote: > EricWF marked an inline comment as done. > EricWF added inline comments. > > > > Comment at: lib/Sema/SemaCoroutine.cpp:393 > +// - await-suspend is the expression e.await_suspend(h),

[libcxx] r304103 - Add hack to allow test to run w/o C++17 copy elision

2017-05-28 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun May 28 15:30:18 2017 New Revision: 304103 URL: http://llvm.org/viewvc/llvm-project?rev=304103&view=rev Log: Add hack to allow test to run w/o C++17 copy elision Modified: libcxx/trunk/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.

[libcxx] r304102 - Remove XFAIL's for recently fixed bug

2017-05-28 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun May 28 15:25:41 2017 New Revision: 304102 URL: http://llvm.org/viewvc/llvm-project?rev=304102&view=rev Log: Remove XFAIL's for recently fixed bug Modified: libcxx/trunk/test/libcxx/experimental/language.support/support.coroutines/dialect_support.sh.cpp Modified: li

[PATCH] D33636: [coroutines] Fix checking for prvalue-ness of `await_suspend` return type

2017-05-28 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. @rsmith Does this correctly address the issues mentioned in https://reviews.llvm.org/D33625#inline-292971 ? https://reviews.llvm.org/D33636 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaCoroutine.cpp test/SemaCXX/coroutines.cpp Index: test

[PATCH] D33625: [coroutines] Diagnose invalid result types for `await_resume` and `await_suspend` and add missing conversions.

2017-05-28 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF marked an inline comment as done. EricWF added inline comments. Comment at: lib/Sema/SemaCoroutine.cpp:393 +// - await-suspend is the expression e.await_suspend(h), which shall be +// a prvalue of type void or bool. +QualType RetType = AwaitSuspend->getTy

[PATCH] D33625: [coroutines] Diagnose invalid result types for `await_resume` and `await_suspend` and add missing conversions.

2017-05-28 Thread Richard Smith via Phabricator via cfe-commits
rsmith added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:8977-8980 + "the return type of 'await_suspend' is required to be 'void' or 'bool' (have %0)" +>; +def note_await_ready_no_bool_conversion : Note< + "the return type of 'await_ready' is requir

[libcxx] r304101 - [coroutines] Add end-to-end tests within libc++

2017-05-28 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun May 28 14:38:21 2017 New Revision: 304101 URL: http://llvm.org/viewvc/llvm-project?rev=304101&view=rev Log: [coroutines] Add end-to-end tests within libc++ This patch adds end-to-end/breathing tests for coroutines into libc++. The tests aren't specifically to test libc++

r304094 - [coroutines] Diagnose invalid result types for `await_resume` and `await_suspend` and add missing conversions.

2017-05-28 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun May 28 13:21:12 2017 New Revision: 304094 URL: http://llvm.org/viewvc/llvm-project?rev=304094&view=rev Log: [coroutines] Diagnose invalid result types for `await_resume` and `await_suspend` and add missing conversions. Summary: The expression `await_ready` is required t

[PATCH] D33625: [coroutines] Diagnose invalid result types for `await_resume` and `await_suspend` and add missing conversions.

2017-05-28 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 100557. EricWF added a comment. - Add requested test case. https://reviews.llvm.org/D33625 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaCoroutine.cpp test/SemaCXX/coroutines.cpp Index: test/SemaCXX/coroutines.cpp

[PATCH] D33625: [coroutines] Diagnose invalid result types for `await_resume` and `await_suspend` and add missing conversions.

2017-05-28 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF marked an inline comment as done. EricWF added inline comments. Comment at: lib/Sema/SemaCoroutine.cpp:324 struct ReadySuspendResumeResult { + enum AwaitCallType { ACT_Ready, ACT_Suspend, ACT_Resume }; Expr *Results[3]; GorNishanov wrote: > enum class

[PATCH] D33632: [coroutines] www/cxx_status.html: add non-breaking hyphen

2017-05-28 Thread Gor Nishanov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL304092: [coroutines] www/cxx_status.html: add non-breaking hyphen (authored by GorNishanov). Changed prior to commit: https://reviews.llvm.org/D33632?vs=100555&id=100556#toc Repository: rL LLVM http

r304092 - [coroutines] www/cxx_status.html: add non-breaking hyphen

2017-05-28 Thread Gor Nishanov via cfe-commits
Author: gornishanov Date: Sun May 28 12:35:23 2017 New Revision: 304092 URL: http://llvm.org/viewvc/llvm-project?rev=304092&view=rev Log: [coroutines] www/cxx_status.html: add non-breaking hyphen Reviewers: GorNishanov Reviewed By: GorNishanov Subscribers: EricWF, rsmith, cfe-commits Different

[PATCH] D33632: [coroutines] www/cxx_status.html: add non-breaking hyphen

2017-05-28 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov updated this revision to Diff 100555. GorNishanov added a comment. one more non-breaking hyphen to make it pretty in chrome. In edge it is perfect already, naturally https://reviews.llvm.org/D33632 Files: www/cxx_status.html Index: www/cxx_status.html ==

[PATCH] D33632: [coroutines] www/cxx_status.html: add non-breaking hyphen

2017-05-28 Thread Gor Nishanov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL304091: [coroutines] www/cxx_status.html: add non-breaking hyphen (authored by GorNishanov). Changed prior to commit: https://reviews.llvm.org/D33632?vs=100552&id=100553#toc Repository: rL LLVM http

r304091 - [coroutines] www/cxx_status.html: add non-breaking hyphen

2017-05-28 Thread Gor Nishanov via cfe-commits
Author: gornishanov Date: Sun May 28 11:25:31 2017 New Revision: 304091 URL: http://llvm.org/viewvc/llvm-project?rev=304091&view=rev Log: [coroutines] www/cxx_status.html: add non-breaking hyphen Reviewers: GorNishanov Reviewed By: GorNishanov Subscribers: EricWF, rsmith, cfe-commits Different

[PATCH] D33632: [coroutines] cxx_status.hml: add non-breaking hyphen

2017-05-28 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov created this revision. Herald added a subscriber: EricWF. https://reviews.llvm.org/D33632 Files: www/cxx_status.html Index: www/cxx_status.html === --- www/cxx_status.html +++ www/cxx_status.html @@ -832,7 +832,7 @@

[PATCH] D33625: [coroutines] Diagnose invalid result types for `await_resume` and `await_suspend` and add missing conversions.

2017-05-28 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov added inline comments. Comment at: lib/Sema/SemaCoroutine.cpp:324 struct ReadySuspendResumeResult { + enum AwaitCallType { ACT_Ready, ACT_Suspend, ACT_Resume }; Expr *Results[3]; enum class? https://reviews.llvm.org/D33625 __

[PATCH] D33625: [coroutines] Diagnose invalid result types for `await_resume` and `await_suspend` and add missing conversions.

2017-05-28 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov accepted this revision. GorNishanov added a comment. This revision is now accepted and ready to land. LGTM Comment at: test/SemaCXX/coroutines.cpp:842 +struct bad_await_suspend_return { + bool await_ready(); + // expected-error@+1 {{the return type of 'await_suspe