[clang-tools-extra] [clangd] Check for valid location in ExtractionContext::exprIsValidOutside (PR #71162)

2023-11-10 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/71162 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Check for valid location in ExtractionContext::exprIsValidOutside (PR #71162)

2023-11-10 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 requested changes to this pull request. Thank you for the patch! https://github.com/llvm/llvm-project/pull/71162 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang-tools-extra] [clangd] Check for valid location in ExtractionContext::exprIsValidOutside (PR #71162)

2023-11-10 Thread Nathan Ridge via cfe-commits
@@ -0,0 +1,11 @@ +// RUN: cp %s %t.c HighCommander4 wrote: I think it would be more consistent with the rest of the clangd subproject if this was expressed as a unit test. It can take the form of a new section added to [this existing test](https://searchfox.or

[clang-tools-extra] [clangd] Check for valid location in ExtractionContext::exprIsValidOutside (PR #71162)

2023-11-10 Thread Nathan Ridge via cfe-commits
@@ -176,7 +176,8 @@ bool ExtractionContext::exprIsValidOutside(const clang::Stmt *Scope) const { SourceLocation ScopeBegin = Scope->getBeginLoc(); SourceLocation ScopeEnd = Scope->getEndLoc(); for (const Decl *ReferencedDecl : ReferencedDecls) { -if (SM.isPointWithin

[llvm] [clang] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-10 Thread David Spickett via cfe-commits
@@ -0,0 +1,56 @@ +; REQUIRES: arm-registered-target +; RUN: %clang --target=arm-none-eabi -mcpu=cortex-m85 -mfloat-abi=hard -save-temps=obj -S -o - %s | FileCheck %s +; RUN: %clang --target=arm-none-eabi -mcpu=cortex-m55 -mfloat-abi=hard -save-temps=obj -S -o - %s | FileCheck %s

[llvm] [clang] [llvm][ARM] Emit MVE .arch_extension after .fpu directive if it does not include MVE features (PR #71545)

2023-11-10 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/71545 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 0255b21 - [clangd] Add tweak for turning an unscoped into a scoped enum (#69481)

2023-11-10 Thread via cfe-commits
Author: ckandeler Date: 2023-11-10T10:02:05+01:00 New Revision: 0255b217c3766ce0aa23bd4fb050b447be2a1d26 URL: https://github.com/llvm/llvm-project/commit/0255b217c3766ce0aa23bd4fb050b447be2a1d26 DIFF: https://github.com/llvm/llvm-project/commit/0255b217c3766ce0aa23bd4fb050b447be2a1d26.diff LOG

[clang-tools-extra] [clangd] Add tweak for turning an unscoped into a scoped enum (PR #69481)

2023-11-10 Thread via cfe-commits
https://github.com/ckandeler closed https://github.com/llvm/llvm-project/pull/69481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add tweak for turning an unscoped into a scoped enum (PR #69481)

2023-11-10 Thread via cfe-commits
ckandeler wrote: Merged as per the review here: https://github.com/llvm/llvm-project/pull/67645 https://github.com/llvm/llvm-project/pull/69481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] cc75e52 - [clang-format][NFC] Refactor isPointerOrReference

2023-11-10 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2023-11-10T01:23:05-08:00 New Revision: cc75e520162ef651977d3f6d11b0d0b92dd2be07 URL: https://github.com/llvm/llvm-project/commit/cc75e520162ef651977d3f6d11b0d0b92dd2be07 DIFF: https://github.com/llvm/llvm-project/commit/cc75e520162ef651977d3f6d11b0d0b92dd2be07.diff LOG:

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-11-10 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= ,

[clang] [analyzer] Move security.cert.env.InvalidPtr out of alpha (PR #71912)

2023-11-10 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 created https://github.com/llvm/llvm-project/pull/71912 Thanks to recent improvements in #67663, InvalidPtr checker does not emit any false positives on the following OS projects: memcached, tmux, curl, twin, vim, openssl, sqlite, ffmpeg, postgres, tinyxml2, libweb

[clang] [analyzer] Move security.cert.env.InvalidPtr out of alpha (PR #71912)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Endre Fülöp (gamesh411) Changes Thanks to recent improvements in #67663, InvalidPtr checker does not emit any false positives on the following OS projects: memcached, tmux, curl, twin, vim, openssl, sqlite, ffmpeg, postg

[clang] f7bbb58 - Reland "[clang-format] Handle variable declarations in BreakAfterAttributes (#71755)"

2023-11-10 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2023-11-10T01:53:43-08:00 New Revision: f7bbb58690910a8320b0927525dfba19df69a910 URL: https://github.com/llvm/llvm-project/commit/f7bbb58690910a8320b0927525dfba19df69a910 DIFF: https://github.com/llvm/llvm-project/commit/f7bbb58690910a8320b0927525dfba19df69a910.diff LOG:

[clang] [analyzer] Move security.cert.env.InvalidPtr out of alpha (PR #71912)

2023-11-10 Thread via cfe-commits
https://github.com/DonatNagyE approved this pull request. LGTM. The test results sound convincing and this is just a checker-rename commit that doesn't contain "actual" code changes that could've introduced bugs. https://github.com/llvm/llvm-project/pull/71912 __

[clang] 86ef9d3 - Revert "[clang-format] Handle variable declarations in BreakAfterAttributes (#71755)"

2023-11-10 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2023-11-10T02:03:35-08:00 New Revision: 86ef9d36519f72c06741335ce0a445ab73eb4cfb URL: https://github.com/llvm/llvm-project/commit/86ef9d36519f72c06741335ce0a445ab73eb4cfb DIFF: https://github.com/llvm/llvm-project/commit/86ef9d36519f72c06741335ce0a445ab73eb4cfb.diff LOG:

[clang] [clang][driver] Add \/../include/c++/v1 to include path on Darwin (PR #70817)

2023-11-10 Thread Liviu Ionescu via cfe-commits
https://github.com/ilg-ul updated https://github.com/llvm/llvm-project/pull/70817 >From 7fbc229ee7316d826517480ee7896c91dad941f3 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 31 Oct 2023 17:09:04 +0200 Subject: [PATCH 1/3] Add \/../include/c++/v1 to include path On macOS, when clang

[clang] [clang][driver] Add \/../include/c++/v1 to include path on Darwin (PR #70817)

2023-11-10 Thread Liviu Ionescu via cfe-commits
@@ -2494,6 +2494,19 @@ void DarwinClang::AddClangCXXStdlibIncludeArgs( << "\"\n"; ilg-ul wrote: Done. https://github.com/llvm/llvm-project/pull/70817 ___ cfe-commits mailing list cfe-commits@lists.l

[clang] [clang][driver] Add \/../include/c++/v1 to include path on Darwin (PR #70817)

2023-11-10 Thread Liviu Ionescu via cfe-commits
@@ -2494,6 +2494,19 @@ void DarwinClang::AddClangCXXStdlibIncludeArgs( << "\"\n"; } +// Check for the folder where the executable is located, if different. ilg-ul wrote: Done. https://github.com/llvm/llvm-project/pull/70817 ___

[clang] [clang][driver] Add \/../include/c++/v1 to include path on Darwin (PR #70817)

2023-11-10 Thread Liviu Ionescu via cfe-commits
@@ -2494,6 +2494,19 @@ void DarwinClang::AddClangCXXStdlibIncludeArgs( << "\"\n"; } +// Check for the folder where the executable is located, if different. +if (getDriver().getInstalledDir() != getDriver().Dir) { + InstallBin = llvm::StringR

[clang] [clang][driver] Add \/../include/c++/v1 to include path on Darwin (PR #70817)

2023-11-10 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 49fd28d9601dde429436655ec74234e895c60b89 31b7482ffabda61c005a4cd90a07bcfec65c232e --

[flang] [clang] [flang][driver] add -flang-deprecated-no-hlfir hidden option (PR #71820)

2023-11-10 Thread Tom Eccles via cfe-commits
https://github.com/tblah approved this pull request. > Thanks for the review @tblah. I could not find > flang/test/HLFIR/hlfir-flang.f90 test, did you mean > flang/test/HLFIR/hlfir-**flags**.f90 (in which case it is updated in this PR > already). Yes I meant hlfir-flags.f90. Sorry about that.

[PATCH] D138846: MC/DC in LLVM Source-Based Code Coverage: LLVM back-end and compiler-rt

2023-11-10 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. Just a heads up that we're seeing crashes in the Rust compiler which bisects to this change. Investigating in https://bugs.chromium.org/p/chromium/issues/detail?id=1500558 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138846/

[clang] 7b1a058 - [clang][Interp][NFC] Use direct Get{Local,Global} when possible

2023-11-10 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-11-10T11:30:38+01:00 New Revision: 7b1a0580216796045b880251e031a1e5e0ecad74 URL: https://github.com/llvm/llvm-project/commit/7b1a0580216796045b880251e031a1e5e0ecad74 DIFF: https://github.com/llvm/llvm-project/commit/7b1a0580216796045b880251e031a1e5e0ecad74.diff LO

[clang-tools-extra] [clangd] Check for valid location in ExtractionContext::exprIsValidOutside (PR #71162)

2023-11-10 Thread Björn Pettersson via cfe-commits
@@ -0,0 +1,11 @@ +// RUN: cp %s %t.c bjope wrote: I've been trying to do that, but so far no luck. I hit this assertion in TweakTesting.h: ` assert(!A.points().empty() || !A.ranges().empty()); ` https://github.com/llvm/llvm-project/pull/71162

[clang] [clang][Interp] Diagnose reads from non-const global variables (PR #71919)

2023-11-10 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/71919 This fixes a long-standing FIXME item. Unfortunately it changes the diagnostic output of the tests added in `cxx23.cpp`, but they were wrong before and are wrong after, so no big deal. >From bc71936279a1c669a8

[clang] [clang][Interp] Diagnose reads from non-const global variables (PR #71919)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This fixes a long-standing FIXME item. Unfortunately it changes the diagnostic output of the tests added in `cxx23.cpp`, but they were wrong before and are wrong after, so no big deal. --- Full diff: https:

[clang-tools-extra] [clangd] Check for valid location in ExtractionContext::exprIsValidOutside (PR #71162)

2023-11-10 Thread Björn Pettersson via cfe-commits
@@ -0,0 +1,11 @@ +// RUN: cp %s %t.c bjope wrote: Well, I forgot to add the [[]] thing around the call. Now I'm back on track again :-) https://github.com/llvm/llvm-project/pull/71162 ___ cfe-commits mailing list cfe-

[clang] [clang][driver] Add \/../include/c++/v1 to include path on Darwin (PR #70817)

2023-11-10 Thread Liviu Ionescu via cfe-commits
https://github.com/ilg-ul updated https://github.com/llvm/llvm-project/pull/70817 >From 7fbc229ee7316d826517480ee7896c91dad941f3 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 31 Oct 2023 17:09:04 +0200 Subject: [PATCH 1/4] Add \/../include/c++/v1 to include path On macOS, when clang

[llvm] [flang] [clang] [flang] add fveclib flag (PR #71734)

2023-11-10 Thread Tom Eccles via cfe-commits
https://github.com/tblah updated https://github.com/llvm/llvm-project/pull/71734 >From ac9c18ef7d286147fd1ae4a49efe343644d2ccd1 Mon Sep 17 00:00:00 2001 From: Tom Eccles Date: Tue, 7 Nov 2023 18:55:20 + Subject: [PATCH 1/2] [flang] add fveclib flag -fveclib= allows users to choose a vectori

[PATCH] D138846: MC/DC in LLVM Source-Based Code Coverage: LLVM back-end and compiler-rt

2023-11-10 Thread Mike Hommey via Phabricator via cfe-commits
glandium added a comment. Code built with older versions of LLVM (e.g. rust) and running with the updated runtime crash at startup with this change. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D138846/new/ https://reviews.llvm.org/D138846 __

[llvm] [clang] [clang-tools-extra] [RFC] Perform lifetime bound checks for arguments to coroutine (PR #69360)

2023-11-10 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/69360 >From be3f5faa6cd17d76f26fb1bc6d6b59a8a78ffe82 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Tue, 17 Oct 2023 19:37:28 +0200 Subject: [PATCH 1/2] Lifetime bound check for coroutine --- clang/lib/Sema/SemaIni

[llvm] [clang] [clang-tools-extra] [RFC] Perform lifetime bound checks for arguments to coroutine (PR #69360)

2023-11-10 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/69360 >From be3f5faa6cd17d76f26fb1bc6d6b59a8a78ffe82 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Tue, 17 Oct 2023 19:37:28 +0200 Subject: [PATCH 1/3] Lifetime bound check for coroutine --- clang/lib/Sema/SemaIni

[llvm] [clang] [clang-tools-extra] [AMDGPU] Fix GCNUpwardRPTracker. (WIP) (PR #71186)

2023-11-10 Thread Valery Pykhtin via cfe-commits
https://github.com/vpykhtin updated https://github.com/llvm/llvm-project/pull/71186 >From e2254cb744adb65685edeb2373f900368c11c11a Mon Sep 17 00:00:00 2001 From: Valery Pykhtin Date: Thu, 2 Nov 2023 20:39:11 +0100 Subject: [PATCH 1/3] [AMDGPU] Fix GCNUpwardRPTracker. --- .../Target/AMDGPU/GCN

[clang] 9f265c3 - [flang][driver] add -flang-deprecated-no-hlfir hidden option (#71820)

2023-11-10 Thread via cfe-commits
Author: jeanPerier Date: 2023-11-10T11:54:10+01:00 New Revision: 9f265c38718ca5c6b2b2ba6a237db1ba5e2cac55 URL: https://github.com/llvm/llvm-project/commit/9f265c38718ca5c6b2b2ba6a237db1ba5e2cac55 DIFF: https://github.com/llvm/llvm-project/commit/9f265c38718ca5c6b2b2ba6a237db1ba5e2cac55.diff LO

[clang] [flang] [flang][driver] add -flang-deprecated-no-hlfir hidden option (PR #71820)

2023-11-10 Thread via cfe-commits
https://github.com/jeanPerier closed https://github.com/llvm/llvm-project/pull/71820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang][driver] add -flang-deprecated-no-hlfir hidden option (PR #71820)

2023-11-10 Thread via cfe-commits
jeanPerier wrote: > Yes I meant hlfir-flags.f90. Sorry about that. Thanks for the changes! No problem, thanks for the review and comments! https://github.com/llvm/llvm-project/pull/71820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

[clang-tools-extra] [clangd] Check for valid location in ExtractionContext::exprIsValidOutside (PR #71162)

2023-11-10 Thread Björn Pettersson via cfe-commits
https://github.com/bjope updated https://github.com/llvm/llvm-project/pull/71162 From 1fb659fa15568ec8256824339860de724853c6e3 Mon Sep 17 00:00:00 2001 From: Bjorn Pettersson Date: Thu, 2 Nov 2023 22:00:52 +0100 Subject: [PATCH 1/2] [clangd] Check for valid source location in ExtractionContext:

[llvm] [clang] [clang-tools-extra] [AMDGPU] Fix GCNUpwardRPTracker. (WIP) (PR #71186)

2023-11-10 Thread Valery Pykhtin via cfe-commits
@@ -128,14 +128,7 @@ class GCNRPTracker { void clearMaxPressure() { MaxPressure.clear(); } - GCNRegPressure getPressure() const { return CurPressure; } - - // returns MaxPressure, resetting it - decltype(MaxPressure) moveMaxPressure() { -auto Res = MaxPressure; -

[llvm] [clang] [clang-tools-extra] [AMDGPU] Fix GCNUpwardRPTracker. (WIP) (PR #71186)

2023-11-10 Thread Valery Pykhtin via cfe-commits
@@ -180,6 +190,13 @@ class GCNDownwardRPTracker : public GCNRPTracker { MachineBasicBlock::const_iterator getNext() const { return NextMI; } + // Return MaxPressure and clear it. + decltype(MaxPressure) moveMaxPressure() { vpykhtin wrote: Done. https://

[clang] [Clang][SME2] Add single and multi min/max by vector builtins (PR #71707)

2023-11-10 Thread Dinar Temirbulatov via cfe-commits
https://github.com/dtemirbulatov approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/71707 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Remove special handling of comments after brace/paren (PR #71672)

2023-11-10 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks edited https://github.com/llvm/llvm-project/pull/71672 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Remove special handling of comments after brace/paren (PR #71672)

2023-11-10 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks updated https://github.com/llvm/llvm-project/pull/71672 From aeec6f1e767bc2bb11823cb694bf6ccc267b060d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Wed, 8 Nov 2023 13:31:32 +0100 Subject: [PATCH] [clang-format] Remove special h

[clang] [clang-format] Remove special handling of comments after brace/paren (PR #71672)

2023-11-10 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: Updated implementation and tests for `Cpp1BracedListSyle` set to `false`. https://github.com/llvm/llvm-project/pull/71672 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] [llvm] [flang] [flang] add fveclib flag (PR #71734)

2023-11-10 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan approved this pull request. Nice work. LGTM. https://github.com/llvm/llvm-project/pull/71734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [flang] [clang] [flang] add fveclib flag (PR #71734)

2023-11-10 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan edited https://github.com/llvm/llvm-project/pull/71734 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [flang] [flang] add fveclib flag (PR #71734)

2023-11-10 Thread Kiran Chandramohan via cfe-commits
@@ -111,7 +111,7 @@ int main(int argc, const char **argv) { auto Files = llvm::makeIntrusiveRefCnt(FileSystemOptions(), OFS); - auto Driver = std::make_unique( + auto Driver = std::make_unique( kiranchandramohan wrote: Are these clang prefixes required?

[llvm] [clang] [flang] [flang] add fveclib flag (PR #71734)

2023-11-10 Thread Kiran Chandramohan via cfe-commits
@@ -851,11 +851,10 @@ getOutputStream(CompilerInstance &ci, llvm::StringRef inFile, /// \param [in] act Backend act to run (assembly vs machine-code generation) /// \param [in] llvmModule LLVM module to lower to assembly/machine-code /// \param [out] os Output stream to emit t

[llvm] [clang] [flang] [flang] add fveclib flag (PR #71734)

2023-11-10 Thread Kiran Chandramohan via cfe-commits
@@ -0,0 +1,13 @@ +! test that -fveclib= is passed to the backend +! -target aarch64 so that ArmPL is available +! RUN: %flang -S -target aarch64-unknown-linux-gnu -mcpu=neoverse-v1 -Ofast -fveclib=ArmPL -o - %s | FileCheck %s + kiranchandramohan wrote: Will this

[llvm] [clang] [WIP][AMDGPU] Enable hostcall printf for OpenCL (PR #70932)

2023-11-10 Thread Vikram Hegde via cfe-commits
vikramRH wrote: @b-sumner, @ssahasra , what are your thoughts about making the hostcall default throughout ? Also I do not think splitting this into separate patches is feasible since changes are interdependent, however I could split changes into separate commits to make it easier to review.

[llvm] [clang] [flang] [flang] add fveclib flag (PR #71734)

2023-11-10 Thread Tom Eccles via cfe-commits
@@ -111,7 +111,7 @@ int main(int argc, const char **argv) { auto Files = llvm::makeIntrusiveRefCnt(FileSystemOptions(), OFS); - auto Driver = std::make_unique( + auto Driver = std::make_unique( tblah wrote: The file imports both the `clang` and `llvm` n

[llvm] [clang] [flang] [flang] add fveclib flag (PR #71734)

2023-11-10 Thread Tom Eccles via cfe-commits
@@ -0,0 +1,13 @@ +! test that -fveclib= is passed to the backend +! -target aarch64 so that ArmPL is available +! RUN: %flang -S -target aarch64-unknown-linux-gnu -mcpu=neoverse-v1 -Ofast -fveclib=ArmPL -o - %s | FileCheck %s + tblah wrote: -fveclib should work

[llvm] [clang] [AArch64][SME2] Add ldr_zt, str_zt builtins and intrinsics (PR #71795)

2023-11-10 Thread Sam Tebbs via cfe-commits
SamTebbs33 wrote: Considering the definitions are commented out, are these changes necessary? https://github.com/llvm/llvm-project/pull/71795 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang] [AArch64][SME2] Enable bfm builtings for sme2 (PR #71927)

2023-11-10 Thread Sam Tebbs via cfe-commits
https://github.com/SamTebbs33 created https://github.com/llvm/llvm-project/pull/71927 This patch enables the following builtins for SME2 svbfmlslb_f32 svbfmlslb_lane_f32 svbfmlslt_f32 svbfmlslt_lane_f32 Patch by: Kerry McLaughlin >From ff33739706ce758f416153aa3cdb7c632e068da3

[clang] [AArch64][SME2] Enable bfm builtings for sme2 (PR #71927)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sam Tebbs (SamTebbs33) Changes This patch enables the following builtins for SME2 svbfmlslb_f32 svbfmlslb_lane_f32 svbfmlslt_f32 svbfmlslt_lane_f32 Patch by: Kerry McLaughlin --- Full diff: https

[llvm] [flang] [clang] [flang] add fveclib flag (PR #71734)

2023-11-10 Thread Kiran Chandramohan via cfe-commits
@@ -0,0 +1,13 @@ +! test that -fveclib= is passed to the backend +! -target aarch64 so that ArmPL is available +! RUN: %flang -S -target aarch64-unknown-linux-gnu -mcpu=neoverse-v1 -Ofast -fveclib=ArmPL -o - %s | FileCheck %s + kiranchandramohan wrote: I was ask

[clang] [clang-format] Handle variable declarations in BreakAfterAttributes (PR #71755)

2023-11-10 Thread Michael Kruse via cfe-commits
Meinersbur wrote: @owenca You can run `ninja polly-update-format` which will use the in-tree `clang-format` to reformat all files. `git add` its changes, `git add --amend`, then push. https://github.com/llvm/llvm-project/pull/71755 ___ cfe-commits m

[clang] [clang][Interp] Handle SizeOfPackExprs (PR #71929)

2023-11-10 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/71929 None >From 1fe6815c82c1df26f35edcd64e85d4a2fd584f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 10 Nov 2023 13:04:30 +0100 Subject: [PATCH] [clang][Interp] Handle SizeOfPackExprs --

[clang] [clang][Interp] Handle SizeOfPackExprs (PR #71929)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/71929.diff 3 Files Affected: - (modified) clang/lib/AST/Interp/ByteCodeExprGen.cpp (+5) - (modified) clang/lib/AST/Interp/ByteCodeExprGen.h (+1)

[clang] [clang-format] Handle variable declarations in BreakAfterAttributes (PR #71755)

2023-11-10 Thread Owen Pan via cfe-commits
owenca wrote: @Meinersbur thanks for the info! https://github.com/llvm/llvm-project/pull/71755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SVE2.1][Clang][LLVM]Add 128bits builtin in Clang and LLVM intrinisc (PR #71930)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 @llvm/pr-subscribers-llvm-ir Author: None (CarolineConcatto) Changes This patch implements the builtins in Clang and the LLVM-IR intrinsic for the following: EXTQ // Variants are also available for: // _s8, _s16, _u16, _s32, _u32, _s64,

[clang] [llvm] [SVE2.1][Clang][LLVM]Add 128bits builtin in Clang and LLVM intrinisc (PR #71930)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (CarolineConcatto) Changes This patch implements the builtins in Clang and the LLVM-IR intrinsic for the following: EXTQ // Variants are also available for: // _s8, _s16, _u16, _s32, _u32, _s64, _u64 // _bf16, _f16, _f32, _f64 svuint8

[PATCH] D138846: MC/DC in LLVM Source-Based Code Coverage: LLVM back-end and compiler-rt

2023-11-10 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. In D138846#4656594 , @hans wrote: > Just a heads up that we're seeing crashes in the Rust compiler which bisects > to this change. Investigating in > https://bugs.chromium.org/p/chromium/issues/detail?id=1500558 Here's a small rep

[clang] [llvm] [flang] [flang] add fveclib flag (PR #71734)

2023-11-10 Thread Tom Eccles via cfe-commits
https://github.com/tblah updated https://github.com/llvm/llvm-project/pull/71734 >From ac9c18ef7d286147fd1ae4a49efe343644d2ccd1 Mon Sep 17 00:00:00 2001 From: Tom Eccles Date: Tue, 7 Nov 2023 18:55:20 + Subject: [PATCH 1/3] [flang] add fveclib flag -fveclib= allows users to choose a vectori

[clang] [llvm] [flang] [flang] add fveclib flag (PR #71734)

2023-11-10 Thread Tom Eccles via cfe-commits
https://github.com/tblah updated https://github.com/llvm/llvm-project/pull/71734 >From ac9c18ef7d286147fd1ae4a49efe343644d2ccd1 Mon Sep 17 00:00:00 2001 From: Tom Eccles Date: Tue, 7 Nov 2023 18:55:20 + Subject: [PATCH 1/4] [flang] add fveclib flag -fveclib= allows users to choose a vectori

[clang] [llvm] [flang] [flang] add fveclib flag (PR #71734)

2023-11-10 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 76947e040545aa1cbaa27cf0b06fae9ced272ca4 8265a5729a919e4ddb914b5322804b4c3290ee82 --

[clang] [clang][TSA] Make RequiresCapability a DeclOrType attribute (PR #67095)

2023-11-10 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: @@ -1894,6 +1894,8 @@ void TypePrinter::printAttributedAfter(const AttributedType *T, case attr::ArmMveStrictPolymorphism:

[clang-tools-extra] [llvm] [clang] [AMDGPU] Fix GCNUpwardRPTracker. (WIP) (PR #71186)

2023-11-10 Thread Valery Pykhtin via cfe-commits
https://github.com/vpykhtin closed https://github.com/llvm/llvm-project/pull/71186 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] ec095b7 - [clangd] Fix builds after 0255b217c3766ce0aa23bd4fb050b447be2a1d26

2023-11-10 Thread Kadir Cetinkaya via cfe-commits
Author: Kadir Cetinkaya Date: 2023-11-10T13:55:43+01:00 New Revision: ec095b74243bf5db2a70961ecbbde2a30efdccce URL: https://github.com/llvm/llvm-project/commit/ec095b74243bf5db2a70961ecbbde2a30efdccce DIFF: https://github.com/llvm/llvm-project/commit/ec095b74243bf5db2a70961ecbbde2a30efdccce.dif

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; egorzhdan wrote: Done https://github.com/llvm/llvm-project/pull/

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
https://github.com/egorzhdan updated https://github.com/llvm/llvm-project/pull/71413 >From f80d68edf0787821531c0f88d845b253703ef13e Mon Sep 17 00:00:00 2001 From: Egor Zhdan Date: Mon, 6 Nov 2023 15:41:19 + Subject: [PATCH 1/2] [APINotes] NFC: rename `StoredObjCSelector::NumPieces` This va

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[llvm] [clang] [flang] [flang] add fveclib flag (PR #71734)

2023-11-10 Thread Tom Eccles via cfe-commits
https://github.com/tblah updated https://github.com/llvm/llvm-project/pull/71734 >From ac9c18ef7d286147fd1ae4a49efe343644d2ccd1 Mon Sep 17 00:00:00 2001 From: Tom Eccles Date: Tue, 7 Nov 2023 18:55:20 + Subject: [PATCH 1/4] [flang] add fveclib flag -fveclib= allows users to choose a vectori

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [clang-tools-extra] [llvm] [clang-format] Handle variable declarations in BreakAfterAttributes (PR #71935)

2023-11-10 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/71935 Also fixed a bug in `isStartOfName()` and cleaned up some old test cases. Fixed #71563. This is a rework of #71755. >From 17921d5a1d74017128691428815ede53ac1a4d67 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: W

[clang] [clang-tools-extra] [llvm] [clang-format] Handle variable declarations in BreakAfterAttributes (PR #71935)

2023-11-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Owen Pan (owenca) Changes Also fixed a bug in `isStartOfName()` and cleaned up some old test cases. Fixed #71563. This is a rework of #71755. --- Full diff: https://github.com/llvm/llvm-project/pull/71935.diff 4 Files Affected: - (mod

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
https://github.com/egorzhdan updated https://github.com/llvm/llvm-project/pull/71413 >From f80d68edf0787821531c0f88d845b253703ef13e Mon Sep 17 00:00:00 2001 From: Egor Zhdan Date: Mon, 6 Nov 2023 15:41:19 + Subject: [PATCH 1/2] [APINotes] NFC: rename `StoredObjCSelector::NumPieces` This va

[clang] [Clang][SME2] Add single and multi min and max builtins (PR #71688)

2023-11-10 Thread Sam Tebbs via cfe-commits
https://github.com/SamTebbs33 edited https://github.com/llvm/llvm-project/pull/71688 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SME2] Add single and multi min/max by vector builtins (PR #71707)

2023-11-10 Thread Sam Tebbs via cfe-commits
https://github.com/SamTebbs33 edited https://github.com/llvm/llvm-project/pull/71707 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
https://github.com/egorzhdan updated https://github.com/llvm/llvm-project/pull/71413 >From f80d68edf0787821531c0f88d845b253703ef13e Mon Sep 17 00:00:00 2001 From: Egor Zhdan Date: Mon, 6 Nov 2023 15:41:19 + Subject: [PATCH 1/2] [APINotes] NFC: rename `StoredObjCSelector::NumPieces` This va

[clang] [APINotes] Upstream APINotes YAML compiler (PR #71413)

2023-11-10 Thread Egor Zhdan via cfe-commits
@@ -635,3 +638,496 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI, return false; } + +namespace { +using namespace api_notes; + +class YAMLConverter { + const Module &TheModule; + APINotesWriter Writer; + llvm::raw_ostream &OS; + llvm::SourceMgr::DiagHandler

[clang] [clang-format] Option to ignore PP directives (PR #70338)

2023-11-10 Thread Tobias Hieta via cfe-commits
tru wrote: @tomekpaszek do you plan to finish this PR? we have been testing it internally on our code and would really like this to land in upstream LLVM. https://github.com/llvm/llvm-project/pull/70338 ___ cfe-commits mailing list cfe-commits@lists.l

[llvm] [clang] [AArch64][SME2] Add ldr_zt, str_zt builtins and intrinsics (PR #71795)

2023-11-10 Thread Matthew Devereau via cfe-commits
https://github.com/MDevereau updated https://github.com/llvm/llvm-project/pull/71795 >From 9846bc9efd79e6e3c2662ea42367c102df88799d Mon Sep 17 00:00:00 2001 From: Matt Devereau Date: Thu, 9 Nov 2023 10:50:05 + Subject: [PATCH 1/4] [AArch64][SME2] Add ldr_zt, str_zt builtins and intrinsics

[llvm] [clang] [AArch64][SME2] Add ldr_zt, str_zt builtins and intrinsics (PR #71795)

2023-11-10 Thread Matthew Devereau via cfe-commits
https://github.com/MDevereau updated https://github.com/llvm/llvm-project/pull/71795 >From 9846bc9efd79e6e3c2662ea42367c102df88799d Mon Sep 17 00:00:00 2001 From: Matt Devereau Date: Thu, 9 Nov 2023 10:50:05 + Subject: [PATCH 1/4] [AArch64][SME2] Add ldr_zt, str_zt builtins and intrinsics

[llvm] [clang] [AArch64][SME2] Add ldr_zt, str_zt builtins and intrinsics (PR #71795)

2023-11-10 Thread Matthew Devereau via cfe-commits
MDevereau wrote: Well spotted - I forgot to delete these. Removed https://github.com/llvm/llvm-project/pull/71795 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

  1   2   3   >