[clang] [llvm] [Coverage] Introduce "partial fold" on BranchRegion (PR #112694)

2024-10-17 Thread Jessica Paquette via cfe-commits
@@ -19,18 +19,18 @@ using namespace coverage; static void sumBranches(size_t &NumBranches, size_t &CoveredBranches, const ArrayRef &Branches) { for (const auto &BR : Branches) { -// Skip folded branches. -if (BR.Folded) - continue; - -

[clang] [llvm] [Coverage] Introduce "partial fold" on BranchRegion (PR #112694)

2024-10-17 Thread Jessica Paquette via cfe-commits
@@ -719,10 +720,10 @@ struct FunctionRecord { Region.Kind == CounterMappingRegion::MCDCBranchRegion) { CountedBranchRegions.emplace_back(Region, Count, FalseCount, HasSingleByteCoverage); - // If both counters are hard-

[clang] [llvm] [Coverage] Introduce "partial fold" on BranchRegion (PR #112694)

2024-10-17 Thread Jessica Paquette via cfe-commits
@@ -719,10 +720,10 @@ struct FunctionRecord { Region.Kind == CounterMappingRegion::MCDCBranchRegion) { CountedBranchRegions.emplace_back(Region, Count, FalseCount, HasSingleByteCoverage); - // If both counters are hard-

[clang] [llvm] [Coverage] Introduce "partial fold" on BranchRegion (PR #112694)

2024-10-17 Thread Jessica Paquette via cfe-commits
@@ -719,10 +720,10 @@ struct FunctionRecord { Region.Kind == CounterMappingRegion::MCDCBranchRegion) { CountedBranchRegions.emplace_back(Region, Count, FalseCount, HasSingleByteCoverage); - // If both counters are hard-

[clang] [RISCV] Check if v extension is enabled by the function features for the builtins not in Zve64*. (PR #112827)

2024-10-17 Thread Jim Lin via cfe-commits
https://github.com/tclin914 closed https://github.com/llvm/llvm-project/pull/112827 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e8509a4 - [RISCV] Check if v extension is enabled by the function features for the builtins not in Zve64*. (#112827)

2024-10-17 Thread via cfe-commits
Author: Jim Lin Date: 2024-10-18T14:39:54+08:00 New Revision: e8509a43acb286181aa84f8035ece3b59562cd10 URL: https://github.com/llvm/llvm-project/commit/e8509a43acb286181aa84f8035ece3b59562cd10 DIFF: https://github.com/llvm/llvm-project/commit/e8509a43acb286181aa84f8035ece3b59562cd10.diff LOG:

[clang] [llvm] [TLI] Add support for the `ilogb` libcall. (PR #112725)

2024-10-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang,llvm` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/6757 Here is the relevant piece of

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [libunwind][libcxx][libcxxabi][compiler-rt-builtins] Fix Exception Handling build for wasm (PR #79667)

2024-10-17 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/79667 >From 2b526821d4e70f3ea83f95d25f804d9fbcf82612 Mon Sep 17 00:00:00 2001 From: cqwrteur <100043421+trcrsi...@users.noreply.github.com> Date: Sat, 1 Jun 2024 02:55:50 -0400 Subject: [PATCH] [libunwind][libcxx][lib

[clang] [clang][AVR] Fix basic type size/alignment values to match avr-gcc. (PR #111290)

2024-10-17 Thread via cfe-commits
https://github.com/aykevl edited https://github.com/llvm/llvm-project/pull/111290 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AVR] Fix basic type size/alignment values to match avr-gcc. (PR #111290)

2024-10-17 Thread via cfe-commits
https://github.com/aykevl commented: I'm not familiar with this code, but this looks reasonable to me. @benshi001 can you also take a look? https://github.com/llvm/llvm-project/pull/111290 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[clang] [llvm] [TLI] Add support for the `ilogb` libcall. (PR #112725)

2024-10-17 Thread via cfe-commits
https://github.com/c8ef closed https://github.com/llvm/llvm-project/pull/112725 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 761fa58 - [TLI] Add support for the `ilogb` libcall. (#112725)

2024-10-17 Thread via cfe-commits
Author: c8ef Date: 2024-10-18T14:20:34+08:00 New Revision: 761fa5844e692dbc7e0dcf8e30e80ef7ba38a317 URL: https://github.com/llvm/llvm-project/commit/761fa5844e692dbc7e0dcf8e30e80ef7ba38a317 DIFF: https://github.com/llvm/llvm-project/commit/761fa5844e692dbc7e0dcf8e30e80ef7ba38a317.diff LOG: [TL

[clang] [RISCV] Check if v extension is enabled by the function features for the builtins not in Zve64*. (PR #112827)

2024-10-17 Thread Jim Lin via cfe-commits
https://github.com/tclin914 updated https://github.com/llvm/llvm-project/pull/112827 >From a1b6a764dd93ecb33b493c14c396c5c040be0412 Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Fri, 18 Oct 2024 11:11:02 +0800 Subject: [PATCH 1/2] [RISCV] Check if v extension is enabled by the function features

[clang] [RISCV] Check if v extension is enabled by the function features for the builtins not in Zve64*. (PR #112827)

2024-10-17 Thread Jim Lin via cfe-commits
https://github.com/tclin914 updated https://github.com/llvm/llvm-project/pull/112827 >From a1b6a764dd93ecb33b493c14c396c5c040be0412 Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Fri, 18 Oct 2024 11:11:02 +0800 Subject: [PATCH 1/3] [RISCV] Check if v extension is enabled by the function features

[clang] [llvm] [PAC] Fix address discrimination for type info vtable pointers (PR #102199)

2024-10-17 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 closed https://github.com/llvm/llvm-project/pull/102199 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6bb6300 - [PAC] Fix address discrimination for type info vtable pointers (#102199)

2024-10-17 Thread via cfe-commits
Author: Daniil Kovalev Date: 2024-10-18T08:58:26+03:00 New Revision: 6bb63002fca8a7cfa9ff8ffd86da4c2ca3d98a3b URL: https://github.com/llvm/llvm-project/commit/6bb63002fca8a7cfa9ff8ffd86da4c2ca3d98a3b DIFF: https://github.com/llvm/llvm-project/commit/6bb63002fca8a7cfa9ff8ffd86da4c2ca3d98a3b.diff

[clang] [flang] [flang][Driver] Add support for -f[no-]wrapv and -f[no]-strict-overflow in the frontend (PR #110061)

2024-10-17 Thread Yusuke MINATO via cfe-commits
yus3710-fj wrote: CI failed due to `ClangdTests/25/79` (`DynamicIndexIncludeInsertion` in CodeCompleteTests.cpp?). It's weird because there is no functional change on clang (and clangd). In addition, I can't reproduce this on my machine. I'll try re-running CI with an empty commit. https://git

[clang] [flang] [flang][Driver] Add support for -f[no-]wrapv and -f[no]-strict-overflow in the frontend (PR #110061)

2024-10-17 Thread Yusuke MINATO via cfe-commits
https://github.com/yus3710-fj updated https://github.com/llvm/llvm-project/pull/110061 >From 6215099ca7da009e98eca138590f78a5e524a1e9 Mon Sep 17 00:00:00 2001 From: Yusuke MINATO Date: Wed, 18 Sep 2024 21:12:43 +0900 Subject: [PATCH 1/2] [flang][Driver] Add support for -f[no-]wrapv and -f[no]-

[clang] clang: Remove requires system-linux from some driver tests (PR #111976)

2024-10-17 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/111976 >From baa479b12bcbe8456bfef79315ad8ee9a2dcb533 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 11 Oct 2024 14:33:32 +0400 Subject: [PATCH 1/6] clang: Remove requires system-linux from some driver tests

[clang] [clang][bytecode] Ignore explicit calls to trivial dtors (PR #112841)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This is what the current interpreter does as well. --- Full diff: https://github.com/llvm/llvm-project/pull/112841.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+4) - (modified)

[clang] [clang][bytecode] Ignore explicit calls to trivial dtors (PR #112841)

2024-10-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/112841 This is what the current interpreter does as well. >From 349cda342a9febd60419ea53ea34cdf8a7b2523f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 18 Oct 2024 06:25:29 +0200 Subject: [PA

[clang] [clang][bytecode] Activate pointers in Init{, Pop} (PR #112832)

2024-10-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/112832 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5d08625 - [clang][bytecode] Activate pointers in Init{, Pop} (#112832)

2024-10-17 Thread via cfe-commits
Author: Timm Baeder Date: 2024-10-18T07:38:22+02:00 New Revision: 5d08625347a5467d463ff4377816709e262edb59 URL: https://github.com/llvm/llvm-project/commit/5d08625347a5467d463ff4377816709e262edb59 DIFF: https://github.com/llvm/llvm-project/commit/5d08625347a5467d463ff4377816709e262edb59.diff L

[clang] [RISCV] Check if v extension is enabled by the function features for the builtins not in Zve64*. (PR #112827)

2024-10-17 Thread Piyou Chen via cfe-commits
https://github.com/BeMg approved this pull request. LGTM. Thanks for fix this issue! https://github.com/llvm/llvm-project/pull/112827 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] prevent setting default lexical access specifier for missing primary declarations (PR #112424)

2024-10-17 Thread Shafik Yaghmour via cfe-commits
@@ -39,7 +39,8 @@ bool Sema::SetMemberAccessSpecifier(NamedDecl *MemberDecl, AccessSpecifier LexicalAS) { if (!PrevMemberDecl) { // Use the lexical access specifier. -MemberDecl->setAccess(LexicalAS); shafik wrote:

[clang] [Clang] prevent setting default lexical access specifier for missing primary declarations (PR #112424)

2024-10-17 Thread Shafik Yaghmour via cfe-commits
@@ -39,7 +39,8 @@ bool Sema::SetMemberAccessSpecifier(NamedDecl *MemberDecl, AccessSpecifier LexicalAS) { if (!PrevMemberDecl) { // Use the lexical access specifier. -MemberDecl->setAccess(LexicalAS); shafik wrote:

[clang] [llvm] [mlir] [LLVM][TableGen] Change all `Init` pointers to const (PR #112705)

2024-10-17 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/112705 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Inline Assembly: RVC constraint and N modifier (PR #112561)

2024-10-17 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. LGTM. I like this change and adding support of paired registers is on my todo list as well. https://github.com/llvm/llvm-project/pull/112561 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [RISCV][FMV] Remove support for negative priority (PR #112161)

2024-10-17 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/112161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV][FMV] Remove support for negative priority (PR #112161)

2024-10-17 Thread Piyou Chen via cfe-commits
https://github.com/BeMg updated https://github.com/llvm/llvm-project/pull/112161 >From d7a00a878b472e1ba7abad1b915cb57c4b0a5ca3 Mon Sep 17 00:00:00 2001 From: Piyou Chen Date: Sun, 6 Oct 2024 22:19:07 -0700 Subject: [PATCH 1/5] [RISCV][FMV] Remove support for negative priority --- clang/lib/Co

[clang] [clang-format] Fix a bug that always returns error for JSON (PR #112839)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #108556. --- Full diff: https://github.com/llvm/llvm-project/pull/112839.diff 2 Files Affected: - (added) clang/test/Format/dry-run-warning.cpp (+12) - (modified) clang/tools/clang-format/ClangFor

[clang] [clang-format] Fix a bug that always returns error for JSON (PR #112839)

2024-10-17 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/112839 Fixes #108556. >From 9eb81c845aa102e28c87eeefe82fac3f029ae29e Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 17 Oct 2024 21:52:16 -0700 Subject: [PATCH] [clang-format] Fix a bug that always returns error for

[clang] [RISCV][FMV] Remove support for negative priority (PR #112161)

2024-10-17 Thread Piyou Chen via cfe-commits
https://github.com/BeMg updated https://github.com/llvm/llvm-project/pull/112161 >From d7a00a878b472e1ba7abad1b915cb57c4b0a5ca3 Mon Sep 17 00:00:00 2001 From: Piyou Chen Date: Sun, 6 Oct 2024 22:19:07 -0700 Subject: [PATCH 1/4] [RISCV][FMV] Remove support for negative priority --- clang/lib/Co

[clang] [llvm] [TLI] Add support for the `ilogb` libcall. (PR #112725)

2024-10-17 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/112725 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV][FMV] Remove support for negative priority (PR #112161)

2024-10-17 Thread Piyou Chen via cfe-commits
@@ -2909,18 +2909,16 @@ static int getPriorityFromAttrString(StringRef AttrStr) { AttrStr.split(Attrs, ';'); BeMg wrote: Sure. https://github.com/llvm/llvm-project/pull/112161 ___ cfe-commits mailing list cfe-commi

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [libunwind][libcxx][libcxxabi][compiler-rt-builtins] Fix Exception Handling build for wasm (PR #79667)

2024-10-17 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/79667 >From 2b526821d4e70f3ea83f95d25f804d9fbcf82612 Mon Sep 17 00:00:00 2001 From: cqwrteur <100043421+trcrsi...@users.noreply.github.com> Date: Sat, 1 Jun 2024 02:55:50 -0400 Subject: [PATCH] [libunwind][libcxx][lib

[clang-tools-extra] [clangd] Let DefineOutline tweak handle member function templates (PR #112345)

2024-10-17 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: It looks like it was a deliberate design choice to disable this tweak for templates: https://reviews.llvm.org/D85310. cc @kadircet, @hokein for any thoughts https://github.com/llvm/llvm-project/pull/112345 ___ cfe-commits mailin

[clang-tools-extra] [clangd] Add inlay hints for default function arguments (PR #95712)

2024-10-17 Thread Nathan Ridge via cfe-commits
@@ -1497,6 +1497,47 @@ TEST(DefaultArguments, Smoke) { ExpectedHint{"A: ", "explicit", Left}); } +TEST(DefaultArguments, WithoutParameterNames) { + Config Cfg; + Cfg.InlayHints.Parameters = false; // To test just default args this time + Cfg.InlayHints.Deduced

[clang-tools-extra] [clangd] Add inlay hints for default function arguments (PR #95712)

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

[clang-tools-extra] [clangd] Add inlay hints for default function arguments (PR #95712)

2024-10-17 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. Thanks for the update and for spotting and fixing the added issues. I agree that keeping `DefaultArguments` orthogonal to `Parameters` is a good choice. https://github.com/llvm/llvm-project/pull/95712

[clang] [clang][AVR] Fix basic type size/alignment values to match avr-gcc. (PR #111290)

2024-10-17 Thread Alex Rønne Petersen via cfe-commits
https://github.com/alexrp updated https://github.com/llvm/llvm-project/pull/111290 From 20fd5ea2ce1e3ee145c6b91f6347711e56eaa428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 6 Oct 2024 14:48:48 +0200 Subject: [PATCH] [clang][AVR] Fix basic type size/alignme

[clang] [clang][AVR] Fix basic type size/alignment values to match avr-gcc. (PR #111290)

2024-10-17 Thread Alex Rønne Petersen via cfe-commits
alexrp wrote: ping https://github.com/llvm/llvm-project/pull/111290 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add inlay hints for default function arguments (PR #95712)

2024-10-17 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: >3. I was getting `Property DefaultArguments` is not allowed in > `config.yaml`. Is this a schema issue? I wasn't able to find where to update > this That sort of diagnostic is likely produced by a YAML plugin, which uses a schema from https://github.com/SchemaStore/

[clang] [NFC] clang add DiagnosticsTestHelper decl (PR #112820)

2024-10-17 Thread via cfe-commits
https://github.com/Sirraide commented: It feels a bit weird to put a function that is only used in a test right in the middle of a header, doubly so considering that GCC is the only compiler that doesn’t like it if the only declaration of a function is a friend declaration... https://github.co

[clang] [WebKit Checkers] Allow a guardian CheckedPtr/CheckedRef (PR #110222)

2024-10-17 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/110222 >From 6e842a0135d097ffcb3c5991bc97543179972405 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Fri, 27 Sep 2024 02:05:25 -0700 Subject: [PATCH 1/5] [WebKit Checkers] Allow a guardian CheckedPtr/CheckedRef This

[clang] [llvm] [NVPTX] Remove nvvm.ldg.global.* intrinsics (PR #112834)

2024-10-17 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 76f377618532fe486d1fff1250598a73c55f4310 0b43fa7364bf45515905d98cd0731c5509de5196 --e

[clang] [llvm] [NVPTX] Remove nvvm.ldg.global.* intrinsics (PR #112834)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Alex MacLean (AlexMaclean) Changes Remove these intrinsics which can be better represented by load instructions with `!invariant.load` metadata: - llvm.nvvm.ldg.global.i - llvm.nvvm.ldg.global.f - llvm.nvvm.ldg.global.p --- Patch is 4

[clang] [llvm] [NVPTX] Remove nvvm.ldg.global.* intrinsics (PR #112834)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-nvptx Author: Alex MacLean (AlexMaclean) Changes Remove these intrinsics which can be better represented by load instructions with `!invariant.load` metadata: - llvm.nvvm.ldg.global.i - llvm.nvvm.ldg.global.f - llvm.nvvm.ldg.global.p --- Patc

[clang] [llvm] [NVPTX] Remove nvvm.ldg.global.* intrinsics (PR #112834)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alex MacLean (AlexMaclean) Changes Remove these intrinsics which can be better represented by load instructions with `!invariant.load` metadata: - llvm.nvvm.ldg.global.i - llvm.nvvm.ldg.global.f - llvm.nvvm.ldg.global.p --- Patch is 40.

[clang] [llvm] [NVPTX] Remove nvvm.ldg.global.* intrinsics (PR #112834)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Alex MacLean (AlexMaclean) Changes Remove these intrinsics which can be better represented by load instructions with `!invariant.load` metadata: - llvm.nvvm.ldg.global.i - llvm.nvvm.ldg.global.f - llvm.nvvm.ldg.global.p --- Patc

[clang] [llvm] [NVPTX] Remove nvvm.ldg.global.* intrinsics (PR #112834)

2024-10-17 Thread Alex MacLean via cfe-commits
https://github.com/AlexMaclean created https://github.com/llvm/llvm-project/pull/112834 Remove these intrinsics which can be better represented by load instructions with `!invariant.load` metadata: - llvm.nvvm.ldg.global.i - llvm.nvvm.ldg.global.f - llvm.nvvm.ldg.global.p >From 0b43fa7364bf45

[clang] [clang][analyzer][doc] Update Clang SA www docs index.html (PR #112833)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Endre Fülöp (gamesh411) Changes Downloads and releases sections are removed, users are advised to use the conventional ways of acquiring the analyzer. --- Full diff: https://github.com/llvm/llvm-project/pull/112833.diff 1 Files Affected

[clang] [clang][analyzer][doc] Update Clang SA www docs index.html (PR #112833)

2024-10-17 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 created https://github.com/llvm/llvm-project/pull/112833 Downloads and releases sections are removed, users are advised to use the conventional ways of acquiring the analyzer. From 37703dc999b1e6a345bbae490316898080972082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?En

[clang] [llvm] [NFC] Fix implicit-fallthrough warnings (PR #112825)

2024-10-17 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/112825 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Activate pointers in Init{, Pop} (PR #112832)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/112832.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Interp.h (+2) - (modified) clang/test/AST/ByteCode/placement-new.cpp (+11) ``

[clang] [clang][bytecode] Activate pointers in Init{, Pop} (PR #112832)

2024-10-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/112832 None >From 28b0023196a895a6b02c5990196bcca394fb8d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 18 Oct 2024 05:57:34 +0200 Subject: [PATCH] [clang][bytecode] Activate pointers in In

[clang] [NFC][Clang] Fix enumerated mismatch warning (PR #112816)

2024-10-17 Thread via cfe-commits
https://github.com/Sirraide requested changes to this pull request. This doesn’t seem right: that diagnostic is only used in the parser, which is why it is in `DiagnosticParseKinds.td`. Instead, it’d be better to cast the two diagnostic IDs that are causing the problem to `unsigned` where they’

[clang] [llvm] Reapply "[Inliner] Propagate more attributes to params when inlining (#91101)" (2nd Attempt) (PR #112749)

2024-10-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-hwasan` running on `sanitizer-buildbot11` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/2889 Here is th

[clang] [clang][analyzer][doc] Migrate ClangSA www FAQ section (PR #112831)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Endre Fülöp (gamesh411) Changes The ClangSA documentation lives in RST format, and the FAQ section of the old webpage is also migrated from HTML with this change. --- Patch is 22.56 KiB, truncated to 20.00 KiB below, full version: https

[clang] [clang][analyzer][doc] Migrate ClangSA www FAQ section (PR #112831)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Endre Fülöp (gamesh411) Changes The ClangSA documentation lives in RST format, and the FAQ section of the old webpage is also migrated from HTML with this change. --- Patch is 22.56 KiB, truncated to 20.00 KiB below, fu

[clang] [clang][analyzer][doc] Migrate ClangSA www FAQ section (PR #112831)

2024-10-17 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 created https://github.com/llvm/llvm-project/pull/112831 The ClangSA documentation lives in RST format, and the FAQ section of the old webpage is also migrated from HTML with this change. From 327a84633d6d2029e11642dac07d63c90f2577d8 Mon Sep 17 00:00:00 2001 From:

[clang] [WebKit Checkers] Allow a guardian CheckedPtr/CheckedRef (PR #110222)

2024-10-17 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/110222 >From 6e842a0135d097ffcb3c5991bc97543179972405 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Fri, 27 Sep 2024 02:05:25 -0700 Subject: [PATCH 1/4] [WebKit Checkers] Allow a guardian CheckedPtr/CheckedRef This

[clang] [RISCV] Check if v extension is enabled by the function features for the builtins not in Zve64*. (PR #112827)

2024-10-17 Thread Jim Lin via cfe-commits
https://github.com/tclin914 updated https://github.com/llvm/llvm-project/pull/112827 >From a1b6a764dd93ecb33b493c14c396c5c040be0412 Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Fri, 18 Oct 2024 11:11:02 +0800 Subject: [PATCH 1/2] [RISCV] Check if v extension is enabled by the function features

[clang] [RISCV] Check if v extension is enabled by the function features for the builtins not in Zve64*. (PR #112827)

2024-10-17 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 927af63fddb8e34f23b2974f812156767988ec5f a1b6a764dd93ecb33b493c14c396c5c040be0412 --e

[clang] [RISCV] Check if v extension is enabled by the function features for the builtins not in Zve64*. (PR #112827)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Jim Lin (tclin914) Changes Fixes: https://github.com/llvm/llvm-project/issues/109694 --- Full diff: https://github.com/llvm/llvm-project/pull/112827.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaRISCV.cpp (+6-1) ```

[clang] [RISCV] Check if v extension is enabled by the function features for the builtins not in Zve64*. (PR #112827)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jim Lin (tclin914) Changes Fixes: https://github.com/llvm/llvm-project/issues/109694 --- Full diff: https://github.com/llvm/llvm-project/pull/112827.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaRISCV.cpp (+6-1) ``di

[clang] [RISCV] Check if v extension is enabled by the function features for the builtins not in Zve64*. (PR #112827)

2024-10-17 Thread Jim Lin via cfe-commits
https://github.com/tclin914 created https://github.com/llvm/llvm-project/pull/112827 Fixes: https://github.com/llvm/llvm-project/issues/109694 >From a1b6a764dd93ecb33b493c14c396c5c040be0412 Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Fri, 18 Oct 2024 11:11:02 +0800 Subject: [PATCH] [RISCV] Ch

[clang] [clang-format] Handle template opener/closer in braced list (PR #112494)

2024-10-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vls` running on `linaro-g3-04` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/143/builds/2862 Here is the relevant piece of the bui

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2024-10-17 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/108332 >From f21e1c62aa64ce497d5d4b500f412752eae9ceb0 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 20 Jun 2024 17:35:39 -0600 Subject: [PATCH 1/2] Format: add AlignAfterOpenBracketOptions Introduce new option

[clang] [llvm] [NFC] Fix implicit-fallthrough warnings (PR #112825)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-nvptx @llvm/pr-subscribers-clang Author: Jinsong Ji (jsji) Changes This is one of the many PRs to fix errors with LLVM_ENABLE_WERROR=on. Built by GCC 11. Fix warnings: clang/lib/Sema/SemaFunctionEffects.cpp:1531:5: error: this statement may fa

[clang] [llvm] [NFC] Fix implicit-fallthrough warnings (PR #112825)

2024-10-17 Thread Jinsong Ji via cfe-commits
https://github.com/jsji created https://github.com/llvm/llvm-project/pull/112825 This is one of the many PRs to fix errors with LLVM_ENABLE_WERROR=on. Built by GCC 11. Fix warnings: clang/lib/Sema/SemaFunctionEffects.cpp:1531:5: error: this statement may fall through [-Werror=implicit-fallthr

[clang] [WebKit Checkers] Allow a guardian CheckedPtr/CheckedRef (PR #110222)

2024-10-17 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/110222 >From 6e842a0135d097ffcb3c5991bc97543179972405 Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Fri, 27 Sep 2024 02:05:25 -0700 Subject: [PATCH 1/3] [WebKit Checkers] Allow a guardian CheckedPtr/CheckedRef This

[clang] [NFC] clang add DiagnosticsTestHelper decl (PR #112820)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jinsong Ji (jsji) Changes This is one of the many PRs to fix errors with LLVM_ENABLE_WERROR=on. Built by GCC 11. Fix warning llvm-project/clang/unittests/Basic/DiagnosticTest.cpp:19:6: error: ‘void clang::DiagnosticsTestHelper(clang::Di

[clang] [NFC] clang add DiagnosticsTestHelper decl (PR #112820)

2024-10-17 Thread Jinsong Ji via cfe-commits
https://github.com/jsji created https://github.com/llvm/llvm-project/pull/112820 This is one of the many PRs to fix errors with LLVM_ENABLE_WERROR=on. Built by GCC 11. Fix warning llvm-project/clang/unittests/Basic/DiagnosticTest.cpp:19:6: error: ‘void clang::DiagnosticsTestHelper(clang::Diag

[clang] [clang-format] Add RemoveEmptyLinesInUnwrappedLines option (PR #112325)

2024-10-17 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/112325 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d989c24 - [clang-format] Add RemoveEmptyLinesInUnwrappedLines option (#112325)

2024-10-17 Thread via cfe-commits
Author: Owen Pan Date: 2024-10-17T20:21:42-07:00 New Revision: d989c2410eb883f464c3efa472ed026dc5fd9f88 URL: https://github.com/llvm/llvm-project/commit/d989c2410eb883f464c3efa472ed026dc5fd9f88 DIFF: https://github.com/llvm/llvm-project/commit/d989c2410eb883f464c3efa472ed026dc5fd9f88.diff LOG:

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2024-10-17 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/108332 >From d4ea6c119580f4e153a0844f0e29cb393c340279 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 20 Jun 2024 17:35:39 -0600 Subject: [PATCH 1/2] Format: add AlignAfterOpenBracketOptions Introduce new option

[clang] [NFC][Clang] Fix enumerated mismatch warning (PR #112816)

2024-10-17 Thread Jinsong Ji via cfe-commits
https://github.com/jsji edited https://github.com/llvm/llvm-project/pull/112816 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Fix enumerated mismatch warning (PR #112816)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jinsong Ji (jsji) Changes This is one of the many PRs to fix errors with LLVM_ENABLE_WERROR=on. Built by GCC 11. Fix warning: llvm-project/clang/lib/Parse/ParseDeclCXX.cpp:3153:14: error: enumerated mismatch in conditional expression: ‘c

[clang] [NFC][Clang] Fix enumerated mismatch warning (PR #112816)

2024-10-17 Thread Jinsong Ji via cfe-commits
https://github.com/jsji created https://github.com/llvm/llvm-project/pull/112816 This is one of the many PRs to fix errors with LLVM_ENABLE_WERROR=on. Built by GCC 11. Fix warning: llvm-project/clang/lib/Parse/ParseDeclCXX.cpp:3153:14: error: enumerated mismatch in conditional expression: ‘cla

[clang] [NFC] Fix c++ style comment in c file (PR #112814)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jinsong Ji (jsji) Changes This is one of the many PRs to fix errors with LLVM_ENABLE_WERROR=on. Built by GCC 11. Fix warnings: llvm-project/clang/include/clang-c/Index.h:2983:3: error: C++ style comments are not allowed in ISO C90 [-Werr

[clang] [NFC] Fix c++ style comment in c file (PR #112814)

2024-10-17 Thread Jinsong Ji via cfe-commits
https://github.com/jsji created https://github.com/llvm/llvm-project/pull/112814 This is one of the many PRs to fix errors with LLVM_ENABLE_WERROR=on. Built by GCC 11. Fix warnings: llvm-project/clang/include/clang-c/Index.h:2983:3: error: C++ style comments are not allowed in ISO C90 [-Werror

[clang] [clang-format] Handle template opener/closer in braced list (PR #112494)

2024-10-17 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/112494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 67f576f - [clang-format] Handle template opener/closer in braced list (#112494)

2024-10-17 Thread via cfe-commits
Author: Owen Pan Date: 2024-10-17T19:56:09-07:00 New Revision: 67f576f31d661897c5da302b8611decb7e0f9237 URL: https://github.com/llvm/llvm-project/commit/67f576f31d661897c5da302b8611decb7e0f9237 DIFF: https://github.com/llvm/llvm-project/commit/67f576f31d661897c5da302b8611decb7e0f9237.diff LOG:

[clang] [llvm] [TLI] Add support for the `ilogb` libcall. (PR #112725)

2024-10-17 Thread via cfe-commits
https://github.com/c8ef updated https://github.com/llvm/llvm-project/pull/112725 >From 967bc0ae91d566ceb0b639a9b125607b05ca3314 Mon Sep 17 00:00:00 2001 From: c8ef Date: Thu, 17 Oct 2024 23:13:33 +0800 Subject: [PATCH 1/3] add ilogb tli --- .../llvm/Analysis/TargetLibraryInfo.def | 15 ++

[clang] [llvm] [TLI] Add support for the `ilogb` libcall. (PR #112725)

2024-10-17 Thread via cfe-commits
c8ef wrote: ``` PASS: Clang Tools :: clang-move/move-used-helper-decls.cpp (98 of 1256) ``` This test appears to be flaky. I'll update this branch and re-trigger the CI. https://github.com/llvm/llvm-project/pull/112725 ___ cfe-commits mailing list cfe

[clang] [Clang] fix range calculation for conditionals with throw expressions (PR #112081)

2024-10-17 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: After answering my questions this makes sense to me but I want a second set of eyes. https://github.com/llvm/llvm-project/pull/112081 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] [llvm] [MIPS] LLVM data layout give i128 an alignment of 16 for mips64 (PR #112084)

2024-10-17 Thread via cfe-commits
yingopq wrote: > > @nikic I checked several other arch-32 situations with ForceEnableInt128, > > and they all use `alloca i128, align 16`. But they did not modify the > > target datalayout content with `i128:128`, should mips be consistent? > > I think either way is fine here. Something to con

[clang] Remove type-punning in LazyOffsetPtr. (PR #112806)

2024-10-17 Thread A. Wilcox via cfe-commits
awilfox wrote: > This violates aliasing rules and doesn't work at all on big-endian 64-bit > systems where the pointer is stored in the second four bytes of the uint64_t. Your sizes aren't correct in the description here. This issue occurs on big endian 32-bit systems, and the pointer is stor

[clang] [rtsan][NFC] Documentation of suppression flag (PR #112727)

2024-10-17 Thread Chris Apple via cfe-commits
https://github.com/cjappl updated https://github.com/llvm/llvm-project/pull/112727 >From c8b2090824d19618e876051cfcc18a4fad49649d Mon Sep 17 00:00:00 2001 From: Chris Apple Date: Thu, 17 Oct 2024 08:20:08 -0700 Subject: [PATCH 1/2] [rtsan][NFC] Documentation of suppression flag --- clang/docs

[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

2024-10-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang,llvm` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/7728 Here is the relevant piece of the build lo

[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

2024-10-17 Thread via cfe-commits
github-actions[bot] wrote: @keith-packard Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a

[clang] [llvm] [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (PR #110928)

2024-10-17 Thread Kees Cook via cfe-commits
https://github.com/kees closed https://github.com/llvm/llvm-project/pull/110928 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 44b020a - [PowerPC][ISelLowering] Support -mstack-protector-guard=tls (#110928)

2024-10-17 Thread via cfe-commits
Author: Keith Packard Date: 2024-10-17T19:06:47-07:00 New Revision: 44b020a3818a01b77415ce12629b020b641af2ea URL: https://github.com/llvm/llvm-project/commit/44b020a3818a01b77415ce12629b020b641af2ea DIFF: https://github.com/llvm/llvm-project/commit/44b020a3818a01b77415ce12629b020b641af2ea.diff

[clang] [llvm] [TLI] Add support for the `ilogb` libcall. (PR #112725)

2024-10-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms @llvm/pr-subscribers-clang Author: None (c8ef) Changes This patch adds the `ilogb` libcall. Constant folding will be handled in subsequent patches. --- Full diff: https://github.com/llvm/llvm-project/pull/112725.diff 7 Files Affected:

[clang] [llvm] [TLI] Add support for the `ilogb` libcall. (PR #112725)

2024-10-17 Thread via cfe-commits
https://github.com/c8ef ready_for_review https://github.com/llvm/llvm-project/pull/112725 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm] Allow always dropping all llvm.type.test sequences (PR #112787)

2024-10-17 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/112787 >From 7d6eb41b4eb5c4924789d31fa0f1dcd601ae46f6 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Thu, 17 Oct 2024 22:32:20 + Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UTF-

[clang] [clang] Deduplicate the logic that only warns once when stack is almost full (PR #112552)

2024-10-17 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. https://github.com/llvm/llvm-project/pull/112552 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Remove type-punning in LazyOffsetPtr. (PR #112806)

2024-10-17 Thread Richard Smith via cfe-commits
@@ -321,50 +322,87 @@ class ExternalASTSource : public RefCountedBase { /// external AST source itself. template struct LazyOffsetPtr { - /// Either a pointer to an AST node or the offset within the - /// external AST source where the AST node can be found. - /// - /// If

[clang] [C++20][Modules] Load function body from the module that gives canonical decl (PR #111992)

2024-10-17 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > > Thanks for the analysis. I feel (2) is easier to me IIUC. I feel it is a > > natural extension of your previous work. WDYT? > > I implemented this approach and it works. I tried to limit eager > deserialization to the minimal set of functions (at the moment it is friend

  1   2   3   4   5   6   >