[PATCH] D26195: Ignore incomplete types when determining whether they are expensive to copy

2016-11-04 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Thank you for the fix! One late comment inline. Comment at: clang-tools-extra/trunk/test/clang-tidy/performance-unnecessary-value-param.cpp:241 + +// Ensure that incomplete types result in an error from the frontend and not a +// clang-tidy diagnostic a

[PATCH] D26306: [AVX-512] Make VBMI instruction set enabling imply that the BWI instruction set is also enabled.

2016-11-04 Thread Craig Topper via cfe-commits
craig.topper updated this revision to Diff 76961. https://reviews.llvm.org/D26306 Files: lib/Basic/Targets.cpp test/Preprocessor/x86_target_features.c Index: test/Preprocessor/x86_target_features.c === --- test/Preprocessor/x86

[PATCH] D26306: [AVX-512] Make VBMI instruction set enabling imply that the BWI instruction set is also enabled.

2016-11-04 Thread Craig Topper via cfe-commits
craig.topper added inline comments. Comment at: test/Preprocessor/x86_target_features.c:212 +// RUN: %clang -target i386-unknown-unknown -march=atom -mavx512vbmi -mno-avx512vbmi -x c -E -dM -o - %s | FileCheck -match-full-lines --check-prefix=AVX512VBMINOAVX512BW %s + ---

[PATCH] D25897: Add __no_instrument_function__ to _LIBCPP_INLINE_VISIBILITY and _LIBCPP_ALWAYS_INLINE

2016-11-04 Thread Eric Fiselier via cfe-commits
EricWF added a comment. > It looks like this is caused by functions in libc++'s headers that are marked > to always be inlined. Since they are always inlined there is external > definition for the linker to get the address of. I have worked around this by > adding the no_instrument_function att

[PATCH] D26139: Tests for strings conversions under libcpp-no-exceptions

2016-11-04 Thread Eric Fiselier via cfe-commits
EricWF added inline comments. Comment at: test/std/strings/string.conversions/stold.pass.cpp:39 assert(idx == 2); +#ifndef TEST_HAS_NO_EXCEPTIONS try Hmm. All of these `#ifdef`s get ugly fast. I think it might be better to add `TEST_TRY` and `TEST_CATC

[PATCH] D26142: Protect std::experimental::optional tests under libcpp-no-exceptions

2016-11-04 Thread Eric Fiselier via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM after addressing inline comments. Thanks again! Comment at: test/std/experimental/optional/optional.object/optional.object.ctor/copy.pass.cpp:30 try +#endif

[PATCH] D26186: Allow using libsupc++ with LIBCXX_ENABLE_STATIC_ABI_LIBRARY

2016-11-04 Thread Eric Fiselier via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM. It seems like it was added to libstdc++ in 4.9, which works for me since building with GCC 4.8 isn't really supported. https://reviews.llvm.org/D26186 ___

[PATCH] D26317: Fix use-of-temporary with StringRef in code coverage

2016-11-04 Thread Jordan Rose via cfe-commits
jordan_rose created this revision. jordan_rose added a reviewer: vsk. jordan_rose added a subscriber: cfe-commits. jordan_rose set the repository for this revision to rL LLVM. The fixed code is basically identical to the same loop below, which might indicate an opportunity for refactoring. I just

[PATCH] D26316: [coroutines] Build and pass coroutine_handle to await_suspend.

2016-11-04 Thread Eric Fiselier via cfe-commits
EricWF created this revision. EricWF added reviewers: rsmith, GorNishanov. EricWF added a subscriber: cfe-commits. Herald added a subscriber: mehdi_amini. This patch adds passing a `coroutine_handle` object to `await_suspend` calls. It builds the `coroutine_handle` using `coroutine_handle::from

[PATCH] D26057: [coroutines] Add DependentCoawaitExpr and fix re-building CoroutineBodyStmt.

2016-11-04 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 76953. EricWF added a comment. - Address review comments about `DependentCoawaitExpr` and using `UnresolvedLookupExpr`. - Fix building of the initial/final coroutine suspends points. - Fix transformation of `CoroutineBodyStmt` so that it transforms the final/

[PATCH] D26057: [coroutines] Add DependentCoawaitExpr and fix re-building CoroutineBodyStmt.

2016-11-04 Thread Eric Fiselier via cfe-commits
EricWF retitled this revision from "[coroutines] Add CoawaitDependentExpr AST node and use it to properly build await_transform." to "[coroutines] Add DependentCoawaitExpr and fix re-building CoroutineBodyStmt.". EricWF updated the summary for this revision. EricWF updated this revision to Diff 7

[PATCH] D26314: [libcxx] [test] Fix MSVC warning C4189 "local variable is initialized but not referenced".

2016-11-04 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT created this revision. STL_MSFT added reviewers: EricWF, mclow.lists. STL_MSFT added a subscriber: cfe-commits. test/std/depr/depr.c.headers/inttypes_h.pass.cpp test/std/input.output/file.streams/c.files/cinttypes.pass.cpp test/std/input.output/iostream.forward/iosfwd.pass.cpp Add test()

[PATCH] D26304: [Power9] vector load/store with length - clang portion

2016-11-04 Thread Nemanja Ivanovic via cfe-commits
nemanjai added a comment. Zaara, prior to committing this patch, can you write a test case that will actually use these builtins in an executable test case and confirm the results. We'll then run it on the simulator to ensure functional correctness. Comment at: lib/Headers/al

[PATCH] D26196: AMDGPU: Translate null pointers in private and local addr space

2016-11-04 Thread John McCall via cfe-commits
rjmccall added a comment. In https://reviews.llvm.org/D26196#587135, @yaxunl wrote: > In https://reviews.llvm.org/D26196#586433, @rjmccall wrote: > > > I think there are a number of conceptual questions here, chiefly among them > > whether an llvm::ConstantPointerNull in an address-space type sh

[PATCH] D26311: Use AnalyzerOptions::getRegisteredCheckers() instead of clang/StaticAnalyzer/Checkers/Checkers.inc

2016-11-04 Thread Alexander Kornienko via cfe-commits
alexfh created this revision. alexfh added reviewers: zaks.anna, hokein. alexfh added a subscriber: cfe-commits. alexfh added a dependency: D26310: Add a method to get the list of registered static analyzer checkers.. Depends on https://reviews.llvm.org/D26310. https://reviews.llvm.org/D26311

[PATCH] D26310: Add a method to get the list of registered static analyzer checkers.

2016-11-04 Thread Alexander Kornienko via cfe-commits
alexfh created this revision. alexfh added a reviewer: zaks.anna. alexfh added a subscriber: cfe-commits. This provides a better interface for clang-tidy and encapsulates the knowledge about experimental checkers instead of leaving this to the clients. https://reviews.llvm.org/D26310 Files: i

[PATCH] D26308: [PowerPC] Add vector conversion builtins to altivec.h - clang portion

2016-11-04 Thread Nemanja Ivanovic via cfe-commits
nemanjai created this revision. nemanjai added reviewers: hfinkel, echristo, kbarton, amehsan, syzaara, sfertile, jtony, lei. nemanjai added a subscriber: cfe-commits. nemanjai set the repository for this revision to rL LLVM. Herald added a subscriber: mehdi_amini. This patch adds the following i

[PATCH] D26207: [ClangTidy - performance-unnecessary-value-param] Only add "const" when current parameter is not already const qualified

2016-11-04 Thread Felix Berger via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286010: [ClangTidy - performance-unnecessary-value-param] Only add "const" when current… (authored by flx). Changed prior to commit: https://reviews.llvm.org/D26207?vs=76877&id=76940#toc Repository:

[clang-tools-extra] r286010 - [ClangTidy - performance-unnecessary-value-param] Only add "const" when current parameter is not already const qualified

2016-11-04 Thread Felix Berger via cfe-commits
Author: flx Date: Fri Nov 4 15:51:31 2016 New Revision: 286010 URL: http://llvm.org/viewvc/llvm-project?rev=286010&view=rev Log: [ClangTidy - performance-unnecessary-value-param] Only add "const" when current parameter is not already const qualified Reviewers: alexfh, sbenza, aaron.ballman Sub

[PATCH] D26306: [AVX-512] Make VBMI instruction set enabling imply that the BWI instruction set is also enabled.

2016-11-04 Thread Craig Topper via cfe-commits
craig.topper created this revision. craig.topper added reviewers: delena, zvi. craig.topper added a subscriber: cfe-commits. This is needed to make the v64i8 and v32i16 types legal for the 512-bit VBMI instructions. Fixes PR30912. https://reviews.llvm.org/D26306 Files: lib/Basic/Targets.cpp

[PATCH] D26294: [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER.

2016-11-04 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT closed this revision. STL_MSFT added a comment. Committed as r286007. https://reviews.llvm.org/D26294 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26282: [PowerPC] Implement plain VSX load/store builtins.

2016-11-04 Thread Nemanja Ivanovic via cfe-commits
nemanjai added inline comments. Comment at: lib/Headers/altivec.h:15618 + +#if defined(__POWER8_VECTOR__) && defined(__powerpc64__) +static inline __ATTRS_o_ai vector signed __int128 Please move the __int128 overloads below the 64-bit ones to keep the overloads

[PATCH] D26195: Ignore incomplete types when determining whether they are expensive to copy

2016-11-04 Thread Felix Berger via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286008: [clang-tidy] Ignore incomplete types when determining whether they are… (authored by flx). Changed prior to commit: https://reviews.llvm.org/D26195?vs=76934&id=76935#toc Repository: rL LLVM

[clang-tools-extra] r286008 - [clang-tidy] Ignore incomplete types when determining whether they are expensive to copy

2016-11-04 Thread Felix Berger via cfe-commits
Author: flx Date: Fri Nov 4 15:29:22 2016 New Revision: 286008 URL: http://llvm.org/viewvc/llvm-project?rev=286008&view=rev Log: [clang-tidy] Ignore incomplete types when determining whether they are expensive to copy Summary: IsExpensiveToCopy can return false positives for incomplete types, s

[PATCH] D26195: Ignore incomplete types when determining whether they are expensive to copy

2016-11-04 Thread Felix Berger via cfe-commits
flx updated this revision to Diff 76934. https://reviews.llvm.org/D26195 Files: clang-tidy/utils/TypeTraits.cpp test/clang-tidy/performance-unnecessary-value-param.cpp Index: test/clang-tidy/performance-unnecessary-value-param.cpp

[PATCH] D25985: [analyzer] Export coverage information from the analyzer.

2016-11-04 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. In https://reviews.llvm.org/D25985#580270, @zaks.anna wrote: > Please, add multi-file tests and tests where a line is covered more than once. Ok, I will add it in the next iteration. Comment at: lib/StaticAnalyzer/Core/ExprEngine.cpp:262 + +static

[PATCH] D26294: [libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER.

2016-11-04 Thread Eric Fiselier via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM. Holy crap. Thanks STL! Just a note `_LIBCPP_STD_VER` is set to 11 in C++03 mode, it's silly but that's the way it is. So that makes me wonder if some of the `_LIBCPP_STD_VER > 11` reall

[PATCH] D25985: [analyzer] Export coverage information from the analyzer.

2016-11-04 Thread Gábor Horváth via cfe-commits
xazax.hun updated this revision to Diff 76933. xazax.hun marked 5 inline comments as done. xazax.hun added a comment. - Improved performance. - Fixed an off by one error. - Also export unexecuted lines. - Added context. https://reviews.llvm.org/D25985 Files: include/clang/StaticAnalyzer/Core/

[PATCH] D26302: [OpenCL] Remove redundant test for OpenCL header file

2016-11-04 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 76932. yaxunl added a comment. Revised as Anastasia suggested. https://reviews.llvm.org/D26302 Files: test/Headers/opencl-c-header.cl Index: test/Headers/opencl-c-header.cl === --- test/Head

[PATCH] D24933: Enable configuration files in clang

2016-11-04 Thread Michał Górny via cfe-commits
mgorny added a comment. I don't agree with the argumentation of @hans; however, I have my own concerns. I personally dislike the idea of reusing command-line option format for this. While I can see this is the simplest solution, it brings at least a few problems and questions. I'm afraid that t

[PATCH] D26267: [Modules] Include builtins with #include instead of #import for ObjC

2016-11-04 Thread Bruno Cardoso Lopes via cfe-commits
bruno updated this revision to Diff 76931. bruno marked an inline comment as done. bruno added a comment. Update patch after Vassil's comments! https://reviews.llvm.org/D26267 Files: include/clang/Lex/ModuleMap.h lib/Frontend/FrontendActions.cpp lib/Lex/ModuleMap.cpp test/Modules/Inputs

[PATCH] D26267: [Modules] Include builtins with #include instead of #import for ObjC

2016-11-04 Thread Bruno Cardoso Lopes via cfe-commits
bruno marked an inline comment as done. bruno added a comment. In https://reviews.llvm.org/D26267#586971, @v.g.vassilev wrote: > Could you include more context when creating the diff eg. git diff -U, or > equivalent. I did, -U9 actually, not sure why you're not getting it... ===

[PATCH] D26195: Ignore incomplete types when determining whether they are expensive to copy

2016-11-04 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, modulo a small commenting request. Comment at: test/clang-tidy/performance-unnecessary-value-param.cpp:242 +struct IncompleteType; +void NegativeForIncomp

[PATCH] D26207: [ClangTidy - performance-unnecessary-value-param] Only add "const" when current parameter is not already const qualified

2016-11-04 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! Comment at: test/clang-tidy/performance-unnecessary-value-param.cpp:242 +// Case where parameter in declaration is already const-qualified but not in +//

[PATCH] D26304: [Power9] vector load/store with length - clang portion

2016-11-04 Thread Zaara Syeda via cfe-commits
syzaara created this revision. syzaara added reviewers: nemanjai, kbarton, amehsan, sfertile, jtony, lei. syzaara added subscribers: echristo, cfe-commits. Add builtin functions for prototypes: vector signed char vec_xl_len (signed char *, size_t); vector unsigned char vec_xl_len (unsigned char *

[PATCH] D26195: Ignore incomplete types when determining whether they are expensive to copy

2016-11-04 Thread Felix Berger via cfe-commits
flx added a comment. In https://reviews.llvm.org/D26195#585917, @aaron.ballman wrote: > In https://reviews.llvm.org/D26195#585198, @flx wrote: > > > In https://reviews.llvm.org/D26195#585091, @aaron.ballman wrote: > > > > > In https://reviews.llvm.org/D26195#584958, @flx wrote: > > > > > > > In h

[PATCH] D26195: Ignore incomplete types when determining whether they are expensive to copy

2016-11-04 Thread Felix Berger via cfe-commits
flx removed rL LLVM as the repository for this revision. flx updated this revision to Diff 76928. https://reviews.llvm.org/D26195 Files: clang-tidy/utils/TypeTraits.cpp test/clang-tidy/performance-unnecessary-value-param.cpp Index: test/clang-tidy/performance-unnecessary-value-param.cpp ===

[PATCH] D26196: AMDGPU: Translate null pointers in private and local addr space

2016-11-04 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. In https://reviews.llvm.org/D26196#586433, @rjmccall wrote: > I think there are a number of conceptual questions here, chiefly among them > whether an llvm::ConstantPointerNull in an address-space type should have the > correct representation for the target. If the deci

[PATCH] D26302: [OpenCL] Remove redundant test for OpenCL header file

2016-11-04 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/Headers/opencl-c-header.cl:48 -// === -// Compile for OpenCL 1.0 for the first time. A module should be generated. -// RUN: %clang_cc1 -triple spir-unknown-unknown -emit-llvm -o - -finclude-default-header -fmodules -fimplicit-mod

[PATCH] D26125: [clang-tidy] Fixed readability-else-after-return for cascade statements

2016-11-04 Thread Malcolm Parsons via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285999: [clang-tidy] Fixed readability-else-after-return for cascade statements (authored by malcolm.parsons). Changed prior to commit: https://reviews.llvm.org/D26125?vs=76604&id=76924#toc Repository:

[PATCH] D26207: [ClangTidy - performance-unnecessary-value-param] Only add "const" when current parameter is not already const qualified

2016-11-04 Thread Felix Berger via cfe-commits
flx added a comment. Aaron, do you have any other comments or does the patch look good to you? https://reviews.llvm.org/D26207 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26301: [clang-tidy] Fix a regression issue introduced by r285239.

2016-11-04 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: alexfh. hokein added a subscriber: cfe-commits. r285239 changes the behavior of AST CXXDefaultArgExpr node. Update `modernize-use-nullptr` to handle CXXDefaultArgExpr correctly. https://reviews.llvm.org/D26301 Files: clang-tidy/modernize

[PATCH] D26302: [OpenCL] Remove redundant test for OpenCL header file

2016-11-04 Thread Yaxun Liu via cfe-commits
yaxunl created this revision. yaxunl added a reviewer: Anastasia. yaxunl added subscribers: cfe-commits, rsmith. https://reviews.llvm.org/D26302 Files: test/Headers/opencl-c-header.cl Index: test/Headers/opencl-c-header.cl === --

[clang-tools-extra] r285999 - [clang-tidy] Fixed readability-else-after-return for cascade statements

2016-11-04 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Fri Nov 4 11:32:14 2016 New Revision: 285999 URL: http://llvm.org/viewvc/llvm-project?rev=285999&view=rev Log: [clang-tidy] Fixed readability-else-after-return for cascade statements Summary: Fix generated by this check changed program semantics in the case where 'i

RE: D26157: [OpenCL] always use SPIR address spaces for kernel_arg_addr_space MD

2016-11-04 Thread Liu, Yaxun (Sam) via cfe-commits
Even if we use string for address space MD, we still need to define them somewhere. On the other hand, if we use SPIR enum, we just need to refer to the SPIR spec in the documenting comments. Sam -Original Message- From: Pekka Jääskeläinen [mailto:pekka.jaaskelai...@gmail.com] Sent: Th

RE: r273191 - [OpenCL] Include opencl-c.h by default as a clang module

2016-11-04 Thread Anastasia Stulova via cfe-commits
Great! Thanks! From: Liu, Yaxun (Sam) [mailto:yaxun@amd.com] Sent: 04 November 2016 13:52 To: Anastasia Stulova; Richard Smith Cc: nd; cfe-commits@lists.llvm.org Subject: RE: r273191 - [OpenCL] Include opencl-c.h by default as a clang module Hi Richard/Anastasia, I agree some tests are redun

RE: r273191 - [OpenCL] Include opencl-c.h by default as a clang module

2016-11-04 Thread Liu, Yaxun (Sam) via cfe-commits
Hi Richard/Anastasia, I agree some tests are redundant. I will try to remove them. Thanks. Sam From: Anastasia Stulova [mailto:anastasia.stul...@arm.com] Sent: Friday, November 04, 2016 7:43 AM To: Richard Smith ; Liu, Yaxun (Sam) Cc: nd ; cfe-commits@lists.llvm.org Subject: RE: r273191 - [Ope

Re: r285979 - Do not print enum underlying type if language is not C++11

2016-11-04 Thread Aaron Ballman via cfe-commits
On Fri, Nov 4, 2016 at 8:50 AM, Serge Pavlov wrote: > This following commit r285981 (Enhancement to test for -ast-print tests) > tests this change. Without it the test 'Coverage/ast-printing.c' fails on > Windows. Ah, thank you! :-) ~Aaron > > Thanks, > --Serge > > 2016-11-04 19:09 GMT+07:00 Aa

Re: r285979 - Do not print enum underlying type if language is not C++11

2016-11-04 Thread Serge Pavlov via cfe-commits
This following commit r285981 (Enhancement to test for -ast-print tests) tests this change. Without it the test 'Coverage/ast-printing.c' fails on Windows. Thanks, --Serge 2016-11-04 19:09 GMT+07:00 Aaron Ballman : > On Fri, Nov 4, 2016 at 2:03 AM, Serge Pavlov via cfe-commits > wrote: > > Auth

r285994 - [test] Test that static_assert is properly visited in liblcang

2016-11-04 Thread Olivier Goffart via cfe-commits
Author: ogoffart Date: Fri Nov 4 07:04:16 2016 New Revision: 285994 URL: http://llvm.org/viewvc/llvm-project?rev=285994&view=rev Log: [test] Test that static_assert is properly visited in liblcang Added: cfe/trunk/test/Index/load-staticassert.cpp Added: cfe/trunk/test/Index/load-staticasser

Re: r285979 - Do not print enum underlying type if language is not C++11

2016-11-04 Thread Aaron Ballman via cfe-commits
On Fri, Nov 4, 2016 at 2:03 AM, Serge Pavlov via cfe-commits wrote: > Author: sepavloff > Date: Fri Nov 4 01:03:34 2016 > New Revision: 285979 > > URL: http://llvm.org/viewvc/llvm-project?rev=285979&view=rev > Log: > Do not print enum underlying type if language is not C++11 > > Output generated

RE: r273191 - [OpenCL] Include opencl-c.h by default as a clang module

2016-11-04 Thread Anastasia Stulova via cfe-commits
Hi Richard, I guess the problem is that the header file itself is really large and we have all these configurations that depending on versions/extensions expose different builtin libraries. They are all based on the core part though which is already large. Ideally it would be nice to test the

Re: r285258 - Refactor call emission to package the function pointer together with

2016-11-04 Thread Yaron Keren via cfe-commits
Hi John, clang warns on this: /llvm/tools/zapccs/../clang/include/../lib/CodeGen/CGCall.h:79:7: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types] struct { ^ /llvm/tools/zapccs/../clang/include/../lib/CodeGen/CGCall.h:83:7: warning: anonymou

r285986 - [python bindings] Expose CXCursor_FriendDecl as CursorKind.FRIEND_DECL

2016-11-04 Thread Olivier Goffart via cfe-commits
Author: ogoffart Date: Fri Nov 4 01:50:59 2016 New Revision: 285986 URL: http://llvm.org/viewvc/llvm-project?rev=285986&view=rev Log: [python bindings] Expose CXCursor_FriendDecl as CursorKind.FRIEND_DECL CXCursor_FriendDecl was added in r285984 Modified: cfe/trunk/bindings/python/clang/cin