Re: [PATCH] D18584: Complete support for C++ Core Guidelines Type.6: Always initialize a member variable.

2016-04-19 Thread Haojian Wu via cfe-commits
hokein added a subscriber: hokein. hokein added a comment. In http://reviews.llvm.org/D18584#404192, @michael_miller wrote: > In http://reviews.llvm.org/D18584#403872, @alexfh wrote: > > > FYI, the check has started crashing after this patch. I'll try to provide a > > minimal test case soon. The

Re: [PATCH] D18694: [ClangTidy] Add an 'explain-checks' option to diagnose where each checks comes from.

2016-04-19 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 54168. hokein added a comment. Address code review comments. http://reviews.llvm.org/D18694 Files: clang-tidy/ClangTidyOptions.cpp clang-tidy/ClangTidyOptions.h clang-tidy/tool/ClangTidyMain.cpp test/clang-tidy/Inputs/explain-config/.clang-tidy tes

Re: [PATCH] D18694: [ClangTidy] Add an 'explain-checks' option to diagnose where each checks comes from.

2016-04-19 Thread Haojian Wu via cfe-commits
hokein marked 5 inline comments as done. Comment at: clang-tidy/ClangTidyOptions.cpp:163 @@ +162,3 @@ +DefaultOptionsProvider::getRawOptions(llvm::StringRef FileName) { + std::vector Result; + Result.emplace_back(DefaultOptions, OptionsSourceTypeDefaultBinary);

r266722 - [OPENMP] Codegen for untied tasks.

2016-04-19 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Apr 19 04:10:27 2016 New Revision: 266722 URL: http://llvm.org/viewvc/llvm-project?rev=266722&view=rev Log: [OPENMP] Codegen for untied tasks. If the untied clause is present on a task construct, any thread in the team can resume the task region after a suspension. Patc

r266724 - Revert "[OPENMP] Codegen for untied tasks."

2016-04-19 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Apr 19 04:27:38 2016 New Revision: 266724 URL: http://llvm.org/viewvc/llvm-project?rev=266724&view=rev Log: Revert "[OPENMP] Codegen for untied tasks." This reverts commit 266722. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp cfe/trunk/lib/CodeGen/CGOpenMP

Re: [PATCH] D19183: [clang-tidy] Add modernize-make-shared check

2016-04-19 Thread Piotr Padlewski via cfe-commits
Prazek added a comment. ping Repository: rL LLVM http://reviews.llvm.org/D19183 ___ 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-19 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla marked an inline comment as done. d.zobnin.bugzilla added a comment. Friendly ping, please take a look. Thank you, Denis Zobnin http://reviews.llvm.org/D18700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.ll

Re: [PATCH] D18657: Propagate missing empty exception spec from function declared in system header

2016-04-19 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla added a comment. Friendly ping, please take a look. Thank you, Denis Zobnin http://reviews.llvm.org/D18657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r266726 - D17487: [analyzer][scan-build-py] flag filter modification for compilation database creation

2016-04-19 Thread Laszlo Nagy via cfe-commits
Author: rizsotto Date: Tue Apr 19 07:03:03 2016 New Revision: 266726 URL: http://llvm.org/viewvc/llvm-project?rev=266726&view=rev Log: D17487: [analyzer][scan-build-py] flag filter modification for compilation database creation Added: cfe/trunk/tools/scan-build-py/libscanbuild/compilation.py

Re: [PATCH] D18745: [clang-tidy] Adds modernize-use-bool-literals check.

2016-04-19 Thread Jakub Staroń via cfe-commits
staronj marked 5 inline comments as done. staronj added a comment. http://reviews.llvm.org/D18745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D19259: Initial version of misc-unused-using-decl check

2016-04-19 Thread Daniel Jasper via cfe-commits
djasper created this revision. djasper added a reviewer: alexfh. djasper added a subscriber: cfe-commits. http://reviews.llvm.org/D19259 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/UnusedUsingDeclsCheck.cpp clang-tidy/misc/UnusedUsingDeclsCheck

Re: [PATCH] D19242: clang-format: [JS] simplify import/export.

2016-04-19 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. Comment at: lib/Format/UnwrappedLineParser.cpp:1900 @@ +1899,3 @@ + // to the terminating `;`. For everything else, just return and continue + // parsing the s

Re: [PATCH] D19240: clang-format: [JS] support `interface` as a free standing identifier.

2016-04-19 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: lib/Format/UnwrappedLineParser.cpp:1016 @@ +1015,3 @@ + unsigned StoredPosition = Tokens->getPosition(); + FormatToken *Next = Tokens->getNextToken(); + FormatTok = Tokens->setPosition(StoredPosition); -

Re: [PATCH] D19206: Add a test for "foo as bar" casts.

2016-04-19 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D19206 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

[PATCH] D19260: [analyzer][scan-build-py] subprocess output handling reviewed in clang module

2016-04-19 Thread Laszlo Nagy via cfe-commits
rizsotto.mailinglist created this revision. rizsotto.mailinglist added reviewers: zaks.anna, dcoughlin. rizsotto.mailinglist added a subscriber: cfe-commits. In python subprocess.check_output is an easy way to collect child process output. Current implementation does deal with Popen class, which

Re: [PATCH] D19204: clang-format: [JS] generator and async functions.

2016-04-19 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: unittests/Format/FormatTestJS.cpp:339 @@ +338,3 @@ + "}"); + verifyFormat("async function* f() {\n" + " yield fetch(x);\n" What does the star mean here? Should we actually introduce a token t

[libcxxabi] r266729 - Enable testing for static libc++abi

2016-04-19 Thread Ben Craig via cfe-commits
Author: bcraig Date: Tue Apr 19 07:47:38 2016 New Revision: 266729 URL: http://llvm.org/viewvc/llvm-project?rev=266729&view=rev Log: Enable testing for static libc++abi This change leverages framework changes made in libcxx. See those changes for more details. (http://reviews.llvm.org/D16544) So

[libcxx] r266730 - Framework to allow testing of static libc++abi

2016-04-19 Thread Ben Craig via cfe-commits
Author: bcraig Date: Tue Apr 19 07:49:05 2016 New Revision: 266730 URL: http://llvm.org/viewvc/llvm-project?rev=266730&view=rev Log: Framework to allow testing of static libc++abi These changes make linking against static libraries more explicit. Instead of using -lc++ and -lc++abi in the tests,

Re: [PATCH] D16544: [libcxx] Framework to allow testing of static libc++abi

2016-04-19 Thread Ben Craig via cfe-commits
bcraig closed this revision. bcraig added a comment. r266730 Comment at: test/libcxx/test/config.py:454 @@ -464,1 +453,3 @@ +else: +self.cxx.link_flags += ['-lc++'] EricWF wrote: > In this fallback case do we want to explicitly ask

Re: [PATCH] D16545: [libcxxabi] Enable testing for static libc++abi

2016-04-19 Thread Ben Craig via cfe-commits
bcraig closed this revision. bcraig added a comment. r266729 http://reviews.llvm.org/D16545 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19259: Initial version of misc-unused-using-decl check

2016-04-19 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Awesome! Thank you for tackling this! A few comments. Comment at: clang-tidy/misc/CMakeLists.txt:38 @@ -37,2 +37,3 @@ UnusedRAIICheck.cpp UniqueptrResetReleaseCheck.cpp + UnusedUsingDeclsCheck.cpp Please fix file sorting around the

[PATCH] D19262: [clang-tidy] readability-container-size-empty fixes

2016-04-19 Thread Gábor Horváth via cfe-commits
xazax.hun created this revision. xazax.hun added reviewers: hokein, Eugene.Zelenko. xazax.hun added subscribers: o.gyorgy, cfe-commits. This patch fixes PR27410 and adds std::basic_string support. http://reviews.llvm.org/D19262 Files: clang-tidy/readability/ContainerSizeEmptyCheck.cpp test/c

Re: [PATCH] D19259: Initial version of misc-unused-using-decl check

2016-04-19 Thread Daniel Jasper via cfe-commits
djasper marked 3 inline comments as done. Comment at: clang-tidy/misc/MiscTidyModule.cpp:123 @@ -121,1 +122,3 @@ +CheckFactories.registerCheck( +"misc-unused-using-decls"); CheckFactories.registerCheck( alexfh wrote: > I think, all "misc-unused-"

Re: [PATCH] D19259: Initial version of misc-unused-using-decl check

2016-04-19 Thread Daniel Jasper via cfe-commits
djasper updated this revision to Diff 54183. http://reviews.llvm.org/D19259 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/UnusedAliasDeclsCheck.h clang-tidy/misc/UnusedUsingDeclsCheck.cpp clang-tidy/misc/UnusedUsingDeclsCheck.h docs/clang-tid

Re: [PATCH] D19262: [clang-tidy] readability-container-size-empty fixes

2016-04-19 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. Thanks! LGTM with one nit. Comment at: test/clang-tidy/readability-container-size-empty.cpp:44 @@ +43,3 @@ +; + // CHECK-MESSAGES: :[[@LINE-2]]:7: warning: the 'empty' me

Re: [PATCH] D19262: [clang-tidy] readability-container-size-empty fixes

2016-04-19 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266734: [clang-tidy] readability-container-size-empty fixes (authored by xazax). Changed prior to commit: http://reviews.llvm.org/D19262?vs=54182&id=54187#toc Repository: rL LLVM http://reviews.llvm

[clang-tools-extra] r266734 - [clang-tidy] readability-container-size-empty fixes

2016-04-19 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Apr 19 08:29:05 2016 New Revision: 266734 URL: http://llvm.org/viewvc/llvm-project?rev=266734&view=rev Log: [clang-tidy] readability-container-size-empty fixes Summary: This patch fixes PR27410 and adds std::basic_string support. Reviewers: Eugene.Zelenko, hokein Subscri

Re: [PATCH] D18369: [OpenCL] Upstreaming khronos OpenCL header file.

2016-04-19 Thread Alexey Bader via cfe-commits
bader accepted this revision. bader added a comment. This revision is now accepted and ready to land. LGTM. Thanks! http://reviews.llvm.org/D18369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo

Re: [PATCH] D19259: Initial version of misc-unused-using-decl check

2016-04-19 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG with one nit. Thank you! Comment at: clang-tidy/misc/MiscTidyModule.cpp:123 @@ -121,1 +122,3 @@ +CheckFactories.registerCheck( +"misc-unused-using-decls");

[clang-tools-extra] r266735 - Initial version of misc-unused-using-decl check.

2016-04-19 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Tue Apr 19 08:48:39 2016 New Revision: 266735 URL: http://llvm.org/viewvc/llvm-project?rev=266735&view=rev Log: Initial version of misc-unused-using-decl check. Added: clang-tools-extra/trunk/clang-tidy/misc/UnusedUsingDeclsCheck.cpp clang-tools-extra/trunk/clang-tid

Re: r266719 - Warn if function or variable cannot be implicitly instantiated

2016-04-19 Thread Nico Weber via cfe-commits
Hi Serge, this complains on this snippet from v8: template class LSubKindOperand final : public LOperand { public: static LSubKindOperand* Create(int index, Zone* zone) { if (index < kNumCachedOperands) return &cache[index]; return new(zone) LSubKindOperand(index); } private: sta

Re: r266719 - Warn if function or variable cannot be implicitly instantiated

2016-04-19 Thread Nico Weber via cfe-commits
(sorry, accidentally sent this mid-mail) ../../v8/src/crankshaft/lithium.h:322:45: error: instantiation of variable 'v8::internal::LSubKindOperand::cache' required here, but no definition is available [-Werror,-Wundefined-var-template] if (index < kNumCachedOperands) return &cache[index];

Re: [PATCH] D19242: clang-format: [JS] simplify import/export.

2016-04-19 Thread Martin Probst via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266743: clang-format: [JS] simplify import/export. (authored by mprobst). Changed prior to commit: http://reviews.llvm.org/D19242?vs=54124&id=54190#toc Repository: rL LLVM http://reviews.llvm.org/D1

Re: [PATCH] D19242: clang-format: [JS] simplify import/export.

2016-04-19 Thread Martin Probst via cfe-commits
mprobst marked an inline comment as done. mprobst added a comment. Repository: rL LLVM http://reviews.llvm.org/D19242 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r266719 - Warn if function or variable cannot be implicitly instantiated

2016-04-19 Thread Serge Pavlov via cfe-commits
Hi Nico, This message indicates that compiler sees a reference to static member 'cache' of some specialization of template 'LSubKindOperand' (namely 'LSubKindOperand'). This is a static member, so compiler needs corresponding template definition to instantiate it, but there is no such in the file

Re: [PATCH] D19206: Add a test for "foo as bar" casts.

2016-04-19 Thread Martin Probst via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266744: Summary: (authored by mprobst). Changed prior to commit: http://reviews.llvm.org/D19206?vs=54019&id=54192#toc Repository: rL LLVM http://reviews.llvm.org/D19206 Files: cfe/trunk/unittests/

r266744 - Summary:

2016-04-19 Thread Martin Probst via cfe-commits
Author: mprobst Date: Tue Apr 19 09:59:16 2016 New Revision: 266744 URL: http://llvm.org/viewvc/llvm-project?rev=266744&view=rev Log: Summary: clang-format: [JS] unit tests for type aliases. Also adds a test for "foo as bar" casts. Spec: https://github.com/Microsoft/TypeScript/blob/master/doc/sp

r266743 - clang-format: [JS] simplify import/export.

2016-04-19 Thread Martin Probst via cfe-commits
Author: mprobst Date: Tue Apr 19 09:55:37 2016 New Revision: 266743 URL: http://llvm.org/viewvc/llvm-project?rev=266743&view=rev Log: clang-format: [JS] simplify import/export. Summary: Change `import` and `export` parsing to special case the renaming syntax (`import x, {y as bar} ...`, `export {

Re: [PATCH] D19204: clang-format: [JS] generator and async functions.

2016-04-19 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 54195. mprobst added a comment. - test for wrapping http://reviews.llvm.org/D19204 Files: lib/Format/ContinuationIndenter.cpp lib/Format/FormatToken.h lib/Format/TokenAnnotator.cpp lib/Format/UnwrappedLineParser.cpp unittests/Format/FormatTestJS.c

Re: [PATCH] D19204: clang-format: [JS] generator and async functions.

2016-04-19 Thread Martin Probst via cfe-commits
mprobst marked an inline comment as done. Comment at: unittests/Format/FormatTestJS.cpp:339 @@ +338,3 @@ + "}"); + verifyFormat("async function* f() {\n" + " yield fetch(x);\n" djasper wrote: > What does the star mean here? Should we

Re: [PATCH] D17815: [libc++abi] Use fallback_malloc to allocate __cxa_eh_globals in case of dynamic memory exhaustion.

2016-04-19 Thread Igor Kudrin via cfe-commits
ikudrin updated this revision to Diff 54189. ikudrin added a comment. - Moved the content of `fallback_malloc.ipp` into `falback_malloc.cpp`. - Removed `fallback_malloc.ipp`. - Added `pragma GCC visibility push(hidden)` for the function's definitions. - Added a check that the overwritten `calloc`

r266745 - [Clang][AVX512][BUILTIN] Adding intrinsics support to VEXTRACT{I|F} and VINSERT{I|F} instruction set

2016-04-19 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Tue Apr 19 10:18:23 2016 New Revision: 266745 URL: http://llvm.org/viewvc/llvm-project?rev=266745&view=rev Log: [Clang][AVX512][BUILTIN] Adding intrinsics support to VEXTRACT{I|F} and VINSERT{I|F} instruction set Differential Revision: http://reviews.llvm.org/D19097 Modif

Re: [PATCH] D19244: Extend checking of va_start builtin

2016-04-19 Thread Aaron Ballman via cfe-commits
aaron.ballman updated this revision to Diff 54201. aaron.ballman added a comment. Addressed review comments: - Allow the register keyword for C++ code - Reword the diagnostic to be a bit more clear - Moved the varargs.cpp test case from Sema to SemaCXX http://reviews.llvm.org/D19244 Files: i

Re: [PATCH] D19244: Extend checking of va_start builtin

2016-04-19 Thread Aaron Ballman via cfe-commits
aaron.ballman marked 6 inline comments as done. Comment at: lib/Sema/SemaChecking.cpp:2722 @@ -2720,1 +2721,3 @@ ParamLoc = PV->getLocation(); + IsCRegister = + PV->getStorageClass() == SC_Register && !getLangOpts().CPlusPlus; That makes sense

r266747 - Compilation for Intel MCU (Part 1/3)

2016-04-19 Thread Andrey Turetskiy via cfe-commits
Author: aturetsk Date: Tue Apr 19 10:50:57 2016 New Revision: 266747 URL: http://llvm.org/viewvc/llvm-project?rev=266747&view=rev Log: Compilation for Intel MCU (Part 1/3) Add -miamcu option which: * Sets IAMCU triple * Sets IAMCU ABI * Enforces static compilation Differential Revision: ht

Re: [PATCH] D18398: Compilation for Intel MCU (Part 1/3)

2016-04-19 Thread Andrey Turetskiy via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266747: Compilation for Intel MCU (Part 1/3) (authored by aturetsk). Changed prior to commit: http://reviews.llvm.org/D18398?vs=52789&id=54205#toc Repository: rL LLVM http://reviews.llvm.org/D18398

r266748 - [ASTMatchers] Do not try to memoize nodes we can't compare.

2016-04-19 Thread Samuel Benzaquen via cfe-commits
Author: sbenza Date: Tue Apr 19 10:52:56 2016 New Revision: 266748 URL: http://llvm.org/viewvc/llvm-project?rev=266748&view=rev Log: [ASTMatchers] Do not try to memoize nodes we can't compare. Summary: Prevent hasAncestor from comparing nodes that are not supported. hasDescendant was fixed some t

Re: [PATCH] D19231: [ASTMatchers] Do not try to memoize nodes we can't compare.

2016-04-19 Thread Samuel Benzaquen via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266748: [ASTMatchers] Do not try to memoize nodes we can't compare. (authored by sbenza). Changed prior to commit: http://reviews.llvm.org/D19231?vs=54089&id=54207#toc Repository: rL LLVM http://rev

Re: [PATCH] D18271: Avoid -Wshadow warnings about constructor parameters named after fields

2016-04-19 Thread Reid Kleckner via cfe-commits
rnk updated this revision to Diff 54206. rnk added a comment. - Address review comments - Add -Wshadow-all and -Wshadow-field-in-constructor, also address review comments - Warn twice under -Wshadow-all if a shadowing parameter is modified http://reviews.llvm.org/D18271 Files: include/clang/

Re: [PATCH] D19099: [clang] [AArch64] Fix D19098 fallout.

2016-04-19 Thread Tim Northover via cfe-commits
t.p.northover accepted this revision. t.p.northover added a comment. This revision is now accepted and ready to land. Looks good to me. I love seeing the death of a target-specific intrinsic! Tim. Repository: rL LLVM http://reviews.llvm.org/D19099 _

r266753 - Revert r266747 (Compilation for Intel MCU (Part 1/3)) since it breaks a few buildbots.

2016-04-19 Thread Andrey Turetskiy via cfe-commits
Author: aturetsk Date: Tue Apr 19 11:25:30 2016 New Revision: 266753 URL: http://llvm.org/viewvc/llvm-project?rev=266753&view=rev Log: Revert r266747 (Compilation for Intel MCU (Part 1/3)) since it breaks a few buildbots. Removed: cfe/trunk/test/Driver/miamcu-opt.c Modified: cfe/trunk/in

[PATCH] D19270: Fix a crash in cppcoreguidelines-pro-type-member-init related to missing constructor bodies.

2016-04-19 Thread Michael Miller via cfe-commits
michael_miller created this revision. michael_miller added reviewers: alexfh, aaron.ballman, hokein. michael_miller added a subscriber: cfe-commits. Fixes a crash in cppcoreguidelines-pro-type-member-init when checking some record types with a constructor without a body. We now check to make sure

r266754 - [OPENMP] Codegen for untied tasks.

2016-04-19 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Apr 19 11:27:55 2016 New Revision: 266754 URL: http://llvm.org/viewvc/llvm-project?rev=266754&view=rev Log: [OPENMP] Codegen for untied tasks. If the untied clause is present on a task construct, any thread in the team can resume the task region after a suspension. Patch

Re: [PATCH] D18584: Complete support for C++ Core Guidelines Type.6: Always initialize a member variable.

2016-04-19 Thread Michael Miller via cfe-commits
michael_miller added a comment. In http://reviews.llvm.org/D18584#404901, @hokein wrote: > In http://reviews.llvm.org/D18584#404192, @michael_miller wrote: > > > In http://reviews.llvm.org/D18584#403872, @alexfh wrote: > > > > > FYI, the check has started crashing after this patch. I'll try to pr

Re: [PATCH] D18624: [PGO] PGOFuncName meta data if PGOFuncName is different from function's raw name.

2016-04-19 Thread Adam Nemet via cfe-commits
anemet added a comment. As discussed under http://reviews.llvm.org/D17864, I did a run with this and I don't get the indirect call promoted that calls static functions in povray. I will dig more but do I need to pass some extra flag? http://reviews.llvm.org/D18624

r266755 - Revert "[OPENMP] Codegen for untied tasks."

2016-04-19 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Apr 19 11:36:01 2016 New Revision: 266755 URL: http://llvm.org/viewvc/llvm-project?rev=266755&view=rev Log: Revert "[OPENMP] Codegen for untied tasks." This reverts commit r266754. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp cfe/trunk/lib/CodeGen/CGOpenM

Re: [PATCH] D19071: [OpenCL] Add predefined macros.

2016-04-19 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/Frontend/InitPreprocessor.cpp:439 @@ +438,3 @@ +if (LangOpts.OpenCLVersion >= 110) + Builder.defineMacro("CL_VERSION_1_1", "110"); +if (LangOpts.OpenCLVersion >= 120) yaxunl wrote: > yaxunl wrote: > > p

Re: [PATCH] D18624: [PGO] PGOFuncName meta data if PGOFuncName is different from function's raw name.

2016-04-19 Thread Rong Xu via cfe-commits
xur added a comment. I did not test Clang based instrumentation with SPEC. I will try it with povray today. http://reviews.llvm.org/D18624 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

Re: [PATCH] D18624: [PGO] PGOFuncName meta data if PGOFuncName is different from function's raw name.

2016-04-19 Thread Rong Xu via cfe-commits
I did not test Clang based instrumentation with SPEC. I will try it with povray today. On Tue, Apr 19, 2016 at 9:40 AM, Adam Nemet wrote: > anemet added a comment. > > As discussed under http://reviews.llvm.org/D17864, I did a run with this > and I don't get the indirect call promoted that calls

Re: [PATCH] D18624: [PGO] PGOFuncName meta data if PGOFuncName is different from function's raw name.

2016-04-19 Thread Xinliang David Li via cfe-commits
Can you also try IR based instrumentation? -fprofile-instr-generate -Xclang=-fprofile-instrument=llvm David On Tue, Apr 19, 2016 at 9:40 AM, Adam Nemet wrote: > anemet added a comment. > > As discussed under http://reviews.llvm.org/D17864, I did a run with this > and I don't get the indirect c

Re: [PATCH] D18624: [PGO] PGOFuncName meta data if PGOFuncName is different from function's raw name.

2016-04-19 Thread Adam Nemet via cfe-commits
anemet added a comment. Thanks, the indirect call is via the All_Intersections macro in All_CSG_Intersect_Intersections and the top targets are: All_Sphere_Intersections and All_Plane_Intersections. http://reviews.llvm.org/D18624 ___ cfe-commits m

Re: [PATCH] D19270: Fix a crash in cppcoreguidelines-pro-type-member-init related to missing constructor bodies.

2016-04-19 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! http://reviews.llvm.org/D19270 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

Re: [PATCH] D18635: Rework interface for bitset-using features to use a notion of LTO visibility.

2016-04-19 Thread Peter Collingbourne via cfe-commits
pcc added a comment. @rsmith Ping. http://reviews.llvm.org/D18635 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19240: clang-format: [JS] support `interface` as a free standing identifier.

2016-04-19 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 54218. mprobst added a comment. - reuse mustBeJSIdent for interface detection http://reviews.llvm.org/D19240 Files: lib/Format/UnwrappedLineParser.cpp unittests/Format/FormatTestJS.cpp Index: unittests/Format/FormatTestJS.cpp ==

Re: [PATCH] D19240: clang-format: [JS] support `interface` as a free standing identifier.

2016-04-19 Thread Martin Probst via cfe-commits
mprobst marked an inline comment as done. mprobst added a comment. http://reviews.llvm.org/D19240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19240: clang-format: [JS] support `interface` as a free standing identifier.

2016-04-19 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D19240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

Re: [PATCH] D19144: Handle TemplateArgument in DynTypedNode comparison operations.

2016-04-19 Thread Samuel Benzaquen via cfe-commits
sbenza added a comment. > > We can proceed with this change if you want, but it is not required > > anymore. I don't know whether we need the extra complexity of > > `TemplateArgumentLess`. > > > If this patch is not going to help with performance, I'm happy to abandon it. It might help i

Re: [PATCH] D18998: [CodeGen] Explicitly widen non-power-of-2 vector HFA base types.

2016-04-19 Thread Ahmed Bougacha via cfe-commits
ab added a comment. Thanks Ulrich. Tim? http://reviews.llvm.org/D18998 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r266763 - [Clang][Builtin][AVX512] Adding intrinsics for VGETMANT{PD|PS} and VGETEXP{PD|PS} instruction set

2016-04-19 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Tue Apr 19 12:10:29 2016 New Revision: 266763 URL: http://llvm.org/viewvc/llvm-project?rev=266763&view=rev Log: [Clang][Builtin][AVX512] Adding intrinsics for VGETMANT{PD|PS} and VGETEXP{PD|PS} instruction set Differential Revision: http://reviews.llvm.org/D19197 Modifie

Re: [PATCH] D19071: [OpenCL] Add predefined macros.

2016-04-19 Thread Yaxun Liu via cfe-commits
yaxunl marked 7 inline comments as done. Comment at: lib/Frontend/InitPreprocessor.cpp:421 @@ +420,3 @@ +switch (LangOpts.OpenCLVersion) { +case 0: +case 100: yaxunl wrote: > pxli168 wrote: > > What is 0 stand for as OpenCLVersion, it seems the default

r266765 - reduce indentation; NFCI

2016-04-19 Thread Sanjay Patel via cfe-commits
Author: spatel Date: Tue Apr 19 12:13:14 2016 New Revision: 266765 URL: http://llvm.org/viewvc/llvm-project?rev=266765&view=rev Log: reduce indentation; NFCI Modified: cfe/trunk/lib/CodeGen/CGStmt.cpp Modified: cfe/trunk/lib/CodeGen/CGStmt.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/tr

Re: [PATCH] D18271: Avoid -Wshadow warnings about constructor parameters named after fields

2016-04-19 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Sema/SemaDecl.cpp:6437-6445 @@ +6436,11 @@ + // Warn immediately if -Wshadow-field-in-constructor is set. + Diag(R.getNameLoc(), diag::warn_ctor_parm_shadows_field) + << D << FD << FD->getParent(); + Diag(FD->ge

Re: [PATCH] D18998: [CodeGen] Explicitly widen non-power-of-2 vector HFA base types.

2016-04-19 Thread Tim Northover via cfe-commits
t.p.northover accepted this revision. t.p.northover added a comment. This revision is now accepted and ready to land. Sorry, I thought I'd already commented here. It looked good to me too. Tim. http://reviews.llvm.org/D18998 ___ cfe-commits mailing

[clang-tools-extra] r266770 - [Release Notes] Mention Clang-tidy misc-unused-using-decls check.

2016-04-19 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Tue Apr 19 12:31:58 2016 New Revision: 266770 URL: http://llvm.org/viewvc/llvm-project?rev=266770&view=rev Log: [Release Notes] Mention Clang-tidy misc-unused-using-decls check. Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst Modified: clang-tools-extra/tr

r266775 - Pass dwarf-version to cc1as.

2016-04-19 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Tue Apr 19 12:43:54 2016 New Revision: 266775 URL: http://llvm.org/viewvc/llvm-project?rev=266775&view=rev Log: Pass dwarf-version to cc1as. Fix PR26999 - crashing in cc1as with any '*bsd' target. Modified: cfe/trunk/lib/Driver/Tools.cpp cfe/trunk/test/Driver/save-tem

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

2016-04-19 Thread Andrey Turetskiy via cfe-commits
aturetsk created this revision. aturetsk added reviewers: rsmith, bruno, bkramer. aturetsk added subscribers: cfe-commits, DavidKreitzer, zinovy.nis. This is the second patch required to support compilation for Intel MCU target (e.g. Intel(R) Quark(TM) micro controller D 2000). When IAMCU triple

r266783 - [CodeGen] Fix whitespace. NFC.

2016-04-19 Thread Ahmed Bougacha via cfe-commits
Author: ab Date: Tue Apr 19 12:54:24 2016 New Revision: 266783 URL: http://llvm.org/viewvc/llvm-project?rev=266783&view=rev Log: [CodeGen] Fix whitespace. NFC. Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp URL: http://llvm.org/viewvc/llvm-proj

r266784 - [CodeGen] Widen non-power-of-2 vector HFA base types.

2016-04-19 Thread Ahmed Bougacha via cfe-commits
Author: ab Date: Tue Apr 19 12:54:29 2016 New Revision: 266784 URL: http://llvm.org/viewvc/llvm-project?rev=266784&view=rev Log: [CodeGen] Widen non-power-of-2 vector HFA base types. Currently, for the ppc64--gnu and aarch64 ABIs, we recognize: typedef __attribute__((__ext_vector_type__(3))) fl

Re: [PATCH] D18998: [CodeGen] Explicitly widen non-power-of-2 vector HFA base types.

2016-04-19 Thread Ahmed Bougacha via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266784: [CodeGen] Widen non-power-of-2 vector HFA base types. (authored by ab). Changed prior to commit: http://reviews.llvm.org/D18998?vs=53336&id=54224#toc Repository: rL LLVM http://reviews.llvm.

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

2016-04-19 Thread Mandeep Singh Grang via cfe-commits
mgrang added a subscriber: mgrang. Comment at: lib/Driver/Tools.cpp:580 @@ -573,1 +579,3 @@ + if (IsIAMCU) +getToolChain().AddIAMCUIncludeArgs(Args, CmdArgs); } Is it better to move this above in the else part of the condition "if (!IsIAMCU)"?

r266787 - reduce indentation; NFCI

2016-04-19 Thread Sanjay Patel via cfe-commits
Author: spatel Date: Tue Apr 19 13:06:33 2016 New Revision: 266787 URL: http://llvm.org/viewvc/llvm-project?rev=266787&view=rev Log: reduce indentation; NFCI Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp URL: http://llvm.org/viewvc/l

[PATCH] D19275: Do not register incompatible C++ destructors with __cxa_atexit

2016-04-19 Thread Derek Schuff via cfe-commits
dschuff created this revision. dschuff added a subscriber: cfe-commits. Herald added subscribers: dschuff, jfb, aemerson. For a static object with a nontrivial destructor, clang generates an initializer function (__cxx_global_var_init) which registers that object's destructor using __cxa_atexit. H

Re: [PATCH] D19275: Do not register incompatible C++ destructors with __cxa_atexit

2016-04-19 Thread Derek Schuff via cfe-commits
dschuff added a reviewer: sunfish. dschuff added a comment. Will want a reviewer who's involved with ARM too, still looking. http://reviews.llvm.org/D19275 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

Re: r266496 - [CUDA] Raise an error if the CUDA install can't be found.

2016-04-19 Thread Chandler Carruth via cfe-commits
This commit is missing a test. On Fri, Apr 15, 2016 at 5:16 PM Justin Lebar via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: jlebar > Date: Fri Apr 15 19:11:11 2016 > New Revision: 266496 > > URL: http://llvm.org/viewvc/llvm-project?rev=266496&view=rev > Log: > [CUDA] Raise an error

r266788 - [builtin_expect] tighten checks, add test, add comments

2016-04-19 Thread Sanjay Patel via cfe-commits
Author: spatel Date: Tue Apr 19 13:17:34 2016 New Revision: 266788 URL: http://llvm.org/viewvc/llvm-project?rev=266788&view=rev Log: [builtin_expect] tighten checks, add test, add comments Modified: cfe/trunk/test/CodeGen/builtin-expect.c Modified: cfe/trunk/test/CodeGen/builtin-expect.c URL

Re: [PATCH] D19240: clang-format: [JS] support `interface` as a free standing identifier.

2016-04-19 Thread Martin Probst via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL266789: clang-format: [JS] support `interface` as a free standing identifier. (authored by mprobst). Changed prior to commit: http://reviews.llvm.org/D19240?vs=54218&id=54232#toc Repository: rL LLVM

Re: [PATCH] D19275: Do not register incompatible C++ destructors with __cxa_atexit

2016-04-19 Thread JF Bastien via cfe-commits
jfb added inline comments. Comment at: lib/CodeGen/CGDeclCXX.cpp:94 @@ -92,2 +93,3 @@ if (dtorKind == QualType::DK_cxx_destructor && - (record = type->getAsCXXRecordDecl())) { + (record = type->getAsCXXRecordDecl()) && + (!CGM.getCXXABI().HasThisReturn( -

Re: [PATCH] D19204: clang-format: [JS] generator and async functions.

2016-04-19 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: unittests/Format/FormatTestJS.cpp:339 @@ +338,3 @@ +TEST_F(FormatTestJS, AsyncFunctions) { + verifyFormat("async function f() {\n" + " let x = 1;\n" Fundamentally, I think there is two things we might need

Re: [PATCH] D18551: Added Fixer implementation and fix() interface in clang-format for removing redundant code.

2016-04-19 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 54233. ioeric marked 6 inline comments as done. ioeric added a comment. - Rebased - Make Formatter and Cleaner inherit from TokenAnalyzer (new name for CodeProcessor). http://reviews.llvm.org/D18551 Files: include/clang/Format/Format.h lib/Format/Affect

Re: r266496 - [CUDA] Raise an error if the CUDA install can't be found.

2016-04-19 Thread Justin Lebar via cfe-commits
Yes, in general our testing story around the CUDA installs needs work. In particular, our wrapper headers are complicated and fragile, and have zero coverage at the moment. That's why Art is working on getting CUDA tests into the test-suite. It's possible to test this particular change without ac

Re: [PATCH] D19204: clang-format: [JS] generator and async functions.

2016-04-19 Thread Martin Probst via cfe-commits
mprobst marked an inline comment as done. Comment at: unittests/Format/FormatTestJS.cpp:339 @@ +338,3 @@ +TEST_F(FormatTestJS, AsyncFunctions) { + verifyFormat("async function f() {\n" + " let x = 1;\n" djasper wrote: > Fundamentally, I think there

Re: r266496 - [CUDA] Raise an error if the CUDA install can't be found.

2016-04-19 Thread Chandler Carruth via cfe-commits
I don't really understand why having to change the test when we change the code it test changes... We have several fake install trees in the driver tests to check pretty much exactly these kinds of things? On Tue, Apr 19, 2016 at 11:31 AM Justin Lebar via cfe-commits < cfe-commits@lists.llvm.org>

Re: [PATCH] D19106: Fixed a bug in AnnotatedLine::startsWith when there are comments in the line.

2016-04-19 Thread Eric Liu via cfe-commits
PING. On Thu, Apr 14, 2016 at 1:52 PM Eric Liu wrote: > ioeric updated this revision to Diff 53691. > ioeric added a comment. > > - Addressed reviewer comment. > > > http://reviews.llvm.org/D19106 > > Files: > lib/Format/TokenAnnotator.h > > Index: lib/Format/TokenAnnotator.h > ===

Re: [PATCH] D19106: Fixed a bug in AnnotatedLine::startsWith when there are comments in the line.

2016-04-19 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. Comment at: lib/Format/TokenAnnotator.h:128 @@ +127,3 @@ + bool startsWithInternal(const FormatToken *Tok, A K1) const { +// Even though we skip comments in

Re: r266496 - [CUDA] Raise an error if the CUDA install can't be found.

2016-04-19 Thread Justin Lebar via cfe-commits
> I don't really understand why having to change the test when we change the > code it test changes... My thought was, this code isn't really testing how we detect a CUDA installation. That's a separate matter, involving --cuda-path, various default locations we check, and so on. Anyway I now s

[clang-tools-extra] r266795 - [Clang-tidy] Fix extra semicolon warning in cppcoreguidelines/ProTypeMemberInitCheck.cpp.

2016-04-19 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Tue Apr 19 13:49:21 2016 New Revision: 266795 URL: http://llvm.org/viewvc/llvm-project?rev=266795&view=rev Log: [Clang-tidy] Fix extra semicolon warning in cppcoreguidelines/ProTypeMemberInitCheck.cpp. Modified: clang-tools-extra/trunk/clang-tidy/cppcoreguideline

r266796 - [CUDA] Add a test for r266496 (raise an error if a CUDA installation isn't found)

2016-04-19 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Tue Apr 19 13:52:28 2016 New Revision: 266796 URL: http://llvm.org/viewvc/llvm-project?rev=266796&view=rev Log: [CUDA] Add a test for r266496 (raise an error if a CUDA installation isn't found) Added: cfe/trunk/test/Driver/cuda-not-found.cu Added: cfe/trunk/test/Driver/

Re: r266496 - [CUDA] Raise an error if the CUDA install can't be found.

2016-04-19 Thread Justin Lebar via cfe-commits
Committed a test in r266796. On Tue, Apr 19, 2016 at 11:42 AM, Justin Lebar wrote: >> I don't really understand why having to change the test when we change the >> code it test changes... > > My thought was, this code isn't really testing how we detect a CUDA > installation. That's a separate m

r266797 - Fix PR26999 better- RenderDebugEnablingArgs() once only

2016-04-19 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Tue Apr 19 13:55:53 2016 New Revision: 266797 URL: http://llvm.org/viewvc/llvm-project?rev=266797&view=rev Log: Fix PR26999 better- RenderDebugEnablingArgs() once only Modified: cfe/trunk/lib/Driver/Tools.cpp Modified: cfe/trunk/lib/Driver/Tools.cpp URL: http://llvm.org/

r266800 - ObjC Class Property: don't emit class properties on old deployment targets.

2016-04-19 Thread Manman Ren via cfe-commits
Author: mren Date: Tue Apr 19 14:05:03 2016 New Revision: 266800 URL: http://llvm.org/viewvc/llvm-project?rev=266800&view=rev Log: ObjC Class Property: don't emit class properties on old deployment targets. For old deployment targets, emit nil for all class property lists. rdar://25616128 Modif

  1   2   >