r270886 - [OpenMP] Codegen for target update directive.

2016-05-26 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Thu May 26 13:30:22 2016 New Revision: 270886 URL: http://llvm.org/viewvc/llvm-project?rev=270886&view=rev Log: [OpenMP] Codegen for target update directive. Summary: This patch implements the code generation for the `target update` directive. The implemntation relies on th

Re: [PATCH] D19274: Compilation for Intel MCU (Part 2/3)

2016-05-26 Thread Andrey Turetskiy via cfe-commits
aturetsk added inline comments. Comment at: lib/Driver/Tools.cpp:3657 @@ +3656,3 @@ + if (IsIAMCU && types::isCXX(Input.getType())) +D.Diag(diag::err_drv_cxx_not_supported) << getToolChain().getTriple().str(); + bruno wrote: > aturetsk wrote: > > bruno wrote

Re: [PATCH] D20499: [Temporary, Lifetime] Add lifetime marks for temporaries

2016-05-26 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:446 @@ +445,3 @@ + case SD_FullExpression: +EHStack.pushCleanup(NormalEHLifetimeMarker, Object, + Size); This should use pushFullExprCleanup.

r270895 - [AMDGPU] Remove individual debugger options + update features

2016-05-26 Thread Konstantin Zhuravlyov via cfe-commits
Author: kzhuravl Date: Thu May 26 14:36:39 2016 New Revision: 270895 URL: http://llvm.org/viewvc/llvm-project?rev=270895&view=rev Log: [AMDGPU] Remove individual debugger options + update features Differential Revision: http://reviews.llvm.org/D20336 Modified: cfe/trunk/include/clang/Driver/

Re: [PATCH] D20336: [AMDGPU] Remove individual debugger options + update features

2016-05-26 Thread Konstantin Zhuravlyov via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL270895: [AMDGPU] Remove individual debugger options + update features (authored by kzhuravl). Changed prior to commit: http://reviews.llvm.org/D20336?vs=57518&id=58668#toc Repository: rL LLVM http:/

Re: [PATCH] D20336: [AMDGPU] Remove individual debugger options + update features

2016-05-26 Thread Konstantin Zhuravlyov via cfe-commits
kzhuravl added a comment. http://reviews.llvm.org/rL270895 Repository: rL LLVM http://reviews.llvm.org/D20336 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r270897 - Re-commit r270748 "clang-cl: Treat dllimport explicit template instantiation definitions as declarations (PR27810, PR27811)"

2016-05-26 Thread Hans Wennborg via cfe-commits
Author: hans Date: Thu May 26 14:42:56 2016 New Revision: 270897 URL: http://llvm.org/viewvc/llvm-project?rev=270897&view=rev Log: Re-commit r270748 "clang-cl: Treat dllimport explicit template instantiation definitions as declarations (PR27810, PR27811)" Also make explicit instantiation decls n

Re: [PATCH] D20626: [Clang][AVX512][intrinsics] Adding missing intrinsics div_pd and div_ps

2016-05-26 Thread Elena Demikhovsky via cfe-commits
delena added inline comments. Comment at: test/CodeGen/avx512f-builtins.c:1927 @@ +1926,3 @@ + // check-label: @test_mm512_div_pd + // check: @llvm.x86.avx512.mask.div.pd.512 + return _mm512_div_pd(__a,__b); I don't understand how do you receive intrinsic if

Re: [PATCH] D20677: Make it possible to build a -fno-exceptions libc++abi variant.

2016-05-26 Thread Ben Craig via cfe-commits
bcraig added a comment. LGTM. Probably want a "LGTM" from at least one other person though. In http://reviews.llvm.org/D20677#441085, @rmaprath wrote: > In http://reviews.llvm.org/D20677#441061, @jroelofs wrote: > > > This is the canonical reference for the Itanium ABI: > > https://mentorembed

Re: [PATCH] D20498: [Temporary] Add an ExprWithCleanups for each C++ MaterializeTemporaryExpr

2016-05-26 Thread Tim Shen via cfe-commits
timshen updated this revision to Diff 58676. timshen added a comment. Update to reflect the comments. http://reviews.llvm.org/D20498 Files: include/clang/AST/ExprCXX.h include/clang/AST/Stmt.h include/clang/Sema/CleanupInfo.h include/clang/Sema/ScopeInfo.h include/clang/Sema/Sema.h

Re: [PATCH] D20498: [Temporary] Add an ExprWithCleanups for each C++ MaterializeTemporaryExpr

2016-05-26 Thread Tim Shen via cfe-commits
timshen marked 7 inline comments as done. Comment at: lib/Sema/SemaInit.cpp:6190-6191 @@ +6189,4 @@ + MaterializeTemporaryExpr(T, Temporary, BoundToLvalueReference); + + // Order an ExprWithCleanups for lifetime marks. + // > Please also sink the calls to m

r270904 - Produce better pretty stack traces from crashes in template instantiation: add

2016-05-26 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu May 26 15:23:13 2016 New Revision: 270904 URL: http://llvm.org/viewvc/llvm-project?rev=270904&view=rev Log: Produce better pretty stack traces from crashes in template instantiation: add pretty stack trace entries for all cases where we instantiate the definition of someth

Re: [PATCH] D20498: [Temporary] Add an ExprWithCleanups for each C++ MaterializeTemporaryExpr

2016-05-26 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Sema/SemaInit.cpp:6197 @@ +6196,3 @@ + // but there may be a chance to merge them. + if (getLangOpts().CPlusPlus) +Cleanup.setExprNeedsCleanups(false); Why is this C++-only? We presumably would want to clean up a

Re: [PATCH] D20119: [libunwind] Improve unwinder stack usage

2016-05-26 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. Looks like this patch breakes gcc builds of libunwind (none of the bots seem to test it though). The problem is two-fold, in `src/config.h` we have: // Define static_assert() unless already defined by compiler.

Re: [PATCH] D20498: [Temporary] Add an ExprWithCleanups for each C++ MaterializeTemporaryExpr

2016-05-26 Thread Tim Shen via cfe-commits
timshen updated this revision to Diff 58694. timshen marked 2 inline comments as done. timshen added a comment. Removed C++ constrain and added back the missing comment line. http://reviews.llvm.org/D20498 Files: include/clang/AST/ExprCXX.h include/clang/AST/Stmt.h include/clang/Sema/Clea

Re: [PATCH] D20119: [libunwind] Improve unwinder stack usage

2016-05-26 Thread Jonathan Roelofs via cfe-commits
jroelofs added a comment. In http://reviews.llvm.org/D20119#441516, @rmaprath wrote: > Please shout! Just add some parens: static_assert((check_fit::does_fit), "or1k registers do not fit into unw_context_t"); http://reviews.llvm.org/D20119 ___

Re: [PATCH] D20404: [Driver] Fix driver support for color diagnostics

2016-05-26 Thread Duncan P. N. Exon Smith via cfe-commits
LGTM. > On 2016-May-26, at 11:34, Bruno Cardoso Lopes wrote: > > bruno added a comment. > > Ping! > > > http://reviews.llvm.org/D20404 > > > ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

Re: [PATCH] D20404: [Driver] Fix driver support for color diagnostics

2016-05-26 Thread Duncan P. N. Exon Smith via cfe-commits
dexonsmith added a subscriber: dexonsmith. dexonsmith added a comment. LGTM. http://reviews.llvm.org/D20404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20119: [libunwind] Improve unwinder stack usage

2016-05-26 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. In http://reviews.llvm.org/D20119#441548, @jroelofs wrote: > In http://reviews.llvm.org/D20119#441516, @rmaprath wrote: > > > Please shout! > > > Just add some parens: > > static_assert((check_fit::does_fit), > "or1k registers do not fit into unw_co

[libunwind] r270925 - Fix gcc libunwind build.

2016-05-26 Thread Asiri Rathnayake via cfe-commits
Author: asiri Date: Thu May 26 16:45:54 2016 New Revision: 270925 URL: http://llvm.org/viewvc/llvm-project?rev=270925&view=rev Log: Fix gcc libunwind build. r270692 seems to have broken gcc builds of libunwind. This is because statements like: static_assert(check_fit::does_fit,

Re: [libunwind] r270925 - Fix gcc libunwind build.

2016-05-26 Thread Jonathan Roelofs via cfe-commits
On 5/26/16 3:45 PM, Asiri Rathnayake via cfe-commits wrote: struct blk_count { -static const uint32_t count = +static const uint64_t count = (sizeof(T) + sizeof(uint64_t) - Should that be 'size_t' instead? Jon -- Jon Roelofs jonat...@codesourcery.com CodeSourcery / Ment

Re: [PATCH] D20677: Make it possible to build a -fno-exceptions libc++abi variant.

2016-05-26 Thread Eric Fiselier via cfe-commits
EricWF added a comment. I want to take a look at this as well. I'll review it tomorrow. http://reviews.llvm.org/D20677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20677: Make it possible to build a -fno-exceptions libc++abi variant.

2016-05-26 Thread Eric Fiselier via cfe-commits
EricWF added a reviewer: mclow.lists. EricWF added a subscriber: mclow.lists. EricWF added a comment. Adding @mclow.lists to this as well. http://reviews.llvm.org/D20677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/c

[libunwind] r270927 - Use size_t to store the results of sizeof calculations.

2016-05-26 Thread Asiri Rathnayake via cfe-commits
Author: asiri Date: Thu May 26 16:56:04 2016 New Revision: 270927 URL: http://llvm.org/viewvc/llvm-project?rev=270927&view=rev Log: Use size_t to store the results of sizeof calculations. NFC. Modified: libunwind/trunk/src/config.h Modified: libunwind/trunk/src/config.h URL: http://llvm.or

Re: [PATCH] D20677: Make it possible to build a -fno-exceptions libc++abi variant.

2016-05-26 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. In http://reviews.llvm.org/D20677#441407, @bcraig wrote: > https://mentorembedded.github.io/cxx-abi/abi-eh.html mentions the functions, > but it doesn't really say what they are for. The C++ standard mentions when > an exception of std::bad_cast and std::bad_typeid ar

Re: [PATCH] D20677: Make it possible to build a -fno-exceptions libc++abi variant.

2016-05-26 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. In http://reviews.llvm.org/D20677#441598, @EricWF wrote: > I want to take a look at this as well. I'll review it tomorrow. Thanks! will wait until we have ironed out all the details, no hurry. / Asiri http://reviews.llvm.org/D20677 ___

Re: [PATCH] D18110: [OpenMP] Fix SEMA bug in the capture of global variables in template functions.

2016-05-26 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 58704. sfantao updated the summary for this revision. sfantao added a comment. Remove most of the logic in the first diff. It is no longer necessary given that all firstprivate captures are now passed by value no matter the directive they are captured in. S

Re: [PATCH] D20626: [Clang][AVX512][intrinsics] Adding missing intrinsics div_pd and div_ps

2016-05-26 Thread Craig Topper via cfe-commits
craig.topper added a subscriber: craig.topper. Comment at: test/CodeGen/avx512f-builtins.c:1927 @@ +1926,3 @@ + // check-label: @test_mm512_div_pd + // check: @llvm.x86.avx512.mask.div.pd.512 + return _mm512_div_pd(__a,__b); delena wrote: > I don't understand

[PATCH] D20709: Support ARM subtarget feature +long64

2016-05-26 Thread Pirama Arumuga Nainar via cfe-commits
pirama created this revision. pirama added a reviewer: kristof.beyls. pirama added subscribers: srhines, cfe-commits. Herald added subscribers: rengolin, aemerson. Set alignment and width of long datatype to be 64-bits if the ARM subtarget feature +long64 is set. http://reviews.llvm.org/D20709 F

[PATCH] D20710: Lit C++11 Compatibility Patch #9

2016-05-26 Thread Charles Li via cfe-commits
tigerleapgorge created this revision. tigerleapgorge added a reviewer: rsmith. tigerleapgorge added a subscriber: cfe-commits. Hi everyone, I am back again with Lit test C++11 compatibility patch #9. 30 tests are updated this time. They are follows. CXX/basic/basic.stc/basic.stc.dynamic/p2-no

Re: [PATCH] D14727: [Driver] Adapt Linux::GCCVersion::Parse to match GCC 5 installations

2016-05-26 Thread Bryan Chan via cfe-commits
bryanpkc updated this revision to Diff 58722. bryanpkc added a comment. Fixed the code to set GoodVersion.MajorStr before returning, and removed an unnecessary file (test/Driver/Inputs/gcc_version_parsing5/lib/gcc/i386-unknown-linux/4.9.2/crtbegin.o). http://reviews.llvm.org/D14727 Files: l

Re: [PATCH] D14727: [Driver] Adapt Linux::GCCVersion::Parse to match GCC 5 installations

2016-05-26 Thread Jonathan Roelofs via cfe-commits
jroelofs added a comment. In http://reviews.llvm.org/D14727#441758, @bryanpkc wrote: > Fixed the code to set GoodVersion.MajorStr before returning, and removed an > unnecessary file > (test/Driver/Inputs/gcc_version_parsing5/lib/gcc/i386-unknown-linux/4.9.2/crtbegin.o). That file is not unnec

r270940 - OpenMPClause.h: Fix r270882. [-Wdocumentation]

2016-05-26 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Thu May 26 19:15:11 2016 New Revision: 270940 URL: http://llvm.org/viewvc/llvm-project?rev=270940&view=rev Log: OpenMPClause.h: Fix r270882. [-Wdocumentation] Modified: cfe/trunk/include/clang/AST/OpenMPClause.h Modified: cfe/trunk/include/clang/AST/OpenMPClause.h URL:

Re: [PATCH] D14727: [Driver] Adapt Linux::GCCVersion::Parse to match GCC 5 installations

2016-05-26 Thread Bryan Chan via cfe-commits
bryanpkc updated this revision to Diff 58723. bryanpkc added a comment. Re-added test/Driver/Inputs/gcc_version_parsing5/lib/gcc/i386-unknown-linux/4.9.2/crtbegin.o. http://reviews.llvm.org/D14727 Files: lib/Driver/ToolChains.cpp test/Driver/Inputs/gcc_version_parsing5/ test/Driver/Input

Re: [PATCH] D20428: Tracking exception specification source locations

2016-05-26 Thread Richard Smith via cfe-commits
rsmith added a comment. Seems reasonable to me. Comment at: lib/Parse/ParseDeclCXX.cpp:3403-3427 @@ -3402,5 +3402,6 @@ // recovery, but emit a diagnostic and don't store the results. - SourceRange NoexceptRange; + SourceRange NoexceptRange(Tok.getLocation(), +

Re: [PATCH] D20428: Tracking exception specification source locations

2016-05-26 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: include/clang/AST/TypeLoc.h:1251 @@ -1250,2 +1250,3 @@ SourceLocation RParenLoc; + SourceRange ExceptionSpecRange; SourceLocation LocalRangeEnd; Can you arrange things so we only store this if there is an exception

[PATCH] D20714: [Clang-tidy] Fix some Include What You Use warnings; other minor fixes

2016-05-26 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko created this revision. Eugene.Zelenko added reviewers: alexfh, hokein, etienneb. Eugene.Zelenko added a subscriber: cfe-commits. Eugene.Zelenko set the repository for this revision to rL LLVM. I checked this patch on my own build on RHEL 6. Regressions were OK. Repository: rL LLV

Re: [PATCH] D20499: [Temporary, Lifetime] Add lifetime marks for temporaries

2016-05-26 Thread Tim Shen via cfe-commits
timshen updated this revision to Diff 58734. timshen added a comment. Herald added a subscriber: klimek. Used pushFullExprCleanup. microsoft-abi-eh-cleanups.cpp fails because each pushFullExprCleanup introduces a new cleanup.cond variable, even if that pushFullExprCleanup is just for lifetime m

Re: [PATCH] D20499: [Temporary, Lifetime] Add lifetime marks for temporaries

2016-05-26 Thread Tim Shen via cfe-commits
timshen updated this revision to Diff 58738. timshen added a comment. Upload the rebased patch. http://reviews.llvm.org/D20499 Files: lib/CodeGen/CGCleanup.cpp lib/CodeGen/CGDecl.cpp lib/CodeGen/CGExpr.cpp lib/CodeGen/CodeGenFunction.h lib/CodeGen/EHScopeStack.h test/CodeGen/tempora

Re: [PATCH] D20499: [Temporary, Lifetime] Add lifetime marks for temporaries

2016-05-26 Thread Tim Shen via cfe-commits
timshen updated this revision to Diff 58737. timshen added a comment. Upload the rebased patch. http://reviews.llvm.org/D20499 Files: include/clang/AST/ExprCXX.h include/clang/AST/Stmt.h include/clang/Sema/CleanupInfo.h include/clang/Sema/ScopeInfo.h include/clang/Sema/Sema.h lib/AS

[PATCH] D20715: [docs] Document the source-based code coverage feature

2016-05-26 Thread Vedant Kumar via cfe-commits
vsk created this revision. vsk added a reviewer: bogner. vsk added subscribers: kcc, cfe-commits, silvas. It would be helpful to have a user-friendly guide for code coverage. There is some overlap with [1], but this document visits issues which may affect users in more depth. Prompted by: https

Re: [PATCH] D20499: [Temporary, Lifetime] Add lifetime marks for temporaries

2016-05-26 Thread Tim Shen via cfe-commits
timshen marked an inline comment as done. timshen added a comment. http://reviews.llvm.org/D20499 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20334: [libcxx] Fix a bug in strstreambuf::overflow

2016-05-26 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 58740. ahatanak added a comment. Remove unused variable and add test case. http://reviews.llvm.org/D20334 Files: src/strstream.cpp test/std/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.members/overflow.pass.cpp Index: test/std/depr/d

Re: [PATCH] D20334: [libcxx] Fix a bug in strstreambuf::overflow

2016-05-26 Thread Akira Hatanaka via cfe-commits
ahatanak marked an inline comment as done. ahatanak added a comment. I spent some time debugging the code and here is what I found. The initial buffer size is 0 when strstreambuf is constructed and all six pointers are null initially. When the first character is pushed, strstreambuf::overflow a

r270952 - [Intrin.h] Sort the __read[fg]s intrinsics

2016-05-26 Thread David Majnemer via cfe-commits
Author: majnemer Date: Thu May 26 21:06:14 2016 New Revision: 270952 URL: http://llvm.org/viewvc/llvm-project?rev=270952&view=rev Log: [Intrin.h] Sort the __read[fg]s intrinsics No functional change is intended. Modified: cfe/trunk/lib/Headers/Intrin.h Modified: cfe/trunk/lib/Headers/Intrin

r270953 - [CodeGen] Don't crash when sizeof(long) != 4 for some intrins

2016-05-26 Thread David Majnemer via cfe-commits
Author: majnemer Date: Thu May 26 21:06:19 2016 New Revision: 270953 URL: http://llvm.org/viewvc/llvm-project?rev=270953&view=rev Log: [CodeGen] Don't crash when sizeof(long) != 4 for some intrins _InterlockedIncrement and _InterlockedDecrement have 'long' in their prototypes. We assumed 'long'

Re: [PATCH] D20714: [Clang-tidy] Fix some Include What You Use warnings; other minor fixes

2016-05-26 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Full context diffs, please. See http://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface for instructions. Repository: rL LLVM http://reviews.llvm.org/D20714 ___ cfe-commits mailing list cfe-commit

Re: [PATCH] D20090: [OPENCL] Fix wrongly vla error for OpenCL array.

2016-05-26 Thread Xiuli PAN via cfe-commits
pxli168 added inline comments. Comment at: lib/Sema/SemaType.cpp:2055 @@ -2054,3 +2054,3 @@ - return S.VerifyIntegerConstantExpression(ArraySize, &SizeVal, Diagnoser, - S.LangOpts.GNUMode).isInvalid(); + return S + .VerifyIntegerC

Re: [PATCH] D18110: [OpenMP] Fix SEMA bug in the capture of global variables in template functions.

2016-05-26 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG http://reviews.llvm.org/D18110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

Re: [PATCH] D18110: [OpenMP] Fix SEMA bug in the capture of global variables in template functions.

2016-05-26 Thread Alexey Bataev via cfe-commits
ABataev added a comment. Hi Daniel, Will fix it ASAP Best regards, Alexey Bataev = Software Engineer Intel Compiler Team 27.05.2016 1:33, Samuel Antao пишет: > sfantao updated the summary for this revision. > > http://reviews.llvm.org/D18110 http://reviews.llvm.org/D18110

Re: [PATCH] D20334: [libcxx] Fix a bug in strstreambuf::overflow

2016-05-26 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. Let's file a bug on this too - http://llvm.org/bugs (make it easier to find in the future) http://reviews.llvm.org/D20334 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

r270962 - [OPENMP] Fixed processing of '-fopenmp-version=' option and test.

2016-05-26 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu May 26 23:13:39 2016 New Revision: 270962 URL: http://llvm.org/viewvc/llvm-project?rev=270962&view=rev Log: [OPENMP] Fixed processing of '-fopenmp-version=' option and test. Modified: cfe/trunk/lib/Driver/Tools.cpp cfe/trunk/lib/Frontend/CompilerInvocation.cpp

<    1   2