r265338 - Fix redundant "typename typename T" in Visual Studio Native Visualizer

2016-04-04 Thread Mike Spertus via cfe-commits
Author: mps Date: Mon Apr 4 14:36:48 2016 New Revision: 265338 URL: http://llvm.org/viewvc/llvm-project?rev=265338&view=rev Log: Fix redundant "typename typename T" in Visual Studio Native Visualizer Also, a little minor cleanup Modified: cfe/trunk/utils/ClangVisualizers/clang.natvis Modif

r265341 - [Sema] Delete FIXME that has been fixed. NFC.

2016-04-04 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Mon Apr 4 14:44:16 2016 New Revision: 265341 URL: http://llvm.org/viewvc/llvm-project?rev=265341&view=rev Log: [Sema] Delete FIXME that has been fixed. NFC. Modified: cfe/trunk/lib/Sema/SemaExpr.cpp Modified: cfe/trunk/lib/Sema/SemaExpr.cpp URL: http://llvm.org/viewvc/ll

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-04-04 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a reviewer: rsmith. This revision is now accepted and ready to land. Comment at: lib/Lex/PPMacroExpansion.cpp:1489-1492 @@ +1488,6 @@ +// a diagnostic and a dummy value. +if (Result.hasValue()) + OS << Result.get

Re: [PATCH] D18713: [OpenCL] Generate bitcast when target address space does not change.

2016-04-04 Thread Yaxun Liu via cfe-commits
yaxunl marked an inline comment as done. Comment at: test/CodeGenOpenCL/2016-04-01-addrcast.cl:1 @@ +1,2 @@ +// RUN: %clang_cc1 %s -triple x86_64-unknown-linux-gnu -O0 -cl-std=CL2.0 -emit-llvm -o - | FileCheck %s + Anastasia wrote: > Can we rename the file to jus

Re: [PATCH] D18713: [OpenCL] Generate bitcast when target address space does not change.

2016-04-04 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 52607. yaxunl marked an inline comment as done. yaxunl added a comment. Removed 2016-04-01-addrcast.cl and it to address-spaces-conversions.cl. http://reviews.llvm.org/D18713 Files: lib/CodeGen/CGExprScalar.cpp test/CodeGenOpenCL/address-spaces-conversio

Re: [PATCH] D18766: [clang-tidy] Add check misc-multiple-statement-macro

2016-04-04 Thread Etienne Bergeron via cfe-commits
etienneb added a subscriber: etienneb. etienneb added a comment. this is cool. Comment at: clang-tidy/misc/MultipleStatementMacroCheck.cpp:33 @@ +32,3 @@ + +namespace { + I feel it nicer if you merge this namespace with the one at line 20. Comm

Re: [PATCH] D18618: [ObjC] Pop all cleanups created in CodeGenFunction::EmitObjCForCollectionStmt

2016-04-04 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 52609. ahatanak added a comment. Changed the patch based on review comments. Added code to enter RunCleanupsScope before the condition is evaluated and force its cleanup before emitting LoopEnd. http://reviews.llvm.org/D18618 Files: lib/CodeGen/CGObjC.

Re: [PATCH] D18618: [ObjC] Pop all cleanups created in CodeGenFunction::EmitObjCForCollectionStmt

2016-04-04 Thread Akira Hatanaka via cfe-commits
ahatanak added a comment. Also, fixed the regex in test case so that the test passes on release builds too. http://reviews.llvm.org/D18618 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

r265343 - [CrashReproducer] Pass -I, -F and -resource-dir to the reproducer script when using modules/vfs

2016-04-04 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Mon Apr 4 15:26:57 2016 New Revision: 265343 URL: http://llvm.org/viewvc/llvm-project?rev=265343&view=rev Log: [CrashReproducer] Pass -I, -F and -resource-dir to the reproducer script when using modules/vfs The reproducer should use -I/-F/-resource-dir in the same way as the

Re: [PATCH] D18425: [Sema] Make enable_if act correctly with value dependent conditions/arguments

2016-04-04 Thread George Burgess IV via cfe-commits
george.burgess.iv updated this revision to Diff 52619. george.burgess.iv marked 4 inline comments as done. george.burgess.iv added a comment. Addressed most feedback; see comments. :) http://reviews.llvm.org/D18425 Files: include/clang/Sema/Sema.h lib/Sema/SemaExpr.cpp lib/Sema/SemaOverlo

Re: [PATCH] D18425: [Sema] Make enable_if act correctly with value dependent conditions/arguments

2016-04-04 Thread George Burgess IV via cfe-commits
george.burgess.iv added inline comments. Comment at: lib/Sema/SemaExpr.cpp:5047-5098 @@ -5046,57 +5046,54 @@ +CallExpr *Sema::buildDependentCallExpr(Expr *ExecConfig, Expr *Fn, + MultiExprArg ArgExprs, +

Re: [PATCH] Windows support for ObjC DLLIMPORT

2016-04-04 Thread Reid Kleckner via cfe-commits
In addition to the Sema tests, this change needs tests in CodeGenObjC to show where the attribute is applied in the IR. --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -2334,5 +2334,9 @@ llvm::Constant *CodeGenModule::getNSConcreteStackBlock() {

r265344 - Fix an unused-variable warning by using the variable in the place

2016-04-04 Thread John McCall via cfe-commits
Author: rjmccall Date: Mon Apr 4 15:39:50 2016 New Revision: 265344 URL: http://llvm.org/viewvc/llvm-project?rev=265344&view=rev Log: Fix an unused-variable warning by using the variable in the place it was supposed to have been used. Modified: cfe/trunk/lib/CodeGen/SwiftCallingConv.cpp

Re: r263051 - [PPC] FE support for generating VSX [negated] absolute value instructions

2016-04-04 Thread Eric Christopher via cfe-commits
Nah, just worth knowing. It was probably more useful to know last month. -eric On Mon, Apr 4, 2016 at 11:56 AM Kit Barton wrote: > I forgot to edit the message. > Do you think it's worth going back and fixing the log message at this > point? > > Kit Barton, Ph.D. > LLVM Development on POWER > I

Re: [PATCH] D18708: Set C99 as default C Standard for PS4 target

2016-04-04 Thread Douglas Yung via cfe-commits
dyung updated this revision to Diff 52622. dyung added a comment. Moved the test to test/Preprocessor as suggested by Gao and found a nice place to add it. http://reviews.llvm.org/D18708 Files: include/clang/Frontend/CompilerInvocation.h lib/Frontend/CompilerInvocation.cpp test/Preproces

Re: r263051 - [PPC] FE support for generating VSX [negated] absolute value instructions

2016-04-04 Thread Kit Barton via cfe-commits
Yeah, fair enough.  That's the downside of committing on behalf of others and focusing on throughput :(   Kit Barton, Ph.D.LLVM Development on POWERIBM Toronto Lab, D2/929/8200/MKM8200 Warden Ave, Markham, L6G 1C7(905) 413-3452kbar...@ca.ibm.com     - Original message -From: Eric Christophe

Re: [PATCH] D18766: [clang-tidy] Add check misc-multiple-statement-macro

2016-04-04 Thread Samuel Benzaquen via cfe-commits
sbenza updated this revision to Diff 52625. sbenza marked an inline comment as done. sbenza added a comment. Minor fixes http://reviews.llvm.org/D18766 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/MultipleStatementMacroCheck.cpp clang-tidy/mis

Re: [PATCH] D18766: [clang-tidy] Add check misc-multiple-statement-macro

2016-04-04 Thread Samuel Benzaquen via cfe-commits
sbenza marked an inline comment as done and an inline comment as not done. Comment at: clang-tidy/misc/MultipleStatementMacroCheck.cpp:33 @@ +32,3 @@ + +namespace { + etienneb wrote: > I feel it nicer if you merge this namespace with the one at line 20. I like to

Re: [PATCH] D18766: [clang-tidy] Add check misc-multiple-statement-macro

2016-04-04 Thread Etienne Bergeron via cfe-commits
etienneb added a comment. thanks, lgtm. http://reviews.llvm.org/D18766 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18073: Add memory allocating functions

2016-04-04 Thread Alexander Riccio via cfe-commits
ariccio added a comment. Here's my confusion: don't we //kinda// have to duplicate tests? After all these functions are //essentially// duplicate functions. http://reviews.llvm.org/D18073 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

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

2016-04-04 Thread Samuel Antao via cfe-commits
sfantao added a comment. I just wanted to add to what Carlo just said, that the feature to capture by value is already used in the offloading upstreamed code. This is not a new feature we are proposing , it is already there used in the code and tested in relevant regression tests. This patch is

Re: [PATCH] D18073: Add memory allocating functions

2016-04-04 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. Can you add one test per new function, which tests that the function if modeled correctly. Please, do not duplicate all tests that contain a function with it's windows variants. Hope this is more clear. http://reviews.llvm.org/D18073 _

Re: [PATCH] D18708: Set C99 as default C Standard for PS4 target

2016-04-04 Thread Yunzhong Gao via cfe-commits
ygao accepted this revision. ygao added a reviewer: ygao. ygao added a comment. The test LGTM. Thanks! http://reviews.llvm.org/D18708 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18700: [Inline asm][GCC compatibility] Handle %v-prefixed code in inline assembly

2016-04-04 Thread Eric Christopher via cfe-commits
echristo added a comment. That's fascinating and terrifying all at once. Can you rename the test to avx-v-modifier-inline-asm.c please? One inline comment as well. Thanks! -eric Comment at: lib/AST/Stmt.cpp:639 @@ +638,3 @@ + // into "pcmpestri" otherwise. + if (C.

Re: [PATCH] D18651: [X86] Introduction of -march=lakemont

2016-04-04 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. I'm not real fond of the testcase being in attr-target-x86, but there's not a better place at the moment either. -eric http://reviews.llvm.org/D18651 _

Re: [PATCH] D18073: Add memory allocating functions

2016-04-04 Thread Alexander Riccio via cfe-commits
ariccio added a comment. So for `_wcsdup_dbg`, I should leave only `testWinWcsdupDbg`? http://reviews.llvm.org/D18073 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r265355 - Fix "suggest parentheses" warning.

2016-04-04 Thread James Y Knight via cfe-commits
Author: jyknight Date: Mon Apr 4 17:35:56 2016 New Revision: 265355 URL: http://llvm.org/viewvc/llvm-project?rev=265355&view=rev Log: Fix "suggest parentheses" warning. Modified: cfe/trunk/lib/CodeGen/SwiftCallingConv.cpp Modified: cfe/trunk/lib/CodeGen/SwiftCallingConv.cpp URL: http://llv

[libcxx] r265358 - Put back the undefs that Richard removed. Boost won't build w/o these; specifically the file 'bytes_methods.h' in Apple's python framework defines these.

2016-04-04 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Apr 4 17:49:20 2016 New Revision: 265358 URL: http://llvm.org/viewvc/llvm-project?rev=265358&view=rev Log: Put back the undefs that Richard removed. Boost won't build w/o these; specifically the file 'bytes_methods.h' in Apple's python framework defines these. Modifi

r265359 - Set the default C standard to C99 when targeting the PS4.

2016-04-04 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Mon Apr 4 17:56:05 2016 New Revision: 265359 URL: http://llvm.org/viewvc/llvm-project?rev=265359&view=rev Log: Set the default C standard to C99 when targeting the PS4. Patch by Douglas Yung! Differential Revision: http://reviews.llvm.org/D18708 Modified: cfe/trun

Re: [PATCH] D18708: Set C99 as default C Standard for PS4 target

2016-04-04 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL265359: Set the default C standard to C99 when targeting the PS4. (authored by ssrivastava). Changed prior to commit: http://reviews.llvm.org/D18708?vs=52622&id=52633#toc Repository: rL LLVM http://

[PATCH] D18776: NFC: make AtomicOrdering an enum class

2016-04-04 Thread JF Bastien via cfe-commits
jfb created this revision. jfb added reviewers: jyknight, reames. jfb added a subscriber: cfe-commits. See LLVM change D18775 for details, this change depends on it. http://reviews.llvm.org/D18776 Files: lib/CodeGen/CGAtomic.cpp lib/CodeGen/CGBuiltin.cpp lib/CodeGen/CGExprScalar.cpp lib/

r265362 - Fix test failure from r265361

2016-04-04 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Mon Apr 4 18:14:14 2016 New Revision: 265362 URL: http://llvm.org/viewvc/llvm-project?rev=265362&view=rev Log: Fix test failure from r265361 Modified: cfe/trunk/test/CodeGen/align_value.cpp Modified: cfe/trunk/test/CodeGen/align_value.cpp URL: http://llvm.org/viewvc/llvm-

Re: [libcxx] r265358 - Put back the undefs that Richard removed. Boost won't build w/o these; specifically the file 'bytes_methods.h' in Apple's python framework defines these.

2016-04-04 Thread Richard Smith via cfe-commits
On Mon, Apr 4, 2016 at 3:49 PM, Marshall Clow via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: marshall > Date: Mon Apr 4 17:49:20 2016 > New Revision: 265358 > > URL: http://llvm.org/viewvc/llvm-project?rev=265358&view=rev > Log: > Put back the undefs that Richard removed. Boost wo

Re: [PATCH] D18708: Set C99 as default C Standard for PS4 target

2016-04-04 Thread Richard Smith via cfe-commits
On Fri, Apr 1, 2016 at 6:43 PM, Douglas Yung < douglas_y...@playstation.sony.com> wrote: > dyung added a comment. > > In http://reviews.llvm.org/D18708#390166, @rsmith wrote: > > > In http://reviews.llvm.org/D18708#390150, @dyung wrote: > > > > > From my understanding, there are 2 issues that bloc

[libcxx] r265363 - Remove unused internal routines. No functional change

2016-04-04 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Apr 4 18:23:35 2016 New Revision: 265363 URL: http://llvm.org/viewvc/llvm-project?rev=265363&view=rev Log: Remove unused internal routines. No functional change Modified: libcxx/trunk/include/algorithm Modified: libcxx/trunk/include/algorithm URL: http://llvm.org

Re: [PATCH] D18776: NFC: make AtomicOrdering an enum class

2016-04-04 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. LGTM. Post-commit review is fine for changes like this that mechanically update Clang to match LLVM API changes. http://rev

r265364 - Move local helper class into anonymous namespace.

2016-04-04 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Apr 4 18:29:43 2016 New Revision: 265364 URL: http://llvm.org/viewvc/llvm-project?rev=265364&view=rev Log: Move local helper class into anonymous namespace. Modified: cfe/trunk/lib/AST/ExprConstant.cpp Modified: cfe/trunk/lib/AST/ExprConstant.cpp URL: http://llvm.o

Re: [PATCH] D18286: [OPENMP] private and firstprivate clauses of teams code generation for nvptx

2016-04-04 Thread Carlo Bertolli via cfe-commits
carlo.bertolli updated this revision to Diff 52640. carlo.bertolli added a comment. [OPENMP] Rebase patch on new support for codegen for teams in nvptx target. private and firstprivate clauses are now dealt with in the teams patch and this one only becomes regression tests. Repository: rL LL

Re: [PATCH] D18425: [Sema] Make enable_if act correctly with value dependent conditions/arguments

2016-04-04 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Sema/SemaExpr.cpp:5218-5221 @@ -5209,1 +5217,6 @@ + Fn, NDecl, LParenLoc, ArgExprs, RParenLoc, ExecConfig, IsExecConfig); + + if (MakeCallInstantiationDependent) +BuiltCall.get()->setInstantiationDependent(true); + return Bu

Re: [PATCH] D18653: [Sema] Diagnose template alias declaration in local class

2016-04-04 Thread Erik Pilkington via cfe-commits
erik.pilkington updated this revision to Diff 52641. erik.pilkington added a comment. Include local static data member template in test. Thanks for taking a look Richard, would you mind committing this for me? http://reviews.llvm.org/D18653 Files: lib/Sema/SemaDeclCXX.cpp test/CXX/temp/tem

Re: [PATCH] D18764: [clang-tidy] Fix documentation of misc-suspicious-missing-comma

2016-04-04 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG http://reviews.llvm.org/D18764 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[PATCH] D18783: [clang-tidy] add new checker for string literal with NUL character.

2016-04-04 Thread Etienne Bergeron via cfe-commits
etienneb created this revision. etienneb added a reviewer: alexfh. etienneb added a subscriber: cfe-commits. This patch add the support for detecting suspicious string literals and their usage. The following example shows a incorrect character escaping leading to an embedded NUL character. ```

Re: [PATCH] D18783: [clang-tidy] add new checker for string literal with NUL character.

2016-04-04 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 52653. etienneb added a comment. Fix list.rst (bad merge) http://reviews.llvm.org/D18783 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/StringLiteralWithEmbeddedNulCheck.cpp clang-tidy/misc/StringLiteralWit

[clang-tools-extra] r265375 - [clang-tidy] Fix documentation of misc-suspicious-missing-comma

2016-04-04 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Mon Apr 4 20:41:02 2016 New Revision: 265375 URL: http://llvm.org/viewvc/llvm-project?rev=265375&view=rev Log: [clang-tidy] Fix documentation of misc-suspicious-missing-comma Summary: The clang-tidy documentation generation was broken since commit : http://reviews.llvm.or

Re: [clang-tools-extra] r260944 - clang-tools-extra/test/Unit/lit.site.cfg.in: Prune on_clone. I guess it has been unused since r188006.

2016-04-04 Thread NAKAMURA Takumi via cfe-commits
Tom, may I commit it into release_38? It has been preventing "lit --use-processes" on windows. 2016-02-16 17:13 GMT+09:00 NAKAMURA Takumi via cfe-commits : > Author: chapuni > Date: Tue Feb 16 02:13:36 2016 > New Revision: 260944 > > URL: http://llvm.org/viewvc/llvm-project?rev=260944&view=rev > L

Re: [PATCH] D18286: [OPENMP] private and firstprivate clauses of teams code generation for nvptx

2016-04-04 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG Repository: rL LLVM http://reviews.llvm.org/D18286 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/

Re: [PATCH] D17412: PR19957: [OpenCL] incorrectly accepts implicit address space conversion with ternary operator

2016-04-04 Thread Xiuli PAN via cfe-commits
pxli168 added a comment. LGTM! Thanks! http://reviews.llvm.org/D17412 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2