[llvm] [compiler-rt] [libcxx] [clang] [mlir] [clang-tools-extra] [CostModel][X86] Fix fpext conversion cost for 16 elements (PR #76278)

2023-12-24 Thread via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/76278 >From 87f3d68e82dcc752aa727f62b8b1b56b1257b343 Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Sat, 23 Dec 2023 13:16:02 +0800 Subject: [PATCH 1/2] [CostModel][X86] Track fpext conversion for 16 elements ---

[llvm] [clang-tools-extra] [compiler-rt] [mlir] [clang] [libcxx] [CostModel][X86] Fix fpext conversion cost for 16 elements (PR #76278)

2023-12-24 Thread via cfe-commits
HaohaiWen wrote: > Please can you confirm this as llvm-mca predicts worse case (znver4) to be 4 > https://llvm.godbolt.org/z/fxWTaf3Gv Currenttly, uiCA don't support Zen4 and I don't have Zen4 machine. I can measure it on local SKX machine with nanoBench (https://github.com/andreas-abel/nanoBe

[compiler-rt] [clang-tools-extra] [clang] [libcxx] [mlir] [llvm] [RegAllocFast] Lazily initialize InstrPosIndexes for each MBB (PR #76275)

2023-12-24 Thread via cfe-commits
https://github.com/HaohaiWen closed https://github.com/llvm/llvm-project/pull/76275 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][driver] Fix unused var warnings in if statements (PR #76346)

2023-12-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Max Winkler (MaxEW707) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/76346.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/Clang.cpp (+4-4) ``diff diff --git a/clang/lib/Driver/ToolChains/C

[clang] [clang][driver] Fix unused var warnings in if statements (PR #76346)

2023-12-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Max Winkler (MaxEW707) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/76346.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/Clang.cpp (+4-4) ``diff diff --git a/clang/lib/Driver/ToolC

[clang] [Clang] Implement the 'counted_by' attribute (PR #76348)

2023-12-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Bill Wendling (bwendling) Changes The 'counted_by' attribute is used on flexible array members. The argument for the attribute is the name of the field member holding the count of elements in the flexible array. This information is used to

[clang] 9b99a30 - [clang][ASTImporter] skip TemplateTypeParmDecl in VisitTypeAliasTemplateDecl (#74919)

2023-12-24 Thread via cfe-commits
Author: Qizhi Hu Date: 2023-12-25T10:13:35+08:00 New Revision: 9b99a307b225d0db071a5cc68cbe4f5a0534e724 URL: https://github.com/llvm/llvm-project/commit/9b99a307b225d0db071a5cc68cbe4f5a0534e724 DIFF: https://github.com/llvm/llvm-project/commit/9b99a307b225d0db071a5cc68cbe4f5a0534e724.diff LOG:

[clang-tools-extra] [clang] Fixed clang-tidy rewriter not properly handling symlinks (PR #76350)

2023-12-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Félix-Antoine Constantin (felix642) Changes Rewriter would not properly fix files if they were symlinked and using --fix with clang-tidy would overwrite the symlink with the corrections rather than the file. With these changes the Rewrit

[clang] [clang-format] Fix handling of C-Style variable definition of a struct (PR #76344)

2023-12-24 Thread via cfe-commits
https://github.com/XDeme edited https://github.com/llvm/llvm-project/pull/76344 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [compiler-rt] [mlir] [emacs][lsp][tblgen] add tblgen-lsp-server support for emacs lsp-mode (PR #76337)

2023-12-24 Thread via cfe-commits
https://github.com/mgcsysinfcat updated https://github.com/llvm/llvm-project/pull/76337 >From b530c6dfc9d2e098b3634ea720f0b0bfde0d411f Mon Sep 17 00:00:00 2001 From: mgcsysinfcat Date: Sun, 24 Dec 2023 23:00:00 +0800 Subject: [PATCH] add tblgen-lsp-server support for lsp-mode --- mlir/utils/e

[clang] [llvm] [RFC][RISCV] Support RISC-V Profiles in -march option (PR #76357)

2023-12-25 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 48f36c6e742e743e33f931536c653bf4e23568fb f9d4a2be0f1e1b8815d2feaebdc918d501c776da --

[clang-tools-extra] 952d344 - [clang-tidy] introduce a unused local non trival variable check (#76101)

2023-12-25 Thread via cfe-commits
Author: Tyler Rockwood Date: 2023-12-25T12:19:53+01:00 New Revision: 952d344f3e25a352bc5f2f1f5f611e96bd7acb91 URL: https://github.com/llvm/llvm-project/commit/952d344f3e25a352bc5f2f1f5f611e96bd7acb91 DIFF: https://github.com/llvm/llvm-project/commit/952d344f3e25a352bc5f2f1f5f611e96bd7acb91.diff

[libcxx] [mlir] [polly] [llvm] [lld] [clang-tools-extra] [clang] [compiler-rt] [emacs][lsp][tblgen] add tblgen-lsp-server support for emacs lsp-mode (PR #76337)

2023-12-25 Thread via cfe-commits
https://github.com/mgcsysinfcat updated https://github.com/llvm/llvm-project/pull/76337 >From b530c6dfc9d2e098b3634ea720f0b0bfde0d411f Mon Sep 17 00:00:00 2001 From: mgcsysinfcat Date: Sun, 24 Dec 2023 23:00:00 +0800 Subject: [PATCH] add tblgen-lsp-server support for lsp-mode --- mlir/utils/e

[clang] [flang] [flang][driver] Remove Fortain_main static library from linking stages (PR #75816)

2023-12-25 Thread via cfe-commits
https://github.com/kkwli edited https://github.com/llvm/llvm-project/pull/75816 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [flang][driver] Remove Fortain_main static library from linking stages (PR #75816)

2023-12-25 Thread via cfe-commits
@@ -163,6 +163,63 @@ forward compiler options to the frontend driver, `flang-new -fc1`. You can read more on the design of `clangDriver` in Clang's [Driver Design & Internals](https://clang.llvm.org/docs/DriverInternals.html). +## Linker Driver +When used as a linker, Flang's

[clang] [flang] [flang][driver] Remove Fortain_main static library from linking stages (PR #75816)

2023-12-25 Thread via cfe-commits
https://github.com/kkwli approved this pull request. LG. Thanks. https://github.com/llvm/llvm-project/pull/75816 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement P2718R0 "Lifetime extension in range-based for loops" (PR #76361)

2023-12-25 Thread via cfe-commits
https://github.com/yronglin created https://github.com/llvm/llvm-project/pull/76361 Implement P2718R0 "Lifetime extension in range-based for loops" (https://wg21.link/P2718R0) Differential Revision: https://reviews.llvm.org/D153701 >From a2eee6194f710c53bc478d57838477d1bc912024 Mon Sep 17 00

[clang] [Clang] Implement P2718R0 "Lifetime extension in range-based for loops" (PR #76361)

2023-12-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (yronglin) Changes Implement P2718R0 "Lifetime extension in range-based for loops" (https://wg21.link/P2718R0) Differential Revision: https://reviews.llvm.org/D153701 --- Patch is 43.09 KiB, truncated to 20.00 KiB below, full vers

[clang] [Clang] Implement P2718R0 "Lifetime extension in range-based for loops" (PR #76361)

2023-12-25 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 6452395561eaae59e38f1df84f5413dffdb9169f a2eee6194f710c53bc478d57838477d1bc912024 --

[clang] [Clang] Implement P2718R0 "Lifetime extension in range-based for loops" (PR #76361)

2023-12-25 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/76361 >From 82367b98393c987df6422b6c1c112e9f5d681047 Mon Sep 17 00:00:00 2001 From: yronglin Date: Sun, 26 Nov 2023 22:52:03 +0800 Subject: [PATCH] [Clang] Implement P2718R0 "Lifetime extension in range-based for loo

[clang-tools-extra] [clangd] Ensure `-isysroot` in the original command is respected (PR #75694)

2023-12-25 Thread via cfe-commits
https://github.com/kon72 updated https://github.com/llvm/llvm-project/pull/75694 >From 5a295dd5a4bfe10cf0ea7ba94f9f687b951a68c3 Mon Sep 17 00:00:00 2001 From: kon72 Date: Sat, 16 Dec 2023 17:39:46 +0900 Subject: [PATCH] [clangd] Fix sysroot flag handling in CommandMangler to prevent duplicates

[clang-tools-extra] [clangd] Ensure `-isysroot` in the original command is respected (PR #75694)

2023-12-25 Thread via cfe-commits
https://github.com/kon72 edited https://github.com/llvm/llvm-project/pull/75694 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement P2718R0 "Lifetime extension in range-based for loops" (PR #76361)

2023-12-25 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/76361 >From af44c06aabab3f6ae15d60b2473ff03934a6f39a Mon Sep 17 00:00:00 2001 From: yronglin Date: Tue, 26 Dec 2023 00:15:25 +0800 Subject: [PATCH] [Clang] Implement P2718R0 "Lifetime extension in range-based for loo

[clang-tools-extra] [clangd] Fix sysroot flag handling in CommandMangler to prevent duplicates (PR #75694)

2023-12-25 Thread via cfe-commits
https://github.com/kon72 edited https://github.com/llvm/llvm-project/pull/75694 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add bugprone-chained-comparison check (PR #76365)

2023-12-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Piotr Zegar (PiotrZSL) Changes Check that flags chained comparison expressions, such as a < b < c or a == b == c, which may have unintended behavior due to implicit operator associativity. Moved from Phabricator (D144429). --- Full

[clang] 9d6837d - [flang][driver] Remove Fortain_main static library from linking stages (#75816)

2023-12-25 Thread via cfe-commits
Author: Michael Klemm Date: 2023-12-25T19:15:00+01:00 New Revision: 9d6837d595719904720e5ff68ec1f1a2665bdc2f URL: https://github.com/llvm/llvm-project/commit/9d6837d595719904720e5ff68ec1f1a2665bdc2f DIFF: https://github.com/llvm/llvm-project/commit/9d6837d595719904720e5ff68ec1f1a2665bdc2f.diff

[clang-tools-extra] 8c24422 - [clang-tidy] add std::span to the default types. (#76116)

2023-12-25 Thread via cfe-commits
Author: Da-Viper Date: 2023-12-25T19:59:08+01:00 New Revision: 8c24422cd4a5ec458950e135f62d9b14a96e75cc URL: https://github.com/llvm/llvm-project/commit/8c24422cd4a5ec458950e135f62d9b14a96e75cc DIFF: https://github.com/llvm/llvm-project/commit/8c24422cd4a5ec458950e135f62d9b14a96e75cc.diff LOG:

[clang] [clang-format] Stop aligning the to continuation lines (PR #76378)

2023-12-25 Thread via cfe-commits
https://github.com/sstwcw created https://github.com/llvm/llvm-project/pull/76378 Some unwrapped lines are marked as continuations of the previous lines, for example the ports in a Verilog module header. Previously, if the first line following the ports lines was changed, and git-clang-format

[clang] [clang-format] Stop aligning the to continuation lines (PR #76378)

2023-12-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (sstwcw) Changes Some unwrapped lines are marked as continuations of the previous lines, for example the ports in a Verilog module header. Previously, if the first line following the ports lines was changed, and git-clang-for

[clang] [Clang] support vector subscript expressions in constant evaluator (WIP) (PR #76379)

2023-12-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vikram Hegde (vikramRH) Changes Feel free to add additional reviewers as relevant, I'm yet to update float test cases as I'm not sure whether it would be safe to directly compare float results in static assert. Would it okay to integer ca

[clang] [clang-tools-extra] [llvm] [MCP] Enhance MCP copy Instruction removal for special case(reapply) (PR #74239)

2023-12-25 Thread via cfe-commits
https://github.com/LWenH updated https://github.com/llvm/llvm-project/pull/74239 >From 8e7399015e74059731ea19468d2ee514a9a3e9a4 Mon Sep 17 00:00:00 2001 From: LWenH <924105...@qq.com> Date: Sun, 3 Dec 2023 19:59:49 +0800 Subject: [PATCH 1/2] [mcp] Bug fix for reverted patch 70778 In pr 70778, wh

[clang-tools-extra] c019ed9 - Allow to pass config file to clang-tidy-diff (#75457)

2023-12-25 Thread via cfe-commits
Author: Michael Lettrich Date: 2023-12-26T08:40:40+01:00 New Revision: c019ed972f95cd17838b6d01257383539a5d889c URL: https://github.com/llvm/llvm-project/commit/c019ed972f95cd17838b6d01257383539a5d889c DIFF: https://github.com/llvm/llvm-project/commit/c019ed972f95cd17838b6d01257383539a5d889c.di

[clang] [clang-tools-extra] [llvm] [MCP] Enhance MCP copy Instruction removal for special case(reapply) (PR #74239)

2023-12-25 Thread via cfe-commits
LWenH wrote: Since the corner case bug of https://github.com/llvm/llvm-project/issues/73512 has been addressed and fixed, and the original patch for this reapply https://github.com/llvm/llvm-project/pull/70778 has been approved, I try to recommit this patch :-) https://github.com/llvm/llvm-pr

[clang] [RISCV][NFC] Use RISCVISAInfo instead of string comparison (PR #76387)

2023-12-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Wang Pengcheng (wangpc-pp) Changes The arch string may not start with rv32/rv64 if we have supported profiles in `-march`. --- Full diff: https://github.com/llvm/llvm-project/pull/76387.diff 1 Files Affected: - (modified) clang/

[clang-tools-extra] [clang] [llvm] [MCP] Enhance MCP copy Instruction removal for special case(reapply) (PR #74239)

2023-12-26 Thread via cfe-commits
https://github.com/LWenH closed https://github.com/llvm/llvm-project/pull/74239 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1d76692 - [RISCV][MC] Add support for experimental Zimop extension (#75182)

2023-12-26 Thread via cfe-commits
Author: Jivan Hakobyan Date: 2023-12-26T17:21:38+08:00 New Revision: 1d76692cf831aa27c4743999c8cd416e38810e67 URL: https://github.com/llvm/llvm-project/commit/1d76692cf831aa27c4743999c8cd416e38810e67 DIFF: https://github.com/llvm/llvm-project/commit/1d76692cf831aa27c4743999c8cd416e38810e67.diff

[clang-tools-extra] 9dcc665 - [clang-tidy] Don't replace typedefs in extern c scope (#69102)

2023-12-26 Thread via cfe-commits
Author: Da-Viper Date: 2023-12-26T10:27:10+01:00 New Revision: 9dcc66578e12ad8e72c8ae7216122a1125976ac5 URL: https://github.com/llvm/llvm-project/commit/9dcc66578e12ad8e72c8ae7216122a1125976ac5 DIFF: https://github.com/llvm/llvm-project/commit/9dcc66578e12ad8e72c8ae7216122a1125976ac5.diff LOG:

[clang-tools-extra] [libcxxabi] [libcxx] [llvm] [clang] [libc++] [libc++abi] Initialize exception directly in make_exception_ptr if __cxa_init_primary_exception is available in ABI-library (PR #65534)

2023-12-26 Thread via cfe-commits
@@ -51,11 +71,25 @@ class _LIBCPP_EXPORTED_FROM_ABI exception_ptr { template _LIBCPP_HIDE_FROM_ABI exception_ptr make_exception_ptr(_Ep __e) _NOEXCEPT { # ifndef _LIBCPP_HAS_NO_EXCEPTIONS +#if _LIBCPP_AVAILABILITY_HAS_INIT_PRIMARY_EXCEPTION + using _Ep2 = __decay_t<_Ep>;

[clang-tools-extra] [libcxxabi] [libcxx] [llvm] [clang] [libc++] [libc++abi] Initialize exception directly in make_exception_ptr if __cxa_init_primary_exception is available in ABI-library (PR #65534)

2023-12-26 Thread via cfe-commits
itrofimow wrote: I've addressed/answered inline comments and the build is finally green. I'm not particularly in love with declaring `__cxa_allocate_exception`, `__cxa_free_exception` and `__cxa_init_primary_exception` in `exception_ptr.h`, but i find it's better than including whole `cxxabi.h

[clang] [RISCV][Clang] Remove default feature -save-restore. (PR #76390)

2023-12-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-risc-v Author: Yeting Kuo (yetingk) Changes It's unnecessary to defaultly pass feature `-save-restore`, since risc-v backend defaultly disables save-restore functionality. --- Full di

[llvm] [clang] [RISCV][MC] Add support for experimental Zcmop extension (PR #76395)

2023-12-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-support Author: Wang Pengcheng (wangpc-pp) Changes This implements experimental support for the Zcmop extension as specified here: https://github.com/riscv/riscv-isa-manual/blob/main/src/zimop.adoc. This change adds only MC support. --- Full dif

[clang-tools-extra] aca3727 - [clang-tidy] Treat fields in anonymous records as names in enclosing scope when checking name styles (#75701)

2023-12-26 Thread via cfe-commits
Author: Sirui Mu Date: 2023-12-26T15:49:41+01:00 New Revision: aca3727e97bced3e98f8e0719de95c93034a97d2 URL: https://github.com/llvm/llvm-project/commit/aca3727e97bced3e98f8e0719de95c93034a97d2 DIFF: https://github.com/llvm/llvm-project/commit/aca3727e97bced3e98f8e0719de95c93034a97d2.diff LOG:

[clang] [clang-format] Fix handling of C-Style variable definition of a struct (PR #76344)

2023-12-26 Thread via cfe-commits
https://github.com/XDeme updated https://github.com/llvm/llvm-project/pull/76344 >From a55c720f344645bdad3838aaa39b136c8b8ee6dc Mon Sep 17 00:00:00 2001 From: XDeme Date: Sun, 24 Dec 2023 20:18:02 -0300 Subject: [PATCH 1/2] [clang-format] Fix handling of C-Style variable definition of a struct

[clang] [clang-format] Fix handling of C-Style variable definition of a struct (PR #76344)

2023-12-26 Thread via cfe-commits
https://github.com/XDeme updated https://github.com/llvm/llvm-project/pull/76344 >From a55c720f344645bdad3838aaa39b136c8b8ee6dc Mon Sep 17 00:00:00 2001 From: XDeme Date: Sun, 24 Dec 2023 20:18:02 -0300 Subject: [PATCH 1/3] [clang-format] Fix handling of C-Style variable definition of a struct

[libcxx] [clang] [mlir] [clang-tools-extra] [flang] [libc] [compiler-rt] [llvm] [mlir][Linalg] Support dynamic tiles in `lower_pack` transform (PR #76003)

2023-12-26 Thread via cfe-commits
https://github.com/srcarroll updated https://github.com/llvm/llvm-project/pull/76003 >From 860a2f794bdf12ff1f08d4802570757e805264b0 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 18 Dec 2023 15:53:41 -0600 Subject: [PATCH 1/8] [mlir][Linalg] Support dynamic sizes in `lower_pack` transform ---

[clang] 4358e6e - [FuncAttrs] Infer `norecurse` for funcs with calls to `nocallback` callees (#76372)

2023-12-26 Thread via cfe-commits
Author: Yingwei Zheng Date: 2023-12-27T03:16:43+08:00 New Revision: 4358e6e0c5b1f08de60b6b2fb015a06ab6760ee7 URL: https://github.com/llvm/llvm-project/commit/4358e6e0c5b1f08de60b6b2fb015a06ab6760ee7 DIFF: https://github.com/llvm/llvm-project/commit/4358e6e0c5b1f08de60b6b2fb015a06ab6760ee7.diff

[clang-tools-extra] [clangd][SymbolCollector] Treat ObjC methods as spelled (PR #76410)

2023-12-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: David Goldman (DavidGoldman) Changes We'll treat multi-arg methods as spelled once we have full rename support for them. --- Full diff: https://github.com/llvm/llvm-project/pull/76410.diff 2 Files Affected: - (modified) clang-tools-ex

[clang-tools-extra] [clangd][SymbolCollector] Treat ObjC methods as spelled (PR #76410)

2023-12-26 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 8b485070844d03cda467e75aa8c924184ba671cf 4caf5b3c779bf18236b4b0be5bc7147d10339f2b --

[clang] [clang-format] Fix handling of C-Style variable definition of a struct (PR #76344)

2023-12-26 Thread via cfe-commits
https://github.com/XDeme edited https://github.com/llvm/llvm-project/pull/76344 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix handling of C-Style variable definition of a struct (PR #76344)

2023-12-26 Thread via cfe-commits
https://github.com/XDeme edited https://github.com/llvm/llvm-project/pull/76344 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][StaticAnalyzer] adding timingasafe* api calls interception. (PR #76414)

2023-12-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 @llvm/pr-subscribers-clang Author: David CARLIER (devnexen) Changes timingsafe_bcmp and timingsafe_memcmp have the same signature as their counterparts. --- Full diff: https://github.com/llvm/llvm-project/pull/76414.diff 1 Fil

[clang] [clang-cl] document correct defaults for `-fms-compatibility-version` / `-fmsc-version` (PR #76418)

2023-12-26 Thread via cfe-commits
https://github.com/h-vetinari created https://github.com/llvm/llvm-project/pull/76418 The UserManual states wrongly (AFAICT) that these default are not being defined for clang-cl, whereas further up the opposite is stated: https://github.com/llvm/llvm-project/blob/c86fe3ee0b92934f5d18394d9a0cd

[clang] [clang-cl] document correct defaults for `-fms-compatibility-version` / `-fmsc-version` (PR #76418)

2023-12-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (h-vetinari) Changes The UserManual states wrongly (AFAICT) that these default are not being defined for clang-cl, whereas further up the opposite is stated: https://github.com/llvm/llvm-project/blob/c86fe3ee0b92934f5d18394d9a0cdc1d3

[clang] 8ddb0fc - [X86] Correct operand order of UWRMSR. (#76389)

2023-12-26 Thread via cfe-commits
Author: Freddy Ye Date: 2023-12-27T09:01:55+08:00 New Revision: 8ddb0fcff9ec73aeef20b1288b4ab5e03cd0bd56 URL: https://github.com/llvm/llvm-project/commit/8ddb0fcff9ec73aeef20b1288b4ab5e03cd0bd56 DIFF: https://github.com/llvm/llvm-project/commit/8ddb0fcff9ec73aeef20b1288b4ab5e03cd0bd56.diff LOG

[clang] ce0c149 - [RISCV][Clang] Remove -save-restore from default features. (#76390)

2023-12-26 Thread via cfe-commits
Author: Yeting Kuo Date: 2023-12-27T09:12:35+08:00 New Revision: ce0c149f65d9fe708b91610fb94d3db443247262 URL: https://github.com/llvm/llvm-project/commit/ce0c149f65d9fe708b91610fb94d3db443247262 DIFF: https://github.com/llvm/llvm-project/commit/ce0c149f65d9fe708b91610fb94d3db443247262.diff LO

[clang] [llvm] [X86] Remove RAO-INT from Grandridge (PR #76420)

2023-12-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 @llvm/pr-subscribers-clang Author: Freddy Ye (FreddyLeaf) Changes According to latest spec: https://cdrdv2.intel.com/v1/dl/getContent/671368 --- Full diff: https://github.com/llvm/llvm-project/pull/76420.diff 3 Files Affected: - (modifie

[clang] [RISCV] Remove redundant variable Log2LMUL from vset intrinsic. NFC (PR #76422)

2023-12-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-clang Author: Jim Lin (tclin914) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/76422.diff 1 Files Affected: - (modified) clang/include/clang/Basic/riscv_vector.td (+3-5) ``diff diff -

[lld] [clang-tools-extra] [mlir] [clang] [flang] [libcxx] [polly] [compiler-rt] [llvm] [CostModel][X86] Fix fpext conversion cost for 16 elements (PR #76278)

2023-12-26 Thread via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/76278 >From 87f3d68e82dcc752aa727f62b8b1b56b1257b343 Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Sat, 23 Dec 2023 13:16:02 +0800 Subject: [PATCH 1/2] [CostModel][X86] Track fpext conversion for 16 elements ---

[clang] 039d9aa - [RISCV] Remove redundant variable Log2LMUL from vset intrinsic. NFC (#76422)

2023-12-26 Thread via cfe-commits
Author: Jim Lin Date: 2023-12-27T14:14:50+08:00 New Revision: 039d9aa56e9432e119c4b62e575f74fcf3cacb82 URL: https://github.com/llvm/llvm-project/commit/039d9aa56e9432e119c4b62e575f74fcf3cacb82 DIFF: https://github.com/llvm/llvm-project/commit/039d9aa56e9432e119c4b62e575f74fcf3cacb82.diff LOG:

[clang] [RISCV][NFC] Use errorToBool (PR #76429)

2023-12-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Wang Pengcheng (wangpc-pp) Changes To reduce calls to `consumeError`. --- Full diff: https://github.com/llvm/llvm-project/pull/76429.diff 4 Files Affected: - (modified) clang/lib/Basic/Targets/RISCV.cpp (+1-2) - (modified) clan

[clang] [RISCV][NFC] Use errorToBool (PR #76429)

2023-12-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Wang Pengcheng (wangpc-pp) Changes To reduce calls to `consumeError`. --- Full diff: https://github.com/llvm/llvm-project/pull/76429.diff 4 Files Affected: - (modified) clang/lib/Basic/Targets/RISCV.cpp (+1-2) - (modified) cl

[clang-tools-extra] 72390c5 - [clang-tidy][misleading-indentation]ignore false-positives for line started with empty macro (#75061)

2023-12-27 Thread via cfe-commits
Author: Congcong Cai Date: 2023-12-27T16:16:57+08:00 New Revision: 72390c5c56c5f6a2c2d55231d96f03471eee8cb4 URL: https://github.com/llvm/llvm-project/commit/72390c5c56c5f6a2c2d55231d96f03471eee8cb4 DIFF: https://github.com/llvm/llvm-project/commit/72390c5c56c5f6a2c2d55231d96f03471eee8cb4.diff

[clang] [clang][ASTImporter][StructuralEquivalence] improve StructuralEquivalence on recordType (PR #76226)

2023-12-27 Thread via cfe-commits
https://github.com/DonatNagyE approved this pull request. https://github.com/llvm/llvm-project/pull/76226 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][RISCV] Forward --no-relax option to linker for RISC-V (PR #76432)

2023-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Andreu Carminati (andcarminati) Changes In the case of -mno-relax option. Otherwise, we cannot prevent relaxation if we split compilation and linking using Clang driver. One can consider the following use

[clang] [Clang][RISCV] Forward --no-relax option to linker for RISC-V (PR #76432)

2023-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Andreu Carminati (andcarminati) Changes In the case of -mno-relax option. Otherwise, we cannot prevent relaxation if we split compilation and linking using Clang driver. One can consider the following use case: clang [...] -c -o

[clang] [analyzer][docs] Update the release notes for llvm-18 (PR #76446)

2023-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balazs Benics (steakhal) Changes This PR prepares the release notes of the Clang Static Analyzer for the llvm-18 release branch, due in about a week. See the regular [release schedule](https://llvm.org/docs/HowToReleaseL

[libcxx] [clang] [llvm] [libc] [compiler-rt] [clang-tools-extra] [lldb] [flang] [libc++][variant] P2637R3 - Member `visit` (PR #76447)

2023-12-27 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 886655869cef2e0f11da8981da30d70ad7892ff9...653ec7af66441bf9f9885622cec12c48322767b8 libcx

[compiler-rt] [flang] [clang-tools-extra] [llvm] [libc] [lldb] [libcxx] [clang] [libc++][variant] P2637R3: Member `visit` (PR #76447)

2023-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libcxx Author: Hristo Hristov (H-G-Hristov) Changes Implements parts of: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2637r3.html (https://eel.is/c++draft/variant.visit) Adds member `visit` tests and (NFC) refactors + reformats the non-me

[clang] [clang][modules] Print library module manifest path. (PR #76451)

2023-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Mark de Wever (mordante) Changes This implements a way for the compiler to find the modules.json associated with the C++23 Standard library modules. This is based on a discussion in SG15. At the moment no

[clang-tools-extra] Add support for renaming objc methods, even those with multiple selector pieces (PR #76466)

2023-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: David Goldman (DavidGoldman) Changes This is based on top of #76410 --- Patch is 37.52 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/76466.diff 11 Files Affected: - (modified) clang-tool

[clang-tools-extra] Add support for renaming objc methods, even those with multiple selector pieces (PR #76466)

2023-12-27 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 8b485070844d03cda467e75aa8c924184ba671cf 76385b51db0e33a25df9646eb6d59f04a4f65af7 --

[clang] [compiler-rt] [clang-tools-extra] [PGO] Exposing PGO's Counter Reset and File Dumping APIs (PR #76471)

2023-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qiongsi Wu (qiongsiwu) Changes This PR exposes three PGO functions `__llvm_profile_reset_counters`, `__llvm_profile_dump` and `__llvm_orderfile_dump` to user programs through the new header `instr_prof_interface.h` under `compiler-rt/incl

[clang] [Serialization] Fix instantiated default arguments (PR #76473)

2023-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Jonas Hahnfeld (hahnjo) Changes `ParmVarDecl::getDefaultArg()` strips the outermost `FullExpr`, such as `ExprWithCleanups`. This leads to an `llvm_unreachable` being executed with the added test `clang/test/Modules/pr68702.cpp`; i

[clang] [clang] Add basic support for #embed. (PR #76480)

2023-12-27 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it i

[clang] [clang] Add basic support for #embed. (PR #76480)

2023-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Junior Rantila (juniorrantila) Changes This patch takes the first steps toward C23 #embed support. We can include binary files, but embed-parameter-sequences are not implemented. Adding the embedded file to the -M dependency array is also

[clang-tools-extra] Fix #75686: add iter_swap and iter_move to the matched name (PR #76117)

2023-12-27 Thread via cfe-commits
https://github.com/Da-Viper updated https://github.com/llvm/llvm-project/pull/76117 >From 97eeda4684804229d9faad19ea7b7888dcd91786 Mon Sep 17 00:00:00 2001 From: Ezike Ebuka Date: Thu, 21 Dec 2023 02:30:34 + Subject: [PATCH 1/2] Fix #75686: add iter_swap and iter_move to the matched name

[clang] [clang] Add basic support for #embed. (PR #76480)

2023-12-27 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 38c9390b59c4d2b9181614d6a909887497d3692f 00e9c665c18c1efafc15e293ea6dc35b1ed32e48 --

[clang] 19e7846 - [X86] Remove RAO-INT from Grandridge (#76420)

2023-12-27 Thread via cfe-commits
Author: Freddy Ye Date: 2023-12-28T10:06:54+08:00 New Revision: 19e784604c70d27cd6f3b2cf5d42e4363af12264 URL: https://github.com/llvm/llvm-project/commit/19e784604c70d27cd6f3b2cf5d42e4363af12264 DIFF: https://github.com/llvm/llvm-project/commit/19e784604c70d27cd6f3b2cf5d42e4363af12264.diff LOG

[clang-tools-extra] [clangd] Fix sysroot flag handling in CommandMangler to prevent duplicates (PR #75694)

2023-12-27 Thread via cfe-commits
kon72 wrote: Hello @HighCommander4 , Could you take a look at this change? Thanks! https://github.com/llvm/llvm-project/pull/75694 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5c27e00 - [RISCV][NFC] Use errorToBool (#76429)

2023-12-27 Thread via cfe-commits
Author: Wang Pengcheng Date: 2023-12-28T12:59:11+08:00 New Revision: 5c27e00055e920c435fdb3883e233b3533576559 URL: https://github.com/llvm/llvm-project/commit/5c27e00055e920c435fdb3883e233b3533576559 DIFF: https://github.com/llvm/llvm-project/commit/5c27e00055e920c435fdb3883e233b3533576559.diff

[clang] 705065f - [RISCV][NFC] Use RISCVISAInfo instead of string comparison (#76387)

2023-12-27 Thread via cfe-commits
Author: Wang Pengcheng Date: 2023-12-28T13:00:43+08:00 New Revision: 705065f365a9df5c26bd37f2a3380427da1b1b7f URL: https://github.com/llvm/llvm-project/commit/705065f365a9df5c26bd37f2a3380427da1b1b7f DIFF: https://github.com/llvm/llvm-project/commit/705065f365a9df5c26bd37f2a3380427da1b1b7f.diff

[clang] 13cdee9 - [RISCV][MC] Add support for experimental Zcmop extension (#76395)

2023-12-27 Thread via cfe-commits
Author: Wang Pengcheng Date: 2023-12-28T13:03:16+08:00 New Revision: 13cdee9047d24d84505c469481563c3fb55e4131 URL: https://github.com/llvm/llvm-project/commit/13cdee9047d24d84505c469481563c3fb55e4131 DIFF: https://github.com/llvm/llvm-project/commit/13cdee9047d24d84505c469481563c3fb55e4131.diff

[clang] 9807305 - [RISCV] Refactor checkRVVTypeSupport to use BuiltinVectorTypeInfo. (#74949)

2023-12-27 Thread via cfe-commits
Author: Craig Topper Date: 2023-12-27T21:53:27-08:00 New Revision: 98073057ee45bc4a9256ecc70dc3da20b0fd5d3b URL: https://github.com/llvm/llvm-project/commit/98073057ee45bc4a9256ecc70dc3da20b0fd5d3b DIFF: https://github.com/llvm/llvm-project/commit/98073057ee45bc4a9256ecc70dc3da20b0fd5d3b.diff

[clang] 471f8f5 - [RISCV] Prevent checkRVVTypeSupport from issuing more than 1 diagnostic. (#74950)

2023-12-27 Thread via cfe-commits
Author: Craig Topper Date: 2023-12-27T23:44:45-08:00 New Revision: 471f8f50d0790cd7e77b8b385d8592c95df53974 URL: https://github.com/llvm/llvm-project/commit/471f8f50d0790cd7e77b8b385d8592c95df53974 DIFF: https://github.com/llvm/llvm-project/commit/471f8f50d0790cd7e77b8b385d8592c95df53974.diff

[clang-tools-extra] [clangd] Avoid crash when summarizing pointer-to-member expr for block-end hint (PR #76492)

2023-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/clangd/clangd/issues/1873 --- Full diff: https://github.com/llvm/llvm-project/pull/76492.diff 2 Files Affected: - (modified) clang-tools-extra/clangd/InlayHints.cpp (+1-1)

[clang] [clang][ASTImporter] import InstantiatedFromMember of ClassTemplateSpecializationDecl (PR #76493)

2023-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qizhi Hu (jcsxky) Changes import of `ClassTemplateSpecializationDecl` didn't set `InstantiatedFromMember` and this makes ast-dump crash. import and set `InstantiatedFromMember`. fix [issue](https://github.com/llvm/llvm-project/issues/7646

[llvm] [clang] [PowerPC] Implement fence builtin (PR #76495)

2023-12-28 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 36fd7291cdd85b282950d3782758353d259e aaa11bc775b9aa3a0398ba2bbca4087e99f04243 --

[llvm] [clang] [lld] [Propeller] Add new flag option '-basic-block-sections=listwithlabels=' to support to use Propeller iteratively. (PR #76497)

2023-12-28 Thread via cfe-commits
https://github.com/lifengxiang1025 created https://github.com/llvm/llvm-project/pull/76497 As discuss in https://discourse.llvm.org/t/is-it-possible-to-use-propeller-iteratively/67560. Add new option listwithlabels to emit llvm_bb_addr_map section when Propeller is enabled. This can be used f

[lld] [clang] [llvm] [Propeller] Add new flag option '-basic-block-sections=listwithlabels=' to support to use Propeller iteratively. (PR #76497)

2023-12-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang-codegen Author: None (lifengxiang1025) Changes As discuss in https://discourse.llvm.org/t/is-it-possible-to-use-propeller-iteratively/67560. Add new option listwithlabels to emit llvm_bb_addr_map section when Pro

[clang] [llvm] [lld] [Propeller] Add new flag option '-basic-block-sections=listwithlabels=' to support to use Propeller iteratively. (PR #76497)

2023-12-28 Thread via cfe-commits
https://github.com/lifengxiang1025 edited https://github.com/llvm/llvm-project/pull/76497 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[lld] [llvm] [clang] [Propeller] Add new flag option '-basic-block-sections=listwithlabels=' to support to use Propeller iteratively. (PR #76497)

2023-12-28 Thread via cfe-commits
https://github.com/lifengxiang1025 edited https://github.com/llvm/llvm-project/pull/76497 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Implement fence builtin (PR #76495)

2023-12-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir @llvm/pr-subscribers-clang Author: Qiu Chaofan (ecnelises) Changes This builtin will work as barrier for instruction motion (scheduling, etc.) --- Full diff: https://github.com/llvm/llvm-project/pull/76495.diff 7 Files Affected: - (modified)

[clang] [analyzer][docs] Update the release notes for llvm-18 (PR #76446)

2023-12-28 Thread via cfe-commits
https://github.com/DonatNagyE commented: There are several changes that are only relevant for the users who use alpha checkers. Perhaps it would be a good idea to put those into a separate list (or to the end of the list?). Either way, the update looks good to me, thanks for composing it! htt

[clang] [analyzer][docs] Update the release notes for llvm-18 (PR #76446)

2023-12-28 Thread via cfe-commits
https://github.com/DonatNagyE approved this pull request. (I didn't check all the links, but overall LGTM.) https://github.com/llvm/llvm-project/pull/76446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[llvm] [lld] [clang] [Propeller] Add new flag option '-basic-block-sections=listwithlabels=' to support to use Propeller iteratively. (PR #76497)

2023-12-28 Thread via cfe-commits
https://github.com/lifengxiang1025 updated https://github.com/llvm/llvm-project/pull/76497 >From 38962f1f1128265684c6b7a4ab23d2dad8a08957 Mon Sep 17 00:00:00 2001 From: lifengxiang Date: Thu, 28 Dec 2023 16:57:54 +0800 Subject: [PATCH 1/2] [Propeller] Add new flag option '-basic-block-sections

[llvm] [clang] [lld] [Propeller] Add new flag option '-basic-block-sections=listwithlabels=' to support to use Propeller iteratively. (PR #76497)

2023-12-28 Thread via cfe-commits
https://github.com/lifengxiang1025 updated https://github.com/llvm/llvm-project/pull/76497 >From 8cf469a909d5fa745fe656b94452e5524c8193e7 Mon Sep 17 00:00:00 2001 From: lifengxiang Date: Thu, 28 Dec 2023 16:57:54 +0800 Subject: [PATCH 1/2] [Propeller] Add new flag option '-basic-block-sections

[clang] [analyzer] Add documentation for std::variant checker (PR #76501)

2023-12-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Gábor Spaits (spaits) Changes Add a short documentation for `StdVariantChecker`. --- Full diff: https://github.com/llvm/llvm-project/pull/76501.diff 1 Files Affected: - (modified) clang/docs/analyzer/checkers.rst (+12) ``diff

[clang] [analyzer] Add documentation for std::variant checker (PR #76501)

2023-12-28 Thread via cfe-commits
https://github.com/DonatNagyE requested changes to this pull request. https://github.com/llvm/llvm-project/pull/76501 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Add documentation for std::variant checker (PR #76501)

2023-12-28 Thread via cfe-commits
https://github.com/DonatNagyE edited https://github.com/llvm/llvm-project/pull/76501 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Add documentation for std::variant checker (PR #76501)

2023-12-28 Thread via cfe-commits
@@ -2097,6 +2097,18 @@ This checker is a part of ``core.StackAddressEscape``, but is temporarily disabl .. _alpha-core-TestAfterDivZero: +alpha.core.StdVariant (C++) +""" +Check if the active value accessed in an ``std::variant`` instance. ---

<    40   41   42   43   44   45   46   47   48   49   >