[PATCH] D24933: Enable configuration files in clang

2016-11-11 Thread Michał Górny via cfe-commits
mgorny added a comment. @sepavloff, my suggestion would be to rework the patch to the minimal, acceptable feature (i.e. executable-relative config), and then possibly send more patches for the additional features that require additional discussion. This way, we'll at least get something done in

[PATCH] D24921: [cfe] [Headers] Fix inttypes.h macros visibility in C++ with C99-compliant libc

2016-11-11 Thread Michał Górny via cfe-commits
mgorny added reviewers: ddunbar, thakis. mgorny added a comment. Ping. https://reviews.llvm.org/D24921 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25314: [libcxxabi] [cmake] Handle missing LIBUNWIND_* directories gracefully

2016-11-11 Thread Michał Górny via cfe-commits
mgorny added reviewers: phosek, mclow.lists. mgorny added a comment. Ping. https://reviews.llvm.org/D25314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25686: [Driver] Support "hardfloat" vendor triples used by Gentoo

2016-11-11 Thread Michał Górny via cfe-commits
mgorny added a comment. Ping. https://reviews.llvm.org/D25686 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25949: [Driver] Refactor distro detection & classification as a separate API

2016-11-11 Thread Michał Górny via cfe-commits
mgorny added reviewers: rnk, hfinkel. mgorny added a comment. Ping. https://reviews.llvm.org/D25949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26115: [test] Correctly include build llvm_shlib_dir in stand-alone builds

2016-11-11 Thread Michał Górny via cfe-commits
mgorny added a comment. Ping. https://reviews.llvm.org/D26115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D24235: [OpenCL] Improve double literal handling

2016-11-11 Thread Neil Hickey via cfe-commits
neil.hickey updated this revision to Diff 77600. neil.hickey added a comment. Improving now confusing comment. https://reviews.llvm.org/D24235 Files: lib/Sema/SemaExpr.cpp lib/Sema/SemaType.cpp test/CodeGenOpenCL/fpmath.cl test/SemaOpenCL/extensions.cl Index: test/SemaOpenCL/extensions

Re: [PATCH] D25816: Use descriptive message if list initializer is incorrectly parenthesized.

2016-11-11 Thread Alex L via cfe-commits
I think you can go ahead and commit it, yes. Alex On 11 November 2016 at 05:28, Serge Pavlov wrote: > Is it OK to commit this patch? > > Thanks, > --Serge > > 2016-10-21 18:21 GMT+07:00 Alex Lorenz : > >> arphaman added a subscriber: rsmith. >> arphaman added a comment. >> >> LGTM, I added Rich

r286584 - Fix for PR28523: unexpected compilation error.

2016-11-11 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Nov 11 06:36:20 2016 New Revision: 286584 URL: http://llvm.org/viewvc/llvm-project?rev=286584&view=rev Log: Fix for PR28523: unexpected compilation error. Clang emits error message for the following code: ``` template void parallel_loop(F &&f) { f(0); } int main() {

[PATCH] D26544: [PPC] support for arithmetic builtins in the FE

2016-11-11 Thread Ehsan Amiri via cfe-commits
amehsan created this revision. amehsan added reviewers: kbarton, nemanjai, sfertile, jtony, hfinkel, syzaara, lei. amehsan added subscribers: cfe-commits, echristo. This includes various overloads of the following builtins: - vec_neg - vec_nabs - vec_adde - vec_addec - vec_sube - vec_subec - vec

[PATCH] D26415: [XRay] Support AArch64 in Clang

2016-11-11 Thread Serge Rogatch via cfe-commits
rSerge marked an inline comment as done. rSerge added inline comments. Comment at: lib/Driver/Tools.cpp:4903-4906 +if (Triple.getOS() != llvm::Triple::Linux) + D.Diag(diag::err_drv_clang_unsupported) + << (std::string(XRayInstrumentOption) + " on non-Linux targe

Re: [clang-tools-extra] r286222 - [clang-tidy] clang-analyzer-alpha* checks are not registered, so there's no need to disable them

2016-11-11 Thread Piotr Padlewski via cfe-commits
Hmm, right now there is no way to use alpha checks in clang tidy? Piotr On Nov 10, 2016 10:57, "Malcolm Parsons via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > On 9 November 2016 at 18:50, Devin Coughlin wrote: > > > We agree that this is a valuable checker and are committed to getting i

[PATCH] D24235: [OpenCL] Improve double literal handling

2016-11-11 Thread Sven van Haastregt via cfe-commits
svenvh accepted this revision. svenvh added a comment. LGTM! https://reviews.llvm.org/D24235 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r286595 - [X86] Merge (near) duplicate scalar non-temporal store code. NFCI.

2016-11-11 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Fri Nov 11 08:38:34 2016 New Revision: 286595 URL: http://llvm.org/viewvc/llvm-project?rev=286595&view=rev Log: [X86] Merge (near) duplicate scalar non-temporal store code. NFCI. Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp

[PATCH] D26546: [PPC] Add vec_insert4b/vec_extract4b to altivec.h

2016-11-11 Thread Sean Fertile via cfe-commits
sfertile created this revision. sfertile added reviewers: amehsan, kbarton, nemanjai, jtony, syzaara, lei. sfertile added subscribers: cfe-commits, echristo. sfertile set the repository for this revision to rL LLVM. Add macros that implement the vec_extract4b and vec_insert4b functionality. vecto

[PATCH] D26196: Add support for non-zero null pointer for C and OpenCL

2016-11-11 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. Hi John, It seems the casting from a pointer to different address space is not affected by this change. When a null pointer is casted to different address space, it is casted the same way as an ordinary pointer, e.g. by addrspacecast. I think this patch covers most of t

[PATCH] D26540: [Sema] Accept and ignore the leaf attribute

2016-11-11 Thread Aaron Ballman via cfe-commits
aaron.ballman added a reviewer: aaron.ballman. aaron.ballman added a comment. There are a *lot* of attributes GCC supports that Clang does not, and we generally do not silence diagnostics with them as that usually does the user a disservice because they are unaware that the attribute has no effe

[PATCH] D26511: [clang-tidy] Rename modernize-use-default to modernize-use-equals-default

2016-11-11 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D26511#592670, @malcolm.parsons wrote: > In https://reviews.llvm.org/D26511#592665, @Prazek wrote: > > > It is introduced because of "modernize-use-delete" was too ambiguous > > because of operator delete, so it was changed to > > "mode

[PATCH] D26511: [clang-tidy] Rename modernize-use-default to modernize-use-equals-default

2016-11-11 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 77615. malcolm.parsons added a comment. Fix sorting. Mention in release notes. https://reviews.llvm.org/D26511 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseDefaultCheck.cpp c

[PATCH] D26540: [Sema] Accept and ignore the leaf attribute

2016-11-11 Thread Nico Weber via cfe-commits
thakis added a comment. (Maybe implementing real support isn't so difficult? From a quick glance, it sounds like this is a sema-only attribute?) Repository: rL LLVM https://reviews.llvm.org/D26540 ___ cfe-commits mailing list cfe-commits@lists.l

[PATCH] D26509: [OpenCL] Fix integer parameters of enqueue_kernel

2016-11-11 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. My main concern is that by making the number of event be of type size_t instead of uint we are not conforming to the spec, although I agree it is better for the user. Comment at: lib/CodeGen/CGBuiltin.cpp:2547 + llvm::Value *NumEvents = +

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

2016-11-11 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 added a comment. I'd rather not to go the way of `TEST_TRY` and `TEST_CASE` macros. As suggested by @rmaprath, I've been playing with grouping the tests in three categories: no exceptions (at all), should not throw, must throw. No changes are required for the first group. The third gro

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

2016-11-11 Thread Zaara Syeda via cfe-commits
syzaara updated this revision to Diff 77618. syzaara added a comment. Guard for 64-bit mode. https://reviews.llvm.org/D26304 Files: include/clang/Basic/BuiltinsPPC.def lib/CodeGen/CGBuiltin.cpp lib/Headers/altivec.h test/CodeGen/builtins-ppc-p9vector.c Index: test/CodeGen/builtins-ppc-

[PATCH] D26479: [PowerPC] Implement remaining permute builtins in altivec.h - Clang portion

2016-11-11 Thread Sean Fertile via cfe-commits
sfertile added a comment. Comment at: include/clang/Basic/BuiltinsPPC.def:385-388 +BUILTIN(__builtin_altivec_vrlwmi, "V4UiV4UiV4UiV4Ui", "") +BUILTIN(__builtin_altivec_vrldmi, "V2ULLiV2ULLiV2ULLiV2ULLi", "") +BUILTIN(__builtin_altivec_vrlwnm, "V4UiV4UiV4Ui", "") +BUILTIN(__bui

[PATCH] D26507: [OpenCL] Change to clk_event parameter in enqueue_kernel

2016-11-11 Thread Yaxun Liu via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. This revision is now accepted and ready to land. LGTM. Thanks! https://reviews.llvm.org/D26507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[PATCH] D26522: Improve handling of __FUNCTION__ and other predefined expression for Objective-C Blocks

2016-11-11 Thread Alex Lorenz via cfe-commits
arphaman added inline comments. Comment at: clang/test/CodeGen/block-with-perdefinedexpr.cpp:66 +}; + } +}; I think you should maybe add/change one of the tests to be a block inside of a lambda. https://reviews.llvm.org/D26522 _

[PATCH] D26522: Improve handling of __FUNCTION__ and other predefined expression for Objective-C Blocks

2016-11-11 Thread Alex Lorenz via cfe-commits
arphaman added inline comments. Comment at: clang/lib/AST/Expr.cpp:531 +llvm::raw_svector_ostream Out(Buffer); +if (auto *DCFunc = dyn_cast(DC)) { + Out << ComputeName(IT, DCFunc); I think it's possible to avoid the braces by simplifying down to some

r286599 - Fix mismatched enum value name and diagnostic text.

2016-11-11 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Fri Nov 11 10:51:40 2016 New Revision: 286599 URL: http://llvm.org/viewvc/llvm-project?rev=286599&view=rev Log: Fix mismatched enum value name and diagnostic text. ExpectedFunctionGlobalVarMethodOrProperty would previously say "functions and global variables" instead of "funct

[PATCH] D26459: Fix mismatched enum value name and diagnostic text.

2016-11-11 Thread Douglas Katzman via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286599: Fix mismatched enum value name and diagnostic text. (authored by dougk). Changed prior to commit: https://reviews.llvm.org/D26459?vs=77367&id=77624#toc Repository: rL LLVM https://reviews.ll

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-11-11 Thread Felix Berger via cfe-commits
flx added a comment. In https://reviews.llvm.org/D26453#590720, @malcolm.parsons wrote: > Add ValuesOnly option to modernize-pass-by-value. Thanks for doing this. Alex, would this work for us? https://reviews.llvm.org/D26453 ___ cfe-commits maili

Re: r285625 - DebugInfo: support for DW_TAG_atomic_type

2016-11-11 Thread Adrian Prantl via cfe-commits
Ping. > On Nov 2, 2016, at 9:18 AM, Adrian Prantl wrote: > > Ping? > >> On Oct 31, 2016, at 12:41 PM, Adrian Prantl via cfe-commits >> mailto:cfe-commits@lists.llvm.org>> wrote: >> >>> >>> On Oct 31, 2016, at 12:09 PM, Victor Leschuk via cfe-commits >>> mailto:cfe-commits@lists.llvm.org>> w

[PATCH] D24998: Add a new optimization option -Og

2016-11-11 Thread Renato Golin via cfe-commits
rengolin accepted this revision. rengolin added a comment. This revision is now accepted and ready to land. I agree with Keith. This is a starting point, not a final destination. As we evolve this, we can start looking at better ways to improve the debug illusion, but right now, `O1` is probably

r286602 - Add a new optimization option -Og

2016-11-11 Thread Sylvestre Ledru via cfe-commits
Author: sylvestre Date: Fri Nov 11 11:29:56 2016 New Revision: 286602 URL: http://llvm.org/viewvc/llvm-project?rev=286602&view=rev Log: Add a new optimization option -Og Summary: Just like gcc, we should have the -Og option as more and more software are using it: https://llvm.org/bugs/show_bug.

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-11 Thread Aleksey Shlyapnikov via cfe-commits
alekseyshl updated this revision to Diff 77631. alekseyshl added a comment. - Translate new driver flags to legacy -llvm ones. https://reviews.llvm.org/D26461 Files: include/clang/Driver/Options.td include/clang/Driver/SanitizerArgs.h include/clang/Frontend/CodeGenOptions.def lib/Driver

[PATCH] D26476: [AMDGPU] Add support for f16 builtin functions for VI+

2016-11-11 Thread Matt Arsenault via cfe-commits
arsenm added inline comments. Comment at: test/CodeGenOpenCL/builtins-amdgcn-error-f16-class.cl:1-9 +// REQUIRES: amdgpu-registered-target +// RUN: %clang_cc1 -triple amdgcn-unknown-amdhsa -target-cpu tahiti -verify -S -o - %s + +#pragma OPENCL EXTENSION cl_khr_fp16 : enable + +

[PATCH] D26476: [AMDGPU] Add support for f16 builtin functions for VI+

2016-11-11 Thread Konstantin Zhuravlyov via cfe-commits
kzhuravl added inline comments. Comment at: test/CodeGenOpenCL/builtins-amdgcn-error-f16-class.cl:1-9 +// REQUIRES: amdgpu-registered-target +// RUN: %clang_cc1 -triple amdgcn-unknown-amdhsa -target-cpu tahiti -verify -S -o - %s + +#pragma OPENCL EXTENSION cl_khr_fp16 : enable +

[PATCH] D26476: [AMDGPU] Add support for f16 builtin functions for VI+

2016-11-11 Thread Matt Arsenault via cfe-commits
arsenm added inline comments. Comment at: test/CodeGenOpenCL/builtins-amdgcn-error-f16-class.cl:1-9 +// REQUIRES: amdgpu-registered-target +// RUN: %clang_cc1 -triple amdgcn-unknown-amdhsa -target-cpu tahiti -verify -S -o - %s + +#pragma OPENCL EXTENSION cl_khr_fp16 : enable + +

[PATCH] D26442: [analyzer] Fix crash on getSVal: handle case of CompoundVal

2016-11-11 Thread Artem Dergachev via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. I think this patch is good to land, but if you have time i'd suggest to investigate this a little bit deeper in order to squash even more bugs. My concern is that we've never implemented reading fro

[PATCH] D26476: [AMDGPU] Add support for f16 builtin functions for VI+

2016-11-11 Thread Yaxun Liu via cfe-commits
yaxunl added inline comments. Comment at: test/CodeGenOpenCL/builtins-amdgcn-error-f16-div-fixup.cl:8 +{ + *out = __builtin_amdgcn_div_fixuph(a, b, c); // expected-error {{'__builtin_amdgcn_div_fixuph' needs target feature 16-bit-insts}} +} The tests for checki

[PATCH] D26476: [AMDGPU] Add support for f16 builtin functions for VI+

2016-11-11 Thread Konstantin Zhuravlyov via cfe-commits
kzhuravl updated this revision to Diff 77633. kzhuravl marked 4 inline comments as done. kzhuravl added a comment. Address review feedback: put tests in the same file, update run line, move error tests to SemaOpenCL directory https://reviews.llvm.org/D26476 Files: include/clang/Basic/Builtin

[PATCH] D26476: [AMDGPU] Add support for f16 builtin functions for VI+

2016-11-11 Thread Konstantin Zhuravlyov via cfe-commits
kzhuravl updated this revision to Diff 77634. kzhuravl added a comment. Also update run line to exclude `amdhsa` from another error file. https://reviews.llvm.org/D26476 Files: include/clang/Basic/BuiltinsAMDGPU.def lib/CodeGen/CGBuiltin.cpp test/CodeGenOpenCL/builtins-amdgcn-error.cl t

[PATCH] D26509: [OpenCL] Fix integer parameters of enqueue_kernel

2016-11-11 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:2547 + llvm::Value *NumEvents = + Builder.CreateZExtOrTrunc(EmitScalarExpr(E->getArg(3)), Int32Ty); llvm::Value *EventList = yaxunl wrote: > should Int32Ty be SizeTy? I am

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-11 Thread Peter Collingbourne via cfe-commits
pcc accepted this revision. pcc added a reviewer: pcc. pcc added a comment. Seems like a reasonable enough first step. Please add a FIXME to pass these flags as attributes. https://reviews.llvm.org/D26461 ___ cfe-commits mailing list cfe-commits@li

r286613 - [cfi] Enable cfi-icall on ARM and AArch64.

2016-11-11 Thread Evgeniy Stepanov via cfe-commits
Author: eugenis Date: Fri Nov 11 12:49:49 2016 New Revision: 286613 URL: http://llvm.org/viewvc/llvm-project?rev=286613&view=rev Log: [cfi] Enable cfi-icall on ARM and AArch64. Modified: cfe/trunk/lib/Driver/ToolChain.cpp cfe/trunk/test/Driver/fsanitize.c Modified: cfe/trunk/lib/Driver/T

[PATCH] D26435: Use unique_ptr for cached tokens for default arguments in C++.

2016-11-11 Thread Malcolm Parsons via cfe-commits
malcolm.parsons accepted this revision. malcolm.parsons added a reviewer: malcolm.parsons. malcolm.parsons added a comment. This revision is now accepted and ready to land. Your email went in my spam folder. LGTM. Will commit later. https://reviews.llvm.org/D26435

[libcxxabi] r286614 - [CMake] Check runtimes subdir when looking for libcxx and libuwind

2016-11-11 Thread Petr Hosek via cfe-commits
Author: phosek Date: Fri Nov 11 13:12:58 2016 New Revision: 286614 URL: http://llvm.org/viewvc/llvm-project?rev=286614&view=rev Log: [CMake] Check runtimes subdir when looking for libcxx and libuwind The runtimes subdir is the new location for runtimes, we should include it when looking for libcx

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-11 Thread Evgeniy Stepanov via cfe-commits
eugenis added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:732 Args.hasArg(OPT_fsanitize_coverage_trace_pc_guard); + Opts.SanitizeThreadMemoryAccess = + Args.hasFlag(OPT_fsanitize_thread_memory_access, It looks like lib/Frontend c

r286624 - Bitcode: Change getModuleSummaryIndex() to return an llvm::Expected.

2016-11-11 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Fri Nov 11 13:50:39 2016 New Revision: 286624 URL: http://llvm.org/viewvc/llvm-project?rev=286624&view=rev Log: Bitcode: Change getModuleSummaryIndex() to return an llvm::Expected. Differential Revision: https://reviews.llvm.org/D26539 Modified: cfe/trunk/lib/CodeGen/Backen

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-11 Thread Aleksey Shlyapnikov via cfe-commits
alekseyshl marked an inline comment as done. alekseyshl added a comment. Frontend options removed. https://reviews.llvm.org/D26461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-11 Thread Aleksey Shlyapnikov via cfe-commits
alekseyshl updated this revision to Diff 77647. alekseyshl added a comment. - Remove unnecessary frontend options. https://reviews.llvm.org/D26461 Files: include/clang/Driver/Options.td include/clang/Driver/SanitizerArgs.h lib/Driver/SanitizerArgs.cpp test/Driver/fsanitize.c Index: tes

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-11 Thread Evgeniy Stepanov via cfe-commits
eugenis accepted this revision. eugenis added a comment. LGTM https://reviews.llvm.org/D26461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r286627 - [PowerPC] Add vector conversion builtins to altivec.h - clang portion

2016-11-11 Thread Nemanja Ivanovic via cfe-commits
Author: nemanjai Date: Fri Nov 11 13:56:17 2016 New Revision: 286627 URL: http://llvm.org/viewvc/llvm-project?rev=286627&view=rev Log: [PowerPC] Add vector conversion builtins to altivec.h - clang portion This patch corresponds to review: https://reviews.llvm.org/D26308 It adds a number of vecto

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-11 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: include/clang/Driver/Options.td:732 +def fsanitize_thread_memory_access : Flag<["-"], "fsanitize-thread-memory-access">, + Group, Flags<[CC1Option]>, + HelpText<"Enable

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-11 Thread Aleksey Shlyapnikov via cfe-commits
alekseyshl updated this revision to Diff 77649. alekseyshl added a comment. - Add FIXME to address the rest of the suggestions later. https://reviews.llvm.org/D26461 Files: include/clang/Driver/Options.td include/clang/Driver/SanitizerArgs.h lib/Driver/SanitizerArgs.cpp test/Driver/fsan

[PATCH] D26509: [OpenCL] Fix integer parameters of enqueue_kernel

2016-11-11 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. I thought the number of events was also changed to size_t type. Now I understand. Probably I was misled by the summary: "Parameters representing number of events as well as sizes of enqueued block arguments in enqueue_kernel function are specified as uint type. This prev

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

2016-11-11 Thread Nemanja Ivanovic via cfe-commits
nemanjai closed this revision. nemanjai added a comment. Committed revision 286627. Repository: rL LLVM https://reviews.llvm.org/D26308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

r286628 - [ASTMatchers] Fix a typo in cStyleCastExpr() docs. NFC.

2016-11-11 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Fri Nov 11 14:29:59 2016 New Revision: 286628 URL: http://llvm.org/viewvc/llvm-project?rev=286628&view=rev Log: [ASTMatchers] Fix a typo in cStyleCastExpr() docs. NFC. Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Modified: cfe/trunk/include/clang/ASTMat

[PATCH] D26476: [AMDGPU] Add support for f16 builtin functions for VI+

2016-11-11 Thread Konstantin Zhuravlyov via cfe-commits
kzhuravl updated this revision to Diff 77654. kzhuravl added a comment. Leave the return type of `frexp_exph` unchanged https://reviews.llvm.org/D26476 Files: include/clang/Basic/BuiltinsAMDGPU.def lib/CodeGen/CGBuiltin.cpp test/CodeGenOpenCL/builtins-amdgcn-error.cl test/CodeGenOpenCL/

[PATCH] D26454: Implement no_sanitize_address for global vars

2016-11-11 Thread Douglas Katzman via cfe-commits
dougk updated this revision to Diff 77658. dougk marked 2 inline comments as done. dougk added a comment. changes per Aaron Ballman https://reviews.llvm.org/D26454 Files: lib/CodeGen/SanitizerMetadata.cpp lib/Sema/SemaDeclAttr.cpp test/CodeGen/asan-globals.cpp test/SemaCXX/attr-no-sanit

r286630 - When a DecompositionDecl is marked invalid, also set the child BindingDecl's to

2016-11-11 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Nov 11 14:51:04 2016 New Revision: 286630 URL: http://llvm.org/viewvc/llvm-project?rev=286630&view=rev Log: When a DecompositionDecl is marked invalid, also set the child BindingDecl's to invalid. Modified: cfe/trunk/lib/AST/DeclBase.cpp cfe/trunk/test/SemaCXX/cxx

Re: r286630 - When a DecompositionDecl is marked invalid, also set the child BindingDecl's to

2016-11-11 Thread Richard Smith via cfe-commits
Thanks. We have some code in SemaDecl(CXX?) that was trying to do the same thing; can it be removed now? On 11 Nov 2016 1:00 pm, "Richard Trieu via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > Author: rtrieu > Date: Fri Nov 11 14:51:04 2016 > New Revision: 286630 > > URL: http://llvm.org/v

Re: r286630 - When a DecompositionDecl is marked invalid, also set the child BindingDecl's to

2016-11-11 Thread Richard Trieu via cfe-commits
I didn't see anything when making this patch, but I will go take a closer look now. On Fri, Nov 11, 2016 at 1:19 PM, Richard Smith wrote: > Thanks. We have some code in SemaDecl(CXX?) that was trying to do the same > thing; can it be removed now? > > On 11 Nov 2016 1:00 pm, "Richard Trieu via cf

[PATCH] D26519: [PowerPC] Implement BE VSX load/store builtins - clang portion.

2016-11-11 Thread Kit Barton via cfe-commits
kbarton accepted this revision. kbarton added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D26519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

r286633 - [analyzer] Teach RetainCountChecker about VTCompressionSessionEncodeFrame()

2016-11-11 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Fri Nov 11 15:31:38 2016 New Revision: 286633 URL: http://llvm.org/viewvc/llvm-project?rev=286633&view=rev Log: [analyzer] Teach RetainCountChecker about VTCompressionSessionEncodeFrame() The context argument passed to VideoToolbox's VTCompressionSessionEncodeFrame() funct

[PATCH] D26520: [PowerPC] Implement BE VSX load/store builtins - llvm portion.

2016-11-11 Thread Kit Barton via cfe-commits
kbarton accepted this revision. kbarton added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D26520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[PATCH] D26476: [AMDGPU] Add support for f16 builtin functions for VI+

2016-11-11 Thread Matt Arsenault via cfe-commits
arsenm accepted this revision. arsenm added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D26476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[libclc] r286634 - Fix build since llvm r286566 and require at least llvm 4.0

2016-11-11 Thread Tom Stellard via cfe-commits
Author: tstellar Date: Fri Nov 11 15:34:47 2016 New Revision: 286634 URL: http://llvm.org/viewvc/llvm-project?rev=286634&view=rev Log: Fix build since llvm r286566 and require at least llvm 4.0 Modified: libclc/trunk/configure.py libclc/trunk/utils/prepare-builtins.cpp Modified: libclc/t

[PATCH] D26534: [PPC] add altivec.h functions for converting a vector of half precision to a vector of single precision

2016-11-11 Thread Kit Barton via cfe-commits
kbarton accepted this revision. kbarton added a comment. This revision is now accepted and ready to land. LGTM Repository: rL LLVM https://reviews.llvm.org/D26534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

Re: r286630 - When a DecompositionDecl is marked invalid, also set the child BindingDecl's to

2016-11-11 Thread Richard Smith via cfe-commits
Sema::FinalizeDeclaration contains the code I was thinking about. On Fri, Nov 11, 2016 at 1:33 PM, Richard Trieu wrote: > I didn't see anything when making this patch, but I will go take a closer > look now. > > > On Fri, Nov 11, 2016 at 1:19 PM, Richard Smith > wrote: > >> Thanks. We have som

[PATCH] D26479: [PowerPC] Implement remaining permute builtins in altivec.h - Clang portion

2016-11-11 Thread Nemanja Ivanovic via cfe-commits
nemanjai added inline comments. Comment at: include/clang/Basic/BuiltinsPPC.def:385-388 +BUILTIN(__builtin_altivec_vrlwmi, "V4UiV4UiV4UiV4Ui", "") +BUILTIN(__builtin_altivec_vrldmi, "V2ULLiV2ULLiV2ULLiV2ULLi", "") +BUILTIN(__builtin_altivec_vrlwnm, "V4UiV4UiV4Ui", "") +BUILTIN(__

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-11 Thread Aleksey Shlyapnikov via cfe-commits
alekseyshl updated this revision to Diff 77667. alekseyshl added a comment. - Remove unnecessary flag qualifications. https://reviews.llvm.org/D26461 Files: include/clang/Driver/Options.td include/clang/Driver/SanitizerArgs.h lib/Driver/SanitizerArgs.cpp test/Driver/fsanitize.c Index:

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-11 Thread Aleksey Shlyapnikov via cfe-commits
alekseyshl marked an inline comment as done. alekseyshl added a comment. . https://reviews.llvm.org/D26461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r286641 - Remove double setting of invalid flag.

2016-11-11 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Nov 11 15:50:39 2016 New Revision: 286641 URL: http://llvm.org/viewvc/llvm-project?rev=286641&view=rev Log: Remove double setting of invalid flag. In r286630, Decl::setInvalidDecl will automatically set the invalid flag for BindingDecl for children in invalid Decompositio

Re: r286630 - When a DecompositionDecl is marked invalid, also set the child BindingDecl's to

2016-11-11 Thread Richard Trieu via cfe-commits
That's the only one I found. Fixed in r286641. On Fri, Nov 11, 2016 at 1:46 PM, Richard Smith wrote: > Sema::FinalizeDeclaration contains the code I was thinking about. > > > On Fri, Nov 11, 2016 at 1:33 PM, Richard Trieu wrote: > >> I didn't see anything when making this patch, but I will go

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-11 Thread Aleksey Shlyapnikov via cfe-commits
alekseyshl added a comment. PTAL https://reviews.llvm.org/D26461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26410: [CodeGen] Don't emit the same global block multiple times.

2016-11-11 Thread George Burgess IV via cfe-commits
george.burgess.iv updated this revision to Diff 77669. george.burgess.iv marked an inline comment as done. george.burgess.iv added a comment. Thanks for the review! I'll submit this with https://reviews.llvm.org/D14274. :) https://reviews.llvm.org/D26410 Files: lib/CodeGen/CGBlocks.cpp lib

[PATCH] D26564: Use PIC relocation mode by default for PowerPC64 ELF

2016-11-11 Thread Joerg Sonnenberger via cfe-commits
joerg created this revision. joerg added a reviewer: hfinkel. joerg added a subscriber: cfe-commits. Herald added a subscriber: nemanjai. Most of the PowerPC64 code generation already creates PIC access. This changes to a full PIC default, similar to what GCC is doing. Overall, a monolithic clan

Re: r286628 - [ASTMatchers] Fix a typo in cStyleCastExpr() docs. NFC.

2016-11-11 Thread Malcolm Parsons via cfe-commits
On 11 November 2016 at 20:29, Artem Dergachev via cfe-commits wrote: > URL: http://llvm.org/viewvc/llvm-project?rev=286628&view=rev > Log: > [ASTMatchers] Fix a typo in cStyleCastExpr() docs. NFC. > > Modified: > cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Please change docs/LibASTMatch

r286650 - [PowerPC] Implement remaining permute builtins in altivec.h - Clang portion

2016-11-11 Thread Nemanja Ivanovic via cfe-commits
Author: nemanjai Date: Fri Nov 11 16:34:44 2016 New Revision: 286650 URL: http://llvm.org/viewvc/llvm-project?rev=286650&view=rev Log: [PowerPC] Implement remaining permute builtins in altivec.h - Clang portion This patch corresponds to review: https://reviews.llvm.org/D26479 It adds the remaini

[PATCH] D26479: [PowerPC] Implement remaining permute builtins in altivec.h - Clang portion

2016-11-11 Thread Nemanja Ivanovic via cfe-commits
nemanjai closed this revision. nemanjai added a comment. Committed revision 286650. Repository: rL LLVM https://reviews.llvm.org/D26479 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

r286651 - [ASTMatchers] Fix a typo in cStyleCastExpr() HTML docs as well. NFC.

2016-11-11 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Fri Nov 11 16:34:53 2016 New Revision: 286651 URL: http://llvm.org/viewvc/llvm-project?rev=286651&view=rev Log: [ASTMatchers] Fix a typo in cStyleCastExpr() HTML docs as well. NFC. Modified: cfe/trunk/docs/LibASTMatchersReference.html Modified: cfe/trunk/docs/LibASTMa

[PATCH] D26564: Use PIC relocation mode by default for PowerPC64 ELF

2016-11-11 Thread Hal Finkel via cfe-commits
hfinkel added a comment. @wschmidt and other IBM folks, w.r.t. this and https://reviews.llvm.org/D26566, can you please comment on what GCC does here? Does GCC use -fPIC by default for PPC64 (literally or in effect)? https://reviews.llvm.org/D26564 __

[PATCH] D26415: [XRay] Support AArch64 in Clang

2016-11-11 Thread Serge Rogatch via cfe-commits
rSerge updated this revision to Diff 77675. https://reviews.llvm.org/D26415 Files: lib/Driver/Tools.cpp test/Driver/XRay/xray-instrument-cpu.c test/Driver/XRay/xray-instrument-os.c Index: test/Driver/XRay/xray-instrument-os.c ===

Re: r286628 - [ASTMatchers] Fix a typo in cStyleCastExpr() docs. NFC.

2016-11-11 Thread Artem Dergachev via cfe-commits
Ouch, thanks! r286651. On 11/11/16 2:31 PM, Malcolm Parsons wrote: On 11 November 2016 at 20:29, Artem Dergachev via cfe-commits wrote: URL: http://llvm.org/viewvc/llvm-project?rev=286628&view=rev Log: [ASTMatchers] Fix a typo in cStyleCastExpr() docs. NFC. Modified: cfe/trunk/include/c

[PATCH] D26415: [XRay] Support AArch64 in Clang

2016-11-11 Thread Serge Rogatch via cfe-commits
rSerge added inline comments. Comment at: lib/Driver/Tools.cpp:4903-4906 +if (Triple.getOS() != llvm::Triple::Linux) + D.Diag(diag::err_drv_clang_unsupported) + << (std::string(XRayInstrumentOption) + " on non-Linux target OS."); +switch (Triple.getArch()) {

[PATCH] D26559: Insert a type check before reading vtable.

2016-11-11 Thread Peter Collingbourne via cfe-commits
pcc added a comment. Test case? Comment at: lib/CodeGen/CGExprCXX.cpp:93 + + EmitTypeCheck(CodeGenFunction::TCK_MemberCall, +CallLoc, This, C.getRecordType(DD->getParent())); Is it correct to emit a type check at this point? Looking at [0] it l

r286660 - [cxx_status] Prepare features list for WG21 motions.

2016-11-11 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Nov 11 16:48:43 2016 New Revision: 286660 URL: http://llvm.org/viewvc/llvm-project?rev=286660&view=rev Log: [cxx_status] Prepare features list for WG21 motions. Modified: cfe/trunk/www/cxx_status.html Modified: cfe/trunk/www/cxx_status.html URL: http://llvm.org/view

[PATCH] D26559: Insert a type check before reading vtable.

2016-11-11 Thread Ivan Krasin via cfe-commits
krasin added a comment. All UBSan test cases happen to live in compiler-rt. I have added a couple of test cases in https://reviews.llvm.org/D26560. Also, I am not against adding Clang counterparts for them which would test IL instead of the output from running. But it probably deserves a separa

[PATCH] D26559: Insert a type check before reading vtable.

2016-11-11 Thread Ivan Krasin via cfe-commits
krasin added a comment. Small correction: all UBSan type checks tests live in compiler-rt. There is a test for UBsan + devirtualization inside tools/clang. My point still stands. https://reviews.llvm.org/D26559 ___ cfe-commits mailing list cfe-comm

[PATCH] D26559: Insert a type check before reading vtable.

2016-11-11 Thread Peter Collingbourne via cfe-commits
pcc added a comment. We normally update the IR tests whenever we change IRgen. If we're missing test coverage, we should add it before landing this. https://reviews.llvm.org/D26559 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://list

[PATCH] D26559: Insert a type check before reading vtable.

2016-11-11 Thread Ivan Krasin via cfe-commits
krasin added a comment. Sounds reasonable. Will do on Monday. https://reviews.llvm.org/D26559 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26522: Improve handling of __FUNCTION__ and other predefined expression for Objective-C Blocks

2016-11-11 Thread Mehdi AMINI via cfe-commits
mehdi_amini updated this revision to Diff 77680. mehdi_amini marked 3 inline comments as done. mehdi_amini added a comment. Address Alex's comment. https://reviews.llvm.org/D26522 Files: clang/lib/AST/Expr.cpp clang/lib/CodeGen/CGExpr.cpp clang/test/CodeGen/block-with-perdefinedexpr.cpp

[PATCH] D26522: Improve handling of __FUNCTION__ and other predefined expression for Objective-C Blocks

2016-11-11 Thread Mehdi AMINI via cfe-commits
mehdi_amini updated this revision to Diff 77681. mehdi_amini added a comment. Fix warning for unused variable https://reviews.llvm.org/D26522 Files: clang/lib/AST/Expr.cpp clang/lib/CodeGen/CGExpr.cpp clang/test/CodeGen/block-with-perdefinedexpr.cpp clang/test/CodeGenCXX/predefined-expr

[PATCH] D26522: Improve handling of __FUNCTION__ and other predefined expression for Objective-C Blocks

2016-11-11 Thread Mehdi AMINI via cfe-commits
mehdi_amini updated this revision to Diff 77682. mehdi_amini added a comment. Add a test inside a lambda https://reviews.llvm.org/D26522 Files: clang/lib/AST/Expr.cpp clang/lib/CodeGen/CGExpr.cpp clang/test/CodeGen/block-with-perdefinedexpr.cpp clang/test/CodeGenCXX/predefined-expr-cxx1

r286669 - Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-11 Thread Evgeniy Stepanov via cfe-commits
Author: eugenis Date: Fri Nov 11 17:17:36 2016 New Revision: 286669 URL: http://llvm.org/viewvc/llvm-project?rev=286669&view=rev Log: Tread TSan LLVM flags to driver: add TSan controlling flags to clang. Summary: New clang flags, all default to true: -f[no-]sanitize-thread-data-races -f[no-]sanit

[PATCH] D26461: Tread TSan LLVM flags to driver: add TSan controlling flags to clang.

2016-11-11 Thread Evgeniy Stepanov via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286669: Tread TSan LLVM flags to driver: add TSan controlling flags to clang. (authored by eugenis). Changed prior to commit: https://reviews.llvm.org/D26461?vs=77667&id=77683#toc Repository: rL LLVM

r286672 - [tsan][clang] Introduce a function attribute to disable TSan checking at run time

2016-11-11 Thread Anna Zaks via cfe-commits
Author: zaks Date: Fri Nov 11 17:22:44 2016 New Revision: 286672 URL: http://llvm.org/viewvc/llvm-project?rev=286672&view=rev Log: [tsan][clang] Introduce a function attribute to disable TSan checking at run time This introduces a function annotation that disables TSan checking for the function

[PATCH] D25857: [tsan][clang] Introduce a function attribute to disable TSan checking at run time

2016-11-11 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286672: [tsan][clang] Introduce a function attribute to disable TSan checking at run… (authored by zaks). Changed prior to commit: https://reviews.llvm.org/D25857?vs=77435&id=77686#toc Repository: rL

r286678 - [c++1z] Add constant-folding support for strcmp, strncmp, and memcmp, to

2016-11-11 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Nov 11 17:43:35 2016 New Revision: 286678 URL: http://llvm.org/viewvc/llvm-project?rev=286678&view=rev Log: [c++1z] Add constant-folding support for strcmp, strncmp, and memcmp, to support constexpr char_traits. Added: cfe/trunk/test/SemaCXX/constexpr-string.cpp

[PATCH] D26540: [Sema] Accept and ignore the leaf attribute

2016-11-11 Thread Petr Hosek via cfe-commits
phosek added a comment. That makes sense for diagnostics, but this attribute is only an optimization hint, so compiler should be allowed to ignore it. I can take a look how difficult it'd be to actually implement this attribute, but I don't think it's Sema-only attribute. I don't know if there'

  1   2   >