r285667 - [AVX-512] Remove masked vector insert builtins and replace with native shufflevectors and selects.

2016-10-31 Thread Craig Topper via cfe-commits
Author: ctopper Date: Tue Nov 1 00:47:56 2016 New Revision: 285667 URL: http://llvm.org/viewvc/llvm-project?rev=285667=rev Log: [AVX-512] Remove masked vector insert builtins and replace with native shufflevectors and selects. Unfortunately, the backend currently doesn't fold masks into the

[PATCH] D26166: [Sema] Don't issue analysis-based warnings when a fatal error has occurred

2016-10-31 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 76521. ahatanak added a comment. Thanks, that fixed the failing regression tests. https://reviews.llvm.org/D26166 Files: lib/Sema/SemaTemplateInstantiate.cpp test/SemaCXX/instantiate-template-fatal-error.cpp Index:

[PATCH] D26065: Improve diagnostics if friend function redefines file-level function.

2016-10-31 Thread Serge Pavlov via cfe-commits
sepavloff updated this revision to Diff 76520. sepavloff added a comment. Do not use getFriendObjectKind(), friend kind sometimes is set too late. https://reviews.llvm.org/D26065 Files: lib/Sema/SemaDeclCXX.cpp test/CXX/dcl.dcl/dcl.spec/dcl.fct.spec/p4.cpp Index:

Re: r285647 - [index] Fix repeated visitation of the same InitListExpr for indexing.

2016-10-31 Thread Argyrios Kyrtzidis via cfe-commits
> On Oct 31, 2016, at 4:49 PM, Richard Smith wrote: > > On Mon, Oct 31, 2016 at 3:12 PM, Argyrios Kyrtzidis via cfe-commits > > wrote: > Author: akirtzidis > Date: Mon Oct 31 17:12:12 2016 > New Revision:

r285666 - [index] Avoid using a RecursiveASTVisitor for SyntacticFormIndexer and iterate the DesignatedInitExprs of the InitListExpr directly.

2016-10-31 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Mon Oct 31 23:29:39 2016 New Revision: 285666 URL: http://llvm.org/viewvc/llvm-project?rev=285666=rev Log: [index] Avoid using a RecursiveASTVisitor for SyntacticFormIndexer and iterate the DesignatedInitExprs of the InitListExpr directly. This is more efficient, as per

[PATCH] D26166: [Sema] Don't issue analysis-based warnings when a fatal error has occurred

2016-10-31 Thread Richard Smith via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D26166#584285, @ahatanak wrote: > It seems to me that the root of the problem is that the template > instantiation S2 is left in an incomplete state and VarDecl s2 in the > AST, which is of type S2, is marked invalid. As I mentioned in my >

[PATCH] D26178: [p0012] Implement ABI support for throwing a noexcept function pointer and catching as non-noexcept

2016-10-31 Thread Richard Smith via cfe-commits
rsmith created this revision. rsmith added a reviewer: EricWF. rsmith added a subscriber: cfe-commits. rsmith set the repository for this revision to rL LLVM. This implements the following proposal from cxx-abi-dev: http://sourcerytools.com/pipermail/cxx-abi-dev/2016-October/002988.html ...

r285664 - Implement ABI proposal for throwing noexcept function pointers, per discussion

2016-10-31 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Oct 31 20:34:46 2016 New Revision: 285664 URL: http://llvm.org/viewvc/llvm-project?rev=285664=rev Log: Implement ABI proposal for throwing noexcept function pointers, per discussion on cxx-abi-dev (thread starting 2016-10-11). This is currently hidden behind a cc1-only -m

r285663 - p0012: Teach resolving address of overloaded function with dependent exception

2016-10-31 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Oct 31 20:31:23 2016 New Revision: 285663 URL: http://llvm.org/viewvc/llvm-project?rev=285663=rev Log: p0012: Teach resolving address of overloaded function with dependent exception specification to resolve the exception specification as part of the type check, in C++1z

[PATCH] D26166: [Sema] Don't issue analysis-based warnings when a fatal error has occurred

2016-10-31 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 76513. ahatanak added a comment. I think the non-uncompilable error you mentioned is the one on line 7 of the test case and the uncompilable error is the one on line 15. Is that correct? The modified test case has only one error (on line 7, which is

r285660 - Bitcode: Simplify BitstreamWriter::EnterBlockInfoBlock() interface.

2016-10-31 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Mon Oct 31 20:18:57 2016 New Revision: 285660 URL: http://llvm.org/viewvc/llvm-project?rev=285660=rev Log: Bitcode: Simplify BitstreamWriter::EnterBlockInfoBlock() interface. No block info block should need to define local abbreviations, so we can always use a code width of 2.

Re: r285326 - [Driver][OpenMP] Add support to create jobs for unbundling actions.

2016-10-31 Thread Samuel F Antao via cfe-commits
Hi Galina,   Thanks for letting me know. Can you tell me which compiler (kind and version) is used in the buildbot slave? Looks like that compiler is not doing what it should, so I need to be able to test a workaround.   We have     virtual void ConstructJob(Compilation , const JobAction ,         

[PATCH] D26136: Protect exceptional path under libcpp-no-exceptions

2016-10-31 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. This all looks ok to me - all mechanical changes. I wonder if there's a better way to refactor these - there's all that duplicated code. Does this look any better to you? Replace: try { s.replace(pos1, n1, str, pos2);

Re: r285326 - [Driver][OpenMP] Add support to create jobs for unbundling actions.

2016-10-31 Thread Galina Kistanova via cfe-commits
Hi Samuel, Looks like this revision introduced warning to one of our builders: http://lab.llvm.org:8011/builders/clang-3stage-ubuntu/builds/67/steps/build-stage3-clang/logs/warnings%20%28830%29 Please have a look at this? Thanks Galina On Thu, Oct 27, 2016 at 11:14 AM, Samuel Antao via

[PATCH] D26166: [Sema] Don't issue analysis-based warnings when a fatal error has occurred

2016-10-31 Thread Richard Smith via cfe-commits
rsmith added a comment. It looks like the bug is that if we hit an uncompilable error after hitting a non-uncompilable fatal error (promoted from a warning), we fail to notice that we've hit an uncompileable error. Our AST should be complete if `hasUncompilableErrorOccurred()` is not set, and

[PATCH] D26176: [Clang-tidy] Fix copy-paste error in misc-redundant-expression detected by PVS-Studio

2016-10-31 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko created this revision. Eugene.Zelenko added reviewers: alexfh, aaron.ballman, hokein, etienneb. Eugene.Zelenko added subscribers: cfe-commits, Prazek. Eugene.Zelenko set the repository for this revision to rL LLVM. Unfortunately, misc-redundant-expression didn't detect problem in

[PATCH] D24010: [ReachableCode] Skip over ExprWithCleanups in isConfigurationValue

2016-10-31 Thread Tim Shen via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285657: [ReachableCode] Skip over ExprWithCleanups in isConfigurationValue (authored by timshen). Changed prior to commit: https://reviews.llvm.org/D24010?vs=75644=76508#toc Repository: rL LLVM

r285657 - [ReachableCode] Skip over ExprWithCleanups in isConfigurationValue

2016-10-31 Thread Tim Shen via cfe-commits
Author: timshen Date: Mon Oct 31 19:19:04 2016 New Revision: 285657 URL: http://llvm.org/viewvc/llvm-project?rev=285657=rev Log: [ReachableCode] Skip over ExprWithCleanups in isConfigurationValue Summary: Fixes pr29152. Reviewers: rsmith, pirama, krememek Subscribers: cfe-commits Differential

[PATCH] D26175: [Driver] Fall back to plain '-plugin LLVMgold.so' if no lib at std path

2016-10-31 Thread Michał Górny via cfe-commits
mgorny created this revision. mgorny added reviewers: rafael, beanz, chandlerc. mgorny added a subscriber: cfe-commits. Herald added subscribers: mehdi_amini, srhines, danalbert, tberghammer. Add a fallback to using plain '-plugin LLVMgold.so' when the plugin does not exist at the standard path.

Re: r285647 - [index] Fix repeated visitation of the same InitListExpr for indexing.

2016-10-31 Thread Richard Smith via cfe-commits
On Mon, Oct 31, 2016 at 3:12 PM, Argyrios Kyrtzidis via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: akirtzidis > Date: Mon Oct 31 17:12:12 2016 > New Revision: 285647 > > URL: http://llvm.org/viewvc/llvm-project?rev=285647=rev > Log: > [index] Fix repeated visitation of the same

[PATCH] D26143: [modules] Mark deleted functions as implicitly inline to allow merging

2016-10-31 Thread Eric Fiselier via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285655: [modules] Mark deleted functions as implicitly inline to allow merging (authored by EricWF). Changed prior to commit: https://reviews.llvm.org/D26143?vs=76501=76502#toc

r285655 - [modules] Mark deleted functions as implicitly inline to allow merging

2016-10-31 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Oct 31 18:07:15 2016 New Revision: 285655 URL: http://llvm.org/viewvc/llvm-project?rev=285655=rev Log: [modules] Mark deleted functions as implicitly inline to allow merging Summary: When merging definitions with ModulesLocalVisibility enabled it's important to make

[PATCH] D26143: [modules] Mark deleted functions as implicitly inline to allow merging

2016-10-31 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 76501. https://reviews.llvm.org/D26143 Files: lib/Sema/SemaDeclCXX.cpp test/Modules/Inputs/merge-decl-context/a.h Index: test/Modules/Inputs/merge-decl-context/a.h === ---

[PATCH] D25925: [clang-tidy] Update cert-err58-cpp to match its new generalised form.

2016-10-31 Thread Malcolm Parsons via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285653: [clang-tidy] Update cert-err58-cpp to match its new generalised form. (authored by malcolm.parsons). Changed prior to commit: https://reviews.llvm.org/D25925?vs=76318=76494#toc Repository:

[clang-tools-extra] r285653 - [clang-tidy] Update cert-err58-cpp to match its new generalised form.

2016-10-31 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Mon Oct 31 17:47:04 2016 New Revision: 285653 URL: http://llvm.org/viewvc/llvm-project?rev=285653=rev Log: [clang-tidy] Update cert-err58-cpp to match its new generalised form. Summary: Aaron modified cert-err58-cpp to include all exceptions thrown before main()

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-10-31 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 76493. malcolm.parsons added a comment. Fix comment. Rename variable. Use global. https://reviews.llvm.org/D26138 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp

[PATCH] D24010: [ReachableCode] Skip over ExprWithCleanups in isConfigurationValue

2016-10-31 Thread Stephen Hines via cfe-commits
srhines added a comment. Ping. Other developers (Firefox) are now starting to hit this issue. https://reviews.llvm.org/D24010 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26164: [cfi] Fix missing !type annotation.

2016-10-31 Thread Evgeniy Stepanov via cfe-commits
eugenis closed this revision. eugenis added a comment. thanks! r285650 Repository: rL LLVM https://reviews.llvm.org/D26164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25624: Added 'inline' attribute to basic_string's destructor

2016-10-31 Thread Mehdi AMINI via cfe-commits
mehdi_amini added a comment. In https://reviews.llvm.org/D25624#583883, @sebpop wrote: > In https://reviews.llvm.org/D25624#583163, @mehdi_amini wrote: > > > I'd like to understand why only the destructor? > > > We have committed a patch to inline the constructor of std::string. > Do you think

[PATCH] D25624: Added 'inline' attribute to basic_string's destructor

2016-10-31 Thread Mehdi AMINI via cfe-commits
mehdi_amini added a comment. In https://reviews.llvm.org/D25624#584095, @hiraditya wrote: > In https://reviews.llvm.org/D25624#583167, @mehdi_amini wrote: > > > I talked with Eric on IRC, he mentioned some benchmarks were ran. I'd like > > to understand what was the baseline? > > Here we add

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-10-31 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:29 +cxxMethodDecl( +anyOf(isCopyAssignmentOperator(), isMoveAssignmentOperator())), +cxxDestructorDecl())); aaron.ballman

[PATCH] D25624: Added 'inline' attribute to basic_string's destructor

2016-10-31 Thread Aditya Kumar via cfe-commits
hiraditya added a comment. In https://reviews.llvm.org/D25624#583167, @mehdi_amini wrote: > I talked with Eric on IRC, he mentioned some benchmarks were ran. I'd like to > understand what was the baseline? > Here we add *both* the inline keyword and the always_inline attribute. I'd > like to

r285650 - [cfi] Fix missing !type annotation.

2016-10-31 Thread Evgeniy Stepanov via cfe-commits
Author: eugenis Date: Mon Oct 31 17:28:10 2016 New Revision: 285650 URL: http://llvm.org/viewvc/llvm-project?rev=285650=rev Log: [cfi] Fix missing !type annotation. CFI (only in the cross-dso mode) fails to set !type annotations when a function is used before it is defined. Added:

r285647 - [index] Fix repeated visitation of the same InitListExpr for indexing.

2016-10-31 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Mon Oct 31 17:12:12 2016 New Revision: 285647 URL: http://llvm.org/viewvc/llvm-project?rev=285647=rev Log: [index] Fix repeated visitation of the same InitListExpr for indexing. It was visited multiple times unnecessarily. rdar://28985038 Added:

[clang-tools-extra] r285645 - [Release notes] Highlight reset() as language/library artifact.

2016-10-31 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Mon Oct 31 17:05:45 2016 New Revision: 285645 URL: http://llvm.org/viewvc/llvm-project?rev=285645=rev Log: [Release notes] Highlight reset() as language/library artifact. Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst Modified:

[PATCH] D26032: [ASTMatcher] Add CXXNewExpr support to hasDeclaration

2016-10-31 Thread Malcolm Parsons via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285644: [ASTMatcher] Add CXXNewExpr support to hasDeclaration (authored by malcolm.parsons). Changed prior to commit: https://reviews.llvm.org/D26032?vs=76316=76490#toc Repository: rL LLVM

r285644 - [ASTMatcher] Add CXXNewExpr support to hasDeclaration

2016-10-31 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Mon Oct 31 17:04:07 2016 New Revision: 285644 URL: http://llvm.org/viewvc/llvm-project?rev=285644=rev Log: [ASTMatcher] Add CXXNewExpr support to hasDeclaration Reviewers: sbenza, lukasza, aaron.ballman, klimek Subscribers: lukasza, sbenza, cfe-commits

[PATCH] D26164: [cfi] Fix missing !type annotation.

2016-10-31 Thread Peter Collingbourne via cfe-commits
pcc accepted this revision. pcc added a comment. This revision is now accepted and ready to land. LGTM Repository: rL LLVM https://reviews.llvm.org/D26164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D26164: [cfi] Fix missing !type annotation.

2016-10-31 Thread Evgeniy Stepanov via cfe-commits
eugenis updated this revision to Diff 76489. Repository: rL LLVM https://reviews.llvm.org/D26164 Files: lib/CodeGen/CodeGenModule.cpp test/CodeGen/cfi-icall-cross-dso2.c Index: test/CodeGen/cfi-icall-cross-dso2.c === ---

r285643 - A compound literal within a global lambda or block is still within

2016-10-31 Thread John McCall via cfe-commits
Author: rjmccall Date: Mon Oct 31 16:56:26 2016 New Revision: 285643 URL: http://llvm.org/viewvc/llvm-project?rev=285643=rev Log: A compound literal within a global lambda or block is still within the body of a function for the purposes of computing its storage duration and deciding whether its

[PATCH] D26061: [analyzer] Refactor and simplify SimpleConstraintManager

2016-10-31 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. Thanks for the patch! Would it be possible to split this up into several patches? I think it is important to separate the interface layering changes from the formatting changes, renaming changes, and minor optimization changes. This will make the patches easier to

[PATCH] D25225: Add an option to save the backend-produced YAML optimization record to a file

2016-10-31 Thread Taewook Oh via cfe-commits
twoh added a comment. In https://reviews.llvm.org/D25225#584012, @hfinkel wrote: > In https://reviews.llvm.org/D25225#584010, @twoh wrote: > > > Is there a particular reason why "opt_record_file" is defined in > > CC1Options.td, not Options.td? If -opt-record-file= is provided > > by the

[PATCH] D26166: [Sema] Don't issue analysis-based warnings when a fatal error has occurred

2016-10-31 Thread Akira Hatanaka via cfe-commits
ahatanak created this revision. ahatanak added reviewers: rsmith, majnemer. ahatanak added a subscriber: cfe-commits. This patch makes AnalysisBasedWarnings::IssueWarnings return without issuing warnings based on CFG analysis when a fatal error has occurred. This is needed to avoid a crash that

[PATCH] D26164: [cfi] Fix missing !type annotation.

2016-10-31 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: lib/CodeGen/CodeGenModule.cpp:934 + if (CodeGenOpts.SanitizeCfiCrossDso) +CreateFunctionTypeMetadata(dyn_cast(D), F); } It looks like we can get here with declarations that are not of type `FunctionDecl` (mostly via

[PATCH] D25225: Add an option to save the backend-produced YAML optimization record to a file

2016-10-31 Thread Hal Finkel via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D25225#584010, @twoh wrote: > Is there a particular reason why "opt_record_file" is defined in > CC1Options.td, not Options.td? If -opt-record-file= is provided by > the command line, line 829-831 in CompilerInvocation.cpp won't handle it >

[PATCH] D25225: Add an option to save the backend-produced YAML optimization record to a file

2016-10-31 Thread Taewook Oh via cfe-commits
twoh added a comment. Is there a particular reason why "opt_record_file" is defined in CC1Options.td, not Options.td? If -opt-record-file= is provided by the command line, line 829-831 in CompilerInvocation.cpp won't handle it because opt_record_file is not a CodeGenArg. Repository: rL

Re: [libcxx] r285382 - Add __libcpp_version file and __libcpp_library_version function.

2016-10-31 Thread Richard Smith via cfe-commits
On Mon, Oct 31, 2016 at 2:01 PM, Joerg Sonnenberger via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Mon, Oct 31, 2016 at 01:25:19PM -0700, Richard Smith wrote: > > We could alternatively control the language features based only on the > > selected language mode, and only use version

[PATCH] D25727: [analyzer] Handle case of undefined values in performTrivialCopy

2016-10-31 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285640: [analyzer] Allow undefined values in performTrivialCopy. (authored by dergachev). Changed prior to commit: https://reviews.llvm.org/D25727?vs=74994=76482#toc Repository: rL LLVM

r285640 - [analyzer] Allow undefined values in performTrivialCopy.

2016-10-31 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Mon Oct 31 16:11:20 2016 New Revision: 285640 URL: http://llvm.org/viewvc/llvm-project?rev=285640=rev Log: [analyzer] Allow undefined values in performTrivialCopy. Reading from a garbage pointer should be modeled as garbage, and performTrivialCopy should be able to deal

[PATCH] D26164: [cfi] Fix missing !type annotation.

2016-10-31 Thread Evgeniy Stepanov via cfe-commits
eugenis created this revision. eugenis added a reviewer: pcc. eugenis added a subscriber: cfe-commits. eugenis set the repository for this revision to rL LLVM. CFI (only in the cross-dso mode) fails to set !type annotations when a function is used before it is defined. Repository: rL LLVM

[PATCH] D26163: [clang-format] Fix PR30527: Regression when clang-format insert spaces in [] when in template

2016-10-31 Thread Branko Kokanovic via cfe-commits
branko created this revision. branko added a reviewer: djasper. branko added a subscriber: cfe-commits. Herald added a subscriber: klimek. Actual regression was introduced in r272668. This revision fixes JS script, but also regress Cpp case. It manifests with spaces added when template is

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-10-31 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:29 +cxxMethodDecl( +anyOf(isCopyAssignmentOperator(), isMoveAssignmentOperator())), +cxxDestructorDecl())); How about a

[PATCH] D26159: [analyzer] MacOSXAPIChecker: Improve warning messages for __block vars in dispatch_once().

2016-10-31 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285637: [analyzer] MacOSXAPIChecker: Improve warnings for __block vars in dispatch_once. (authored by dergachev). Changed prior to commit: https://reviews.llvm.org/D26159?vs=76453=76478#toc

r285637 - [analyzer] MacOSXAPIChecker: Improve warnings for __block vars in dispatch_once.

2016-10-31 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Mon Oct 31 16:04:54 2016 New Revision: 285637 URL: http://llvm.org/viewvc/llvm-project?rev=285637=rev Log: [analyzer] MacOSXAPIChecker: Improve warnings for __block vars in dispatch_once. The checker already warns for __block-storage variables being used as a

[libunwind] r285636 - fix _dyld_find_unwind_sections() for pre-10.7. Patch by Jeremy Sequoia

2016-10-31 Thread Nick Kledzik via cfe-commits
Author: kledzik Date: Mon Oct 31 16:04:17 2016 New Revision: 285636 URL: http://llvm.org/viewvc/llvm-project?rev=285636=rev Log: fix _dyld_find_unwind_sections() for pre-10.7. Patch by Jeremy Sequoia Modified: libunwind/trunk/src/AddressSpace.hpp Modified:

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-10-31 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. It'll be good idea to rename //modernize-use-default// in similar fashion, since both checks are closely relate and in both cases keywords are ambiguous. https://reviews.llvm.org/D26138 ___ cfe-commits mailing list

[PATCH] D26032: [ASTMatcher] Add CXXNewExpr support to hasDeclaration

2016-10-31 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. Yep, makes sense. Open issues are all about types :) https://reviews.llvm.org/D26032 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [libcxx] r285382 - Add __libcpp_version file and __libcpp_library_version function.

2016-10-31 Thread Joerg Sonnenberger via cfe-commits
On Mon, Oct 31, 2016 at 01:25:19PM -0700, Richard Smith wrote: > We could alternatively control the language features based only on the > selected language mode, and only use version detection to power a warning > for the (currently fairly common, but becoming less so) case where the > selected

[PATCH] D26032: [ASTMatcher] Add CXXNewExpr support to hasDeclaration

2016-10-31 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. Assuming @klimek agrees with the design, this LGTM. If you don't hear from Manuel by next Wed, I think you're okay to commit (we can always roll it back post-commit if needed).

[PATCH] D26159: [analyzer] MacOSXAPIChecker: Improve warning messages for __block vars in dispatch_once().

2016-10-31 Thread Artem Dergachev via cfe-commits
NoQ added a comment. > FIXME: The analyzer sets stack memory space for __block variables when they > are referenced outside the block (eg. test_block_var_from_outside_block() > line 108). Will try to fix in a separate patch; i'm not relying on the memory > space in this patch. That's actually

r285631 - Add comment explaining this mysterious macro name.

2016-10-31 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Oct 31 15:25:52 2016 New Revision: 285631 URL: http://llvm.org/viewvc/llvm-project?rev=285631=rev Log: Add comment explaining this mysterious macro name. Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp URL:

[PATCH] D26159: [analyzer] MacOSXAPIChecker: Improve warning messages for __block vars in dispatch_once().

2016-10-31 Thread Devin Coughlin via cfe-commits
dcoughlin accepted this revision. dcoughlin added a comment. This revision is now accepted and ready to land. LGTM. We should probably be warning any time the address of a block variable is taken since the address is not stable -- but that's a job for a different checker or possibly even Sema.

Re: [libcxx] r285382 - Add __libcpp_version file and __libcpp_library_version function.

2016-10-31 Thread Richard Smith via cfe-commits
On Mon, Oct 31, 2016 at 11:21 AM, Joerg Sonnenberger via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Mon, Oct 31, 2016 at 10:45:05AM -0700, Richard Smith via cfe-commits > wrote: > > On Sun, Oct 30, 2016 at 12:32 PM, Joerg Sonnenberger > wrote: > > > > > On Sun, Oct 30,

[PATCH] D24933: Enable configuration files in clang

2016-10-31 Thread Reid Kleckner via cfe-commits
rnk added a comment. Added some people who might have opinions on the command line interface. Sorry, I don't have a lot of time for this right now. https://reviews.llvm.org/D24933 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D24991: Inline hot functions in libcxx shared_ptr implementation.

2016-10-31 Thread Kuba Brecka via cfe-commits
kubabrecka added a comment. Just a question: TSan intercepts on the dylib functions, namely `__release_shared`, to track the atomic accesses. Can you make sure this doesn't break? There's a few testcases for this in compiler-rt. https://reviews.llvm.org/D24991

[PATCH] D24991: Inline hot functions in libcxx shared_ptr implementation.

2016-10-31 Thread Sebastian Pop via cfe-commits
sebpop added a comment. Ping: Eric, Marshall, could you please approve or comment on this patch? Thanks! https://reviews.llvm.org/D24991 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: r285625 - DebugInfo: support for DW_TAG_atomic_type

2016-10-31 Thread Adrian Prantl via cfe-commits
> On Oct 31, 2016, at 12:09 PM, Victor Leschuk via cfe-commits > wrote: > > Author: vleschuk > Date: Mon Oct 31 14:09:47 2016 > New Revision: 285625 > > URL: http://llvm.org/viewvc/llvm-project?rev=285625=rev > Log: > DebugInfo: support for DW_TAG_atomic_type > >

[PATCH] D24991: Inline hot functions in libcxx shared_ptr implementation.

2016-10-31 Thread Kevin Hu via cfe-commits
hxy9243 accepted this revision. hxy9243 added a comment. This revision is now accepted and ready to land. Looks good to me. Notice that the performance gain can only be observed when compiled with the updated C++ header files. https://reviews.llvm.org/D24991

[PATCH] D24888: [clang-tidy] Use [[clang::suppress]] with cppcoreguidelines-pro-type-reinterpret-cast

2016-10-31 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/cppcoreguidelines/Suppression.h:59 + anyOf(hasAncestor(attributedStmt(hasSuppressAttr(Rules))), + hasAncestor(decl(hasAttrs(), hasSuppressAttr(Rules) + .matches(Node, Finder,

[PATCH] D26145: DebugInfo: support for DW_TAG_atomic_type

2016-10-31 Thread Victor Leschuk via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285625: DebugInfo: support for DW_TAG_atomic_type (authored by vleschuk). Changed prior to commit: https://reviews.llvm.org/D26145?vs=76441=76458#toc Repository: rL LLVM

r285625 - DebugInfo: support for DW_TAG_atomic_type

2016-10-31 Thread Victor Leschuk via cfe-commits
Author: vleschuk Date: Mon Oct 31 14:09:47 2016 New Revision: 285625 URL: http://llvm.org/viewvc/llvm-project?rev=285625=rev Log: DebugInfo: support for DW_TAG_atomic_type Mark C11 _Atomic variables with DW_TAG_atomic_type tag. Differential Revision: https://reviews.llvm.org/D26145 Added:

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

2016-10-31 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. Thanks for the review! I'll submit the updated patches soon. https://reviews.llvm.org/D25857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r285623 - NFC - Reorder test case names in a PPC test case

2016-10-31 Thread Nemanja Ivanovic via cfe-commits
Author: nemanjai Date: Mon Oct 31 14:02:54 2016 New Revision: 285623 URL: http://llvm.org/viewvc/llvm-project?rev=285623=rev Log: NFC - Reorder test case names in a PPC test case A few recent commits have messed up the order of some tests in a PPC test case. This just reorders them in a sensible

Re: [PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-31 Thread Aaron Ballman via cfe-commits
On Mon, Oct 31, 2016 at 2:55 PM, Malcolm Parsons wrote: > malcolm.parsons added inline comments. > > > > Comment at: clang-tidy/modernize/UseAutoCheck.cpp:404 > +[](const Expr *Expr) { return Expr->getType(); }, > +"use

[PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-31 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseAutoCheck.cpp:404 +[](const Expr *Expr) { return Expr->getType(); }, +"use auto when initializing with new to avoid " +"duplicating the type name");

[PATCH] D26159: [analyzer] MacOSXAPIChecker: Improve warning messages for __block vars in dispatch_once().

2016-10-31 Thread Artem Dergachev via cfe-commits
NoQ created this revision. NoQ added reviewers: zaks.anna, dcoughlin. NoQ added a subscriber: cfe-commits. The checker already warns for `__block`-storage variables being used as a `dispatch_once()` predicate, however it refers to them as local which is not quite accurate, so we fix that. Also

r285617 - Fixing problem with CodeGen/avx512-kconstraints-att_inline_asm.c

2016-10-31 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Mon Oct 31 13:40:17 2016 New Revision: 285617 URL: http://llvm.org/viewvc/llvm-project?rev=285617=rev Log: Fixing problem with CodeGen/avx512-kconstraints-att_inline_asm.c Modified: cfe/trunk/test/CodeGen/avx512-kconstraints-att_inline_asm.c Modified:

Re: r285604 - [x86][inline-asm][AVX512][clang][PART-1] Introducing "k" and "Yk" constraints for extended inline assembly, enabling use of AVX512 masked vectorized instructions.

2016-10-31 Thread Renato Golin via cfe-commits
On 31 October 2016 at 17:23, Michael Zuckerman via cfe-commits wrote: > Author: mzuckerm > Date: Mon Oct 31 12:23:52 2016 > New Revision: 285604 > > URL: http://llvm.org/viewvc/llvm-project?rev=285604=rev > Log: > [x86][inline-asm][AVX512][clang][PART-1] Introducing

[PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-31 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseAutoCheck.cpp:404 +[](const Expr *Expr) { return Expr->getType(); }, +"use auto when initializing with new to avoid " +"duplicating the type name");

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

2016-10-31 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. LGTM. Thanks. Repository: rL LLVM https://reviews.llvm.org/D26157 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r285612 - Add a warning flag for warn_alloca_align_alignof

2016-10-31 Thread David Majnemer via cfe-commits
Author: majnemer Date: Mon Oct 31 13:23:02 2016 New Revision: 285612 URL: http://llvm.org/viewvc/llvm-project?rev=285612=rev Log: Add a warning flag for warn_alloca_align_alignof Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Modified:

r285610 - When diagnosing that a defaulted function is ill-formed because it would be

2016-10-31 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Oct 31 13:18:29 2016 New Revision: 285610 URL: http://llvm.org/viewvc/llvm-project?rev=285610=rev Log: When diagnosing that a defaulted function is ill-formed because it would be implicitly deleted and overrides a non-deleted function, explain why the function is deleted.

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

2016-10-31 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. It looks good generally. My only concern here if anyone could use this MD expecting target AS values which correspond to those put in the IR itself. On the other hand clGetKernelArgInfo is supposed to be used for obtaining the information about the original source

Re: [libcxx] r285382 - Add __libcpp_version file and __libcpp_library_version function.

2016-10-31 Thread Joerg Sonnenberger via cfe-commits
On Mon, Oct 31, 2016 at 10:45:05AM -0700, Richard Smith via cfe-commits wrote: > On Sun, Oct 30, 2016 at 12:32 PM, Joerg Sonnenberger wrote: > > > On Sun, Oct 30, 2016 at 12:54:28PM -0600, Eric Fiselier wrote: > > > Richard requested this change. Take a look at > > >

Re: r285544 - Add support for __builtin_alloca_with_align

2016-10-31 Thread David Majnemer via cfe-commits
Added in r285609. On Mon, Oct 31, 2016 at 9:21 AM, Hal Finkel wrote: > Hi David, > > On Reid's patch for this (D25581), Richard said, "This takes the alignment > in bits? That's so ridiculously dumb that I would feel bad about accepting > this patch unless it comes with a

r285609 - [Sema] Warn when alignof is used with __builtin_alloca_with_align

2016-10-31 Thread David Majnemer via cfe-commits
Author: majnemer Date: Mon Oct 31 13:07:57 2016 New Revision: 285609 URL: http://llvm.org/viewvc/llvm-project?rev=285609=rev Log: [Sema] Warn when alignof is used with __builtin_alloca_with_align The second argument to __builtin_alloca_with_align is supposed to be in bits, not bytes. Using

[PATCH] D25343: [OpenCL] Mark group functions as convergent in opencl-c.h

2016-10-31 Thread Yaxun Liu via cfe-commits
yaxunl added inline comments. Comment at: test/CodeGenOpenCL/convergent.cl:54 +// CHECK: tail call spir_func void @f() +// CHECK-NOT: call spir_func void @non_convfun() +// CHECK-NOT: call spir_func void @g() Anastasia wrote: > Did you mean to check @convfun()

[PATCH] D26145: DebugInfo: support for DW_TAG_atomic_type

2016-10-31 Thread Adrian Prantl via cfe-commits
aprantl added a comment. One more inline comment. Comment at: test/CodeGen/debug-info-atomic.c:4 +// CHECK: !DIGlobalVariable(name: "i"{{.*}}type: !5, isLocal: false, isDefinition: true) +// CHECK: !5 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !6) +// CHECK: !6 =

[PATCH] D26143: [modules] Mark deleted functions as implicitly inline to allow merging

2016-10-31 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added inline comments. This revision is now accepted and ready to land. Comment at: lib/Sema/SemaDeclCXX.cpp:13875-13876 + // A deleted function is implicitly inline. + // NOTE: Modules cannot correctly merge deleted functions unless they

Re: [libcxx] r285382 - Add __libcpp_version file and __libcpp_library_version function.

2016-10-31 Thread Richard Smith via cfe-commits
On Sun, Oct 30, 2016 at 12:32 PM, Joerg Sonnenberger wrote: > On Sun, Oct 30, 2016 at 12:54:28PM -0600, Eric Fiselier wrote: > > Richard requested this change. Take a look at > > https://reviews.llvm.org/D26044 for more rational. > > I don't see much rational and in fact, I

[PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-31 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added a comment. In https://reviews.llvm.org/D25316#583651, @aaron.ballman wrote: > Does this check properly work in the presence of macros? Those are sometimes > more common in casting operations, so a few explicit tests would be good > (those tests could be follow-on work if

[PATCH] D25909: [analyzer] MacOSXApiChecker: Disallow dispatch_once predicates on heap and in ivars.

2016-10-31 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285605: [analyzer] MacOSXAPIChecker: Disallow dispatch_once_t in ivars and heap. (authored by dergachev). Changed prior to commit: https://reviews.llvm.org/D25909?vs=75998=76446#toc Repository: rL

r285605 - [analyzer] MacOSXAPIChecker: Disallow dispatch_once_t in ivars and heap.

2016-10-31 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Mon Oct 31 12:27:26 2016 New Revision: 285605 URL: http://llvm.org/viewvc/llvm-project?rev=285605=rev Log: [analyzer] MacOSXAPIChecker: Disallow dispatch_once_t in ivars and heap. Unlike global/static variables, calloc etc. functions that allocate ObjC objects behave

[PATCH] D25063: [x86][inline-asm][AVX512][clang][PART-1] Introducing "k" and "Yk" constraints for extended inline assembly, enabling use of AVX512 masked vectorized instructions.

2016-10-31 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285604: [x86][inline-asm][AVX512][clang][PART-1] Introducing "k" and "Yk" constraints… (authored by mzuckerm). Changed prior to commit: https://reviews.llvm.org/D25063?vs=75542=76445#toc Repository:

[PATCH] D25935: [OpenCL] Diagnose variadic arguments

2016-10-31 Thread Anastasia Stulova via cfe-commits
Anastasia closed this revision. Anastasia added a comment. Committed in r285395 https://reviews.llvm.org/D25935 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25343: [OpenCL] Mark group functions as convergent in opencl-c.h

2016-10-31 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. Additional discussions: http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20161024/175373.html https://reviews.llvm.org/D25343 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r285604 - [x86][inline-asm][AVX512][clang][PART-1] Introducing "k" and "Yk" constraints for extended inline assembly, enabling use of AVX512 masked vectorized instructions.

2016-10-31 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Mon Oct 31 12:23:52 2016 New Revision: 285604 URL: http://llvm.org/viewvc/llvm-project?rev=285604=rev Log: [x86][inline-asm][AVX512][clang][PART-1] Introducing "k" and "Yk" constraints for extended inline assembly, enabling use of AVX512 masked vectorized instructions.

[PATCH] D25343: [OpenCL] Mark group functions as convergent in opencl-c.h

2016-10-31 Thread Anastasia Stulova via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. LGTM! Thanks! Could you please address the last comment before committing? Comment at: test/CodeGenOpenCL/convergent.cl:54 +// CHECK: tail call spir_func void @f() +// CHECK-NOT: call spir_func void @non_convfun()

[clang-tools-extra] r285601 - Add modernize-use-auto tests for casts inside macros

2016-10-31 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Mon Oct 31 12:17:45 2016 New Revision: 285601 URL: http://llvm.org/viewvc/llvm-project?rev=285601=rev Log: Add modernize-use-auto tests for casts inside macros Modified: clang-tools-extra/trunk/test/clang-tidy/modernize-use-auto-cast-remove-stars.cpp

[PATCH] D26145: DebugInfo: support for DW_TAG_atomic_type

2016-10-31 Thread Victor Leschuk via cfe-commits
vleschuk updated this revision to Diff 76441. vleschuk added a comment. Made test more strict: it now checks that variable i is atomic. https://reviews.llvm.org/D26145 Files: lib/CodeGen/CGDebugInfo.cpp test/CodeGen/debug-info-atomic.c Index: test/CodeGen/debug-info-atomic.c

  1   2   >