[clang] [clang][dataflow] Fix assert-fail when calling assignment operator with by-value parameter. (PR #71384)

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

[llvm] [clang] [AMDGPU] Add code model (#70760) test for amdgpu target. (PR #71019)

2023-11-07 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 bd29197fd8448265dbf8e370a8a21a477cd50f5a 746c51563292dd42145ea18414dadf9acf18aea2 --

[clang] 2c4f938 - Reapply #2 [clang-repl] [test] Make an XFAIL more precise (#71168)

2023-11-07 Thread via cfe-commits
Author: Martin Storsjö Date: 2023-11-07T11:41:56+02:00 New Revision: 2c4f938f1c01794d9b944c24e9067eac6763e95c URL: https://github.com/llvm/llvm-project/commit/2c4f938f1c01794d9b944c24e9067eac6763e95c DIFF: https://github.com/llvm/llvm-project/commit/2c4f938f1c01794d9b944c24e9067eac6763e95c.diff

[clang] 0d3eeac - [clang-repl] Fix BUILD_SHARED_LIBS symbols from libclangInterpreter on MinGW (#71393)

2023-11-07 Thread via cfe-commits
Author: Martin Storsjö Date: 2023-11-07T11:48:12+02:00 New Revision: 0d3eeac8c0f45410398a87f72ae38ea6ae1c3073 URL: https://github.com/llvm/llvm-project/commit/0d3eeac8c0f45410398a87f72ae38ea6ae1c3073 DIFF: https://github.com/llvm/llvm-project/commit/0d3eeac8c0f45410398a87f72ae38ea6ae1c3073.diff

[clang] 6b43764 - [clang][ExtractAPI] Update availability serialization in SGF (#71418)

2023-11-07 Thread via cfe-commits
Author: Daniel Grumberg Date: 2023-11-07T10:44:45Z New Revision: 6b43764a9553b1aa09013298d5ec8905dd635308 URL: https://github.com/llvm/llvm-project/commit/6b43764a9553b1aa09013298d5ec8905dd635308 DIFF: https://github.com/llvm/llvm-project/commit/6b43764a9553b1aa09013298d5ec8905dd635308.diff LO

[llvm] [clang] [RISCV][Clang][TargetParser] Support getting feature unaligned-scalar-mem from mcpu. (PR #71513)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Yeting Kuo (yetingk) Changes This patch reference ac1ffd3caca12c254e0b8c847aa8ce8e51b6cfbf to suppot a soft coding way to identify whether a cpu has a feature `unaligned-scalar-mem` by `RISCVProcessors.td

[clang] [clang][analyzer] Support `fputc` in StreamChecker (PR #71518)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ben Shi (benshi001) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/71518.diff 3 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp (+66-8) - (modified) clang/test/Analysis/stream-error.c

[clang] 1b45fe5 - [clang][analyzer][NFC] Remove redundant code in StreamChecker (#71394)

2023-11-07 Thread via cfe-commits
Author: Ben Shi Date: 2023-11-07T19:14:05+08:00 New Revision: 1b45fe5c83e196604dffa33412c6d0b22c48fcf4 URL: https://github.com/llvm/llvm-project/commit/1b45fe5c83e196604dffa33412c6d0b22c48fcf4 DIFF: https://github.com/llvm/llvm-project/commit/1b45fe5c83e196604dffa33412c6d0b22c48fcf4.diff LOG:

[clang] [clang][dataflow] Expand debug dumping of `Value`s. (PR #71527)

2023-11-07 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/71527 None >From 4a07c0ae8021d77da1cec7932e02a05a37f35f51 Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Tue, 7 Nov 2023 12:02:32 + Subject: [PATCH] [clang][dataflow] Expand debug dumping of `Value`s. -

[clang] [clang][dataflow] Expand debug dumping of `Value`s. (PR #71527)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (martinboehme) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/71527.diff 1 Files Affected: - (modified) clang/lib/Analysis/FlowSensitive/Value.cpp (+12-7) ``diff diff --git a/clang/lib/Analysis/FlowSen

[clang] [clang][dataflow] Expand debug dumping of `Value`s. (PR #71527)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: None (martinboehme) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/71527.diff 1 Files Affected: - (modified) clang/lib/Analysis/FlowSensitive/Value.cpp (+12-7) ``diff diff --git a/clang/lib/Analysi

[clang] [analyzer] Improve diagnostics from ArrayBoundCheckerV2 (PR #70056)

2023-11-07 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: https://github.com/DonatNagyE updated https://github.com/llvm/llvm-project/pull/70056 >From 77143e74edda6177248bebdf0424db915aa68a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?=

[clang] [analyzer] Improve diagnostics from ArrayBoundCheckerV2 (PR #70056)

2023-11-07 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: https://github.com/DonatNagyE updated https://github.com/llvm/llvm-project/pull/70056 >From 77143e74edda6177248bebdf0424db915aa68a05 Mon Sep 17 00:00:00 2001 From: =?UTF-

[clang] [analyzer] Improve diagnostics from ArrayBoundCheckerV2 (PR #70056)

2023-11-07 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: DonatNagyE wrote: I decided to keep the `reportOOB()` calls without additional changes. I feel that adding `std::move()` has limited benefits (performance impact is negl

[clang] 16ef496 - [analyzer] Improve diagnostics from ArrayBoundCheckerV2 (#70056)

2023-11-07 Thread via cfe-commits
Author: DonatNagyE Date: 2023-11-07T13:26:32+01:00 New Revision: 16ef4968dc9e93f9c7b361b9ad0645445bd1210e URL: https://github.com/llvm/llvm-project/commit/16ef4968dc9e93f9c7b361b9ad0645445bd1210e DIFF: https://github.com/llvm/llvm-project/commit/16ef4968dc9e93f9c7b361b9ad0645445bd1210e.diff LO

[clang] [analyzer] Improve diagnostics from ArrayBoundCheckerV2 (PR #70056)

2023-11-07 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: https://github.com/DonatNagyE closed https://github.com/llvm/llvm-project/pull/70056 ___ cfe-commits mailing list cfe-commits@l

[clang] [clang-tools-extra] [clang][NFC] Refactor `CXXNewExpr::InitializationStyle` (PR #71322)

2023-11-07 Thread via cfe-commits
zmodem wrote: > Me and Aaron are also wondering now how did it pass CI, and what's wrong with > changes here. I'm sorry @zmodem that we got you involved. Just to be clear, my comment wasn't intended as criticism of this patch. This does seem like a good opportunity to improve our presubmit tes

[clang] [clang][analyzer] Improve StdLibraryFunctionsChecker 'readlink' modeling. (PR #71373)

2023-11-07 Thread via cfe-commits
DonatNagyE wrote: Feel free to merge this @balazske, and thanks for the improvement! https://github.com/llvm/llvm-project/pull/71373 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [lldb] [mlir] [libc] [libcxx] [llvm] [clang] [lld] [flang] [libc][bazel] Add powf target and fix bazel overlay. (PR #71464)

2023-11-07 Thread via cfe-commits
https://github.com/lntue updated https://github.com/llvm/llvm-project/pull/71464 >From c5b8cfbae37c302158e3671a271634c71693123a Mon Sep 17 00:00:00 2001 From: Tue Ly Date: Mon, 6 Nov 2023 18:52:11 -0500 Subject: [PATCH] [libc][bazel] Add powf target and fix bazel overlay. --- libc/src/math/gen

[compiler-rt] [lldb] [mlir] [libc] [libcxx] [llvm] [clang] [lld] [flang] [libc][bazel] Add powf target and fix bazel overlay. (PR #71464)

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

[clang] 2e79133 - [clang] Improve `_Alignas` on a `struct` declaration diagnostic (#65638)

2023-11-07 Thread via cfe-commits
Author: Jerin Philip Date: 2023-11-07T08:27:41-05:00 New Revision: 2e7913342eb9d5cd1744d4c24e1898588429b80d URL: https://github.com/llvm/llvm-project/commit/2e7913342eb9d5cd1744d4c24e1898588429b80d DIFF: https://github.com/llvm/llvm-project/commit/2e7913342eb9d5cd1744d4c24e1898588429b80d.diff

[clang] [llvm] [Support] Add VirtualOutputBackends to virtualize the output from tools (PR #68447)

2023-11-07 Thread via cfe-commits
https://github.com/zmodem edited https://github.com/llvm/llvm-project/pull/68447 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Support] Add VirtualOutputBackends to virtualize the output from tools (PR #68447)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,158 @@ +//===- raw_ostream_proxy.h - Proxies for raw output streams -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [Support] Add VirtualOutputBackends to virtualize the output from tools (PR #68447)

2023-11-07 Thread via cfe-commits
https://github.com/zmodem commented: I started reviewing the first commit, but wanted to ask some high-level questions which will make it easier to review: The PR description doesn't say so, but the motivation for this is the CAS work, right? LLVM already has a "virtual filesystem", and I tho

[llvm] [clang] [Support] Add VirtualOutputBackends to virtualize the output from tools (PR #68447)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,158 @@ +//===- raw_ostream_proxy.h - Proxies for raw output streams -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [Support] Add VirtualOutputBackends to virtualize the output from tools (PR #68447)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,158 @@ +//===- raw_ostream_proxy.h - Proxies for raw output streams -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [Support] Add VirtualOutputBackends to virtualize the output from tools (PR #68447)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,158 @@ +//===- raw_ostream_proxy.h - Proxies for raw output streams -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [Support] Add VirtualOutputBackends to virtualize the output from tools (PR #68447)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,219 @@ +//===- raw_ostream_proxy_test.cpp - Tests for raw ostream proxies -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[llvm] [clang] [Support] Add VirtualOutputBackends to virtualize the output from tools (PR #68447)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,219 @@ +//===- raw_ostream_proxy_test.cpp - Tests for raw ostream proxies -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[llvm] [clang] [Support] Add VirtualOutputBackends to virtualize the output from tools (PR #68447)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,219 @@ +//===- raw_ostream_proxy_test.cpp - Tests for raw ostream proxies -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] [clangd] Add tweak to inline concept requirements (PR #69693)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Vina (Venyla) Changes # Description This introduces a new refactoring for concept requirements, inlining simple require clauses into the template declaration. Here is an example of what it does: Before ```cpp template

[llvm] [clang] [clang][dataflow] Simplify flow conditions displayed in HTMLLogger. (PR #70848)

2023-11-07 Thread via cfe-commits
https://github.com/martinboehme updated https://github.com/llvm/llvm-project/pull/70848 >From 7ec1f2d33118f382b008f0dad09fa0056844de2f Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Tue, 31 Oct 2023 19:12:30 + Subject: [PATCH 1/2] [clang][dataflow] Simplify flow conditions displayed in

[llvm] [clang] [clang][dataflow] Simplify flow conditions displayed in HTMLLogger. (PR #70848)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,55 @@ +//===-- SimplifyConstraints.h ---*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[llvm] [clang] [clang][dataflow] Simplify flow conditions displayed in HTMLLogger. (PR #70848)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,183 @@ +//===-- SimplifyConstraints.cpp -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[llvm] [clang] [clang][dataflow] Simplify flow conditions displayed in HTMLLogger. (PR #70848)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,183 @@ +//===-- SimplifyConstraints.cpp -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[llvm] [clang] [clang][dataflow] Simplify flow conditions displayed in HTMLLogger. (PR #70848)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,183 @@ +//===-- SimplifyConstraints.cpp -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[llvm] [clang] [clang][dataflow] Simplify flow conditions displayed in HTMLLogger. (PR #70848)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,183 @@ +//===-- SimplifyConstraints.cpp -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[llvm] [clang] [clang][dataflow] Simplify flow conditions displayed in HTMLLogger. (PR #70848)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,183 @@ +//===-- SimplifyConstraints.cpp -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[llvm] [clang] [clang][dataflow] Simplify flow conditions displayed in HTMLLogger. (PR #70848)

2023-11-07 Thread via cfe-commits
@@ -0,0 +1,183 @@ +//===-- SimplifyConstraints.cpp -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [clang][dataflow] Simplify flow conditions displayed in HTMLLogger. (PR #70848)

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

[clang] 7c63672 - [clang][dataflow] Simplify flow conditions displayed in HTMLLogger. (#70848)

2023-11-07 Thread via cfe-commits
Author: martinboehme Date: 2023-11-07T15:18:34+01:00 New Revision: 7c636728c0fc18fc79831bfc3cdf41841b9b517c URL: https://github.com/llvm/llvm-project/commit/7c636728c0fc18fc79831bfc3cdf41841b9b517c DIFF: https://github.com/llvm/llvm-project/commit/7c636728c0fc18fc79831bfc3cdf41841b9b517c.diff

[llvm] [clang] [WebAssembly] Refactor Wasm Reference Types as TargetExtType (PR #71540)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-webassembly Author: Paulo Matos (pmatos) Changes Originally reference types were designed as pointers to different address spaces. More recently TargetExtType were added to LLVM IR making it easier to represent reference types. This refactorin

[clang] [llvm] [WebAssembly] Refactor Wasm Reference Types as TargetExtType (PR #71540)

2023-11-07 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 7c636728c0fc18fc79831bfc3cdf41841b9b517c dfe73198afa1e18fc37b5d21a6a8e6e1e3261f88 --

[lldb] [clang] [clang][DebugInfo] Emit global variable definitions for static data members with constant initializers (PR #70639)

2023-11-07 Thread via cfe-commits
zmodem wrote: This causes Clang to assert: ``` llvm/lib/IR/Metadata.cpp:689: void llvm::MDNode::resolve(): Assertion `isUniqued() && "Expected this to be uniqued"' failed. ``` See https://bugs.chromium.org/p/chromium/issues/detail?id=1500262#c1 for a reproducer. I'll revert to gr

[llvm] [clang] [ARM] .fpu equals fpv5-d16 disables floating point MVE which leads to unsupported MVE instructions assembler error for cortex M85/M55. (PR #71545)

2023-11-07 Thread via cfe-commits
https://github.com/simpal01 created https://github.com/llvm/llvm-project/pull/71545 The floating-point and MVE features together specify the MVE functionality that is supported on the Cortex-M85 processor. But the FPU extension for the underlying architecture(armv8.1-m.main) is FPV5 which does

[llvm] [clang] [ARM] .fpu equals fpv5-d16 disables floating point MVE which leads to unsupported MVE instructions assembler error for cortex M85/M55. (PR #71545)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (simpal01) Changes The floating-point and MVE features together specify the MVE functionality that is supported on the Cortex-M85 processor. But the FPU extension for the underlying architecture(armv8.1-m.main) is FPV5 which does not

[clang] 8ee9da0 - [C++20] [Modules] Don't import function bodies from other module units even with optimizations (#71031)

2023-11-07 Thread via cfe-commits
Author: Chuanqi Xu Date: 2023-11-07T23:04:45+08:00 New Revision: 8ee9da02325cebf359de987f7ac8e1d3d629affe URL: https://github.com/llvm/llvm-project/commit/8ee9da02325cebf359de987f7ac8e1d3d629affe DIFF: https://github.com/llvm/llvm-project/commit/8ee9da02325cebf359de987f7ac8e1d3d629affe.diff LO

[clang] [clang][dataflow] Replace one remaining call to deprecated `addToFlowCondition()`. (PR #71547)

2023-11-07 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/71547 None >From 62ba37b3df939ecda968893a03066adb9a78a75b Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Tue, 7 Nov 2023 15:24:50 + Subject: [PATCH] [clang][dataflow] Replace one remaining call to deprec

[clang] [clang][dataflow] Replace one remaining call to deprecated `addToFlowCondition()`. (PR #71547)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: None (martinboehme) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/71547.diff 1 Files Affected: - (modified) clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp (+1-1) ``diff diff --git a/clan

[clang] d180cfb - [Clang][OpenMP] fixed crash due to invalid binary expression in checking atomic semantics (#71480)

2023-11-07 Thread via cfe-commits
Author: Chia Date: 2023-11-07T10:41:50-05:00 New Revision: d180cfb37d0d1ae1e9dadd13debc49c80d52eda4 URL: https://github.com/llvm/llvm-project/commit/d180cfb37d0d1ae1e9dadd13debc49c80d52eda4 DIFF: https://github.com/llvm/llvm-project/commit/d180cfb37d0d1ae1e9dadd13debc49c80d52eda4.diff LOG: [Cl

[clang] [Clang][OpenMP] Ignore the null array and avoid the assertion. (PR #71551)

2023-11-07 Thread via cfe-commits
https://github.com/lwshanbd created https://github.com/llvm/llvm-project/pull/71551 Fixes #69198. >From c9f0185489389762a13417533e3b2c7a306e53e0 Mon Sep 17 00:00:00 2001 From: Baodi Shan Date: Tue, 7 Nov 2023 10:33:28 -0500 Subject: [PATCH] Ignore the null array and avoid the assertion. Fixes

[clang] [Clang][OpenMP] Ignore the null array and avoid the assertion. (PR #71551)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Baodi (lwshanbd) Changes Fixes #69198. --- Full diff: https://github.com/llvm/llvm-project/pull/71551.diff 2 Files Affected: - (modified) clang/lib/AST/Expr.cpp (+3-3) - (modified) clang/lib/Sema/SemaOpenMP.cpp (+2) ``diff d

[clang] [Clang][OpenMP] Return null expr and remove the assertion. (PR #71551)

2023-11-07 Thread via cfe-commits
https://github.com/lwshanbd edited https://github.com/llvm/llvm-project/pull/71551 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][OpenMP] Return null expr and remove the assertion. (PR #71551)

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

[clang] 75d6795 - [RISCV][Clang][TargetParser] Support getting feature unaligned-scalar-mem from mcpu. (#71513)

2023-11-07 Thread via cfe-commits
Author: Yeting Kuo Date: 2023-11-08T00:05:16+08:00 New Revision: 75d6795e420274346b14aca8b6bd49bfe6030eeb URL: https://github.com/llvm/llvm-project/commit/75d6795e420274346b14aca8b6bd49bfe6030eeb DIFF: https://github.com/llvm/llvm-project/commit/75d6795e420274346b14aca8b6bd49bfe6030eeb.diff LO

[clang] Return null expr when a negative array was created. (PR #71552)

2023-11-07 Thread via cfe-commits
https://github.com/lwshanbd created https://github.com/llvm/llvm-project/pull/71552 Fix #69198 >From 009afe8df3f17ba3b0f793ce144b8be41b15c90d Mon Sep 17 00:00:00 2001 From: Baodi Shan Date: Tue, 7 Nov 2023 11:06:14 -0500 Subject: [PATCH] Return null expr when a negative array was created. Fi

[clang] Return null expr when a negative array was created. (PR #71552)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Baodi (lwshanbd) Changes Fix #69198 --- Full diff: https://github.com/llvm/llvm-project/pull/71552.diff 3 Files Affected: - (modified) clang/lib/AST/Expr.cpp (+3-3) - (modified) clang/lib/Sema/SemaOpenMP.cpp (+2) - (added) clang/tes

[clang] [Clang][OpenMP]Return null expr when a negative array was created. (PR #71552)

2023-11-07 Thread via cfe-commits
https://github.com/lwshanbd edited https://github.com/llvm/llvm-project/pull/71552 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Improve StdLibraryFunctionsChecker 'readlink' modeling. (PR #71373)

2023-11-07 Thread via cfe-commits
https://github.com/DonatNagyE requested changes to this pull request. Sorry for undoing my approval, but as I was reviewing your other commit #71392 I noticed that it includes a testcase (the change in clang/test/Analysis/std-c-library-functions-path-notes.c) that logically belongs to this co

[clang] [clang][analyzer] Improve StdLibraryFunctionsChecker 'readlink' modeling. (PR #71373)

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

[clang] [clang][analyzer] Improve 'errno' handling in StdLibraryFunctionsChecker. (PR #71392)

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

[clang] [clang][analyzer] Improve 'errno' handling in StdLibraryFunctionsChecker. (PR #71392)

2023-11-07 Thread via cfe-commits
https://github.com/DonatNagyE commented: This is a good change, I like that you merged the two note tags into one with a "smart" lambda. I have some minor suggestions and I think it'd be useful to see some open source results; but after that this could be a good improvement. https://github.co

[clang] [clang][analyzer] Improve 'errno' handling in StdLibraryFunctionsChecker. (PR #71392)

2023-11-07 Thread via cfe-commits
@@ -1392,15 +1393,19 @@ void StdLibraryFunctionsChecker::checkPostCall(const CallEvent &Call, // Still add these note tags, the other checker should add only its // specialized note tags. These general note tags are handled always by // StdLibraryFunctionsChecker.

[clang] [clang][analyzer] Improve 'errno' handling in StdLibraryFunctionsChecker. (PR #71392)

2023-11-07 Thread via cfe-commits
@@ -622,9 +624,8 @@ class StdLibraryFunctionsChecker Call.getOriginExpr()); } -const NoteTag *describe(CheckerContext &C, -StringRef FunctionName) const override { - return errno_mod

[clang] [clang][analyzer] Improve 'errno' handling in StdLibraryFunctionsChecker. (PR #71392)

2023-11-07 Thread via cfe-commits
@@ -1418,31 +1423,42 @@ void StdLibraryFunctionsChecker::checkPostCall(const CallEvent &Call, return ""; }); Pred = C.addTransition(NewState, Pred, Tag); - } else { -const NoteTag *Tag = -C.getNoteTag([Note, RV](PathSe

[clang] [clang][analyzer] Improve 'errno' handling in StdLibraryFunctionsChecker. (PR #71392)

2023-11-07 Thread via cfe-commits
@@ -80,3 +80,12 @@ int test_fileno_arg_note(FILE *f1) { // expected-note{{The 1st argument to 'dup' is < 0 but should be >= 0}} \ // expected-note{{Assuming that 'fileno' fails}} } + +int test_readlink_bufsize_zero(char *Buf, size_t Bufsize) { DonatNagyE wr

[clang] 7b9d73c - [NFC] Remove Type::getInt8PtrTy (#71029)

2023-11-07 Thread via cfe-commits
Author: Paulo Matos Date: 2023-11-07T17:26:26+01:00 New Revision: 7b9d73c2f90c0ed8497339a16fc39785349d9610 URL: https://github.com/llvm/llvm-project/commit/7b9d73c2f90c0ed8497339a16fc39785349d9610 DIFF: https://github.com/llvm/llvm-project/commit/7b9d73c2f90c0ed8497339a16fc39785349d9610.diff L

[clang] [clang][analyzer] Improve StdLibraryFunctionsChecker 'readlink' modeling. (PR #71373)

2023-11-07 Thread via cfe-commits
DonatNagyE wrote: > Moreover, I think that TC shows that it would be useful to see the behavior > of this change on open source projects as I fear that this change could lead > to "technically TP, but not helpful for the user" reports. On a second thought, AFAIK there are already other functio

[clang] [llvm] [libc] [clang-tools-extra] Move implementation to src/string/memory_utils/x86_64/inline_memset.h and other minor changes (PR #71558)

2023-11-07 Thread via cfe-commits
https://github.com/doshimili created https://github.com/llvm/llvm-project/pull/71558 None >From 6c313955185c0d59564f6535b6f1580dca168bea Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 24 Oct 2023 21:15:23 + Subject: [PATCH 01/14] Add software prefetching to memset --- libc/src/strin

[libc] [compiler-rt] [clang-tools-extra] [clang] [flang] [libcxx] [llvm] Move implementation to src/string/memory_utils/x86_64/inline_memset.h and other minor changes (PR #71558)

2023-11-07 Thread via cfe-commits
https://github.com/doshimili updated https://github.com/llvm/llvm-project/pull/71558 >From 6c313955185c0d59564f6535b6f1580dca168bea Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 24 Oct 2023 21:15:23 + Subject: [PATCH 01/16] Add software prefetching to memset --- libc/src/string/memo

[clang] 867ece1 - [RISCV] Add processor definition for XiangShan-NanHu (#70294)

2023-11-07 Thread via cfe-commits
Author: Yingwei Zheng Date: 2023-11-08T00:41:06+08:00 New Revision: 867ece181afe59aa020d365928169d2ebdc7d74a URL: https://github.com/llvm/llvm-project/commit/867ece181afe59aa020d365928169d2ebdc7d74a DIFF: https://github.com/llvm/llvm-project/commit/867ece181afe59aa020d365928169d2ebdc7d74a.diff

[llvm] [clang] [clang-tools-extra] [clang] Add support for new loop attribute [[clang::code_align()]] (PR #70762)

2023-11-07 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/70762 >From 93d46d40f46663cfa30fc01da965887508684e25 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Mon, 30 Oct 2023 21:41:00 -0700 Subject: [PATCH 01/11] [clang] Add support for new loop attribute [[clang::code

[libc] [llvm] [compiler-rt] [flang] [clang-tools-extra] [libcxx] [clang] Move implementation to src/string/memory_utils/x86_64/inline_memset.h and other minor changes (PR #71558)

2023-11-07 Thread via cfe-commits
https://github.com/doshimili updated https://github.com/llvm/llvm-project/pull/71558 >From 6c313955185c0d59564f6535b6f1580dca168bea Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 24 Oct 2023 21:15:23 + Subject: [PATCH 01/17] Add software prefetching to memset --- libc/src/string/memo

[clang] [llvm] [InstCombine] Infer zext nneg flag (PR #71534)

2023-11-07 Thread via cfe-commits
https://github.com/goldsteinn approved this pull request. https://github.com/llvm/llvm-project/pull/71534 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[openmp] [clang] [lldb] [llvm] [compiler-rt] [clang-tools-extra] [libcxx] [flang] [OpenMP] Add memory diff dump for kernel record-replay (PR #70667)

2023-11-07 Thread via cfe-commits
https://github.com/nmustakin updated https://github.com/llvm/llvm-project/pull/70667 >From 153c6d812939cd23bb71e53c71378117ed5b23c7 Mon Sep 17 00:00:00 2001 From: Nafis Mustakin Date: Mon, 30 Oct 2023 07:50:59 -0700 Subject: [PATCH 1/6] Add memory diff dump for kernel record-replay --- .../Pl

[llvm] [clang] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)

2023-11-07 Thread via cfe-commits
https://github.com/diggerlin edited https://github.com/llvm/llvm-project/pull/67999 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)

2023-11-07 Thread via cfe-commits
https://github.com/diggerlin edited https://github.com/llvm/llvm-project/pull/67999 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [Clangd] Sanitize path before recording into IncludeStructure during buildPreamble (PR #70798)

2023-11-07 Thread via cfe-commits
https://github.com/Maddobun updated https://github.com/llvm/llvm-project/pull/70798 >From 33e22f554355280e36a7da12484ce8220de77fb5 Mon Sep 17 00:00:00 2001 From: Leo Zhu Date: Tue, 7 Nov 2023 13:02:51 -0500 Subject: [PATCH] wip --- clang-tools-extra/clangd/Protocol.h | 4 ++-- 1 file changed,

[clang] [Clang][OpenMP]Return null expr when a negative array was created. (PR #71552)

2023-11-07 Thread via cfe-commits
https://github.com/lwshanbd updated https://github.com/llvm/llvm-project/pull/71552 >From 009afe8df3f17ba3b0f793ce144b8be41b15c90d Mon Sep 17 00:00:00 2001 From: Baodi Shan Date: Tue, 7 Nov 2023 11:06:14 -0500 Subject: [PATCH 1/2] Return null expr when a negative array was created. Fix llvm#69

[clang-tools-extra] [Clangd] Sanitize path before recording into IncludeStructure during buildPreamble (PR #70798)

2023-11-07 Thread via cfe-commits
https://github.com/Maddobun updated https://github.com/llvm/llvm-project/pull/70798 >From 33e22f554355280e36a7da12484ce8220de77fb5 Mon Sep 17 00:00:00 2001 From: Leo Zhu Date: Tue, 7 Nov 2023 13:02:51 -0500 Subject: [PATCH 1/2] wip --- clang-tools-extra/clangd/Protocol.h | 4 ++-- 1 file chan

[clang] [clang][dataflow] Compare an unqualified type to an unqualified type. (PR #71573)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Samira Bazuzi (bazuzi) Changes Includes crash-reproducing test case. --- Full diff: https://github.com/llvm/llvm-project/pull/71573.diff 2 Files Affected: - (modified) clang/lib/Analysis/FlowSensitive/Transfer.cpp (+3-3) - (modified) c

[clang] [clang][dataflow] Compare an unqualified type to an unqualified type. (PR #71573)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Samira Bazuzi (bazuzi) Changes Includes crash-reproducing test case. --- Full diff: https://github.com/llvm/llvm-project/pull/71573.diff 2 Files Affected: - (modified) clang/lib/Analysis/FlowSensitive/Transfer.cpp (+3-3) - (mo

[clang] [Clang][OpenMP]Return null expr when a negative array was created. (PR #71552)

2023-11-07 Thread via cfe-commits
https://github.com/lwshanbd updated https://github.com/llvm/llvm-project/pull/71552 >From 009afe8df3f17ba3b0f793ce144b8be41b15c90d Mon Sep 17 00:00:00 2001 From: Baodi Shan Date: Tue, 7 Nov 2023 11:06:14 -0500 Subject: [PATCH 1/2] Return null expr when a negative array was created. Fix llvm#69

[lld] [llvm] [clang] [lldb] [libc] [compiler-rt] [mlir] [flang] [libcxx] [libc][bazel] Add powf target and fix bazel overlay. (PR #71464)

2023-11-07 Thread via cfe-commits
https://github.com/michaelrj-google commented: LGTM, sorry I missed this yesterday. https://github.com/llvm/llvm-project/pull/71464 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [Clangd] Sanitize path before recording into IncludeStructure during buildPreamble (PR #70798)

2023-11-07 Thread via cfe-commits
https://github.com/Maddobun updated https://github.com/llvm/llvm-project/pull/70798 >From 33e22f554355280e36a7da12484ce8220de77fb5 Mon Sep 17 00:00:00 2001 From: Leo Zhu Date: Tue, 7 Nov 2023 13:02:51 -0500 Subject: [PATCH 1/3] wip --- clang-tools-extra/clangd/Protocol.h | 4 ++-- 1 file chan

[clang-tools-extra] [clang-tidy] readability-identifier-naming: add support for concepts (PR #71586)

2023-11-07 Thread via cfe-commits
https://github.com/nvartolomei created https://github.com/llvm/llvm-project/pull/71586 None >From e19e3d397eedff6160f6f2f05b6c2712e7712133 Mon Sep 17 00:00:00 2001 From: Nicolae Vartolomei Date: Tue, 7 Nov 2023 20:25:43 + Subject: [PATCH] [clang-tidy] readability-identifier-naming: add sup

[clang-tools-extra] [clang-tidy] readability-identifier-naming: add support for concepts (PR #71586)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: None (nvartolomei) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/71586.diff 3 Files Affected: - (modified) clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp (+4) - (modified) clang-tools-extr

[clang-tools-extra] [Clangd] Sanitize path before recording into IncludeStructure during buildPreamble (PR #70798)

2023-11-07 Thread via cfe-commits
https://github.com/Maddobun converted_to_draft https://github.com/llvm/llvm-project/pull/70798 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [clang][DepScan] Make OptimizeArgs a bit mask enum and enable by default (PR #71588)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Spencer (Bigcheese) Changes Make it easier to control which optimizations are enabled by making OptimizeArgs a bit masked enum. There's currently only one such optimization, but more will be added in followup commits. --- Full diff

[clang] [OpenMP] Add a missing 'const' (NFC) (PR #71596)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mike Rice (mikerice1969) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/71596.diff 1 Files Affected: - (modified) clang/include/clang/AST/StmtOpenMP.h (+1-1) ``diff diff --git a/clang/include/clang/AST/Stmt

[clang] Add ability for clang-format-diff to exit with non-0 status (PR #70883)

2023-11-07 Thread via cfe-commits
https://github.com/mydeveloperday approved this pull request. Let go without the option for now https://github.com/llvm/llvm-project/pull/70883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang-tools-extra] [clangd][RFC] Add container field to remote index Refs grpc method (PR #71605)

2023-11-07 Thread via cfe-commits
https://github.com/tdupes created https://github.com/llvm/llvm-project/pull/71605 call hierarchy cannot be enhanced via the remote index because the Refs returned by the remote index do not have the ID of its container. >From 4b8ab9e39c974b4cfa6573eb0589116cac3101e5 Mon Sep 17 00:00:00 2001 F

[clang-tools-extra] [clangd][RFC] Add container field to remote index Refs grpc method (PR #71605)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: dupes (tdupes) Changes call hierarchy cannot be enhanced via the remote index because the Refs returned by the remote index do not have the ID of its container. --- Full diff: https://github.com/llvm/llvm-project/pull/71605.diff 2 Fil

[clang] fb07d9c - [clang][DepScan] Make OptimizeArgs a bit mask enum and enable by default (#71588)

2023-11-07 Thread via cfe-commits
Author: Michael Spencer Date: 2023-11-07T16:06:59-08:00 New Revision: fb07d9cc096f4a0c2473dee064c427edc2a83157 URL: https://github.com/llvm/llvm-project/commit/fb07d9cc096f4a0c2473dee064c427edc2a83157 DIFF: https://github.com/llvm/llvm-project/commit/fb07d9cc096f4a0c2473dee064c427edc2a83157.dif

[clang] [clang][DependencyScanner] Remove all warning flags when suppressing warnings (PR #71612)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Spencer (Bigcheese) Changes Since system modules don't emit most warnings, remove the warning flags to increase module reuse. --- Full diff: https://github.com/llvm/llvm-project/pull/71612.diff 4 Files Affected: - (modified) c

[clang] [SEH] Fix assertin when return scalar value from __try block. (PR #71488)

2023-11-07 Thread via cfe-commits
https://github.com/jyu2-git updated https://github.com/llvm/llvm-project/pull/71488 >From 3313aca0622da3882a9e5bf304b89f28fecce7fe Mon Sep 17 00:00:00 2001 From: Jennifer Yu Date: Mon, 6 Nov 2023 20:51:39 -0800 Subject: [PATCH 1/2] [SEH] Fix assertin when return scalar value from __try block.

[clang] [Clang][OpenMP]Return empty QualType when a negative array was created. (PR #71552)

2023-11-07 Thread via cfe-commits
https://github.com/lwshanbd edited https://github.com/llvm/llvm-project/pull/71552 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20] [Modules] Introduce thin BMI (PR #71622)

2023-11-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Chuanqi Xu (ChuanqiXu9) Changes Close https://github.com/llvm/llvm-project/issues/71034 This patch introduces thin BMI, which doesn't contain the definitions of functions and variables if its definitions won't contribute to the AB

[clang] [C++20] [Modules] Introduce thin BMI (PR #71622)

2023-11-07 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 b85fdc4ffde48f2035e4621d4f9af69bf16f2136 839d38d96d2275dbc0a9aa9fae3427720a6d3344 --

[clang] 182b7e6 - [OpenMP] Add a missing 'const' (NFC) (#71596)

2023-11-07 Thread via cfe-commits
Author: Mike Rice Date: 2023-11-07T18:42:23-08:00 New Revision: 182b7e6ba75055a84544943a06df9964d3a08d81 URL: https://github.com/llvm/llvm-project/commit/182b7e6ba75055a84544943a06df9964d3a08d81 DIFF: https://github.com/llvm/llvm-project/commit/182b7e6ba75055a84544943a06df9964d3a08d81.diff LOG

<    1   2   3   4   5   6   7   8   9   10   >