[clang] [clang][Sema] Fixes for %b printf extension handling (PR #120689)

2024-12-19 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/120689 >From db61e7cc93b93bfa4ea19b274532f562b3c0a9a6 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 19 Dec 2024 21:35:57 -0500 Subject: [PATCH] [clang][Sema] Fixes for %b printf extension handling The %b printf e

[clang] [clang][Sema] Fixes for %b printf extension handling (PR #120689)

2024-12-19 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/120689 The %b printf extension in the kernel is not fixed to a int type. On sparc64 there are various %llb formats. Adjust the code to handle the length specifiers and type check like it is used by the regular case. >Fro

[clang] 93743ee - Revert "[Clang] Re-write codegen for atomic_test_and_set and atomic_clear (#120449)"

2024-12-19 Thread Mikhail Goncharov via cfe-commits
Author: Mikhail Goncharov Date: 2024-12-20T08:14:26+01:00 New Revision: 93743ee566694d2fcafa3243c03330e86bf9c806 URL: https://github.com/llvm/llvm-project/commit/93743ee566694d2fcafa3243c03330e86bf9c806 DIFF: https://github.com/llvm/llvm-project/commit/93743ee566694d2fcafa3243c03330e86bf9c806.d

[clang] [CIR] floating-point, pointer, and function types (PR #120484)

2024-12-19 Thread David Olsen via cfe-commits
dkolsen-pgi wrote: @keryell : > Are you up-streaming the changes in commit order or are you up-streaming the > changes with the latest version of a feature? Upstreaming is happening in logical chunks, using the latest version of the feature. I am paying no attention to the order of commits in

[clang] [Clang][TableGen] Add missing __bf16 type to the builtins parser (PR #120662)

2024-12-19 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: Do you plan to use it somewhere? https://github.com/llvm/llvm-project/pull/120662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] floating-point, pointer, and function types (PR #120484)

2024-12-19 Thread David Olsen via cfe-commits
https://github.com/dkolsen-pgi updated https://github.com/llvm/llvm-project/pull/120484 >From b76111ab93253a772156992e70acb5c78511a6bf Mon Sep 17 00:00:00 2001 From: David Olsen Date: Wed, 18 Dec 2024 13:52:58 -0800 Subject: [PATCH 1/3] [CIR] floating-point, pointer, and function types Upstrea

[clang] [clang-tools-extra] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/120673 >From ef5e52370d202431c1e6970fc57a7a04b9e83b89 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 20 Dec 2024 02:55:49 + Subject: [PATCH 1/2] Clang/Preprocessor: Not add headers of __has_include into Dep

[clang] [llvm] [AArch64][docs] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread Kinoshita Kotaro via cfe-commits
@@ -977,6 +977,10 @@ Arm and AArch64 Support in leaf functions after enabling ``-fno-omit-frame-pointer``, you can do so by adding the ``-momit-leaf-frame-pointer`` option. +- Support has been added for the following processors (-mcpu identifiers in parenthesis): ---

[clang] [llvm] [AArch64][docs] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread Kinoshita Kotaro via cfe-commits
https://github.com/kinoshita-fj updated https://github.com/llvm/llvm-project/pull/120684 >From e4a47f6e7e44be47b697d194554655123c25c97f Mon Sep 17 00:00:00 2001 From: Kinoshita Kotaro Date: Tue, 17 Dec 2024 23:40:24 + Subject: [PATCH 1/2] [AArch64][docs] Add release notes for FUJITSU-MONAKA

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
@@ -1281,31 +1281,43 @@ parseRegAllocFastPassOptions(PassBuilder &PB, StringRef Params) { return Opts; } -Expected +Expected parseBoundsCheckingOptions(StringRef Params) { - BoundsCheckingPass::ReportingMode Mode = - BoundsCheckingPass::ReportingMode::Trap; + Bounds

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
@@ -299,7 +303,7 @@ void BoundsCheckingPass::printPipeline( raw_ostream &OS, function_ref MapClassName2PassName) { static_cast *>(this)->printPipeline( OS, MapClassName2PassName); - switch (Mode) { + switch (Options.Mode) { thurstond wrote: Adde

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
@@ -445,9 +445,10 @@ New Compiler Flags - The ``-Warray-compare-cxx26`` warning has been added to warn about array comparison starting from C++26, this warning is enabled as an error by default. -- '-fsanitize-merge' (default) and '-fno-sanitize-merge' have been added for -

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
@@ -5,6 +5,21 @@ ; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s --check-prefixes=RTABORT ; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s --check-prefixes=MINRT ; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s --check-prefixes=MIN

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
@@ -488,8 +489,11 @@ Removed Compiler Flags derivatives) is now removed, since it's no longer possible to suppress the diagnostic (see above). Users can expect an `unknown warning` diagnostic if it's still in use. -- The experimental flag '-ubsan-unique-traps' has been re

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
https://github.com/thurstond updated https://github.com/llvm/llvm-project/pull/120682 >From ee51ed7bd68df7b2dae3f1426471b34d0388a42f Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Fri, 20 Dec 2024 04:11:36 + Subject: [PATCH 1/4] Remove -bounds-checking-unique-traps (replace with -fno-s

[clang] [llvm] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread Kinoshita Kotaro via cfe-commits
https://github.com/kinoshita-fj created https://github.com/llvm/llvm-project/pull/120684 Adds release notes for the FUJITSU-MONAKA support introduced in PR #118432. These notes were missing from the original PR. >From ee7524e1740ef70243bdaccbca360496e6b59797 Mon Sep 17 00:00:00 2001 From: Kino

[clang] [llvm] [AArch64][docs] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread Yuta Mukai via cfe-commits
@@ -977,6 +977,10 @@ Arm and AArch64 Support in leaf functions after enabling ``-fno-omit-frame-pointer``, you can do so by adding the ``-momit-leaf-frame-pointer`` option. +- Support has been added for the following processors (-mcpu identifiers in parenthesis): ---

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/120673 >From ef5e52370d202431c1e6970fc57a7a04b9e83b89 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 20 Dec 2024 02:55:49 + Subject: [PATCH] Clang/Preprocessor: Not add headers of __has_include into DepColl

[clang] [llvm] [AArch64][docs] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread Kinoshita Kotaro via cfe-commits
https://github.com/kinoshita-fj updated https://github.com/llvm/llvm-project/pull/120684 >From e4a47f6e7e44be47b697d194554655123c25c97f Mon Sep 17 00:00:00 2001 From: Kinoshita Kotaro Date: Tue, 17 Dec 2024 23:40:24 + Subject: [PATCH] [AArch64][docs] Add release notes for FUJITSU-MONAKA sup

[clang] [llvm] [AArch64][docs] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread Kinoshita Kotaro via cfe-commits
https://github.com/kinoshita-fj edited https://github.com/llvm/llvm-project/pull/120684 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/120682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kinoshita Kotaro (kinoshita-fj) Changes Adds release notes for the FUJITSU-MONAKA support introduced in PR #118432. These notes were missing from the original PR. --- Full diff: https://github.com/llvm/llvm-project/pull/120684.diff 2 Fil

[clang] [clang-format] Skip line splices when sorting C++ includes (PR #120680)

2024-12-19 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/120680 >From 8821857ea4d10c4122b5b9d7fefd005169f8852a Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 19 Dec 2024 19:59:23 -0800 Subject: [PATCH] [clang-format] Skip line splices when sorting C++ includes Fixes #109

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Vitaly Buka via cfe-commits
@@ -299,7 +303,7 @@ void BoundsCheckingPass::printPipeline( raw_ostream &OS, function_ref MapClassName2PassName) { static_cast *>(this)->printPipeline( OS, MapClassName2PassName); - switch (Mode) { + switch (Options.Mode) { vitalybuka wrote: you

[clang-tools-extra] [clangd] Allow specifying what headers are always included via "" or <> (PR #67749)

2024-12-19 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > I don't have any energy and the massive reachitecting requested would take me > tons of time. I certainly didn't intend to request a massive rearchitecting. Sam's comment gave me the impression that hooking up the preferences to include-cleaner would be fairly straight

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Vitaly Buka via cfe-commits
@@ -1281,31 +1281,43 @@ parseRegAllocFastPassOptions(PassBuilder &PB, StringRef Params) { return Opts; } -Expected +Expected parseBoundsCheckingOptions(StringRef Params) { - BoundsCheckingPass::ReportingMode Mode = - BoundsCheckingPass::ReportingMode::Trap; + Bounds

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Vitaly Buka via cfe-commits
@@ -5,6 +5,21 @@ ; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s --check-prefixes=RTABORT ; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s --check-prefixes=MINRT ; RUN: opt < %s -passes='bounds-checking' -S | FileCheck %s --check-prefixes=MIN

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Vitaly Buka via cfe-commits
@@ -445,9 +445,10 @@ New Compiler Flags - The ``-Warray-compare-cxx26`` warning has been added to warn about array comparison starting from C++26, this warning is enabled as an error by default. -- '-fsanitize-merge' (default) and '-fno-sanitize-merge' have been added for -

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Vitaly Buka via cfe-commits
@@ -488,8 +489,11 @@ Removed Compiler Flags derivatives) is now removed, since it's no longer possible to suppress the diagnostic (see above). Users can expect an `unknown warning` diagnostic if it's still in use. -- The experimental flag '-ubsan-unique-traps' has been re

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
https://github.com/thurstond created https://github.com/llvm/llvm-project/pull/120682 -fno-sanitize-merge (introduced in #120511) combines the functionality of -ubsan-unique-traps and -bounds-checking-unique-traps, while allowing fine-grained control of which UBSan checks to prevent merging. #

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
https://github.com/thurstond updated https://github.com/llvm/llvm-project/pull/120682 >From ee51ed7bd68df7b2dae3f1426471b34d0388a42f Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Fri, 20 Dec 2024 04:11:36 + Subject: [PATCH 1/2] Remove -bounds-checking-unique-traps (replace with -fno-s

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
https://github.com/thurstond edited https://github.com/llvm/llvm-project/pull/120682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 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 cc7d0841cc27b709f83a4194f45914c00a69a9ea ee51ed7bd68df7b2dae3f1426471b34d0388a42f --e

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Thurston Dang via cfe-commits
https://github.com/thurstond edited https://github.com/llvm/llvm-project/pull/120682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Thurston Dang (thurstond) Changes -fno-sanitize-merge (introduced in #120511) combines the functionality of -ubsan-unique-traps and -bounds-checking-unique-traps, while allowing fine-grained control of which UBSan checks to prevent mergin

[clang] [clang-format] Skip line splices when sorting C++ includes (PR #120680)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #109864. --- Full diff: https://github.com/llvm/llvm-project/pull/120680.diff 2 Files Affected: - (modified) clang/lib/Format/Format.cpp (+8-1) - (modified) clang/unittests/Format/SortIncludesTest

[clang] [clang-format] Skip line splices when sorting C++ includes (PR #120680)

2024-12-19 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/120680 Fixes #109864. >From cb71ed39160ad46566db7ce5d4ab622ffcf842ee Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 19 Dec 2024 19:59:23 -0800 Subject: [PATCH] [clang-format] Skip line splices when sorting C++ incl

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/120673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/120673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] support parameters file in command line (PR #120547)

2024-12-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/120547 >From 2927ef2ccd286e1efeb12ef12eb5f0fd2dcf2454 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Thu, 19 Dec 2024 15:23:02 +0800 Subject: [PATCH 1/5] [clang-tidy] support parameters file in command line Fix

[clang] [BoundsSafety][Doc] Add BoundsSafetyAdoptionGuide.rst (PR #120674)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yeoul Na (rapidsna) Changes This adds an instruction to adopt `-fbounds-safety` using the preview implementation available in the fork of llvm-project. --- Full diff: https://github.com/llvm/llvm-project/pull/120674.diff 3 Files Affecte

[clang] [BoundsSafety][Doc] Add BoundsSafetyAdoptionGuide.rst (PR #120674)

2024-12-19 Thread Yeoul Na via cfe-commits
https://github.com/rapidsna created https://github.com/llvm/llvm-project/pull/120674 This adds an instruction to adopt `-fbounds-safety` using the preview implementation available in the fork of llvm-project. >From 390d37d9706472e46a34366bcaa519d34496b888 Mon Sep 17 00:00:00 2001 From: Yeoul N

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: YunQiang Su (wzssyqa) Changes When we preprocess the bellow code with clang -E -MD -MF #if __has_include() // DO NOTHING #endif #if 0 && __has_include() #include #endif It will list limit

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa created https://github.com/llvm/llvm-project/pull/120673 When we preprocess the bellow code with clang -E -MD -MF #if __has_include() // DO NOTHING #endif #if 0 && __has_include() #include #endif It will list limits.h in the dependencies. The sa

[clang] [Clang] Re-write codegen for atomic_test_and_set and atomic_clear (PR #120449)

2024-12-19 Thread James Y Knight via cfe-commits
jyknight wrote: Yes, the code in libpcap is correct, and the new Clang behavior is incorrect. `__atomic_clear` and `__atomic_test_and_set` are intentionally different from the other atomic builtins, in that they are _not_ type-generic, but instead always operate on the single byte at the provi

[clang-tools-extra] [clang-tidy] swap cppcoreguidelines-narrowing-conversions and bugprone-narrowing-conversions (PR #120245)

2024-12-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/120245 >From 9e47698969dc59df1abaa8abd243b97e8fa038c3 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 17 Dec 2024 23:31:52 +0800 Subject: [PATCH 1/4] [clang-tidy][NFC] swap cppcoreguidelines-narrowing-conve

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-19 Thread via cfe-commits
@@ -319,10 +319,9 @@ Changes in existing checks diagnostic. - Improved :doc:`readability-implicit-bool-conversion - ` check - by adding the option `UseUpperCaseLiteralSuffix` to select the - case of the literal suffix in fixes and fixing false positive for implicit - con

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-19 Thread via cfe-commits
https://github.com/4m4n-x-B4w4ne updated https://github.com/llvm/llvm-project/pull/120087 >From 03f536888ddc5b7be2514c2d880c6d3119b7f4ee Mon Sep 17 00:00:00 2001 From: 4m4n-x-B4w4ne <125849251+4m4n-x-b4w...@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:43:42 +0530 Subject: [PATCH 01/28] Up

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-19 Thread via cfe-commits
@@ -287,72 +292,83 @@ void ImplicitBoolConversionCheck::registerMatchers(MatchFinder *Finder) { auto BoolXor = binaryOperator(hasOperatorName("^"), hasLHS(ImplicitCastFromBool), hasRHS(ImplicitCastFromBool)); - auto ComparisonInCall = allOf( -

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-19 Thread via cfe-commits
https://github.com/4m4n-x-B4w4ne updated https://github.com/llvm/llvm-project/pull/120087 >From 03f536888ddc5b7be2514c2d880c6d3119b7f4ee Mon Sep 17 00:00:00 2001 From: 4m4n-x-B4w4ne <125849251+4m4n-x-b4w...@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:43:42 +0530 Subject: [PATCH 01/27] Up

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-19 Thread via cfe-commits
https://github.com/4m4n-x-B4w4ne updated https://github.com/llvm/llvm-project/pull/120087 >From 03f536888ddc5b7be2514c2d880c6d3119b7f4ee Mon Sep 17 00:00:00 2001 From: 4m4n-x-B4w4ne <125849251+4m4n-x-b4w...@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:43:42 +0530 Subject: [PATCH 01/26] Up

[clang] [clang] Return larger CXX records in memory (PR #120670)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-backend-x86 Author: Pranav Kant (pranavk) Changes We incorrectly return CXX records in AVX registers when they should be returned in memory. This is violation of x86-64 psABI. Detailed discussion is here: https://gro

[clang] [clang] Return larger CXX records in memory (PR #120670)

2024-12-19 Thread Pranav Kant via cfe-commits
https://github.com/pranavk created https://github.com/llvm/llvm-project/pull/120670 We incorrectly return CXX records in AVX registers when they should be returned in memory. This is violation of x86-64 psABI. Detailed discussion is here: https://groups.google.com/g/x86-64-abi/c/BjOOyihHuqg/m

[clang-tools-extra] [clang-tidy] swap cppcoreguidelines-narrowing-conversions and bugprone-narrowing-conversions (PR #120245)

2024-12-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/120245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [webkit.UncountedLambdaCapturesChecker] Detect protectedThis pattern. (PR #120528)

2024-12-19 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/120528 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a71f9e6 - [webkit.UncountedLambdaCapturesChecker] Detect protectedThis pattern. (#120528)

2024-12-19 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2024-12-19T18:11:28-08:00 New Revision: a71f9e6986b80fa90c453219795a1369b8ea7b6e URL: https://github.com/llvm/llvm-project/commit/a71f9e6986b80fa90c453219795a1369b8ea7b6e DIFF: https://github.com/llvm/llvm-project/commit/a71f9e6986b80fa90c453219795a1369b8ea7b6e.diff

[clang] [webkit.UncountedLambdaCapturesChecker] Detect protectedThis pattern. (PR #120528)

2024-12-19 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: Thanks for the review https://github.com/llvm/llvm-project/pull/120528 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebKit checkers] Recognize adoptRef as a safe function (PR #120629)

2024-12-19 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/120629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d3c4637 - [WebKit checkers] Recognize adoptRef as a safe function (#120629)

2024-12-19 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2024-12-19T18:08:24-08:00 New Revision: d3c4637cbbd5f0a84811abe195098ce714a2cc32 URL: https://github.com/llvm/llvm-project/commit/d3c4637cbbd5f0a84811abe195098ce714a2cc32 DIFF: https://github.com/llvm/llvm-project/commit/d3c4637cbbd5f0a84811abe195098ce714a2cc32.diff

[clang] [clang][Darwin] Remove legacy framework search path logic in the frontend (PR #120149)

2024-12-19 Thread Ian Anderson via cfe-commits
@@ -0,0 +1,26 @@ +// UNSUPPORTED: system-windows +// Windows is unsupported because we use the Unix path separator `/` in the test. + +// Add default directories before running clang to check default +// search paths. +// RUN: rm -rf %t && mkdir -p %t +// RUN: cp -R %S/Inputs/M

[clang] [llvm] [tysan] Convert TySan from function+module pass to just module pass (PR #120667)

2024-12-19 Thread Mingjie Xu via cfe-commits
https://github.com/Enna1 updated https://github.com/llvm/llvm-project/pull/120667 >From 7cef5a275b176b8cf8703ae3b372637a1dded326 Mon Sep 17 00:00:00 2001 From: "xumingjie.enna1" Date: Thu, 19 Dec 2024 20:38:09 +0800 Subject: [PATCH 1/2] [tysan] Convert TySan from function+module pass to just m

[clang] [llvm] [tysan] Convert TySan from function+module pass to just module pass (PR #120667)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Mingjie Xu (Enna1) Changes As mentioned in https://github.com/llvm/llvm-project/pull/118989, all sanitizers but tsan are converted to just module pass for easier maintenance. This patch removes the TySan

[clang] [llvm] [tysan] Convert TySan from function+module pass to just module pass (PR #120667)

2024-12-19 Thread Mingjie Xu via cfe-commits
https://github.com/Enna1 created https://github.com/llvm/llvm-project/pull/120667 As mentioned in https://github.com/llvm/llvm-project/pull/118989, all sanitizers but tsan are converted to just module pass for easier maintenance. This patch removes the TySan function pass, convert TySan from f

[clang] (reland) [clang] Warn [[clang::lifetimebound]] misusages on types (PR #118501)

2024-12-19 Thread Shafik Yaghmour via cfe-commits
@@ -8612,7 +8612,11 @@ static void HandleLifetimeBoundAttr(TypeProcessingState &State, CurType = State.getAttributedType( createSimpleAttr(State.getSema().Context, Attr), CurType, CurType); +return; } + State.getSema().Diag(Attr.getLoc(), diag::err_

[clang] Patch series to reapply #118734 and substantially improve it (PR #120534)

2024-12-19 Thread via cfe-commits
dyung wrote: > @dyung -- Could you try out > https://github.com/chandlerc/llvm-project/tree/shard-loongarch and see if > that works? > > Notably, it includes one additional patch on top of this series: > [chandlerc@2d59328](https://github.com/chandlerc/llvm-project/commit/2d593288dc18c5530777

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-19 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti commented: You could try to implement the check with `TK_TraverseUnlessSpelledInSource` if you'd like, which would only add two more matchers via `addMatcher`, and the traversal kind function (https://godbolt.org/z/GrfMTxeGa). IMO, this can be done in a follow-up by

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,97 @@ +//===--- UseSpanFirstLastCheck.cpp - clang-tidy -*- 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

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-19 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/118074 ___ 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 readability-use-span-first-last check (PR #118074)

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,97 @@ +//===--- UseSpanFirstLastCheck.cpp - clang-tidy -*- 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

[clang] [Darwin][Driver][clang] apple-none-macho orders the resource directory after internal-externc-isystem when nostdlibinc is used (PR #120507)

2024-12-19 Thread Ian Anderson via cfe-commits
@@ -0,0 +1,55 @@ +// UNSUPPORTED: system-windows +// Windows is unsupported because we use the Unix path separator `/` in the test. + +// Add default directories before running clang to check default +// search paths. +// RUN: rm -rf %t && mkdir -p %t +// RUN: cp -R %S/Inputs/M

[clang] [clang] Informative error for lifetimebound in decl-spec (PR #118567)

2024-12-19 Thread Shafik Yaghmour via cfe-commits
@@ -3703,8 +3703,14 @@ void Parser::ParseDeclarationSpecifiers( // We reject AT_LifetimeBound and AT_AnyX86NoCfCheck, even though they // are type attributes, because we historically haven't allowed these // to be used as type attributes in C++11

[clang] [HLSL] Add Load(int) method on structured buffers (PR #120663)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Helena Kotas (hekota) Changes Adds `T Load(int)` method on `StructuredBuffer`, `RWStructuredBuffer` and `RasterizerOrderedStructuredBuffer`. Uses the existing `addLoadMethods` in HLSLExternalSemalSource so most of this change is just test

[clang] [Clang] Implement P2280R4 Using unknown pointers and references in constant expressions (PR #95474)

2024-12-19 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik updated https://github.com/llvm/llvm-project/pull/95474 >From 69b09ea5b0f0a1c5419c488ade29b6fedc6de773 Mon Sep 17 00:00:00 2001 From: Shafik Yaghmour Date: Thu, 13 Jun 2024 14:20:50 -0700 Subject: [PATCH 01/10] [Clang] Implement P2280R4 Using unknown pointers and refe

[clang-tools-extra] [analyzer] Split alpha core Identical Expression tests (PR #119543)

2024-12-19 Thread via cfe-commits
vabridgers wrote: No problem. Thanks @5chmidti ! https://github.com/llvm/llvm-project/pull/119543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add Load(int) method on structured buffers (PR #120663)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Helena Kotas (hekota) Changes Adds `T Load(int)` method on `StructuredBuffer`, `RWStructuredBuffer` and `RasterizerOrderedStructuredBuffer`. Uses the existing `addLoadMethods` in HLSLExternalSemalSource so most of this change is just tes

[clang] [HLSL] Add Load(int) method on structured buffers (PR #120663)

2024-12-19 Thread Helena Kotas via cfe-commits
https://github.com/hekota ready_for_review https://github.com/llvm/llvm-project/pull/120663 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add Load(int) method on structured buffers (PR #120663)

2024-12-19 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/120663 Adds `T Load(int)` method on `StructuredBuffer`, `RWStructuredBuffer` and `RasterizerOrderedStructuredBuffer`. Uses the existing `addLoadMethods` in HLSLExternalSemalSource so most of this change is just tests.

[clang-tools-extra] [clang-tidy] support parameters file in command line (PR #120547)

2024-12-19 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti commented: As this is not using `llvm::cl`, it is not automatically documented in `--help`. Maybe some sort of comment inside `ClangTidyHelp` would help with the discoverability from the CLI. https://github.com/llvm/llvm-project/pull/120547 _

[clang-tools-extra] [clang-tidy] support parameters file in command line (PR #120547)

2024-12-19 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/120547 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] support parameters file in command line (PR #120547)

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -33,6 +33,13 @@ compilation options on the command line after ``--``: $ clang-tidy test.cpp -- -Imy_project/include -DMY_DEFINES ... +If there are too many options to specify on the command line, you can store them +in a parameter file, and use :program:`clang-tidy` wit

[clang] [Clang][TableGen] Add missing __bf16 type to the builtins parser (PR #120662)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Victor Mustya (vmustya) Changes The Clang tablegen built-in function prototype parser has the `__bf16` type missing. This patch adds the missing type to the parser. --- Full diff: https://github.com/llvm/llvm-project/pull/120662.diff 2 F

[clang] [Clang][TableGen] Add missing __bf16 type to the builtins parser (PR #120662)

2024-12-19 Thread Victor Mustya via cfe-commits
https://github.com/vmustya created https://github.com/llvm/llvm-project/pull/120662 The Clang tablegen built-in function prototype parser has the `__bf16` type missing. This patch adds the missing type to the parser. >From df1fe8e7e6cb978ff52d71c36cea9af207b11224 Mon Sep 17 00:00:00 2001 From:

[clang-tools-extra] [analyzer] Split alpha core Identical Expression tests (PR #119543)

2024-12-19 Thread via cfe-commits
vabridgers wrote: I speculatively updated the filenames per @5chmidti comments. Thanks. https://github.com/llvm/llvm-project/pull/119543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

2024-12-19 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/119755 >From 8cebb59304a1f893d94f2a758bc47a62f27c1b8b Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Thu, 12 Dec 2024 11:37:46 -0800 Subject: [PATCH 1/4] [HLSL] Codegen for simple `cbuffer` blocks without embedded a

[clang-tools-extra] [analyzer] Split alpha core Identical Expression tests (PR #119543)

2024-12-19 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti approved this pull request. Thanks. LGTM from my side, but give it a few days in case the others want to review as well https://github.com/llvm/llvm-project/pull/119543 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang-tools-extra] [analyzer] Split alpha core Identical Expression tests (PR #119543)

2024-12-19 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/119543 >From 952b30598c7583f3f5508e5fda59d91d64d5d163 Mon Sep 17 00:00:00 2001 From: Vince Bridgers Date: Wed, 11 Dec 2024 12:11:31 +0100 Subject: [PATCH 1/3] [analyzer] Split alpha core Identical Expression tests

[clang] c2aee50 - [ubsan] Runtime and driver support for local-bounds (#120515)

2024-12-19 Thread via cfe-commits
Author: Vitaly Buka Date: 2024-12-19T16:38:07-08:00 New Revision: c2aee5062087f193cb5756f378c248c7d91b7245 URL: https://github.com/llvm/llvm-project/commit/c2aee5062087f193cb5756f378c248c7d91b7245 DIFF: https://github.com/llvm/llvm-project/commit/c2aee5062087f193cb5756f378c248c7d91b7245.diff L

[clang-tools-extra] [clang-tidy][NFC] swap cppcoreguidelines-narrowing-conversions and bugprone-narrowing-conversions (PR #120245)

2024-12-19 Thread Julian Schmidt via cfe-commits
5chmidti wrote: Please change the header guard to use `bugprone` as the 'path' instead of `cppcoreguidelines` https://github.com/llvm/llvm-project/pull/120245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang-tools-extra] [clang-tidy][NFC] swap cppcoreguidelines-narrowing-conversions and bugprone-narrowing-conversions (PR #120245)

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -1,10 +1,93 @@ .. title:: clang-tidy - bugprone-narrowing-conversions -.. meta:: - :http-equiv=refresh: 5;URL=../cppcoreguidelines/narrowing-conversions.html bugprone-narrowing-conversions == -The bugprone-narrowing-conversions check is an a

[clang-tools-extra] [clang-tidy][NFC] swap cppcoreguidelines-narrowing-conversions and bugprone-narrowing-conversions (PR #120245)

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -411,7 +411,7 @@ Check aliases .. csv-table:: :header: "Name", "Redirect", "Offers fixes" - :doc:`bugprone-narrowing-conversions `, :doc:`cppcoreguidelines-narrowing-conversions `, + :doc:`cppcoreguidelines-narrowing-conversions `, :doc:`bugprone-narrowing-convers

[clang] [clang][LoongArch] Add FreeBSD targets (PR #119191)

2024-12-19 Thread Brad Smith via cfe-commits
@@ -231,6 +231,9 @@ class LLVM_LIBRARY_VISIBILITY FreeBSDTargetInfo : public OSTargetInfo { case llvm::Triple::riscv32: case llvm::Triple::riscv64: break; +case llvm::Triple::loongarch32: brad0 wrote: @brooksdavis 32-bit RISC-V support was r

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-19 Thread Julian Schmidt via cfe-commits
5chmidti wrote: You have added `-check-suffix` options to each of your `RUN` lines, but none of your `CHECK-MESSAGES` are actually using it. E.g.,: ```C++ // CHECK-MESSAGES-TO-BOOL-FALSE ``` Although, instead of using the suffixes to say `FALSE`, you could sw

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -287,72 +292,83 @@ void ImplicitBoolConversionCheck::registerMatchers(MatchFinder *Finder) { auto BoolXor = binaryOperator(hasOperatorName("^"), hasLHS(ImplicitCastFromBool), hasRHS(ImplicitCastFromBool)); - auto ComparisonInCall = allOf( -

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -319,10 +319,9 @@ Changes in existing checks diagnostic. - Improved :doc:`readability-implicit-bool-conversion - ` check - by adding the option `UseUpperCaseLiteralSuffix` to select the - case of the literal suffix in fixes and fixing false positive for implicit - con

[clang] bcd32ef - [Driver][FreeBSD][NFC] Remove some code duplication (#120652)

2024-12-19 Thread via cfe-commits
Author: Brad Smith Date: 2024-12-19T19:22:27-05:00 New Revision: bcd32ef0ba6b33a4aa3a5d0a96526f86634035da URL: https://github.com/llvm/llvm-project/commit/bcd32ef0ba6b33a4aa3a5d0a96526f86634035da DIFF: https://github.com/llvm/llvm-project/commit/bcd32ef0ba6b33a4aa3a5d0a96526f86634035da.diff LO

[clang] [Driver][FreeBSD][NFC] Remove some code duplication (PR #120652)

2024-12-19 Thread Brad Smith via cfe-commits
https://github.com/brad0 closed https://github.com/llvm/llvm-project/pull/120652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][FreeBSD][NFC] Remove some code duplication (PR #120652)

2024-12-19 Thread David CARLIER via cfe-commits
https://github.com/devnexen approved this pull request. makes sense https://github.com/llvm/llvm-project/pull/120652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] swap cppcoreguidelines-narrowing-conversions and bugprone-narrowing-conversions (PR #120245)

2024-12-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/120245 >From 9e47698969dc59df1abaa8abd243b97e8fa038c3 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 17 Dec 2024 23:31:52 +0800 Subject: [PATCH 1/3] [clang-tidy][NFC] swap cppcoreguidelines-narrowing-conve

[clang] [webkit.UncountedLambdaCapturesChecker] Detect protectedThis pattern. (PR #120528)

2024-12-19 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/120528 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix non-deterministic infinite recursion... (PR #118288)

2024-12-19 Thread Hubert Tong via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID: In-Reply-To: hubert-reinterpretcast wrote: > This is an ABI-breaking fix, so it cannot be backported in this form. @nikic, can you explain this statement? Is this something that can be documented in the release notes: https://github.com/llvm/llv

  1   2   3   4   5   6   >