[clang] Clang: Add elementwise minnum/maxnum builtin functions (PR #129207)

2025-03-18 Thread Matt Arsenault via cfe-commits
arsenm wrote: > > Needs the documentation updates in clang language extensions with the other > > elementwise builtins, and a release note > > Documentation updated. And ReleaseNotes is submitted as a new PR: #131977 Best to keep the note about the new builtins here. The PR mentioning the othe

[clang] [clang] Update C++ DR status page (PR #131812)

2025-03-18 Thread via cfe-commits
@@ -3599,7 +3599,7 @@ C++ defect report implementation status https://cplusplus.github.io/CWG/issues/591.html";>591 CD4 When a dependent base class is the current instantiation -Clang 20 +Clang 20 h-vetinari wrote: Issues that are resolved

[clang] f017073 - [Clang][CodeGen] Promote in complex compound divassign (#131453)

2025-03-18 Thread via cfe-commits
Author: Mészáros Gergely Date: 2025-03-19T07:29:45+01:00 New Revision: f017073cd8ac9e627db17678c6b64e9abe4fbec7 URL: https://github.com/llvm/llvm-project/commit/f017073cd8ac9e627db17678c6b64e9abe4fbec7 DIFF: https://github.com/llvm/llvm-project/commit/f017073cd8ac9e627db17678c6b64e9abe4fbec7.di

[clang] [Clang][CodeGen] Promote in complex compound divassign (PR #131453)

2025-03-18 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis closed https://github.com/llvm/llvm-project/pull/131453 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Promote in complex compound divassign (PR #131453)

2025-03-18 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis edited https://github.com/llvm/llvm-project/pull/131453 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Promote in complex compound divassign (PR #131453)

2025-03-18 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis updated https://github.com/llvm/llvm-project/pull/131453 From f2a2bf5f94990535637c24c3192dbeb96e17b488 Mon Sep 17 00:00:00 2001 From: Gergely Meszaros Date: Sat, 15 Mar 2025 12:53:32 +0100 Subject: [PATCH] [Clang][CodeGen] Promote in complex compound divassign When

[clang] [Clang][CodeGen] Do not promote if complex divisor is real (PR #131451)

2025-03-18 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis closed https://github.com/llvm/llvm-project/pull/131451 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1bd6716 - [Clang][CodeGen] Do not promote if complex divisor is real (#131451)

2025-03-18 Thread via cfe-commits
Author: Mészáros Gergely Date: 2025-03-19T07:26:54+01:00 New Revision: 1bd6716d33e3a4f523058e358a4e84135f64dcf9 URL: https://github.com/llvm/llvm-project/commit/1bd6716d33e3a4f523058e358a4e84135f64dcf9 DIFF: https://github.com/llvm/llvm-project/commit/1bd6716d33e3a4f523058e358a4e84135f64dcf9.di

[clang] [Clang][CodeGen] Do not promote if complex divisor is real (PR #131451)

2025-03-18 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis updated https://github.com/llvm/llvm-project/pull/131451 From 576741444f85d55787d9b1caadfecaf0618cddf2 Mon Sep 17 00:00:00 2001 From: Gergely Meszaros Date: Sat, 15 Mar 2025 11:54:12 +0100 Subject: [PATCH] [Clang][CodeGen] Do not promote if complex divisor is real R

[clang] [Clang][CodeGen] Do not promote if complex divisor is real (PR #131451)

2025-03-18 Thread Mészáros Gergely via cfe-commits
Maetveis wrote: ### Merge activity * **Mar 19, 2:22 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/131451). https://github.com/llvm/llvm-project/pull/131451 ___

[clang] [Clang][CodeGen] Do not promote if complex divisor is real (PR #131451)

2025-03-18 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis updated https://github.com/llvm/llvm-project/pull/131451 From 631db26acc1e5476431e0b60b326c96829d7b824 Mon Sep 17 00:00:00 2001 From: Gergely Meszaros Date: Sat, 15 Mar 2025 11:54:12 +0100 Subject: [PATCH] [Clang][CodeGen] Do not promote if complex divisor is real R

[clang] [Clang][Diagnostics] Update select uses in DiagnosticXKinds.td to use enum_select (PR #130868)

2025-03-18 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 08d15e3f64e3a5ec0adeae0df7969c81ab61d44b 9e08ddfb5931d06fa0e725ae7dea8de781489ab7 --e

[clang] [Clang][Diagnostics] Update select uses in DiagnosticXKinds.td to use enum_select (PR #130868)

2025-03-18 Thread Ayokunle Amodu via cfe-commits
https://github.com/ayokunle321 updated https://github.com/llvm/llvm-project/pull/130868 >From dfc517be06531af965dc51b09a0f1ae7965e3e20 Mon Sep 17 00:00:00 2001 From: Ayokunle Amodu <121697771+ayokunle...@users.noreply.github.com> Date: Fri, 14 Mar 2025 15:13:05 -0600 Subject: [PATCH 1/2] revert

[clang] [llvm] Add release note entry for max/min (PR #131977)

2025-03-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: YunQiang Su (wzssyqa) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/131977.diff 2 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) - (modified) llvm/docs/ReleaseNotes.md (+3) ``diff diff --gi

[clang] [llvm] Add release note entry for max/min (PR #131977)

2025-03-18 Thread YunQiang Su via cfe-commits
wzssyqa wrote: Since we have still some problem to be fixed. So this PR is set a draft. Wish that we can fix all of these problems in the cycle of LLVM 21. https://github.com/llvm/llvm-project/pull/131977 ___ cfe-commits mailing list cfe-commits@lists.

[clang] Clang: Add elementwise minnum/maxnum builtin functions (PR #129207)

2025-03-18 Thread YunQiang Su via cfe-commits
wzssyqa wrote: > Needs the documentation updates in clang language extensions with the other > elementwise builtins, and a release note Documentation updated. And ReleaseNotes is submitted as a new PR: https://github.com/llvm/llvm-project/pull/131977 https://github.com/llvm/llvm-project/pull/

[clang] [llvm] Add release note entry for max/min (PR #131977)

2025-03-18 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa converted_to_draft https://github.com/llvm/llvm-project/pull/131977 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add release note entry for max/min (PR #131977)

2025-03-18 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa created https://github.com/llvm/llvm-project/pull/131977 None >From 737498ab2c540251f94ff7e07426d434b28d8b34 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Wed, 19 Mar 2025 14:05:05 +0800 Subject: [PATCH] Add release note entry for max/min --- clang/docs/ReleaseN

[clang] [llvm] [flang-rt] Pass the whole path of libflang_rt.runtime.a to linker on AIX (PR #131041)

2025-03-18 Thread Daniel Chen via cfe-commits
https://github.com/DanielCChen updated https://github.com/llvm/llvm-project/pull/131041 >From 9d3e16f3e7c5adf4b5e0c1c6ba861d9e0ffea23b Mon Sep 17 00:00:00 2001 From: Daniel Chen Date: Wed, 12 Mar 2025 18:23:14 -0400 Subject: [PATCH 01/10] [flang-rt] Pass the whole path of libflang_rt.runtime.a

[clang] [HLSL] Implement min and max overloads using templates (PR #131666)

2025-03-18 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl approved this pull request. https://github.com/llvm/llvm-project/pull/131666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Improve diagnostics for vector builtins (PR #125673)

2025-03-18 Thread Fraser Cormack via cfe-commits
@@ -12519,16 +12519,13 @@ def err_builtin_is_within_lifetime_invalid_arg : Error< "%select{non-|function }0pointer argument to '__builtin_is_within_lifetime' " "is not allowed">; -def err_builtin_invalid_arg_type: Error < - "%ordinal0 argument must be " - "%select{a vec

[clang] [clang][CodeGen][AVR] Fix a crash in AVRABIInfo (PR #131976)

2025-03-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Ben Shi (benshi001) Changes fixes https://github.com/llvm/llvm-project/issues/131967 --- Full diff: https://github.com/llvm/llvm-project/pull/131976.diff 2 Files Affected: - (modified) clang/lib/CodeGen/Targets/AVR.cpp (+4-3) -

[clang] [clang][CodeGen][AVR] Fix a crash in AVRABIInfo (PR #131976)

2025-03-18 Thread Ben Shi via cfe-commits
https://github.com/benshi001 created https://github.com/llvm/llvm-project/pull/131976 fixes https://github.com/llvm/llvm-project/issues/131967 >From 163c73d21af736c94f1bb8f8c63caf96e127aba5 Mon Sep 17 00:00:00 2001 From: Ben Shi Date: Wed, 19 Mar 2025 13:21:48 +0800 Subject: [PATCH] [clang][Co

[clang] Clang: Add elementwise minnum/maxnum builtin functions (PR #129207)

2025-03-18 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/129207 >From 5c3b36b06294b43088d277c689c3367825708779 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 28 Feb 2025 16:09:04 +0800 Subject: [PATCH 1/4] Clang: Add minnum/maxnum builtin functions support With https

[clang] Reapply "[analyzer] Delay the checker constructions after parsing" (PR #128369)

2025-03-18 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. https://github.com/llvm/llvm-project/pull/128369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][fix] crashes when generating HTML without `--repository` (PR #131698)

2025-03-18 Thread Mohamed Emad via cfe-commits
@@ -494,7 +494,7 @@ genReferencesBlock(const std::vector &References, static std::unique_ptr writeFileDefinition(const Location &L, std::optional RepositoryUrl = std::nullopt) { - if (!L.IsFileInRootDir && !RepositoryUrl) + if (!L.IsFileInRootDir || !Repos

[clang] [compiler-rt] [llvm] [PGO][Offload] Allow PGO flags to be used on GPU targets (PR #94268)

2025-03-18 Thread Ethan Luis McDonough via cfe-commits
https://github.com/EthanLuisMcDonough updated https://github.com/llvm/llvm-project/pull/94268 >From 3a2047c273d948d035b50eb486b772d5b3bdc401 Mon Sep 17 00:00:00 2001 From: Ethan Luis McDonough Date: Tue, 18 Mar 2025 16:20:14 -0500 Subject: [PATCH 1/3] [PGO][Offload] Allow PGO flags to be used o

[clang] [Clang][NFC] Extend cmplx range tests for #131129 (PR #131447)

2025-03-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime` running on `omp-vega20-0` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/30/builds/17927 Here is the relevant piece of

[clang] [Clang][CodeGen] Do not promote if complex divisor is real (PR #131451)

2025-03-18 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis edited https://github.com/llvm/llvm-project/pull/131451 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Extend cmplx range tests for #131129 (PR #131447)

2025-03-18 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis closed https://github.com/llvm/llvm-project/pull/131447 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Use `SymbolName` to represent Objective-C selectors (PR #82061)

2025-03-18 Thread Alex Hoppen via cfe-commits
@@ -35,6 +35,49 @@ struct RenameOptions { bool RenameVirtual = true; }; +/// A name of a symbol that should be renamed. +/// +/// Symbol's name can be composed of multiple strings. For example, Objective-C +/// methods can contain multiple argument labels: +/// +/// \code +/

[clang-tools-extra] [clangd] Use `SymbolName` to represent Objective-C selectors (PR #82061)

2025-03-18 Thread Alex Hoppen via cfe-commits
https://github.com/ahoppen updated https://github.com/llvm/llvm-project/pull/82061 >From 2ae885429ae7658f014eacebd89e204512f3a1c2 Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Mon, 29 Jul 2024 17:33:43 -0700 Subject: [PATCH] [clangd] Use `RenameSymbolName` to represent Objective-C selectors

[clang] d85a81b - [OffloadBundler] Rework the ctor of `OffloadTargetInfo` to support AMDGPU's generic target (#122629)

2025-03-18 Thread via cfe-commits
Author: Shilei Tian Date: 2025-03-18T10:09:37-04:00 New Revision: d85a81b4e4cfc0fdc7c259d64f847e7bbeee56d2 URL: https://github.com/llvm/llvm-project/commit/d85a81b4e4cfc0fdc7c259d64f847e7bbeee56d2 DIFF: https://github.com/llvm/llvm-project/commit/d85a81b4e4cfc0fdc7c259d64f847e7bbeee56d2.diff L

[libclc] [libclc] Reduce bithacking in CLC frexp (PR #129871)

2025-03-18 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: That's interesting. As I said alive2 was happy with the before/after IR diff of the AMDGPU version of this builtin. Do you know what might be going on? Is that the fp64 or fp32 test that's failing? https://github.com/llvm/llvm-project/pull/129871

[clang] [Clang] Permit `-Xarch_` to be used with `--offload-arch` (PR #131884)

2025-03-18 Thread Alexey Bader via cfe-commits
bader wrote: > Like SPIRV is doing `nvidia_gpu_sm_89` instead of just `-Xarch_nvptx64 > --offload-arch=sm_89`. Like SYCL? https://github.com/llvm/llvm-project/pull/131884 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] [X86][AVX10.2] Use 's_' for saturate-convert intrinsics (PR #131592)

2025-03-18 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang ready_for_review https://github.com/llvm/llvm-project/pull/131592 ___ 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 support for aggregate types within modernize-use-emplace (PR #131969)

2025-03-18 Thread David Rivera via cfe-commits
https://github.com/RiverDave created https://github.com/llvm/llvm-project/pull/131969 Aims to address: #115841 C++20 introduced in-place initialization for aggregate types within `emplace_back` calls. I ensured to match any braced init expressions with temporals (and applied similar rules as

[clang] [clang][deps] Implement efficient in-process `ModuleCache` (PR #129751)

2025-03-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `clang` at step 5 "compile-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/19289 Here is the rel

[clang-tools-extra] [clang-tidy][C++20] Add support for aggregate types within modernize-use-emplace (PR #131969)

2025-03-18 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/131969 ___ 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 support for aggregate types within modernize-use-emplace (PR #131969)

2025-03-18 Thread David Rivera via cfe-commits
https://github.com/RiverDave edited https://github.com/llvm/llvm-project/pull/131969 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Fix commands in compile_to_bc are executed sequentially (PR #130755)

2025-03-18 Thread Wenju He via cfe-commits
https://github.com/wenju-he edited https://github.com/llvm/llvm-project/pull/130755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Zilsd and Zclsd Extensions (PR #131094)

2025-03-18 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/131094 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][AVX10.2] Use 's_' for saturate-convert intrinsics (PR #131592)

2025-03-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Phoebe Wang (phoebewang) Changes - Add '_' after cvt[t]s intrinsics when 's' is for saturation; - Add 's_' for all ipcvt[t] intrinsics since they are all saturation ones; This is to solve potential confusion since 's' before a type usually

[clang] [X86][AVX10.2] Use 's_' for saturate-convert intrinsics (PR #131592)

2025-03-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Phoebe Wang (phoebewang) Changes - Add '_' after cvt[t]s intrinsics when 's' is for saturation; - Add 's_' for all ipcvt[t] intrinsics since they are all saturation ones; This is to solve potential confusion since 's' before a type u

[clang] [llvm] [RISCV] Add Zilsd and Zclsd Extensions (PR #131094)

2025-03-18 Thread via cfe-commits
@@ -0,0 +1,112 @@ +//===-- RISCVInstrInfoZclsd.td -*- tablegen -*-===// +// +// 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] [RISCV] Add Zilsd and Zclsd Extensions (PR #131094)

2025-03-18 Thread via cfe-commits
https://github.com/dong-miao updated https://github.com/llvm/llvm-project/pull/131094 >From bcdf9641037507b855a20a8ba5d26b127dd248e8 Mon Sep 17 00:00:00 2001 From: dong-miao Date: Sat, 4 Jan 2025 17:53:58 +0800 Subject: [PATCH 01/35] Update RISCVSystemOperands.td --- llvm/lib/Target/RISCV/RIS

[clang] [libc] [llvm] Reapply "[AMDGPU] Use COV6 by default (#118515)" (PR #130963)

2025-03-18 Thread Joseph Huber via cfe-commits
@@ -332,6 +332,8 @@ Target Specific Changes AMDGPU Support ^^ +- Bump the default code object version to 6. ROCm 6.3 is required to run any program compiled with COV6. jhuber6 wrote: Yes, I have no clue why we don't provide that in the HSA header

[clang] [libc] [llvm] Reapply "[AMDGPU] Use COV6 by default (#118515)" (PR #130963)

2025-03-18 Thread Matt Arsenault via cfe-commits
@@ -332,6 +332,8 @@ Target Specific Changes AMDGPU Support ^^ +- Bump the default code object version to 6. ROCm 6.3 is required to run any program compiled with COV6. arsenm wrote: We probably should have a defined policy for version support. It

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-03-18 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/131804 >From a686695e6691fcb824b2055c3dfa8f0fd3727355 Mon Sep 17 00:00:00 2001 From: DeNiCoN Date: Mon, 17 Mar 2025 08:04:32 + Subject: [PATCH 01/11] origin pr --- clang-tools-extra/clang-tidy/CMakeLists.txt

[clang-tools-extra] [clang-tidy] Add support for aggregate types within modernize-use-emplace (PR #131969)

2025-03-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: David Rivera (RiverDave) Changes Aims to address: #115841 C++20 introduced in-place initialization for aggregate types within `emplace_back` calls. I ensured to match any braced init expressions with temporals (and applied si

[clang-tools-extra] [clang-tidy] Add support for aggregate types within modernize-use-emplace (PR #131969)

2025-03-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: David Rivera (RiverDave) Changes Aims to address: #115841 C++20 introduced in-place initialization for aggregate types within `emplace_back` calls. I ensured to match any braced init expressions with temporals (and applied similar r

[clang] Clang: Add elementwise minnum/maxnum builtin functions (PR #129207)

2025-03-18 Thread Matt Arsenault via cfe-commits
arsenm wrote: Needs the documentation updates in clang language extensions with the other elementwise builtins, and a release note https://github.com/llvm/llvm-project/pull/129207 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [IRGen] Mark pointers as noalias when passing trivial types by value. (PR #131885)

2025-03-18 Thread Florian Hahn via cfe-commits
https://github.com/fhahn created https://github.com/llvm/llvm-project/pull/131885 None >From fb1120b5a4abd716f6071ce8c7cfc81e725e9030 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Fri, 14 Mar 2025 15:40:47 + Subject: [PATCH] [IRGen] Mark pointers as noalias when passing trivial types

[clang] [CIR] Upstream global initialization for ArrayType (PR #131657)

2025-03-18 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: @andykaylor All comments addressed except two points related to NYI https://github.com/llvm/llvm-project/pull/131657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add support for C++23 container methods releated to iterator in ContainerModeling (PR #129719)

2025-03-18 Thread via cfe-commits
@@ -635,6 +668,66 @@ void deque_emplace_back(std::deque &D, int n) { clang_analyzer_eval(clang_analyzer_iterator_validity(i2)); //expected-warning{{FALSE}} } +/// append_range() +/// +/// - Design decision: extends containers to the ->RIGHT-> (i.e. the +/// past-the-end p

[clang] 5865807 - Reapply "[analyzer] Delay the checker constructions after parsing" (#128369)

2025-03-18 Thread via cfe-commits
Author: Balazs Benics Date: 2025-03-18T11:40:39+01:00 New Revision: 586580742123a8e3c1032369e8a2750c2c49685f URL: https://github.com/llvm/llvm-project/commit/586580742123a8e3c1032369e8a2750c2c49685f DIFF: https://github.com/llvm/llvm-project/commit/586580742123a8e3c1032369e8a2750c2c49685f.diff

[clang] [Clang] Permit `-Xarch_` to be used with `--offload-arch` (PR #131884)

2025-03-18 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 edited https://github.com/llvm/llvm-project/pull/131884 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][RFC] Introduce a trait to determine the structure binding size (PR #131515)

2025-03-18 Thread Shafik Yaghmour via cfe-commits
@@ -1911,6 +1911,38 @@ A simplistic usage example as might be seen in standard C++ headers follows: // Emulate type trait for compatibility with other compilers. #endif + +.. _builtin_structured_binding_size-doc: + +__builtin_structured_binding_size (C++) +---

[clang] [CIR] Upstream cir-canonicalize pass (PR #131891)

2025-03-18 Thread Erich Keane via cfe-commits
@@ -326,6 +326,7 @@ bool AssemblerInvocation::CreateFromArgs(AssemblerInvocation &Opts, } } Opts.LLVMArgs = Args.getAllArgValues(OPT_mllvm); + erichkeane wrote: unrelated change. https://github.com/llvm/llvm-project/pull/131891 __

[clang] [CIR] Upstream cir-canonicalize pass (PR #131891)

2025-03-18 Thread Erich Keane via cfe-commits
@@ -81,7 +85,31 @@ class CIRGenConsumer : public clang::ASTConsumer { void HandleTranslationUnit(ASTContext &C) override { Gen->HandleTranslationUnit(C); + +if (!FEOptions.ClangIRDisableCIRVerifier) { + if (!Gen->verifyModule()) { +CI.getDiagnostics().Re

[clang] [clang] Add value_type attr, use it to add noalias when pass-by-value. (PR #95004)

2025-03-18 Thread John McCall via cfe-commits
@@ -9242,3 +9242,15 @@ Declares that a function potentially allocates heap memory, and prevents any pot of ``nonallocating`` by the compiler. }]; } + +def ValueTypeDocs : Documentation { + let Category = DocCatDecl; + let Content = [{ +The ``value_type`` attribute can be u

[clang] [flang] [Clang][Driver][Test] Created test for unsupported driver options (PR #120900)

2025-03-18 Thread via cfe-commits
@@ -0,0 +1,626 @@ +#!/usr/bin/env python3 + +""" generate_unsupported_in_drivermode.py + +usage: python generate_unsupported_in_drivermode.py /Options.td [/llvm-tblgen] + +This script generates a Lit regression test file that validates that options +are only exposed to intended d

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-03-18 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/131804 >From a686695e6691fcb824b2055c3dfa8f0fd3727355 Mon Sep 17 00:00:00 2001 From: DeNiCoN Date: Mon, 17 Mar 2025 08:04:32 + Subject: [PATCH 01/10] origin pr --- clang-tools-extra/clang-tidy/CMakeLists.txt

[clang] [ARM, MVE] Change placeholder from `undef` to `poison` (PR #131689)

2025-03-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Pedro Lobo (pedroclobo) Changes Call `insertelement` on a `poison` value instead of `undef`. --- Full diff: https://github.com/llvm/llvm-project/pull/131689.diff 3 Files Affected: - (modified) clang/include/clang/Basic/arm_mve.td (+1-1)

[clang] [llvm] [DirectX] Implement Shader Flags Analysis for ResMayNotAlias (PR #131070)

2025-03-18 Thread Finn Plummer via cfe-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/131070 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [lldb] [llvm] [compiler-rt] Disable LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON on AIX. (PR #131200)

2025-03-18 Thread David Tenty via cfe-commits
@@ -109,7 +109,7 @@ if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT APPLE) extend_path(default_install_path "${COMPILER_RT_INSTALL_PATH}" lib) set(COMPILER_RT_INSTALL_LIBRARY_DIR "${default_install_path}" CACHE PATH "Path where built compiler-rt libraries should be instal

[clang] [clang][deps] Implement efficient in-process `ModuleCache` (PR #129751)

2025-03-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `polly-x86_64-linux-shlib-plugin` running on `polly-x86_64-gce2` while building `clang` at step 5 "build". Full details are available at: https://lab.llvm.org/buildbot/#/builders/75/builds/5629 Here is the relevant piece of

[clang] [CIR] Upstream a basic version of class LexicalScope (PR #131945)

2025-03-18 Thread David Olsen via cfe-commits
dkolsen-pgi wrote: There are some small functions in this change that are not called or otherwise used in this change. But they will definitely be used in future upstream patches. Since they are small and don't bring in any new dependencies and are complete (won't need to be changed in futur

[clang] [clang][deps] Implement efficient in-process `ModuleCache` (PR #129751)

2025-03-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-s390x-linux-lnt` running on `systemz-1` while building `clang` at step 6 "build stage 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/136/builds/3198 Here is the relevant piece of the build

[clang] [CIR] Upstream a basic version of class LexicalScope (PR #131945)

2025-03-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: David Olsen (dkolsen-pgi) Changes Upstream the parts of class `CIRGenFunction::LexicalScope` that implement function return values. There is a bit of other functionality in here, such as the implicit `cir.yield` at the end of a non-fun

[clang] [CIR] Upstream a basic version of class LexicalScope (PR #131945)

2025-03-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: David Olsen (dkolsen-pgi) Changes Upstream the parts of class `CIRGenFunction::LexicalScope` that implement function return values. There is a bit of other functionality in here, such as the implicit `cir.yield` at the end of a non-funct

[clang] [CIR] Upstream a basic version of class LexicalScope (PR #131945)

2025-03-18 Thread David Olsen via cfe-commits
https://github.com/dkolsen-pgi created https://github.com/llvm/llvm-project/pull/131945 Upstream the parts of class `CIRGenFunction::LexicalScope` that implement function return values. There is a bit of other functionality in here, such as the implicit `cir.yield` at the end of a non-functio

[clang] [llvm] Hlsl asint16 intrinsic (PR #131900)

2025-03-18 Thread Sarah Spall via cfe-commits
@@ -0,0 +1,29 @@ +// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.2-library %s -fnative-half-type -verify + + +int16_t4 test_asint_too_many_arg(uint16_t p0, uint16_t p1) +{ +return asint16(p0, p1); + // expected-error@-1 {{no matching function for ca

[clang] a21dd25 - [clang] Enforce UTF-8 in `make_cxx_dr_status` (#131816)

2025-03-18 Thread via cfe-commits
Author: Vlad Serebrennikov Date: 2025-03-19T01:46:48+04:00 New Revision: a21dd255ad79442a847581e3f06900ba0a534a49 URL: https://github.com/llvm/llvm-project/commit/a21dd255ad79442a847581e3f06900ba0a534a49 DIFF: https://github.com/llvm/llvm-project/commit/a21dd255ad79442a847581e3f06900ba0a534a49.

[clang] [clang] Enforce UTF-8 in `make_cxx_dr_status` (PR #131816)

2025-03-18 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/131816 >From e7b2dc54e409f43df1f1e0bf17ec2f06ce61be42 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Tue, 18 Mar 2025 18:04:04 +0300 Subject: [PATCH] [clang] Enforce UTF-8 in `make_cxx_dr_status` Otherwise Wi

[clang] [clang][deps] Implement efficient in-process `ModuleCache` (PR #129751)

2025-03-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang` at step 6 "build-stage1-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/builds/9869 Her

[clang] [clang][modules][deps] Add mutex as an alternative to file lock (PR #129751)

2025-03-18 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 updated https://github.com/llvm/llvm-project/pull/129751 >From 7dadb10f4e63e419a230270b5f26a145d7015ae7 Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Wed, 12 Mar 2025 10:20:16 -0700 Subject: [PATCH 1/2] [clang][deps] Implement efficient in-process `ModuleCach

[clang] [clang][deps] Implement efficient in-process `ModuleCache` (PR #129751)

2025-03-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-s390x-linux` running on `systemz-1` while building `clang` at step 4 "build stage 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/42/builds/3741 Here is the relevant piece of the build log f

[clang] [clang][analyzer] Add support for C++23 container methods releated to iterator in ContainerModeling (PR #129719)

2025-03-18 Thread via cfe-commits
https://github.com/flovent edited https://github.com/llvm/llvm-project/pull/129719 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers] Implement spirvamdgcnintrin.h (PR #131164)

2025-03-18 Thread Jon Chesterfield via cfe-commits
JonChesterfield wrote: We don't need a way to call the builtins. See for example this pull request. Intel have done the spirv64-intel- thing similar to the spirv64-amd-amdhsa so they can (presumably?) use whatever intrinsics they like, using another header quite like this one. https://github.

[clang] [CLANG-CL] ignores wpadded (PR #130182)

2025-03-18 Thread Theo de Magalhaes via cfe-commits
=?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes Message-ID: In-Reply-To: https://github.com/therealcoochieman updated https://github.com/llvm/llvm-project/pull/130182 >From 3a9bc908a791669c82f288ff745664411bf285ac M

[clang] [Clang][NFC] Extend cmplx range tests for #131129 (PR #131447)

2025-03-18 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/131447 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream cir-canonicalize pass (PR #131891)

2025-03-18 Thread Erich Keane via cfe-commits
@@ -0,0 +1,72 @@ +// RUN: cir-opt %s -cir-canonicalize -o - | FileCheck %s + +module { + cir.func @redundant_br() { +cir.br ^bb1 + ^bb1: // pred: ^bb0 +%0 = cir.alloca !cir.int, !cir.ptr>, ["a", init] {alignment = 4 : i64} +%1 = cir.const #cir.int<4> : !cir.int +

[clang] [flang] [Clang][Driver][Test] Created test for unsupported driver options (PR #120900)

2025-03-18 Thread via cfe-commits
@@ -0,0 +1,472 @@ +#!/usr/bin/env python3 + +"""generate_unsupported_in_drivermode.py + +This script generates Lit regression test files that validate that options are only exposed to intended driver modes. + +The options and driver modes are parsed from Options.td, whose path sh

[clang] [clang][deps] Implement efficient in-process `ModuleCache` (PR #129751)

2025-03-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-8-cmake-build-only` running on `rocm-docker-rhel-8` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/3856 Here is the releva

[clang] [clang][scan-build] Treat --use-cc and --use-c++ as shell commands (PR #131932)

2025-03-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Florian Ragwitz (rafl) Changes So that things like --use-cc="ccache gcc" work. Fixes #26594. Also use the slightly simpler shellwords instead of quotewords. Cc-ing the Clang static analyzer maintainers @haoNoQ, @Xazax-hun, and @steakhal.

[clang] [clang][scan-build] Treat --use-cc and --use-c++ as shell commands (PR #131932)

2025-03-18 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

[clang] [clang][scan-build] Treat --use-cc and --use-c++ as shell commands (PR #131932)

2025-03-18 Thread Florian Ragwitz via cfe-commits
https://github.com/rafl created https://github.com/llvm/llvm-project/pull/131932 So that things like --use-cc="ccache gcc" work. Fixes #26594. Also use the slightly simpler shellwords instead of quotewords. Cc-ing the Clang static analyzer maintainers @haoNoQ, @Xazax-hun, and @steakhal. >From

[clang] [Clang][RFC] Introduce a trait to determine the structure binding size (PR #131515)

2025-03-18 Thread Aaron Ballman via cfe-commits
@@ -1642,6 +1661,56 @@ void Sema::CheckCompleteDecompositionDeclaration(DecompositionDecl *DD) { DD->setInvalidDecl(); } +std::optional Sema::GetDecompositionElementCount(QualType T, + SourceLocation Loc) { + con

[clang] [MS][clang] Add support for vector deleting destructors (PR #126240)

2025-03-18 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: > I think the `.SCOV$M` section globals should be in the > `??_EClassA@@UEAAPEXI@Z` comdat group. I think sanitizer coverage (sancov) is > one of the lesser-used sanitizers here, and it may lack some sophistication > when it comes to comdat groups. I wasn't aware of this creat

[clang] [clang-format] add option to control bin-packing keyworded parameters (PR #131605)

2025-03-18 Thread Björn Schäpers via cfe-commits
@@ -148,6 +160,24 @@ class AnnotatingParser { } } + const FormatStyle::FunctionDeclarationWithKeywords * + isInsideFunctionWithKeywordedParameters(const FormatToken &Token) const { +const FormatToken *Previous = &Token; +while (auto Prev = Previous->getPrevious

[clang] [clang-format] add option to control bin-packing keyworded parameters (PR #131605)

2025-03-18 Thread Björn Schäpers via cfe-commits
@@ -29096,6 +29096,63 @@ TEST_F(FormatTest, BreakBeforeClassName) { "ArenaSafeUniquePtr {};"); } +TEST_F(FormatTest, FunctionDeclarationWithKeywords) { + FormatStyle::FunctionDeclarationWithKeywords QPropertyDeclaration; + QPropertyDeclaration.Name = "Q_PR

[clang] [clang-tools-extra] Suppress pedantic diagnostic for a file not ending in EOL (PR #131794)

2025-03-18 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: Both #131812 and #131816 have been merged, so you can update your branch and run the script. https://github.com/llvm/llvm-project/pull/131794 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] [clang] Enforce UTF-8 in `make_cxx_dr_status` (PR #131816)

2025-03-18 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll closed https://github.com/llvm/llvm-project/pull/131816 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][deps] Implement efficient in-process `ModuleCache` (PR #129751)

2025-03-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu-dwarf5` running on `doug-worker-1b` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/163/builds/15445 Here is the

[clang] [llvm] [RISCV] Add Zilsd and Zclsd Extensions (PR #131094)

2025-03-18 Thread via cfe-commits
@@ -176,6 +176,13 @@ def HasStdExtZicfiss : Predicate<"Subtarget->hasStdExtZicfiss()">, "'Zicfiss' (Shadow stack)">; def NoHasStdExtZicfiss : Predicate<"!Subtarget->hasStdExtZicfiss()">; +def FeatureStdExtZilsd +: RISCVExtension<1

[clang] [clang][deps] Implement efficient in-process `ModuleCache` (PR #129751)

2025-03-18 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` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/15764 Here is the relevant piece of the build log fo

[clang] [clang][deps] Implement efficient in-process `ModuleCache` (PR #129751)

2025-03-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot7` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/12788 Here is the relevant piece of the

[clang] [Clang][NFC] Extend cmplx range tests for #131129 (PR #131447)

2025-03-18 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: > I can experiment with --filter-out, but I'd prefer to do that as a followup. If you want, you can run the IR through "opt -passes=mem2reg" or something... we just don't want to run the full optimization pipeline because that leads to a bunch of spurious changes to clang

[clang] [Clang] Permit `-Xarch_` to be used with `--offload-arch` (PR #131884)

2025-03-18 Thread Jon Chesterfield via cfe-commits
https://github.com/JonChesterfield edited https://github.com/llvm/llvm-project/pull/131884 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >