Re: [PATCH] D21853: [Driver][OpenMP] Update actions builder to create unbundling action when necessary.

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 66027. sfantao added a comment. - Rebase. https://reviews.llvm.org/D21853 Files: include/clang/Driver/Action.h include/clang/Driver/Types.h lib/Driver/Action.cpp lib/Driver/Driver.cpp lib/Driver/ToolChain.cpp lib/Driver/Types.cpp test/Driver/o

Re: [PATCH] D21851: [Driver][OpenMP][CUDA] Add capability to bundle object files in sections of the host binary format.

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 66025. sfantao added a comment. - Refactor code to dump contents of temporary file instead of creating the actual file in dry-run mode. - Rebase. https://reviews.llvm.org/D21851 Files: test/Driver/clang-offload-bundler.c test/Driver/clang-offload-bundl

Re: [PATCH] D21852: [Driver][OpenMP] Update actions builder to create bundling action when necessary.

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 66026. sfantao added a comment. - Rebase. https://reviews.llvm.org/D21852 Files: include/clang/Driver/Action.h lib/Driver/Action.cpp lib/Driver/Driver.cpp lib/Driver/ToolChain.cpp test/Driver/openmp-offload.c Index: test/Driver/openmp-offload.c =

Re: [PATCH] D21856: [Driver][OpenMP] Add support to create jobs for bundling actions.

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 66028. sfantao added a comment. - Rebase. https://reviews.llvm.org/D21856 Files: include/clang/Driver/Action.h include/clang/Driver/ToolChain.h lib/Driver/Action.cpp lib/Driver/ToolChain.cpp lib/Driver/Tools.cpp lib/Driver/Tools.h test/Driver/

Re: [PATCH] D21857: [Driver][OpenMP] Add support to create jobs for unbundling actions.

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 66029. sfantao added a comment. - Fix type qualifier. - Rebase. https://reviews.llvm.org/D21857 Files: include/clang/Driver/Action.h include/clang/Driver/Driver.h include/clang/Driver/Tool.h lib/Driver/Action.cpp lib/Driver/Driver.cpp lib/Driver

Re: [PATCH] D21848: [Driver][OpenMP] Add logic for offloading-specific argument translation.

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 66021. sfantao added a comment. - Rebase. https://reviews.llvm.org/D21848 Files: include/clang/Driver/Compilation.h include/clang/Driver/ToolChain.h lib/Driver/Compilation.cpp lib/Driver/Driver.cpp lib/Driver/MSVCToolChain.cpp lib/Driver/ToolCha

Re: [PATCH] D18172: [CUDA][OpenMP] Add a generic offload action builder

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao added a comment. Any more comments on this patch or depending ones? Thanks! Samuel https://reviews.llvm.org/D18172 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D22943: [Driver] Add FIXME's where we can't use effective triples (NFC)

2016-07-28 Thread Vedant Kumar via cfe-commits
vsk created this revision. vsk added reviewers: echristo, dexonsmith. vsk added subscribers: joerg, rengolin, cfe-commits. Herald added subscribers: mehdi_amini, aemerson. ... even though we *should* be able to. If we used effective triples at the marked sites, we would fail: - test/Driver/{da

[PATCH] D22944: [Driver] Replace one-off uses of default triples with effective triples (NFCI)

2016-07-28 Thread Vedant Kumar via cfe-commits
vsk created this revision. vsk added reviewers: echristo, dexonsmith. vsk added a subscriber: cfe-commits. Herald added subscribers: mehdi_amini, srhines, danalbert, tberghammer. No functionality change is intended. This set of replacements is fairly targeted -- hopefully this makes it easier to v

r277058 - [ObjC] Consider availability of context when emitting availability warnings

2016-07-28 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Thu Jul 28 17:09:53 2016 New Revision: 277058 URL: http://llvm.org/viewvc/llvm-project?rev=277058&view=rev Log: [ObjC] Consider availability of context when emitting availability warnings This means that a function marked with an availability attribute can safely refer to a de

[PATCH] D22945: [Driver] Replace more uses of default triples with effective triples (NFCI)

2016-07-28 Thread Vedant Kumar via cfe-commits
vsk created this revision. vsk added reviewers: echristo, dexonsmith. vsk added a subscriber: cfe-commits. Herald added subscribers: mehdi_amini, srhines, danalbert, tberghammer. Wherever possible, replace: - getToolChain.getArch() with .getArch() - getToolChain.getTriple() with On my end,

Re: [PATCH] D22518: Refactor how include paths are appended to the command arguments.

2016-07-28 Thread Artem Belevich via cfe-commits
tra added a comment. Samuel, the patch breaks CUDA. With the patch clang no longer adds include paths to standard c++ library during device-side compilation. if you run "clang++ -### -c -x cuda /dev/null" you will see that host side gets `"-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/4.8/.

Re: [PATCH] D22697: [ObjC Availability] Consider lexical context of use of declaration when emitting availability diagnostics

2016-07-28 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277058: [ObjC] Consider availability of context when emitting availability warnings (authored by epilk). Changed prior to commit: https://reviews.llvm.org/D22697?vs=65595&id=66037#toc Repository: rL

r277064 - [CUDA] Unswitch enumerators in the selection of the offloading tool chain.

2016-07-28 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Thu Jul 28 17:42:42 2016 New Revision: 277064 URL: http://llvm.org/viewvc/llvm-project?rev=277064&view=rev Log: [CUDA] Unswitch enumerators in the selection of the offloading tool chain. Modified: cfe/trunk/lib/Driver/Tools.cpp Modified: cfe/trunk/lib/Driver/Tools.cpp U

Re: [PATCH] D22518: Refactor how include paths are appended to the command arguments.

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao added a comment. In https://reviews.llvm.org/D22518#500066, @tra wrote: > Samuel, the patch breaks CUDA. With the patch clang no longer adds include > paths to standard c++ library during device-side compilation. > if you run "clang++ -### -c -x cuda /dev/null" you will see that host si

Re: [libcxx] r249738 - Split out of .

2016-07-28 Thread Adrian Prantl via cfe-commits
+Bruno > On Jul 27, 2016, at 11:58 PM, Nico Weber wrote: > > I played with modules a bit today, and as far as I can tell this is still > broken. If this proves difficult to fix, should this change be reverted for > now? It breaks using modules on Darwin. > > On Sun, Mar 13, 2016 at 12:53 AM, A

r277070 - Revert "[ObjC] Consider availability of context when emitting availability warnings"

2016-07-28 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Thu Jul 28 17:51:11 2016 New Revision: 277070 URL: http://llvm.org/viewvc/llvm-project?rev=277070&view=rev Log: Revert "[ObjC] Consider availability of context when emitting availability warnings" Reverting r277058, while I fugure out why it broke internal bots. This reverts

Re: r276653 - Support '#pragma once' in headers when using PCH

2016-07-28 Thread Hans Wennborg via cfe-commits
The change seems straight-forward, well reviewed and has been in the tree for a while, so I've merged it to 3.9 in r277075. Thanks, Hans On Mon, Jul 25, 2016 at 1:51 PM, Hans Wennborg wrote: > Should me merge this to 3.9? > > On Mon, Jul 25, 2016 at 10:17 AM, Sunil Srivastava via cfe-commits >

[PATCH] D22946: [CUDA] Regression test to make sure C++ include path are forwarded to host and device frontends.

2016-07-28 Thread Samuel Antao via cfe-commits
sfantao created this revision. sfantao added a reviewer: tra. sfantao added a subscriber: cfe-commits. Add test to detect the C++ include paths are passed to both CUDA host and device frontends. https://reviews.llvm.org/D22946 Files: test/Driver/cuda-simple.cu Index: test/Driver/cuda-simple.

r277080 - [docs] Mention some new options in llvm-cov

2016-07-28 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Thu Jul 28 18:18:48 2016 New Revision: 277080 URL: http://llvm.org/viewvc/llvm-project?rev=277080&view=rev Log: [docs] Mention some new options in llvm-cov Modified: cfe/trunk/docs/SourceBasedCodeCoverage.rst Modified: cfe/trunk/docs/SourceBasedCodeCoverage.rst URL: ht

r277081 - [docs] Coverage: Reference the new -output-dir option

2016-07-28 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Thu Jul 28 18:22:42 2016 New Revision: 277081 URL: http://llvm.org/viewvc/llvm-project?rev=277081&view=rev Log: [docs] Coverage: Reference the new -output-dir option Modified: cfe/trunk/docs/SourceBasedCodeCoverage.rst Modified: cfe/trunk/docs/SourceBasedCodeCoverage.rs

Re: [PATCH] D22514: CloneDetection now respects statement specific data when searching for clones.

2016-07-28 Thread Raphael Isemann via cfe-commits
teemperor marked an inline comment as done. Comment at: lib/Analysis/CloneDetection.cpp:134 @@ +133,3 @@ + DEF_ADD_DATA(Stmt, { addData(S->getStmtClass()); }) + DEF_ADD_DATA(Expr, { addData(S->getType()); }) + NoQ wrote: > I noticed something: with this patch, y

r277094 - Change a test to be less prone to random failures due to

2016-07-28 Thread Wolfgang Pieb via cfe-commits
Author: wolfgangp Date: Thu Jul 28 19:54:13 2016 New Revision: 277094 URL: http://llvm.org/viewvc/llvm-project?rev=277094&view=rev Log: Change a test to be less prone to random failures due to unintended matches of label numbers to debug metadata handles in release builds. Modified: cfe/trunk

Re: [PATCH] D22930: [Parser] only correct delayed typos for conditional expressions when needed.

2016-07-28 Thread Erik Pilkington via cfe-commits
erik.pilkington accepted this revision. erik.pilkington added a comment. This revision is now accepted and ready to land. LGTM, thanks! https://reviews.llvm.org/D22930 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi

r277095 - [Parser] Fix bug where delayed typo in conditional expression was corrected twice

2016-07-28 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Thu Jul 28 19:55:40 2016 New Revision: 277095 URL: http://llvm.org/viewvc/llvm-project?rev=277095&view=rev Log: [Parser] Fix bug where delayed typo in conditional expression was corrected twice Patch by David Tarditi! Differential revision: https://reviews.llvm.org/D22930 M

Re: [PATCH] D22930: [Parser] only correct delayed typos for conditional expressions when needed.

2016-07-28 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277095: [Parser] Fix bug where delayed typo in conditional expression was corrected… (authored by epilk). Changed prior to commit: https://reviews.llvm.org/D22930?vs=65965&id=66067#toc Repository: rL

Re: r274991 - [clang-cl] Add support for /Zd

2016-07-28 Thread Hans Wennborg via cfe-commits
Sorry, I was supposed to chime in here. I don't have a strong opinion on this, but I don't think it's a problem for us to allow the -gline-tables-only spelling in addition to /Zd. It just doesn't seem like a big deal to me. On Mon, Jul 11, 2016 at 5:50 PM, Saleem Abdulrasool via cfe-commits wro

[clang-tools-extra] r277097 - [clang-tidy] Fixes to modernize-use-emplace

2016-07-28 Thread Piotr Padlewski via cfe-commits
Author: prazek Date: Thu Jul 28 21:10:23 2016 New Revision: 277097 URL: http://llvm.org/viewvc/llvm-project?rev=277097&view=rev Log: [clang-tidy] Fixes to modernize-use-emplace Not everything is valid, but it should works for 99.8% cases https://reviews.llvm.org/D22208 Modified: clang-tools

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-28 Thread Honggyu Kim via cfe-commits
honggyu.kim updated the summary for this revision. honggyu.kim updated this revision to Diff 66072. https://reviews.llvm.org/D22666 Files: lib/CodeGen/CodeGenFunction.cpp Index: lib/CodeGen/CodeGenFunction.cpp === --- lib/CodeGen/

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-28 Thread Honggyu Kim via cfe-commits
honggyu.kim marked 4 inline comments as done. honggyu.kim added a comment. In https://reviews.llvm.org/D22666#499583, @hfinkel wrote: > Comments about the comment, but otherwise, LGTM. Just updated the comment as you mentioned. Thanks for correcting my English :) https://reviews.llvm.org/D226

Re: [PATCH] D22904: Fix two bugs for musl-libc on ARM

2016-07-28 Thread Lei Zhang via cfe-commits
zlei updated this revision to Diff 66074. zlei added a comment. Restructure the code and add a few tests. https://reviews.llvm.org/D22904 Files: lib/Driver/ToolChains.cpp test/Driver/linux-ld.c Index: test/Driver/linux-ld.c ==

Re: [PATCH] D22904: Fix two bugs for musl-libc on ARM

2016-07-28 Thread Lei Zhang via cfe-commits
zlei added a comment. @rengolin Thanks for your comments. Patch updated. https://reviews.llvm.org/D22904 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-28 Thread Honggyu Kim via cfe-commits
honggyu.kim added a comment. Should we also modify clang/test/CodeGen/mcount.c as well? I'm not actually familiar with test infra. $ cat llvm/tools/clang/test/CodeGen/mcount.c // RUN: %clang_cc1 -pg -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s // RUN: %clang_cc1 -pg -tr

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-28 Thread John McCall via cfe-commits
rjmccall added a comment. In https://reviews.llvm.org/D22666#500326, @honggyu.kim wrote: > Should we also modify clang/test/CodeGen/mcount.c as well? I'm not actually > familiar with test infra. Yes, you'll need to modify it to test for the attribute instead. https://reviews.llvm.org/D22666

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-28 Thread Honggyu Kim via cfe-commits
honggyu.kim added a comment. In https://reviews.llvm.org/D22666#500327, @rjmccall wrote: > In https://reviews.llvm.org/D22666#500326, @honggyu.kim wrote: > > > Should we also modify clang/test/CodeGen/mcount.c as well? I'm not > > actually familiar with test infra. > > > Yes, you'll need to mod

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-28 Thread Hal Finkel via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D22666#500328, @honggyu.kim wrote: > In https://reviews.llvm.org/D22666#500327, @rjmccall wrote: > > > In https://reviews.llvm.org/D22666#500326, @honggyu.kim wrote: > > > > > Should we also modify clang/test/CodeGen/mcount.c as well? I'm not

Re: [PATCH] D22824: MathExtras.h: add LLVM_CONSTEXPR where simple

2016-07-28 Thread Hubert Tong via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: include/llvm/Support/MathExtras.h:672 @@ -669,2 +671,3 @@ inline uint64_t alignTo(uint64_t Value, uint64_t Align, uint64_t Skew = 0) { + assert(Align != 0u); Skew %= Align; aaron.ballman wrote: > Usual

Re: [PATCH] D22900: Revert r244207 - Mark calls in thunk functions as tail-call optimization

2016-07-28 Thread Gerolf Hoflehner via cfe-commits
Gerolf updated this revision to Diff 66075. Gerolf added a comment. Reduced test case. https://reviews.llvm.org/D22900 Files: lib/CodeGen/CGVTables.cpp test/CodeGenCXX/microsoft-abi-structors.cpp test/CodeGenCXX/tail-byval.cpp Index: test/CodeGenCXX/tail-byval.cpp ===

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-28 Thread Honggyu Kim via cfe-commits
honggyu.kim added a comment. In https://reviews.llvm.org/D22666#500329, @hfinkel wrote: > In this case, I think that making a simple test (changing the current test to > be) like test/CodeGen/stackrealign.c would be fine. If you have any > questions, please feel free to ask. Thanks. Please co

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-28 Thread Hal Finkel via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D22666#500338, @honggyu.kim wrote: > In https://reviews.llvm.org/D22666#500329, @hfinkel wrote: > > > In this case, I think that making a simple test (changing the current test > > to be) like test/CodeGen/stackrealign.c would be fine. If you

Re: [PATCH] D22668: TrailingObjects::FixedSizeStorage constexpr fixes

2016-07-28 Thread Hubert Tong via cfe-commits
hubert.reinterpretcast added a comment. In https://reviews.llvm.org/D22668#499164, @aaron.ballman wrote: > I don't suppose there's a way to test these changes, is there? It's a utility class (which is not even used yet). I am not aware of testing for the ADTs, etc. aside from using them intern

[PATCH] D22955: [MSVC] Improved late parsing of template functions.

2016-07-28 Thread Alexey Bataev via cfe-commits
ABataev created this revision. ABataev added reviewers: rnk, rsmith, majnemer. ABataev added subscribers: cfe-commits, andreybokhanko. MSVC actively uses unqualified lookup in dependent bases, lookup at the instantiation point (non-dependent names may be resolved on things declared later) etc. a

[clang-tools-extra] r277113 - [Typo police] s/proccess/process/, s/auxiliary/auxilliary/.

2016-07-28 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Fri Jul 29 00:26:58 2016 New Revision: 277113 URL: http://llvm.org/viewvc/llvm-project?rev=277113&view=rev Log: [Typo police] s/proccess/process/, s/auxiliary/auxilliary/. Modified: clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp Modified: clang-tools-

r277113 - [Typo police] s/proccess/process/, s/auxiliary/auxilliary/.

2016-07-28 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Fri Jul 29 00:26:58 2016 New Revision: 277113 URL: http://llvm.org/viewvc/llvm-project?rev=277113&view=rev Log: [Typo police] s/proccess/process/, s/auxiliary/auxilliary/. Modified: cfe/trunk/include/clang/AST/Decl.h Modified: cfe/trunk/include/clang/AST/Decl.h URL: htt

<    1   2