[PATCH] D28981: Use GNU-style attributes for several __throw_XXX() functions

2017-01-23 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. > In https://reviews.llvm.org/rL279744, __throw_XXX() functions were > introduced, partially for compatibility with software compiled against > libstdc++. You're working from a false premise. These functions were not added for compatibility with libstdc++, but rat

Re: [clang-tools-extra] r291892 - Fix the build of the include-fixer plugin for some shared cmake builds and MSVC.

2017-01-23 Thread Hans Wennborg via cfe-commits
I've merged this to the release branch in r292834. Thanks, Hans On Fri, Jan 13, 2017 at 2:14 AM, Benjamin Kramer via cfe-commits wrote: > Author: d0k > Date: Fri Jan 13 04:14:07 2017 > New Revision: 291892 > > URL: http://llvm.org/viewvc/llvm-project?rev=291892&view=rev > Log: > Fix the build of

[PATCH] D22057: Prevent devirtualization of calls to un-instantiated functions.

2017-01-23 Thread Sunil Srivastava via Phabricator via cfe-commits
Sunil_Srivastava added a comment. Ping https://reviews.llvm.org/D22057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D27872: [APFloat] Switch from (PPCDoubleDoubleImpl, IEEEdouble) layout to (IEEEdouble, IEEEdouble)

2017-01-23 Thread Eric Christopher via Phabricator via cfe-commits
echristo added a comment. Hal has given an ack (offline) as well. Go ahead Tim. https://reviews.llvm.org/D27872 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r291905 - [Sema] Add warning for unused lambda captures

2017-01-23 Thread Aaron Ballman via cfe-commits
On Mon, Jan 23, 2017 at 5:00 PM, Nico Weber via cfe-commits wrote: > On Sun, Jan 22, 2017 at 6:17 AM, Malcolm Parsons > wrote: >> >> On 20 January 2017 at 21:32, Nico Weber wrote: >> > This warns about code like >> > >> > constexpr int foo = 4; >> > [&foo]() { use(foo); } >> > >> > That's co

[PATCH] D28981: Use GNU-style attributes for several __throw_XXX() functions

2017-01-23 Thread Dimitry Andric via Phabricator via cfe-commits
dim added a comment. In https://reviews.llvm.org/D28981#653908, @mclow.lists wrote: > > In https://reviews.llvm.org/rL279744, __throw_XXX() functions were > > introduced, partially for compatibility with software compiled against > > libstdc++. > > You're working from a false premise. These fu

r292838 - AMDGPU: Update for changed subtarget feature name

2017-01-23 Thread Matt Arsenault via cfe-commits
Author: arsenm Date: Mon Jan 23 16:31:14 2017 New Revision: 292838 URL: http://llvm.org/viewvc/llvm-project?rev=292838&view=rev Log: AMDGPU: Update for changed subtarget feature name Modified: cfe/trunk/lib/Basic/Targets.cpp cfe/trunk/test/CodeGenOpenCL/denorms-are-zero.cl Modified: cfe/

r292839 - [APFloat] Switch from (PPCDoubleDoubleImpl, IEEEdouble) layout to (IEEEdouble, IEEEdouble)

2017-01-23 Thread Tim Shen via cfe-commits
Author: timshen Date: Mon Jan 23 16:39:35 2017 New Revision: 292839 URL: http://llvm.org/viewvc/llvm-project?rev=292839&view=rev Log: [APFloat] Switch from (PPCDoubleDoubleImpl, IEEEdouble) layout to (IEEEdouble, IEEEdouble) Summary: This patch changes the layout of DoubleAPFloat, and adjust all

[PATCH] D27872: [APFloat] Switch from (PPCDoubleDoubleImpl, IEEEdouble) layout to (IEEEdouble, IEEEdouble)

2017-01-23 Thread Tim Shen via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292839: [APFloat] Switch from (PPCDoubleDoubleImpl, IEEEdouble) layout to (IEEEdouble… (authored by timshen). Changed prior to commit: https://reviews.llvm.org/D27872?vs=85217&id=85457#toc Repository:

Re: r291905 - [Sema] Add warning for unused lambda captures

2017-01-23 Thread Nico Weber via cfe-commits
On Mon, Jan 23, 2017 at 5:29 PM, Aaron Ballman wrote: > On Mon, Jan 23, 2017 at 5:00 PM, Nico Weber via cfe-commits > wrote: > > On Sun, Jan 22, 2017 at 6:17 AM, Malcolm Parsons < > malcolm.pars...@gmail.com> > > wrote: > >> > >> On 20 January 2017 at 21:32, Nico Weber wrote: > >> > This warns

Re: [libcxx] r291961 - Add _LIBCPP_DIAGNOSE_WARNING and _LIBCPP_DIAGNOSE_ERROR macros.

2017-01-23 Thread George Burgess via cfe-commits
I like the idea of tagging diagnose_ifs with tags, though I wonder how this could be made applicable to code outside of libcxx. Specifically, if I import some big library that uses diagnose_if, then I'd still need to use `-Wno-user-defined-warnings` if said lib had a single diagnose_if that I didn'

[PATCH] D29039: Proposal for clang-format -r option

2017-01-23 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. I am happy to let other people in the community weigh in, but I would not move forward with this patch. Listing directories is not a task that clang-format should do. It does not seem useful to me to add this functionality to basically every single tool that you might w

[PATCH] D28981: Use GNU-style attributes for several __throw_XXX() functions

2017-01-23 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. > It would be nice to have some way of making them semi-compatible. I'm afraid I disagree. If we make them something that people can "count on", then we have to support them. The whole point of names that start with `__` (or `_[A-Z]` are that they are internal, imp

[PATCH] D29032: [mips] Define macros related to -mabicalls in the preprocessor

2017-01-23 Thread Joerg Sonnenberger via Phabricator via cfe-commits
joerg added a comment. I'm not terribly attached to using __ABICALLS__ for NetBSD, but let me check back with some of the MIPS folks. I would prefer __mips_abicalls to be always defined though, independent of the historic behavior. https://reviews.llvm.org/D29032 ___

r292847 - PR31692: Don't mark a declaration as invalid if we haven't necessarily emitted a (user-visible) error.

2017-01-23 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Jan 23 17:14:23 2017 New Revision: 292847 URL: http://llvm.org/viewvc/llvm-project?rev=292847&view=rev Log: PR31692: Don't mark a declaration as invalid if we haven't necessarily emitted a (user-visible) error. Added: cfe/trunk/test/SemaCXX/cxx11-default-member-initi

Re: r292847 - PR31692: Don't mark a declaration as invalid if we haven't necessarily emitted a (user-visible) error.

2017-01-23 Thread Richard Smith via cfe-commits
Hans, this should go into Clang 4. On 23 January 2017 at 15:14, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rsmith > Date: Mon Jan 23 17:14:23 2017 > New Revision: 292847 > > URL: http://llvm.org/viewvc/llvm-project?rev=292847&view=rev > Log: > PR31692: Don't mark

r292849 - Add LF_ prefix to LibFunc enums in TargetLibraryInfo.

2017-01-23 Thread David L. Jones via cfe-commits
Author: dlj Date: Mon Jan 23 17:16:58 2017 New Revision: 292849 URL: http://llvm.org/viewvc/llvm-project?rev=292849&view=rev Log: Add LF_ prefix to LibFunc enums in TargetLibraryInfo. Summary: The LibFunc::Func enum holds enumerators named for libc functions. Unfortunately, there are real situati

[PATCH] D28477: Add LF_ prefix to LibFunc enums in TargetLibraryInfo.

2017-01-23 Thread David L. Jones via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292849: Add LF_ prefix to LibFunc enums in TargetLibraryInfo. (authored by dlj). Changed prior to commit: https://reviews.llvm.org/D28477?vs=83674&id=85473#toc Repository: rL LLVM https://reviews.ll

[PATCH] D28981: Use GNU-style attributes for several __throw_XXX() functions

2017-01-23 Thread Jonathan Wakely via Phabricator via cfe-commits
jwakely added a comment. The __throw_xxx functions are not part of the public libstdc++ API and whatever Firefox is trying to do with them is not supported by libstdc++ and is undefined behaviour. Make it stop. https://reviews.llvm.org/D28981 ___

Re: [libcxx] r291961 - Add _LIBCPP_DIAGNOSE_WARNING and _LIBCPP_DIAGNOSE_ERROR macros.

2017-01-23 Thread Eric Fiselier via cfe-commits
> I like the idea of tagging diagnose_ifs with tags, though I wonder how this could be made applicable to code outside of libcxx. Specifically, if I import some big library that uses diagnose_if, then I'd still need to use `-Wno-user-defined-warnings` if said lib had a single diagnose_if that I did

[PATCH] D28772: [Preprocessor] Fix incorrect token caching that occurs when lexing _Pragma in macro argument pre-expansion mode when skipping a function body

2017-01-23 Thread Richard Smith via Phabricator via cfe-commits
rsmith added a comment. Can we instead address this locally in `_Pragma` handling, by getting it to clear out the junk it inserted into the token stream when it's done (if backtracking is enabled)? Repository: rL LLVM https://reviews.llvm.org/D28772 __

Re: [libcxx] r291961 - Add _LIBCPP_DIAGNOSE_WARNING and _LIBCPP_DIAGNOSE_ERROR macros.

2017-01-23 Thread George Burgess via cfe-commits
> However I do want a little special behavior for libc++ [...] I have no problem with this: I just wanted to be sure that we could reasonably use this feature for things that aren't libcxx. :) > Libc++ defines some symbols within the global namespace, and we'll need a way to group those as part o

r292856 - Re-commit "Don't inline dllimport functions referencing non-imported methods"

2017-01-23 Thread Hans Wennborg via cfe-commits
Author: hans Date: Mon Jan 23 17:57:50 2017 New Revision: 292856 URL: http://llvm.org/viewvc/llvm-project?rev=292856&view=rev Log: Re-commit "Don't inline dllimport functions referencing non-imported methods" This re-commits r292522 with the addition that it also handles calls through pointer to

Re: r292522 - Don't inline dllimport functions referencing non-imported methods

2017-01-23 Thread Hans Wennborg via cfe-commits
Thanks for reverting! This was indeed broken. I've re-committed it with a fix in r292856. On Fri, Jan 20, 2017 at 12:56 PM, Reid Kleckner via cfe-commits wrote: > The first Chrome DLL build with this change is crashing during compilation: > https://build.chromium.org/p/chromium.fyi/builders/Clan

Re: r292800 - [analyzer] Fix memory space of static locals seen from nested blocks.

2017-01-23 Thread Anna Zaks via cfe-commits
Yes, ok to merge! Thank you. Sent from my iPhone > On Jan 23, 2017, at 1:50 PM, Hans Wennborg wrote: > > Sounds good to me. > > Anna, you're the code owner here. Ok to merge this? > > Thanks, > Hans > >> On Mon, Jan 23, 2017 at 10:37 AM, Artem Dergachev >> wrote: >> Hans, >> >> Could we m

[PATCH] D28845: Prototype of modules codegen

2017-01-23 Thread David Blaikie via Phabricator via cfe-commits
dblaikie updated this revision to Diff 85484. dblaikie added a comment. Add bit to the Module record for when modular codegen decls are included in the MODULAR_CODEGEN_DECLS bitcode record https://reviews.llvm.org/D28845 Files: include/clang/AST/ASTContext.h include/clang/AST/ExternalASTSo

Re: r292800 - [analyzer] Fix memory space of static locals seen from nested blocks.

2017-01-23 Thread Hans Wennborg via cfe-commits
Merged in r292858. Thanks, Hans On Mon, Jan 23, 2017 at 4:15 PM, Anna Zaks wrote: > Yes, ok to merge! > Thank you. > > Sent from my iPhone > >> On Jan 23, 2017, at 1:50 PM, Hans Wennborg wrote: >> >> Sounds good to me. >> >> Anna, you're the code owner here. Ok to merge this? >> >> Thanks, >> H

Re: [libcxx] r292833 - Manually force the use of __decltype in C++03 with Clang 3.4.

2017-01-23 Thread Hans Wennborg via cfe-commits
Sounds good to me. On Mon, Jan 23, 2017 at 1:56 PM, Eric Fiselier wrote: > This patch should be merge into 4.0 since it is needed to fix compile time > regressions in when using Clang 3.4 and C++03. > > See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216054 for more info. > > /Eric > > On

Re: r292847 - PR31692: Don't mark a declaration as invalid if we haven't necessarily emitted a (user-visible) error.

2017-01-23 Thread Hans Wennborg via cfe-commits
Thanks! r292859. On Mon, Jan 23, 2017 at 3:26 PM, Richard Smith wrote: > Hans, this should go into Clang 4. > > On 23 January 2017 at 15:14, Richard Smith via cfe-commits > wrote: >> >> Author: rsmith >> Date: Mon Jan 23 17:14:23 2017 >> New Revision: 292847 >> >> URL: http://llvm.org/viewvc/llv

Re: r291963 - [clang] Emit `diagnose_if` warnings from system headers

2017-01-23 Thread Hans Wennborg via cfe-commits
Ping? On Tue, Jan 17, 2017 at 4:16 PM, Hans Wennborg wrote: > Richard, what do you think? > > On Fri, Jan 13, 2017 at 3:16 PM, Eric Fiselier wrote: >> I would love to see this merged. It would make it easier to write libc++ >> tests if the tests didn't have to worry about the old 4.0 behavior. >

[PATCH] D28952: [analyzer] Add new Z3 constraint manager backend

2017-01-23 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin added a comment. This is super-exciting work! Some high-level notes: - The running-time numbers you report are very high. At a ~20x slowdown, the benefits from improved solver reasoning will have to be very, very large to justify the performance cost. It is worth thinking about ways

[PATCH] D28933: Revert the return type for `emplace_(back|front)` to `void` in C++14 and before

2017-01-23 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. This sounds like something we'll want to merge to the release branch when it lands? https://reviews.llvm.org/D28933 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D28889: Change where we handle arg-dependent diagnose_if attributes

2017-01-23 Thread George Burgess IV via Phabricator via cfe-commits
george.burgess.iv updated this revision to Diff 85486. george.burgess.iv marked 2 inline comments as done. george.burgess.iv added a comment. Addressed all feedback. Richard noted that, because we're now doing these checks after overload resolution has occurred, we no longer need to convert argu

Re: [PATCH] D28889: Change where we handle arg-dependent diagnose_if attributes

2017-01-23 Thread George Burgess IV via cfe-commits
> Also, I plan to submit this (once it's LGTM'ed) to the 4.0 branch. Is that OK with you, Richard? (To be clear, I'll check with Hans before I submit this there, as well. Just trying to save a round-trip. :) ) On Mon, Jan 23, 2017 at 4:39 PM, George Burgess IV via Phabricator < revi...@reviews.ll

[PATCH] D28835: [coroutines] NFC: Refactor Sema::CoroutineBodyStmt construction.

2017-01-23 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov updated this revision to Diff 85489. GorNishanov added a comment. No changes. Merge with top of the tree (to simplify comparing with the updated version that is coming up in a second). https://reviews.llvm.org/D28835 Files: include/clang/AST/StmtCXX.h include/clang/Sema/ScopeIn

[PATCH] D28835: [coroutines] NFC: Refactor Sema::CoroutineBodyStmt construction.

2017-01-23 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov updated this revision to Diff 85490. GorNishanov added a comment. Feedback implemented! https://reviews.llvm.org/D28835 Files: include/clang/AST/StmtCXX.h include/clang/Sema/ScopeInfo.h lib/AST/StmtCXX.cpp lib/Sema/SemaCoroutine.cpp test/SemaCXX/coroutines.cpp Index: test

[PATCH] D28835: [coroutines] NFC: Refactor Sema::CoroutineBodyStmt construction.

2017-01-23 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov marked 2 inline comments as done. GorNishanov added a comment. Looks even better now! https://reviews.llvm.org/D28835 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D28007: Switch TableGen to emit calls to ASTRecordReader for AttrPCHRead.

2017-01-23 Thread David L. Jones via Phabricator via cfe-commits
dlj updated this revision to Diff 85493. dlj added a comment. - Pull, merge, etc. https://reviews.llvm.org/D28007 Files: include/clang/Serialization/ASTReader.h lib/Serialization/ASTReaderDecl.cpp utils/TableGen/ClangAttrEmitter.cpp Index: utils/TableGen/ClangAttrEmitter.cpp

r292862 - [sanitizer-coverage] emit __sanitizer_cov_trace_pc_guard w/o a preceding 'if' by default. Update the docs, also add deprecation notes around other parts of sanitizer coverage

2017-01-23 Thread Kostya Serebryany via cfe-commits
Author: kcc Date: Mon Jan 23 18:57:31 2017 New Revision: 292862 URL: http://llvm.org/viewvc/llvm-project?rev=292862&view=rev Log: [sanitizer-coverage] emit __sanitizer_cov_trace_pc_guard w/o a preceding 'if' by default. Update the docs, also add deprecation notes around other parts of sanitizer

[libcxx] r292866 - Merge r292833 - Manually force the use of __decltype in C++03 with Clang 3.4.

2017-01-23 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Jan 23 19:01:55 2017 New Revision: 292866 URL: http://llvm.org/viewvc/llvm-project?rev=292866&view=rev Log: Merge r292833 - Manually force the use of __decltype in C++03 with Clang 3.4. This merges a version of r292833 since it didn't apply cleanly due to other upstream c

Re: [libcxx] r292833 - Manually force the use of __decltype in C++03 with Clang 3.4.

2017-01-23 Thread Eric Fiselier via cfe-commits
r292866. On Mon, Jan 23, 2017 at 5:22 PM, Hans Wennborg wrote: > Sounds good to me. > > On Mon, Jan 23, 2017 at 1:56 PM, Eric Fiselier wrote: > > This patch should be merge into 4.0 since it is needed to fix compile > time > > regressions in when using Clang 3.4 and C++03. > > > > See https://

[libcxx] r292867 - Merge r292830 - Fix GCC C++03 build by hiding default template argument in C++03

2017-01-23 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Jan 23 19:03:36 2017 New Revision: 292867 URL: http://llvm.org/viewvc/llvm-project?rev=292867&view=rev Log: Merge r292830 - Fix GCC C++03 build by hiding default template argument in C++03 Modified: libcxx/branches/release_40/include/string Modified: libcxx/branches/

Re: [libcxx] r292830 - Fix GCC C++03 build by hiding default template argument in C++03

2017-01-23 Thread Eric Fiselier via cfe-commits
r292867. On Mon, Jan 23, 2017 at 2:52 PM, Hans Wennborg wrote: > We merged the first one, so I suppose we better fix it :-) > > Sounds good to me. > > On Mon, Jan 23, 2017 at 1:37 PM, Eric Fiselier wrote: > > This patch should be merge into the 4.0 branch. > > > > It fixes a bug introduced to t

[PATCH] D28007: Switch TableGen to emit calls to ASTRecordReader for AttrPCHRead.

2017-01-23 Thread David L. Jones via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292868: Switch TableGen to emit calls to ASTRecordReader for AttrPCHRead. (authored by dlj). Changed prior to commit: https://reviews.llvm.org/D28007?vs=85493&id=85498#toc Repository: rL LLVM https:

r292868 - Switch TableGen to emit calls to ASTRecordReader for AttrPCHRead.

2017-01-23 Thread David L. Jones via cfe-commits
Author: dlj Date: Mon Jan 23 19:04:30 2017 New Revision: 292868 URL: http://llvm.org/viewvc/llvm-project?rev=292868&view=rev Log: Switch TableGen to emit calls to ASTRecordReader for AttrPCHRead. Summary: This patch changes TableGen-generated code in AttrPCHRead to call functions on ASTRecordRead

[libcxx] r292869 - Merge r292822 - Fixed a typo in __config that prevented the aligned new/delete tests from passing on Mac OS.

2017-01-23 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Jan 23 19:05:56 2017 New Revision: 292869 URL: http://llvm.org/viewvc/llvm-project?rev=292869&view=rev Log: Merge r292822 - Fixed a typo in __config that prevented the aligned new/delete tests from passing on Mac OS. Modified: libcxx/branches/release_40/include/__con

Re: [libcxx] r292822 - Fixed a typo in __config that prevented the aligned new/delete tests from passing on Mac OS.

2017-01-23 Thread Eric Fiselier via cfe-commits
r292869. On Mon, Jan 23, 2017 at 3:00 PM, Hans Wennborg wrote: > Ok, go ahead. > > On Mon, Jan 23, 2017 at 1:54 PM, Eric Fiselier wrote: > > This patch needs to get merged into 4.0 since the offending commit with > the > > misspelling is in the 4.0 branch. > > > > /Eric > > > > > > On Mon, Jan

[PATCH] D29063: [libcxx] Never use within libc++

2017-01-23 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. Herald added a subscriber: mgorny. It is my opinion that libc++ should never use ``, including in the `dylib`. This patch remove all uses of `assert` from within libc++ and replaces most of them with `_LIBCPP_ASSERT` instead. Additionally this patch turn `LIBCXX_EN

r292874 - Revert "[analyzer] Fix memory space of static locals seen from nested blocks."

2017-01-23 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Mon Jan 23 20:10:59 2017 New Revision: 292874 URL: http://llvm.org/viewvc/llvm-project?rev=292874&view=rev Log: Revert "[analyzer] Fix memory space of static locals seen from nested blocks." This reverts commit r292800. It is causing null pointer dereference false positiv

Re: r292800 - [analyzer] Fix memory space of static locals seen from nested blocks.

2017-01-23 Thread Devin Coughlin via cfe-commits
FYI, I reverted r292800 from trunk in r292874. It was causing our internal validation bots to have false positives whenever a static local was dereferenced/passed to a nonnull function in a block evaluated at the top level. Devin > On Jan 23, 2017, at 4:19 PM, Hans Wennborg wrote: > > Merged

[PATCH] D29065: Split isUsingLTO() outside of embedBitcodeInObject() and embedBitcodeMarkerOnly().

2017-01-23 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini created this revision. These accessors maps directly to the command line option. https://reviews.llvm.org/D29065 Files: clang/include/clang/Driver/Driver.h clang/lib/Driver/Driver.cpp clang/lib/Driver/Tools.cpp Index: clang/lib/Driver/Tools.cpp ==

[PATCH] D29066: Forward -bitcode_process_mode to ld64 in marker-only mode

2017-01-23 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini created this revision. https://reviews.llvm.org/D29066 Files: clang/lib/Driver/Tools.cpp Index: clang/lib/Driver/Tools.cpp === --- clang/lib/Driver/Tools.cpp +++ clang/lib/Driver/Tools.cpp @@ -8435,9 +8435,13 @@ //

[PATCH] D29067: IRGen: When loading the main module in the distributed ThinLTO backend, look for the module containing the summary.

2017-01-23 Thread Peter Collingbourne via Phabricator via cfe-commits
pcc created this revision. Herald added a subscriber: mgorny. https://reviews.llvm.org/D29067 Files: clang/include/clang/CodeGen/BackendUtil.h clang/include/clang/CodeGen/CodeGenAction.h clang/lib/CodeGen/BackendUtil.cpp clang/lib/CodeGen/CodeGenAction.cpp clang/test/CMakeLists.txt cl

[PATCH] D29065: Split isUsingLTO() outside of embedBitcodeInObject() and embedBitcodeMarkerOnly().

2017-01-23 Thread Steven Wu via Phabricator via cfe-commits
steven_wu added a comment. I think you should add a new API for embedBitcodeMarkerEnabled() or revert the name the APIs to before https://reviews.llvm.org/rL287084. https://reviews.llvm.org/D29065 ___ cfe-commits mailing list cfe-commits@lists.llvm

[PATCH] D29067: IRGen: When loading the main module in the distributed ThinLTO backend, look for the module containing the summary.

2017-01-23 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added inline comments. Comment at: clang/include/clang/CodeGen/BackendUtil.h:51 + llvm::Expected + FindThinLTOModule(llvm::MemoryBufferRef MBRef); } Indentation seems strange? Comment at: clang/lib/CodeGen/CodeGenAction.cpp:841

[PATCH] D29063: [libcxx] Never use within libc++

2017-01-23 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists accepted this revision. mclow.lists added a comment. This revision is now accepted and ready to land. this LGTM. assert is not something we should have in the dylib. Comment at: include/__config:827 # endif +# if !defined(_LIBCPP_BUILDING_LIBRARY) # define _

Re: [PATCH] D28933: Revert the return type for `emplace_(back|front)` to `void` in C++14 and before

2017-01-23 Thread Marshall Clow via cfe-commits
On Mon, Jan 23, 2017 at 4:33 PM, Hans Wennborg via Phabricator < revi...@reviews.llvm.org> wrote: > hans added a comment. > > This sounds like something we'll want to merge to the release branch when > it lands? > > > https://reviews.llvm.org/D28933 > Yes. I'll land it tomorrow afternoon. -- Ma

[PATCH] D29063: [libcxx] Never use within libc++

2017-01-23 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: include/__config:827 # endif +# if !defined(_LIBCPP_BUILDING_LIBRARY) # define _LIBCPP_EXTERN_TEMPLATE(...) mclow.lists wrote: > Does this belong here? > Yeah, so `-DLIBCXX_ENABLE_ASSERTIONS=ON` now define `-D_LIBC

[libcxx] r292883 - [libcxx] Never use within libc++

2017-01-23 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Jan 23 22:57:33 2017 New Revision: 292883 URL: http://llvm.org/viewvc/llvm-project?rev=292883&view=rev Log: [libcxx] Never use within libc++ Summary: It is my opinion that libc++ should never use ``, including in the `dylib`. This patch remove all uses of `assert` from

[PATCH] D28981: Use GNU-style attributes for several __throw_XXX() functions

2017-01-23 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF resigned from this revision. EricWF added a comment. I think we've agreed that this change shouldn't proceed. Resigning as reviewer. https://reviews.llvm.org/D28981 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

[PATCH] D29066: Forward -bitcode_process_mode to ld64 in marker-only mode

2017-01-23 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini updated this revision to Diff 85530. mehdi_amini added a comment. Add a test https://reviews.llvm.org/D29066 Files: clang/lib/Driver/Tools.cpp clang/test/Driver/embed-bitcode.c Index: clang/test/Driver/embed-bitcode.c ===

[PATCH] D29066: Forward -bitcode_process_mode to ld64 in marker-only mode

2017-01-23 Thread Steven Wu via Phabricator via cfe-commits
steven_wu accepted this revision. steven_wu added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D29066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo

[PATCH] D29065: Split isUsingLTO() outside of embedBitcodeInObject() and embedBitcodeMarkerOnly().

2017-01-23 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added a comment. In https://reviews.llvm.org/D29065#654336, @steven_wu wrote: > I think you should add a new API for embedBitcodeMarkerEnabled() or revert > the name the APIs to before https://reviews.llvm.org/rL287084. I'm missing where https://reviews.llvm.org/rL287084 changed th

[PATCH] D28080: [Docs][OpenCL] Added OpenCL feature description to user manual.

2017-01-23 Thread Pekka Jääskeläinen via Phabricator via cfe-commits
pekka.jaaskelainen added a comment. In https://reviews.llvm.org/D28080#653493, @Anastasia wrote: > > Also, for me the command without -emit-llvm doesn't output anything. > > What targets do you use? In this case I used only SPIR. I suppose this is fine as the concept of linking is unclear in c

<    1   2