Re: [PATCH] D17378: Add additional Hi/Lo registers to Clang MipsTargetInfoBase

2016-03-22 Thread Hrvoje Varga via cfe-commits
hvarga added a comment. Are there any thoughts about this patch? http://reviews.llvm.org/D17378 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17491: Add performance check to flag function parameters of expensive to copy types that can be safely converted to const references.

2016-03-22 Thread Felix Berger via cfe-commits
flx added inline comments. Comment at: clang-tidy/performance/UnnecessaryValueParamCheck.cpp:42 @@ +41,3 @@ + decl().bind("param")); + Finder->addMatcher( + functionDecl(isDefinition(), unless(cxxMethodDecl(isOverride())), alexfh wrote: > Ca

Re: [PATCH] D17491: Add performance check to flag function parameters of expensive to copy types that can be safely converted to const references.

2016-03-22 Thread Felix Berger via cfe-commits
flx updated the summary for this revision. flx updated this revision to Diff 51385. flx marked 5 inline comments as done. flx added a comment. After testing the check against a large corpus I was able to remove the unnecessary param index check. But I discovered that the check crashed on value

[PATCH] D18385: [CUDA] Simplify SemaCUDA/function-overload.cu test.

2016-03-22 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added a subscriber: cfe-commits. Principally, don't hardcode the line numbers of various notes. This lets us make changes to the test without recomputing linenos everywhere. Instead, just tell -verify that we may get 0 or more no

[PATCH] D18386: [CUDA] Merge most of CodeGenCUDA/function-overload.cu into SemaCUDA/function-overload.cu.

2016-03-22 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added a subscriber: cfe-commits. Previously we were using the codegen test to ensure that we choose the right overload. But we can do this within sema, with a bit of cleverness. I left the constructor/destructor checks in CodeGen

Re: [PATCH] D18380: [CUDA] Implement -fcuda-relaxed-constexpr, and enable it by default.

2016-03-22 Thread Justin Lebar via cfe-commits
jlebar updated this revision to Diff 51384. jlebar added a comment. Update test as discussed -- now we check that we're invoking the correct overloads. http://reviews.llvm.org/D18380 Files: include/clang/Basic/LangOptions.def include/clang/Driver/CC1Options.td lib/Driver/Tools.cpp lib/

Re: [PATCH] D13704: [Fix] Allow implicit conversions of the address of overloadable functions in C + docs update

2016-03-22 Thread George Burgess IV via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL264132: [Sema] Allow implicit conversions of &overloaded_fn in C. (authored by gbiv). Changed prior to commit: http://reviews.llvm.org/D13704?vs=49333&id=51378#toc Repository: rL LLVM http://reviews

r264132 - [Sema] Allow implicit conversions of &overloaded_fn in C.

2016-03-22 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Tue Mar 22 21:33:58 2016 New Revision: 264132 URL: http://llvm.org/viewvc/llvm-project?rev=264132&view=rev Log: [Sema] Allow implicit conversions of &overloaded_fn in C. Also includes a minor ``enable_if`` docs update. Currently, our address-of overload machinery will only all

Re: [PATCH] D13704: [Fix] Allow implicit conversions of the address of overloadable functions in C + docs update

2016-03-22 Thread George Burgess IV via cfe-commits
george.burgess.iv marked 3 inline comments as done. Comment at: lib/Sema/SemaOverload.cpp:10419 @@ -10418,3 +10429,1 @@ - ResultTy) || - (!S.getLangOpts().CPlusPlus && TargetType->isVoidPointerType())) { Matches.push_back(std::make

Re: [PATCH] D18196: [CodeGen] Emit lifetime.end intrinsic after destructor call in landing pad

2016-03-22 Thread Akira Hatanaka via cfe-commits
ahatanak added a comment. In http://reviews.llvm.org/D18196#375997, @rjmccall wrote: > You should also check that any back-end peepholes we have in place (null type > infos to signify a call-terminate landingpad?) aren't disturbed by the > lifetime intrinsics. I looked at the back-end passes

Re: [PATCH] D18196: [CodeGen] Emit lifetime.end intrinsic after destructor call in landing pad

2016-03-22 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 51376. ahatanak added a comment. Added a test in test/CodeGenCXX/microsoft-abi-eh-cleanups.cpp to check expected patterns are emitted. http://reviews.llvm.org/D18196 Files: lib/CodeGen/CGCleanup.cpp lib/CodeGen/CGDecl.cpp lib/CodeGen/EHScopeStack.h

Re: [PATCH] D13704: [Fix] Allow implicit conversions of the address of overloadable functions in C + docs update

2016-03-22 Thread Richard Smith via cfe-commits
rsmith accepted this revision. This revision is now accepted and ready to land. Comment at: lib/Sema/SemaOverload.cpp:10419 @@ -10418,3 +10429,1 @@ - ResultTy) || - (!S.getLangOpts().CPlusPlus && TargetType->isVoidPointerType())) {

r264125 - [Apple Clang] Expose llvm-config from stage2 builds in stage1

2016-03-22 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Tue Mar 22 20:47:05 2016 New Revision: 264125 URL: http://llvm.org/viewvc/llvm-project?rev=264125&view=rev Log: [Apple Clang] Expose llvm-config from stage2 builds in stage1 This exposes the stage2-llvm-config target though the stage1 build configuration. Modified: c

Re: [PATCH] D17462: Fix a codegen bug for variadic functions with pass_object_size params

2016-03-22 Thread George Burgess IV via cfe-commits
george.burgess.iv added inline comments. Comment at: lib/CodeGen/CGCall.cpp:142-143 @@ -132,1 +141,4 @@ + appendParameterTypes(CGT, prefix, FTP, FD, &SynthesizedParams); + RequiredArgs Required = + RequiredArgs::forPrototypePlus(FTP, StartParams + SynthesizedParams); Can

Re: [PATCH] D17462: Fix a codegen bug for variadic functions with pass_object_size params

2016-03-22 Thread George Burgess IV via cfe-commits
george.burgess.iv updated this revision to Diff 51374. george.burgess.iv marked an inline comment as done. george.burgess.iv added a comment. Addressed all feedback http://reviews.llvm.org/D17462 Files: include/clang/CodeGen/CGFunctionInfo.h lib/CodeGen/CGCall.cpp lib/CodeGen/CGExprCXX.cp

Re: [PATCH] D16139: [MIPS] initFeatureMap() to handle empty string argument

2016-03-22 Thread Eric Christopher via cfe-commits
Hi Daniel, Sorry for the delay, but I've been both away and catching up: On Wed, Mar 9, 2016 at 4:00 AM Daniel Sanders wrote: > > > From: Eric Christopher [echri...@gmail.com] > > > Sent: 09 March 2016 06:50 > > > To: reviews+d16139+public+275805419034a...@reviews.llvm.org; Bhushan > Attarde; V

Re: [PATCH] D18380: [CUDA] Implement -fcuda-relaxed-constexpr, and enable it by default.

2016-03-22 Thread Justin Lebar via cfe-commits
jlebar added a comment. In http://reviews.llvm.org/D18380#381031, @tra wrote: > We need tests to demonstrate that we pick correct function when we have mix > of HD+H/D in the overload set. > Existing tests only cover resolution of {HD,HD}, {H,H} {D,D} {H,D} sets Aha, got it. I think adding t

Re: [PATCH] D18380: [CUDA] Implement -fcuda-relaxed-constexpr, and enable it by default.

2016-03-22 Thread Justin Lebar via cfe-commits
jlebar updated this revision to Diff 51366. jlebar added a comment. Add tests checking host+device overloading. http://reviews.llvm.org/D18380 Files: include/clang/Basic/LangOptions.def include/clang/Driver/CC1Options.td lib/Driver/Tools.cpp lib/Frontend/CompilerInvocation.cpp lib/Sem

Re: [PATCH] D18380: [CUDA] Implement -fcuda-relaxed-constexpr, and enable it by default.

2016-03-22 Thread Artem Belevich via cfe-commits
We need tests to demonstrate that we pick correct function when we have mix of HD+H/D in the overload set. Existing tests only cover resolution of {HD,HD}, {H,H} {D,D} {H,D} sets On Tue, Mar 22, 2016 at 4:59 PM, Justin Lebar wrote: > jlebar added a comment. > > In http://reviews.llvm.org/D18380#

Re: [PATCH] D18380: [CUDA] Implement -fcuda-relaxed-constexpr, and enable it by default.

2016-03-22 Thread Justin Lebar via cfe-commits
jlebar added a comment. In http://reviews.llvm.org/D18380#381025, @tra wrote: > Now that H/D and HD cal all be in the same overload set, we'll also need > additional tests in CodeGenCUDA/function-overload.cu for cases that now > became legal. There are lots of tests that used to be compile er

Re: [PATCH] D18380: [CUDA] Implement -fcuda-relaxed-constexpr, and enable it by default.

2016-03-22 Thread Artem Belevich via cfe-commits
tra added a comment. Now that H/D and HD cal all be in the same overload set, we'll also need additional tests in CodeGenCUDA/function-overload.cu for cases that now became legal. http://reviews.llvm.org/D18380 ___ cfe-commits mailing list cfe-com

Re: [PATCH] D18275: [ASTMatchers] Add own version of VariadicFunction.

2016-03-22 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:80 @@ +79,3 @@ + ResultT operator()(ArrayRef Args) const { +std::vector InnerArgs; +for (const ArgT &Ar

Re: [PATCH] D9888: [OPENMP] Driver support for OpenMP offloading

2016-03-22 Thread Eric Christopher via cfe-commits
echristo added a comment. First I'd like to note that the code quality here is really high, most of my comments are higher level design decisions going with the driver and the implementation here rather than that. One meta comment: offload appears to be something that could be used for CUDA an

Re: [Diffusion] rL244063: Add missing atomic libcall support.

2016-03-22 Thread Richard Smith via cfe-commits
rsmith resigned from this audit. Users: jyknight (Author, Auditor) 3.7-release (Auditor) cfe-commits (Auditor) tstellarAMD (Auditor) compnerd (Auditor) majnemer (Auditor) rsmith (Auditor) dim (Auditor) http://reviews.llvm.org/rL244063 ___

Re: [PATCH] D18380: [CUDA] Implement -fcuda-relaxed-constexpr, and enable it by default.

2016-03-22 Thread Justin Lebar via cfe-commits
jlebar updated this revision to Diff 51357. jlebar added a comment. Actually run the tests, and fix the CUDA overloading test. http://reviews.llvm.org/D18380 Files: include/clang/Basic/LangOptions.def include/clang/Driver/CC1Options.td lib/Driver/Tools.cpp lib/Frontend/CompilerInvocatio

Re: [PATCH] D18347: [PATCH] Fix thread_annotation negtest for thread safety.

2016-03-22 Thread Richard Barton via cfe-commits
richard.barton.arm added a comment. Thanks for the help Eric. I'm just running a new patch now will put the new patch up when I get back in to office tomorrow. http://reviews.llvm.org/D18347 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

Re: [PATCH] D18373: [CUDA] Don't allow templated variadic functions.

2016-03-22 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL264106: [CUDA] Don't allow templated variadic functions. (authored by jlebar). Changed prior to commit: http://reviews.llvm.org/D18373?vs=51332&id=51354#toc Repository: rL LLVM http://reviews.llvm.o

r264106 - [CUDA] Don't allow templated variadic functions.

2016-03-22 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Tue Mar 22 17:06:19 2016 New Revision: 264106 URL: http://llvm.org/viewvc/llvm-project?rev=264106&view=rev Log: [CUDA] Don't allow templated variadic functions. Reviewers: tra Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D18373 Modified: cfe/

Re: [PATCH] D17462: Fix a codegen bug for variadic functions with pass_object_size params

2016-03-22 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/CodeGen/CGCall.cpp:142-143 @@ -132,1 +141,4 @@ + appendParameterTypes(CGT, prefix, FTP, FD, &SynthesizedParams); + RequiredArgs Required = + RequiredArgs::forPrototypePlus(FTP, StartParams + SynthesizedParams); CanQualType re

[PATCH] D18380: [CUDA] Implement -fcuda-relaxed-constexpr, and enable it by default.

2016-03-22 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added subscribers: rsmith, rnk, cfe-commits. All constexpr functions are implicitly host+device, except for variadic functions, which are not allowed on the device side. As part of this change, we now allow you to overload a host+

Re: [PATCH] D18328: [CUDA] Add option to mark most functions inside as host+device.

2016-03-22 Thread Justin Lebar via cfe-commits
jlebar abandoned this revision. jlebar marked 7 inline comments as done. jlebar added a comment. Okay, after much discussion, we've decided to go with --relaxed-constexpr instead of this. I have a patch for that which seems to mostly work, will send it out soon. http://reviews.llvm.org/D18328

Re: [PATCH] D17951: Implement is_always_lock_free

2016-03-22 Thread JF Bastien via cfe-commits
jfb updated this revision to Diff 51346. jfb added a comment. - Define __cpp_lib_atomic_is_always_lock_free in libc++ http://reviews.llvm.org/D17951 Files: include/atomic test/std/atomics/atomics.lockfree/isalwayslockfree.pass.cpp Index: test/std/atomics/atomics.lockfree/isalwayslockfree.p

Re: [PATCH] D18289: Attach profile summary information to module

2016-03-22 Thread Easwaran Raman via cfe-commits
eraman marked 2 inline comments as done. Comment at: lib/CodeGen/CodeGenModule.cpp:398-399 @@ -397,3 +397,4 @@ if (PGOReader) { getModule().setMaximumFunctionCount(PGOReader->getMaximumFunctionCount()); +getModule().setProfileSummary(PGOReader->getSummary().getMD(VMCon

Re: [PATCH] D18289: Attach profile summary information to module

2016-03-22 Thread Easwaran Raman via cfe-commits
eraman updated this revision to Diff 51342. eraman added a comment. Address Vedant's comments http://reviews.llvm.org/D18289 Files: lib/CodeGen/CodeGenModule.cpp test/Profile/Inputs/profile-summary.proftext test/Profile/profile-summary.c Index: test/Profile/profile-summary.c

Re: [PATCH] D17951: Implement is_always_lock_free

2016-03-22 Thread Eric Fiselier via cfe-commits
EricWF added a comment. Re-building clang now so I can test the most recent changes. Comment at: include/atomic:850 @@ +849,3 @@ +#if defined(__cpp_lib_atomic_is_always_lock_free) + static _LIBCPP_CONSTEXPR bool is_always_lock_free = __atomic_always_lock_free(sizeof(__a_), 0);

Re: [PATCH] D18289: Attach profile summary information to module

2016-03-22 Thread Vedant Kumar via cfe-commits
vsk added inline comments. Comment at: test/Profile/profile-summary.c:5 @@ +4,3 @@ +// RUN: %clang %s -o - -mllvm -disable-llvm-optzns -emit-llvm -S -fprofile-instr-use=%t.profdata | FileCheck %s +// +int begin(int i) { davidxl wrote: > vsk wrote: > > ISTM that a

Re: [PATCH] D17951: Implement is_always_lock_free

2016-03-22 Thread JF Bastien via cfe-commits
jfb added a comment. As discussed in now-abandoned http://reviews.llvm.org/D17950 I'll implement everything in libc++. I just have to move the feature test macro to libc++. http://reviews.llvm.org/D17951 ___ cfe-commits mailing list cfe-commits@lis

Re: [PATCH] D18289: Attach profile summary information to module

2016-03-22 Thread David Li via cfe-commits
davidxl added inline comments. Comment at: lib/CodeGen/CodeGenModule.cpp:398 @@ -397,2 +397,3 @@ if (PGOReader) { getModule().setMaximumFunctionCount(PGOReader->getMaximumFunctionCount()); +auto *SummaryMD = PGOReader->getSummary().getMD(getModule().getContext());

Re: [PATCH] D17950: Implement is_always_lock_free

2016-03-22 Thread JF Bastien via cfe-commits
jfb abandoned this revision. Comment at: lib/Frontend/InitPreprocessor.cpp:465 @@ +464,3 @@ + if (LangOpts.CPlusPlus1z) { +Builder.defineMacro("__cpp_lib_atomic_is_always_lock_free", "201603"); + } jfb wrote: > rsmith wrote: > > This should be defined by the

Re: [PATCH] D18095: Add __attribute__((linkonce_odr_linkage))

2016-03-22 Thread John McCall via cfe-commits
rjmccall added a comment. Yes, you should just stick with your post-processing pass or something like it. The design of linkonce_odr linkage is that such definitions will only be emitted when they are actually used. Even with this attribute, a translation unit that consists solely of: __att

r264098 - Update cxx-features test to C++1z

2016-03-22 Thread JF Bastien via cfe-commits
Author: jfb Date: Tue Mar 22 16:12:48 2016 New Revision: 264098 URL: http://llvm.org/viewvc/llvm-project?rev=264098&view=rev Log: Update cxx-features test to C++1z Forked from the following patch: http://reviews.llvm.org/D17950 Modified: cfe/trunk/test/Lexer/cxx-features.cpp Modified: cfe

Re: [PATCH] D18347: [PATCH] Fix thread_annotation negtest for thread safety.

2016-03-22 Thread Eric Fiselier via cfe-commits
EricWF added a comment. And looking at the current state of the single-threaded test suite this isn't the only test that needs this fix applied. http://lab.llvm.org:8011/builders/libcxx-libcxxabi-singlethreaded-x86_64-linux-debian/builds/869 http://reviews.llvm.org/D18347 __

r264092 - D18325: Added mm_malloc module export.

2016-03-22 Thread John Thompson via cfe-commits
Author: jtsoftware Date: Tue Mar 22 15:57:51 2016 New Revision: 264092 URL: http://llvm.org/viewvc/llvm-project?rev=264092&view=rev Log: D18325: Added mm_malloc module export. Modified: cfe/trunk/lib/Headers/module.modulemap cfe/trunk/test/Headers/xmmintrin.c Modified: cfe/trunk/lib/Head

Re: [PATCH] D18347: [PATCH] Fix thread_annotation negtest for thread safety.

2016-03-22 Thread Eric Fiselier via cfe-commits
EricWF added a comment. I think the correct fix is "// UNSUPPORTED: libcpp-has-no-threads" http://reviews.llvm.org/D18347 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18095: Add __attribute__((linkonce_odr_linkage))

2016-03-22 Thread Tom Stellard via cfe-commits
tstellarAMD added a comment. Hi John, The problem we are trying to solve here is linking a LLVM bitcode program (OpenCL kernel in this specific case) with an LLVM bitcode library (OpenCL builtin library) and having the resulting LLVM bitcode module contain only the program code and the library

Re: [PATCH] D18347: [PATCH] Fix thread_annotation negtest for thread safety.

2016-03-22 Thread Richard Barton via cfe-commits
richard.barton.arm added a comment. Hi Eric Sorry for the delay - I originally detected the failure while not running in a totally clean environment with clean sources, but I can reproduce on clean code. I can reproduce by building with clean clang and libcxx sources: cmake -DLLVM_PATH=/work/ri

Re: [PATCH] D18170: [CUDA][OpenMP] Create generic offload toolchains

2016-03-22 Thread Artem Belevich via cfe-commits
tra added inline comments. Comment at: include/clang/Driver/Action.h:79 @@ +78,3 @@ +OFFLOAD_None = 0x00, +OFFLOAD_CUDA = 0x01, + }; Nit: All-caps CUDA looks weird here. _Cuda may be better choice. If you can shorten the prefix that would be nice, too. OK

Re: [PATCH] D18095: Add __attribute__((linkonce_odr_linkage))

2016-03-22 Thread John McCall via cfe-commits
rjmccall added a comment. You could also get this effect by somehow making the definitions linkonce_odr when they're linked in from the library. Or you could simply use the classic static-archive technique of putting each symbol in its own object file and linking against the whole thing as a s

Re: [PATCH] D18095: Add __attribute__((linkonce_odr_linkage))

2016-03-22 Thread John McCall via cfe-commits
rjmccall added a comment. Does your linker not supported dead-code stripping? http://reviews.llvm.org/D18095 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18095: Add __attribute__((linkonce_odr_linkage))

2016-03-22 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. Sorry my previous example may have caused some confusion. Previously I said I wanted to override function definitions. However the only reason we want to add this attribute is so that unused functions will be dropped by the linker. http://reviews.llvm.org/D18095 ___

[PATCH] D18373: [CUDA] Don't allow templated variadic functions.

2016-03-22 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added a subscriber: cfe-commits. http://reviews.llvm.org/D18373 Files: lib/Sema/SemaDecl.cpp test/SemaCUDA/vararg.cu Index: test/SemaCUDA/vararg.cu === --- test/

Re: [PATCH] D17552: Pass -backend-option to LLVM when there is no target machine

2016-03-22 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 51326. yaxunl marked an inline comment as done. yaxunl added a comment. Add -x cl to the test when compiling it for spir target. http://reviews.llvm.org/D17552 Files: lib/CodeGen/BackendUtil.cpp test/Frontend/backend-option.c Index: test/Frontend/backen

Re: [PATCH] D18095: Add __attribute__((linkonce_odr_linkage))

2016-03-22 Thread John McCall via cfe-commits
rjmccall added a comment. You still don't actually want linkonce_odr linkage. You don't want the weak definition to be inlined, so it can't be ODR, and you want to force it to be emitted in your library, so it can't be linkonce. You just want weak linkage. There's an existing attribute for t

Re: [PATCH] D18199: CodeGen: Implement IR generation for the relative vtable ABI (PR26723).

2016-03-22 Thread Peter Collingbourne via cfe-commits
pcc updated this revision to Diff 51324. pcc added a comment. - Use llvm.load.relative (http://reviews.llvm.org/D18367) http://reviews.llvm.org/D18199 Files: docs/UsersManual.rst lib/CodeGen/CGClass.cpp lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGVTables.cpp lib/CodeGen/CGVTables.h li

Re: [PATCH] D18325: export additional header modules from xmmintrin

2016-03-22 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. LGTM http://reviews.llvm.org/D18325 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

Buildbot numbers for week of 3/13/2016 - 3/19/2016

2016-03-22 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the last week of 3/13/2016 - 3/19/2016. Thanks Galina "Status change ratio" by active builder (percent of builds that changed the builder status from greed to red or from red to green): buildername

Buildbot numbers for week of 3/06/2016 - 3/12/2016

2016-03-22 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the week of 3/06/2016 - 3/12/2016. Thanks Galina "Status change ratio" by active builder (percent of builds that changed the builder status from greed to red or from red to green): buildername

Re: [PATCH] D17552: Pass -backend-option to LLVM when there is no target machine

2016-03-22 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/Frontend/backend-option.c:2 @@ +1,3 @@ +// RUN: %clang_cc1 %s -emit-llvm -backend-option -time-passes -o - 2>&1 | FileCheck %s +// RUN: %clang_cc1 %s -emit-llvm -backend-option -time-passes -o - -triple spir-unknown-unknown 2>&1

Re: r257934 - [CMake] Support generation of linker order files using dtrace

2016-03-22 Thread Sean Silva via cfe-commits
Thanks! On Tue, Mar 22, 2016 at 9:34 AM, Chris Bieneman wrote: > Sean, > > All good feedback. > > Using print_function was done in r257936 with some other feedback from > Bogner. > > The rest of your feedback I believe I have addressed in r264063. > > -Chris > > On Mar 21, 2016, at 9:21 PM, Sean

Re: [PATCH] D18347: [PATCH] Fix thread_annotation negtest for thread safety.

2016-03-22 Thread Eric Fiselier via cfe-commits
EricWF added a comment. I don't actually understand this change. This test should compile with or without "-Wthread-safety" warning. This test doesn't actually turn the annotations on, that's the point. If annotations were actually enabled this test would fail to compile. Could you explain the

Re: [PATCH] D18347: [PATCH] Fix thread_annotation negtest for thread safety.

2016-03-22 Thread Richard Barton via cfe-commits
richard.barton.arm updated this revision to Diff 51316. richard.barton.arm added a comment. Sorry - not sure what happened there. That looks better for me. http://reviews.llvm.org/D18347 Files: test/libcxx/thread/thread.mutex/thread_safety_annotations_not_enabled.pass.cpp Index: test/libcxx

Re: [PATCH] D17552: Pass -backend-option to LLVM when there is no target machine

2016-03-22 Thread Yaxun Liu via cfe-commits
yaxunl marked an inline comment as done. Comment at: test/Frontend/backend-option.c:2 @@ +1,3 @@ +// RUN: %clang_cc1 %s -emit-llvm -backend-option -time-passes -o - 2>&1 | FileCheck %s +// RUN: %clang_cc1 %s -emit-llvm -backend-option -time-passes -o - -triple spir-unknown-unkno

Re: [PATCH] D18325: export additional header modules from xmmintrin

2016-03-22 Thread John Thompson via cfe-commits
jtsoftware edited reviewers, added: rsmith; removed: probinson, silvas. jtsoftware updated this revision to Diff 51313. jtsoftware added a comment. Right. Also undoing moving stuff around. How about this? Thanks. http://reviews.llvm.org/D18325 Files: lib/Headers/module.modulemap test/Hea

Re: [PATCH] D17552: Pass -backend-option to LLVM when there is no target machine

2016-03-22 Thread Anastasia Stulova via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. LGTM, apart from small remark on the test! Comment at: test/Frontend/backend-option.c:2 @@ +1,3 @@ +// RUN: %clang_cc1 %s -emit-llvm -backend-option -time-passes -o - 2>&1 | FileCheck %s +// RUN: %clang_cc1 %s -emit-l

[clang-tools-extra] r264080 - [clang-tidy] Fix broken test with redundant string init (msvc).

2016-03-22 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Tue Mar 22 13:21:17 2016 New Revision: 264080 URL: http://llvm.org/viewvc/llvm-project?rev=264080&view=rev Log: [clang-tidy] Fix broken test with redundant string init (msvc). Summary: There is a silly bug that got introduced after fixing incorrect paths with this patch: h

Re: [PATCH] D17596: [OpenCL] Add ocl and spir version for spir target

2016-03-22 Thread Anastasia Stulova via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. LGTM! http://reviews.llvm.org/D17596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17955: [OpenCL] Fix pipe builtin bugs

2016-03-22 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/SemaOpenCL/invalid-pipe-builtin-cl2.0.cl:1 @@ -1,2 +1,2 @@ // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL2.0 Could you add a test case that fails before your modification here to show that you

Re: [PATCH] D18365: [clang-tidy] Fix broken test with redundant string init (msvc).

2016-03-22 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm http://reviews.llvm.org/D18365 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D18365: [clang-tidy] Fix broken test with redundant string init (msvc).

2016-03-22 Thread Etienne Bergeron via cfe-commits
etienneb created this revision. etienneb added reviewers: rnk, alexfh. etienneb added a subscriber: cfe-commits. There is a silly bug that got introduced after fixing incorrect paths with this patch: http://reviews.llvm.org/D18293 The tests was present twice in the file. http://reviews.llvm.org

Re: [PATCH] D18363: Fix typo s/initalize/initialize/

2016-03-22 Thread Stephen Hines via cfe-commits
srhines accepted this revision. srhines added a comment. This revision is now accepted and ready to land. I think this is trivial enough for me to accept. I also added cfe-commits, so that they at least have a chance to review/comment. Repository: rL LLVM http://reviews.llvm.org/D18363 __

Re: r264071 - StaticAnalyzer: Avoid an unintentional copy

2016-03-22 Thread David Blaikie via cfe-commits
On Tue, Mar 22, 2016 at 10:50 AM, Justin Bogner via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: bogner > Date: Tue Mar 22 12:50:05 2016 > New Revision: 264071 > > URL: http://llvm.org/viewvc/llvm-project?rev=264071&view=rev > Log: > StaticAnalyzer: Avoid an unintentional copy > Jus

Re: [PATCH] D13126: New static analyzer checker for loss of sign/precision

2016-03-22 Thread Anna Zaks via cfe-commits
zaks.anna added inline comments. Comment at: lib/StaticAnalyzer/Checkers/ConversionChecker.cpp:84 @@ +83,3 @@ +// Can E value be greater or equal than Val? +static bool canBeGreaterEqual(CheckerContext &C, const Expr *E, + unsigned long long Val) { ---

[clang-tools-extra] r264075 - [clang-tidy] Fix redundant-string-cstr check with msvc 14 headers.

2016-03-22 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Tue Mar 22 13:00:13 2016 New Revision: 264075 URL: http://llvm.org/viewvc/llvm-project?rev=264075&view=rev Log: [clang-tidy] Fix redundant-string-cstr check with msvc 14 headers. Summary: The string constructors are not defined using optional parameters and are not recogni

Re: [PATCH] D17821: [OpenCL] Complete image types support

2016-03-22 Thread Anastasia Stulova via cfe-commits
Anastasia updated this revision to Diff 51303. Anastasia added a comment. Thanks to Aleksey Bader for rebasing this patch to ToT and fixing some tests issues! http://reviews.llvm.org/D17821 Files: include/clang/AST/ASTContext.h include/clang/AST/BuiltinTypes.def include/clang/AST/OpenCLI

[clang-tools-extra] r264073 - [clang-tidy] Skip reporting of not applicable fixes.

2016-03-22 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Tue Mar 22 12:51:27 2016 New Revision: 264073 URL: http://llvm.org/viewvc/llvm-project?rev=264073&view=rev Log: [clang-tidy] Skip reporting of not applicable fixes. Summary: Invalid source location are causing clang-tidy to crash when manipulating an invalid file. Macro d

Re: [PATCH] D18262: [clang-tidy] Skip reporting of not applicable fixes.

2016-03-22 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 51305. etienneb added a comment. rebase + fixing invalid paths http://reviews.llvm.org/D18262 Files: clang-tidy/ClangTidy.cpp test/clang-tidy/misc-macro-parentheses-cmdline.cpp Index: test/clang-tidy/misc-macro-parentheses-cmdline.cpp

r264071 - StaticAnalyzer: Avoid an unintentional copy

2016-03-22 Thread Justin Bogner via cfe-commits
Author: bogner Date: Tue Mar 22 12:50:05 2016 New Revision: 264071 URL: http://llvm.org/viewvc/llvm-project?rev=264071&view=rev Log: StaticAnalyzer: Avoid an unintentional copy The range here isn't over references, so using `auto &` here incites a copy. Switching to `auto *` would do, but we migh

Re: [PATCH] D17811: [clang-tidy] Add check to detect dangling references in value handlers.

2016-03-22 Thread Samuel Benzaquen via cfe-commits
sbenza added a comment. In http://reviews.llvm.org/D17811#380124, @jbcoe wrote: > Do you have commit access? I can apply this patch for you if not. I do. I am waiting on http://reviews.llvm.org/D18275 to fix the problem with using internal::HasNameMatcher directly. http://reviews.llvm.org/D1

[PATCH] D18360: Add AIX Target/ToolChain to Clang Driver

2016-03-22 Thread Andrew Paprocki via cfe-commits
apaprocki created this revision. apaprocki added a subscriber: cfe-commits. This patch adds Clang driver support for the AIX platform. This allows Clang to be used for compiling code / checking for errors, but does not allow for building executables, as AIX uses XCOFF and not ELF. After applyi

[clang-tools-extra] r264069 - [clang-tidy] Fix redundant-string-init check with msvc 14 headers.

2016-03-22 Thread Etienne Bergeron via cfe-commits
Author: etienneb Date: Tue Mar 22 12:39:36 2016 New Revision: 264069 URL: http://llvm.org/viewvc/llvm-project?rev=264069&view=rev Log: [clang-tidy] Fix redundant-string-init check with msvc 14 headers. Summary: The string constructors are not defined using optional parameters and are not recogni

Re: [PATCH] D18347: [PATCH] Fix thread_annotation negtest for thread safety.

2016-03-22 Thread Eric Fiselier via cfe-commits
EricWF requested changes to this revision. EricWF added a comment. This revision now requires changes to proceed. I think this diff is messed up a little. Could you upload a fixed diff? http://reviews.llvm.org/D18347 ___ cfe-commits mailing list cf

Re: r263740 - Revert "For MS ABI, emit dllexport friend functions defined inline in class"

2016-03-22 Thread Reid Kleckner via cfe-commits
Ugh, templates and friend function definitions strike again! I think this is where "semantic" vs. "lexical" DeclContexts come into play. Try doing D->getLexicalDeclContext()->isDependentContext(). On Tue, Mar 22, 2016 at 5:23 AM, Stephan Bergmann wrote: > On 03/17/2016 09:06 PM, Reid Kleckner v

Re: [PATCH] D16529: [clang-tidy] Add modernize-raw-string-literal check

2016-03-22 Thread Richard via cfe-commits
LegalizeAdulthood added a comment. Looks like I forgot to remove brace initializers from the test files. I will fix that. Chris Lattner has given me commit access now, so I can commit on my own. http://reviews.llvm.org/D16529 ___ cfe-commits maili

Re: [PATCH] D15332: new clang-tidy checker readability-non-const-parameter

2016-03-22 Thread Richard via cfe-commits
LegalizeAdulthood added inline comments. Comment at: test/clang-tidy/readability-non-const-parameter.cpp:116-134 @@ +115,21 @@ + +// CHECK-MESSAGES: :[[@LINE+1]]:18: warning: parameter 'p' can be const +int return1(int *p) { + // CHECK-FIXES: {{^}}int return1(const int *p) {{{$}}

Re: [PATCH] D18293: [clang-tidy] Fix redundant-string-init check with msvc 14 headers.

2016-03-22 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 51298. etienneb added a comment. Rebased + fixing invalid paths. The diff paths were wrong, invalid diff. http://reviews.llvm.org/D18293 Files: clang-tidy/readability/RedundantStringInitCheck.cpp test/clang-tidy/readability-redundant-string-init-msvc.

Re: [PATCH] D18095: Add __attribute__((linkonce_odr_linkage))

2016-03-22 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. If __attribute__((linkonce_odr_linkage)) is not a proper name for explicitly setting linkage, how about __attribute((linkage=linkonce_odr))? This can be extended to other linkages too. http://reviews.llvm.org/D18095 ___ cfe

Re: [PATCH] D18095: Add __attribute__((linkonce_odr_linkage))

2016-03-22 Thread Yaxun Liu via cfe-commits
yaxunl updated the summary for this revision. yaxunl removed rL LLVM as the repository for this revision. yaxunl updated this revision to Diff 51297. yaxunl added a comment. Simplify description of this attribute in AttrDocs since it causes some confusion. http://reviews.llvm.org/D18095 Files:

r264066 - Make build bots happy

2016-03-22 Thread David Majnemer via cfe-commits
Author: majnemer Date: Tue Mar 22 12:10:07 2016 New Revision: 264066 URL: http://llvm.org/viewvc/llvm-project?rev=264066&view=rev Log: Make build bots happy BasicBlock's lose their names for some builders, don't mention such names. Modified: cfe/trunk/test/CodeGenCXX/pr27030.cpp Modified: c

Re: [PATCH] D17861: [OpenCL] Accept __attribute__((nosvm))

2016-03-22 Thread Yaxun Liu via cfe-commits
yaxunl marked an inline comment as done. Comment at: include/clang/Basic/Attr.td:701 @@ -699,1 +700,3 @@ +def OpenCLNoSVM : Attr { + let Spellings = [GNU<"nosvm">]; aaron.ballman wrote: > yaxunl wrote: > > aaron.ballman wrote: > > > Since the attribute is ignor

r264065 - [MS ABI] Assign an inheritance model for the dest of a member pointer upcast

2016-03-22 Thread David Majnemer via cfe-commits
Author: majnemer Date: Tue Mar 22 11:44:39 2016 New Revision: 264065 URL: http://llvm.org/viewvc/llvm-project?rev=264065&view=rev Log: [MS ABI] Assign an inheritance model for the dest of a member pointer upcast While we correctly assigned an inheritance model for the source of a member pointer u

Re: r264021 - [Perf-training] Fixing an issue with multi-threading PGO generation

2016-03-22 Thread Chris Bieneman via cfe-commits
I totally didn’t know python had a portable way to do that! Updated in r264064. Thanks! -Chris > On Mar 22, 2016, at 9:26 AM, Vedant Kumar wrote: > > I think setting `cc1_env["LLVM_PROFILE_FILE"] = os.devnull` would be simpler. > > vedant > >> On Mar 21, 2016, at 7:55 PM, Chris Bieneman via

r264064 - [Perf-training] Using os.devnull instead of a temp file

2016-03-22 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Tue Mar 22 11:33:23 2016 New Revision: 264064 URL: http://llvm.org/viewvc/llvm-project?rev=264064&view=rev Log: [Perf-training] Using os.devnull instead of a temp file This is based on post-commit feedback from Vedant. Totally didn't know that existed and worked on Window

Re: r257934 - [CMake] Support generation of linker order files using dtrace

2016-03-22 Thread Chris Bieneman via cfe-commits
Sean, All good feedback. Using print_function was done in r257936 with some other feedback from Bogner. The rest of your feedback I believe I have addressed in r264063. -Chris > On Mar 21, 2016, at 9:21 PM, Sean Silva wrote: > > > > On Fri, Jan 15, 2016 at 1:21 PM, Chris Bieneman via cfe-c

r264063 - [Perf-training] Cleanup based on feedback from Sean Silvas

2016-03-22 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Tue Mar 22 11:27:35 2016 New Revision: 264063 URL: http://llvm.org/viewvc/llvm-project?rev=264063&view=rev Log: [Perf-training] Cleanup based on feedback from Sean Silvas Sean provided feedback based on r257934 on cfe-commits. This change addresses that feedback. Modifie

Re: r264021 - [Perf-training] Fixing an issue with multi-threading PGO generation

2016-03-22 Thread Vedant Kumar via cfe-commits
I think setting `cc1_env["LLVM_PROFILE_FILE"] = os.devnull` would be simpler. vedant > On Mar 21, 2016, at 7:55 PM, Chris Bieneman via cfe-commits > wrote: > > Author: cbieneman > Date: Mon Mar 21 21:55:40 2016 > New Revision: 264021 > > URL: http://llvm.org/viewvc/llvm-project?rev=264021&vie

Re: [PATCH] D17981: [clang-tidy] Fix clang-tidy to support parsing of assembly statements.

2016-03-22 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Adding Manuel, who might have better ideas. In http://reviews.llvm.org/D17981#374904, @rnk wrote: > In http://reviews.llvm.org/D17981#374553, @etienneb wrote: > > > This is a huge difference. I didn't expect dependencies to bring so much > > code. > > I'm not a fan of h

Re: [PATCH] D17491: Add performance check to flag function parameters of expensive to copy types that can be safely converted to const references.

2016-03-22 Thread Matt Kulukundis via cfe-commits
fowles added a subscriber: fowles. Comment at: test/clang-tidy/performance-unnecessary-value-param.cpp:8 @@ +7,3 @@ + void nonConstMethod() {} + virtual ~ExpensiveToCopyType() {} +}; you don't actually need to fill in these methods, just declare them ==

Re: [PATCH] D18149: Add check for unneeded copies of locals

2016-03-22 Thread Matt Kulukundis via cfe-commits
fowles updated this revision to Diff 51289. fowles added a comment. rebased to latest. Can someone submit this for me I don't have commit bits. http://reviews.llvm.org/D18149 Files: clang-tidy/performance/UnnecessaryCopyInitialization.cpp clang-tidy/performance/UnnecessaryCopyInitializatio

Re: [PATCH] D18149: Add check for unneeded copies of locals

2016-03-22 Thread Matt Kulukundis via cfe-commits
fowles added inline comments. Comment at: clang-tidy/performance/UnnecessaryCopyInitialization.cpp:21 @@ +20,3 @@ + +void recordFixes(const VarDecl &Var, ASTContext &Context, + DiagnosticBuilder &Diagnostic) { I am inclined to just leave it as is f

Re: [PATCH] D18149: Add check for unneeded copies of locals

2016-03-22 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. LG Comment at: clang-tidy/performance/UnnecessaryCopyInitialization.cpp:21 @@ +20,3 @@ + +void recordFixes(const VarDecl &Var, ASTContext &Context, + DiagnosticBuilder &Diagnostic) { nit: Alt

  1   2   >