[libclc] [libclc] Skip opt command if opt_flags is empty (PR #130882)

2025-03-21 Thread Wenju He via cfe-commits
@@ -342,22 +342,32 @@ function(add_libclc_builtin_set) set( builtins_opt_lib_tgt builtins.opt.${ARG_ARCH_SUFFIX} ) - # Add opt target - add_custom_command( OUTPUT ${builtins_opt_lib_tgt}.bc -COMMAND ${opt_exe} ${ARG_OPT_FLAGS} -o ${builtins_opt_lib_tgt}.bc - ${bu

[clang] [libclang/python] Change all global variables to snake case (PR #132378)

2025-03-21 Thread Vlad Serebrennikov via cfe-commits
@@ -10,7 +10,7 @@ import sys from pathlib import Path -kInputsDir = os.path.join(os.path.dirname(__file__), "INPUTS") +k_inputs_dir = os.path.join(os.path.dirname(__file__), "INPUTS") Endilll wrote: "Konstant", I guess https://github.com/llvm/llvm-project/pu

[clang] [llvm] [HLSL] Implement dot2add intrinsic (PR #131237)

2025-03-21 Thread Sumit Agarwal via cfe-commits
@@ -2473,11 +2473,9 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) { break; } case Builtin::BI__builtin_hlsl_dot2add: { -// Check number of arguments should be 3 if (SemaRef.checkArgCount(TheCall, 3)) return true; -

[clang] [libclang/python] Change all global variables to snake case (PR #132378)

2025-03-21 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll approved this pull request. https://github.com/llvm/llvm-project/pull/132378 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [clang] diagnose invalid member pointer class on instantiation (PR #132516)

2025-03-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libc Author: Matheus Izvekov (mizvekov) Changes This moves the diagnostic for member pointers pointing into non-class into BuildMemberPointer, so that it can be used from RebuildMemberPointer, when instantiating templates. Also adds a minor tweak to t

[clang] [libclang/python] Add equality comparison operators for File (PR #130383)

2025-03-21 Thread Jannick Kremer via cfe-commits
@@ -16,3 +17,16 @@ def test_file(self): self.assertEqual(str(file), "t.c") self.assertEqual(file.name, "t.c") self.assertEqual(repr(file), "") + +def test_file_eq(self): +path = os.path.join(kInputsDir, "hello.cpp") +header_path = os.

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

2025-03-21 Thread Daniel Chen via cfe-commits
DanielCChen wrote: The intention is to make this PR for flang-rt only. As discussed with @daltenty, I remove the NFC-change of adding an overriding `getCompilerRT` in `AIX.cpp` as it actually breaches into clang space. https://github.com/llvm/llvm-project/pull/131041 __

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisync (Sync Delay) extension (PR #132184)

2025-03-21 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > hi @kazutakahirata i had fixed the failure in #132502 and was just about to > merge it. Oops. Sorry about that. Would you mind relanding this and #132502, maybe in a single merge? https://github.com/llvm/llvm-project/pull/132184 __

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisync (Sync Delay) extension (PR #132184)

2025-03-21 Thread Sudharsan Veeravalli via cfe-commits
svs-quic wrote: hi @kazutakahirata i had fixed the failure in #132502 and was just about to merge it. https://github.com/llvm/llvm-project/pull/132184 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-21 Thread Timm Baeder via cfe-commits
tbaederr wrote: The tests should go into a file not under `ByteCode/` since they aren't specific to the bytecode interpreter. There should be existing placement new tests in `SemaCXX/`. https://github.com/llvm/llvm-project/pull/132460 ___ cfe-commits

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisync (Sync Delay) extension (PR #132184)

2025-03-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vls` running on `linaro-g3-04` while building `clang,llvm` at step 6 "build stage 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/143/builds/6370 Here is the relevant piece of th

[clang] [llvm] [HLSL] Implement the `smoothstep` intrinsic (PR #132288)

2025-03-21 Thread Kaitlin Peng via cfe-commits
https://github.com/kmpeng deleted https://github.com/llvm/llvm-project/pull/132288 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisync (Sync Delay) extension (PR #132184)

2025-03-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-fuzzer` running on `sanitizer-buildbot11` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/159/builds/18559 Here is the releva

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisync (Sync Delay) extension (PR #132184)

2025-03-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `clang,llvm` at step 6 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/26572 Here is the relev

[clang] [clang-tools-extra] [lldb] [llvm] [clang-doc] Add regression test for test comments in macros (PR #132360)

2025-03-21 Thread via cfe-commits
https://github.com/ZhongUncle closed https://github.com/llvm/llvm-project/pull/132360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Implement dot2add intrinsic (PR #131237)

2025-03-21 Thread Sumit Agarwal via cfe-commits
@@ -0,0 +1,36 @@ +// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm-only -disable-llvm-passes -verify + +float test_too_few_arg() { + return __builtin_hlsl_dot2add(); + // expected-error@-1 {{too few arguments t

[clang] [clang][analyzer] Ignore unnamed bitfields in UninitializedObject (PR #132427)

2025-03-21 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/132427 >From 72aafcc255bbcfccb3fa5317e260faf97a3dfed5 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Fri, 21 Mar 2025 20:45:11 +0530 Subject: [PATCH 1/3] [clang][analyzer] Removed warnings for unnamed bitfields --- ...

[clang] [Clang] Introduce __builtin_is_modifiable_lvalue() (PR #132524)

2025-03-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr deleted https://github.com/llvm/llvm-project/pull/132524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Introduce __builtin_is_modifiable_lvalue() (PR #132524)

2025-03-21 Thread Timm Baeder via cfe-commits
tbaederr wrote: It looks like this is similar to `__builtin_constant_p` - what is the proposed behavior wrt. side effects in the evaluated expression? gcc and clang disagree about this a lot currently: https://godbolt.org/z/rbneznT9z https://github.com/llvm/llvm-project/pull/132524 ___

[clang] 3840f78 - [RISCV] Add Qualcomm uC Xqcisync (Sync Delay) extension (#132184)

2025-03-21 Thread via cfe-commits
Author: quic_hchandel Date: 2025-03-22T07:57:07+05:30 New Revision: 3840f787a21a66686f5d8bf61877d41f3a65f205 URL: https://github.com/llvm/llvm-project/commit/3840f787a21a66686f5d8bf61877d41f3a65f205 DIFF: https://github.com/llvm/llvm-project/commit/3840f787a21a66686f5d8bf61877d41f3a65f205.diff

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisync (Sync Delay) extension (PR #132184)

2025-03-21 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic closed https://github.com/llvm/llvm-project/pull/132184 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [clang] diagnose invalid member pointer class on instantiation (PR #132516)

2025-03-21 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/132516 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Support overlapping regions in __builtin_memmove (PR #132523)

2025-03-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Unfortunately, a few circumstances make the implementation here less than ideal, but we need to handle overlapping regions anyway. --- Full diff: https://github.com/llvm/llvm-project/pull/132523.diff 2 Fil

[clang] 597accf - [clang][CodeGen][AVR] Fix a crash in AVRABIInfo (#131976)

2025-03-21 Thread via cfe-commits
Author: Ben Shi Date: 2025-03-22T13:22:32+08:00 New Revision: 597accfea6150e77304427fb97d0c3798178e040 URL: https://github.com/llvm/llvm-project/commit/597accfea6150e77304427fb97d0c3798178e040 DIFF: https://github.com/llvm/llvm-project/commit/597accfea6150e77304427fb97d0c3798178e040.diff LOG:

[clang] [llvm] [RISCV] Implement the implications of C extension (PR #132259)

2025-03-21 Thread Jesse Huang via cfe-commits
@@ -378,6 +370,14 @@ def FeatureStdExtZca "part of the C extension, excluding compressed " "floating point loads/stores">; +def FeatureStdExtC +: RISCVExtension<2, 0, "Compressed Instructions", [FeatureStdExtZca]>, + RISCVExte

[clang] [llvm] [RISCV] Implement the implications of C extension (PR #132259)

2025-03-21 Thread Jesse Huang via cfe-commits
https://github.com/jaidTw closed https://github.com/llvm/llvm-project/pull/132259 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisync (Sync Delay) extension (PR #132184)

2025-03-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `publish-sphinx-docs` running on `as-worker-4` while building `clang,llvm` at step 5 "build-docs-llvm-html-docs-clang-html-docs-clang...". Full details are available at: https://lab.llvm.org/buildbot/#/builders/45/builds/10370

[clang] 20b5728 - [RISCV] Implement the implications of C extension (#132259)

2025-03-21 Thread via cfe-commits
Author: Jesse Huang Date: 2025-03-22T14:48:52+08:00 New Revision: 20b5728b7b1ccc4509a316efb270d46cc9526d69 URL: https://github.com/llvm/llvm-project/commit/20b5728b7b1ccc4509a316efb270d46cc9526d69 DIFF: https://github.com/llvm/llvm-project/commit/20b5728b7b1ccc4509a316efb270d46cc9526d69.diff L

[clang] Optimize Module Dependency Handling for Efficient Memory Usage (PR #132294)

2025-03-21 Thread Ayush Pareek via cfe-commits
ayushpareek2003 wrote: @Bigcheese sir please have a look https://github.com/llvm/llvm-project/pull/132294 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][clang] Split clang/lib/CodeGen/CGBuiltin.cpp into target-specific files (PR #132252)

2025-03-21 Thread David Green via cfe-commits
@@ -0,0 +1,8040 @@ +//===-- AArch64.cpp - Emit LLVM Code for builtins -===// davemgreen wrote: This looks like it should be Arm.cpp, as it is the common code between the Arm and AArch64 backends. https://github.com/llvm/llvm-project/pul

[clang] [NFC][FMV][AArch64] Tidy up codegen tests. (PR #132273)

2025-03-21 Thread Alexandros Lamprineas via cfe-commits
@@ -1,1145 +0,0 @@ -// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals --include-generated-funcs --global-value-regex ".*" -// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -emit-llvm -

[clang] [NFC] [ASTMatchers] Share code of `forEachArgumentWithParamType` with UnsafeBufferUsage (PR #132387)

2025-03-21 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov created https://github.com/llvm/llvm-project/pull/132387 This changes exposes a low-level helper that is used to implement `forEachArgumentWithParamType` but can also be used without matchers, e.g. if performance is a concern. Commit f5ee10538b68835112323c241c

[clang] [NFC][FMV][AArch64] Tidy up codegen tests. (PR #132273)

2025-03-21 Thread Alexandros Lamprineas via cfe-commits
@@ -1,1145 +0,0 @@ -// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals --include-generated-funcs --global-value-regex ".*" -// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -emit-llvm -

[clang] [clang-format] Fix the indent of the ternary operator when AlignOperands and BreakBeforeTernaryOperators is specified. (PR #100860)

2025-03-21 Thread via cfe-commits
https://github.com/mydeveloperday requested changes to this pull request. This change is subjective not objective. Other people will have other views as such this can't come in like this or we'll change 1000s lines of code without people having control to keep this current style. https://githu

[clang] [clang] Fix nullptr dereference when checking friend default comparison (PR #132320)

2025-03-21 Thread Chongzhi Deng via cfe-commits
https://github.com/BruceAko updated https://github.com/llvm/llvm-project/pull/132320 >From bcf24c8442023fbe9283b0746ea5d2ba3ecfb86f Mon Sep 17 00:00:00 2001 From: BruceAko Date: Fri, 21 Mar 2025 07:54:16 + Subject: [PATCH] [clang] Fix nullptr dereference when checking friend default compar

[clang] [clang] Fix nullptr dereference when checking friend default comparison (PR #132320)

2025-03-21 Thread Chongzhi Deng via cfe-commits
https://github.com/BruceAko updated https://github.com/llvm/llvm-project/pull/132320 >From 3268a174a694eacb57fe13b732ef961dc94bee0b Mon Sep 17 00:00:00 2001 From: BruceAko Date: Fri, 21 Mar 2025 07:54:16 + Subject: [PATCH] [clang] Fix nullptr dereference when checking friend default compar

[clang] Reapply "[Clang] Improve diagnostics for expansion length mismatch" (PR #121044)

2025-03-21 Thread Younan Zhang via cfe-commits
@@ -749,132 +759,124 @@ ExprResult Sema::CheckPackExpansion(Expr *Pattern, SourceLocation EllipsisLoc, PackExpansionExpr(Context.DependentTy, Pattern, EllipsisLoc, NumExpansions); } +static bool IsUnexpandedPackExpansion(const TemplateArgument &TA) { + if (!TA.isPackExp

[clang] [NFC][analyzer] Multipart checker refactor 2: NullabilityChecker (PR #132250)

2025-03-21 Thread Donát Nagy via cfe-commits
@@ -1403,6 +1403,16 @@ void NullabilityChecker::printState(raw_ostream &Out, ProgramStateRef State, } } +// The checker group "nullability" consists of the checkers that are +// implemented as the parts of the checker class `NullabilityChecker`. These +// checkers share a c

[clang] [Clang] [NFC] Introduce a helper for emitting compatibility diagnostics (PR #132348)

2025-03-21 Thread Erich Keane via cfe-commits
@@ -1518,6 +1518,50 @@ static void verifyDiagnosticWording(const Record &Diag) { // runs into odd situations like [[clang::warn_unused_result]], // #pragma clang, or --unwindlib=libgcc. } + +/// ClangDiagsCompatIDsEmitter - Emit a set of 'compatibility diagnostic ids' +///

[clang] [NFC][analyzer] Multipart checker refactor 2: NullabilityChecker (PR #132250)

2025-03-21 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/132250 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-03-21 Thread Florian Ragwitz via cfe-commits
https://github.com/rafl updated https://github.com/llvm/llvm-project/pull/131932 >From 3bdcfbbb56e80c1724a6e46597d0141c118c68cc Mon Sep 17 00:00:00 2001 From: Florian Ragwitz Date: Tue, 18 Mar 2025 15:35:42 -0700 Subject: [PATCH 1/5] [clang][scan-build] Treat --use-cc and --use-c++ as shell com

[clang] [NFC][analyzer] Multipart checker refactor 2: NullabilityChecker (PR #132250)

2025-03-21 Thread Donát Nagy via cfe-commits
@@ -112,25 +112,30 @@ class NullabilityChecker void printState(raw_ostream &Out, ProgramStateRef State, const char *NL, const char *Sep) const override; - enum CheckKind { -CK_NullPassedToNonnull, -CK_NullReturnedFromNonnull, -CK_NullableDerefe

[clang] [NFC][analyzer] Multipart checker refactor 2: NullabilityChecker (PR #132250)

2025-03-21 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/132250 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX10.2] Remove YMM rounding from VMINMAXP[H,S,D] (PR #132405)

2025-03-21 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/132405 Ref: https://cdrdv2.intel.com/v1/dl/getContent/784343 >From 4da792e1397d893b4be997039d24cf933d9702b9 Mon Sep 17 00:00:00 2001 From: "Wang, Phoebe" Date: Fri, 21 Mar 2025 22:42:10 +0800 Subject: [PATCH] [X86]

[clang] [Clang] Fix various bugs in alias CTAD transform (PR #132061)

2025-03-21 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/132061 >From fb9fa67da10a7dbfb2db5520d2773085585f4c14 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Thu, 20 Mar 2025 00:54:54 +0800 Subject: [PATCH 1/5] [Clang] Fix various bugs in alias CTAD transform --- clang/

[clang] [llvm] [X86][AVX10.2] Remove YMM rounding from VMINMAXP[H,S,D] (PR #132405)

2025-03-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Phoebe Wang (phoebewang) Changes Ref: https://cdrdv2.intel.com/v1/dl/getContent/784343 --- Patch is 55.76 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/132405.diff 15 Files Affected: - (mod

[clang] [clang][analyzer] Move 'alpha.core.FixedAddressDereference' out of alpha (PR #132404)

2025-03-21 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/132404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Move 'alpha.core.FixedAddressDereference' out of alpha (PR #132404)

2025-03-21 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat commented: Thanks, I'm happy to see that this checker is out of alpha :smile: Please evaluate the behavior of this checker on some open source projects. (Or if you have already done an analysis with this version of the checker, then please attach a link to it.) h

[clang] [Clang] Fix various bugs in alias CTAD transform (PR #132061)

2025-03-21 Thread Younan Zhang via cfe-commits
@@ -1072,12 +1072,25 @@ BuildDeductionGuideForTypeAlias(Sema &SemaRef, AliasRhsTemplateArgs, TDeduceInfo, DeduceResults, /*NumberOfArgumentsMustMatch=*/false); + static auto IsNonDeducedArgument = [&](const DeducedTemplateArgument &TA) { +// The following case

[clang] [clang][analyzer] Move 'alpha.core.FixedAddressDereference' out of alpha (PR #132404)

2025-03-21 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/132404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-03-21 Thread Florian Ragwitz via cfe-commits
rafl wrote: > I'd prefer option 2, because why else would we have a default compiler if > that wasn't used in some workflows. A warning could never hurt. `--use-cc`/`--use-c++`/`CCC_CC`/`CCC_CXX` are optional, so the default would still be used when those options are not specified, which might

[clang] [NFC][analyzer] Multipart checker refactor 2: NullabilityChecker (PR #132250)

2025-03-21 Thread Balazs Benics via cfe-commits
=?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy Message-ID: In-Reply-To: @@ -112,25 +112,30 @@ class NullabilityChecker void printState(raw_ostream &Out, ProgramStateRef State, const char *NL, const char *Sep) const

[clang] [llvm] [X86][AVX10.2] Remove YMM rounding from VMINMAXP[H,S,D] (PR #132405)

2025-03-21 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/132405 >From 4da792e1397d893b4be997039d24cf933d9702b9 Mon Sep 17 00:00:00 2001 From: "Wang, Phoebe" Date: Fri, 21 Mar 2025 22:42:10 +0800 Subject: [PATCH 1/2] [X86][AVX10.2] Remove YMM rounding from VMINMAXP[H,S,D]

[clang] 924c7ea - [X86][AVX10.2] Remove YMM rounding from VCVT2PS2PHX (#132397)

2025-03-21 Thread via cfe-commits
Author: Phoebe Wang Date: 2025-03-21T22:51:51+08:00 New Revision: 924c7ea76af0c3ab53dc7287d046fb614b4e33dc URL: https://github.com/llvm/llvm-project/commit/924c7ea76af0c3ab53dc7287d046fb614b4e33dc DIFF: https://github.com/llvm/llvm-project/commit/924c7ea76af0c3ab53dc7287d046fb614b4e33dc.diff L

[clang] [Clang] add emit -Wignored-base-class-qualifiers diagnostic for cv-qualified base classes (PR #132116)

2025-03-21 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. I'm happy when Aaron is happy with commit message/etc. THOUGH we should do `Fixes: #` in it so it auto-closes the bug. I suspect we'll have to merge this for you, so if you notice CI has passed, feel free to ping us and we'll do it. h

[clang] [Clang] [NFC] Introduce a helper for emitting compatibility diagnostics (PR #132348)

2025-03-21 Thread Erich Keane via cfe-commits
@@ -1518,6 +1518,50 @@ static void verifyDiagnosticWording(const Record &Diag) { // runs into odd situations like [[clang::warn_unused_result]], // #pragma clang, or --unwindlib=libgcc. } + +/// ClangDiagsCompatIDsEmitter - Emit a set of 'compatibility diagnostic ids' +///

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

2025-03-21 Thread Daniel Chen via cfe-commits
@@ -223,6 +223,13 @@ endif() # This can be used to detect whether we're in the runtimes build. set(LLVM_RUNTIMES_BUILD ON) +if (LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX") + # Set LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF as AIX doesn't s

[libclc] libclc: erfc: fix fp32 implementation (PR #132390)

2025-03-21 Thread Romaric Jodin via cfe-commits
https://github.com/rjodinchr updated https://github.com/llvm/llvm-project/pull/132390 >From 95eeda421b4cdc468f828d36146d609e80d195d9 Mon Sep 17 00:00:00 2001 From: Romaric Jodin Date: Fri, 21 Mar 2025 13:51:41 +0100 Subject: [PATCH] libclc: erfc: fix fp32 implementation On some implementation,

[libclc] libclc: erfc: fix fp32 implementation (PR #132390)

2025-03-21 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: @frasercrmck could you review please? https://github.com/llvm/llvm-project/pull/132390 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] [ASTMatchers] Share code of `forEachArgumentWithParamType` with UnsafeBufferUsage (PR #132387)

2025-03-21 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 387f3e8f986d53067a68aa0d7b058a0ce81ec941 ef63166c24f7328af8177220be706a573d97009e --e

[clang] [Clang] [NFC] Introduce a helper for emitting compatibility diagnostics (PR #132348)

2025-03-21 Thread Erich Keane via cfe-commits
@@ -769,6 +770,51 @@ StringRef DiagnosticIDs::getNearestOption(diag::Flavor Flavor, return Best; } +unsigned DiagnosticIDs::getCompatDiagId(const LangOptions &LangOpts, +unsigned CompatDiagId) { + struct CompatDiag { +unsigned St

[clang] [mlir] [mlir] Fix typo of tests (NFC) (PR #132394)

2025-03-21 Thread via cfe-commits
https://github.com/Zhenhang1213 created https://github.com/llvm/llvm-project/pull/132394 None >From 019e9432080f21ceef3c5fa0465705c090ead33a Mon Sep 17 00:00:00 2001 From: Austin Date: Tue, 25 Feb 2025 01:24:24 +0800 Subject: [PATCH 1/3] [ARM] Introduce -mtp=auto and make it the default This

[clang] [mlir] [mlir] Fix typo of tests (NFC) (PR #132394)

2025-03-21 Thread via cfe-commits
https://github.com/Zhenhang1213 closed https://github.com/llvm/llvm-project/pull/132394 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix various bugs in alias CTAD transform (PR #132061)

2025-03-21 Thread Matheus Izvekov via cfe-commits
@@ -1072,12 +1072,25 @@ BuildDeductionGuideForTypeAlias(Sema &SemaRef, AliasRhsTemplateArgs, TDeduceInfo, DeduceResults, /*NumberOfArgumentsMustMatch=*/false); + static auto IsNonDeducedArgument = [&](const DeducedTemplateArgument &TA) { +// The following case

[clang] [clang-tools-extra] [clang-tidy] Avoid processing declarations in system headers (PR #128150)

2025-03-21 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: Building a full parent map makes sense to me, but I have mixed feelings about modifying the `ParentMap` ctor that everyone uses. What if one of the clients do not want a full map? I think the change might need to be more targeted. Either passing on option to `ParentMap` or cre

[clang] [clang-tools-extra] Reland: [clang] NFC: Clear some uses of MemberPointerType::getClass (PR #132317)

2025-03-21 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: I'm going to go ahead and merge it, since this is such a small trivial and obviously correct fix for a relanding. Otherwise, this blocks relanding a much bigger patch, which is a rebase burden. We can always make amendments post commit if anyone feels like it. https://github.c

[clang] [Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers (PR #130990)

2025-03-21 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw edited https://github.com/llvm/llvm-project/pull/130990 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lldb] Reland: [clang] preserve class type sugar when taking pointer to member (PR #132401)

2025-03-21 Thread Michael Buch via cfe-commits
https://github.com/Michael137 commented: LLDB changes LGTM https://github.com/llvm/llvm-project/pull/132401 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers (PR #130990)

2025-03-21 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw ready_for_review https://github.com/llvm/llvm-project/pull/130990 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] add emit -Wignored-base-class-qualifiers diagnostic for cv-qualified base classes (PR #132116)

2025-03-21 Thread via cfe-commits
MagentaTreehouse wrote: I suggest backporting to the 20 release. Wdyt? (If we decide so, the release notes would go into 20 instead of main) https://github.com/llvm/llvm-project/pull/132116 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[clang] [NFC][Static Analyzer] Rename and discuss about `NotNullConstraint` & `NotNullBufferConstraint` (PR #131374)

2025-03-21 Thread Balázs Kéri via cfe-commits
https://github.com/balazske approved this pull request. Rename looks good. According to the format check code should be reformatted. Do not forget to remove the "discuss" part from the commit title. https://github.com/llvm/llvm-project/pull/131374 ___

[clang] Minor unused variable error for sanitizer builds (PR #132372)

2025-03-21 Thread CHANDRA GHALE via cfe-commits
https://github.com/chandraghale created https://github.com/llvm/llvm-project/pull/132372 Fix to issue [https://github.com/llvm/llvm-project/issues/132371 ](https://github.com/llvm/llvm-project/issues/132371 ) Minor error , sanitizer builds are failing for unused variable. sanitizer-aarch64-l

[clang] Minor unused variable error for sanitizer builds (PR #132372)

2025-03-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: CHANDRA GHALE (chandraghale) Changes Fix to issue [https://github.com/llvm/llvm-project/issues/132371 ](https://github.com/llvm/llvm-project/issues/132371 ) Minor error , sanitizer builds are failing for unused variable. sanitizer-aarch

[clang] Minor unused variable error for sanitizer builds (PR #132372)

2025-03-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: CHANDRA GHALE (chandraghale) Changes Fix to issue [https://github.com/llvm/llvm-project/issues/132371 ](https://github.com/llvm/llvm-project/issues/132371 ) Minor error , sanitizer builds are failing for unused variable. sanitiz

[clang] [NFC][FMV][AArch64] Tidy up codegen tests. (PR #132273)

2025-03-21 Thread Tomas Matheson via cfe-commits
@@ -0,0 +1,790 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals --include-generated-funcs --global-value-regex ".*" + +// Test all of the AArch64 feature detection bitmasks in the

[clang] [NFC][FMV][AArch64] Tidy up codegen tests. (PR #132273)

2025-03-21 Thread Tomas Matheson via cfe-commits
@@ -0,0 +1,790 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals --include-generated-funcs --global-value-regex ".*" + +// Test all of the AArch64 feature detection bitmasks in the

[clang] [NFC][FMV][AArch64] Tidy up codegen tests. (PR #132273)

2025-03-21 Thread Tomas Matheson via cfe-commits
@@ -1,1145 +0,0 @@ -// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals --include-generated-funcs --global-value-regex ".*" -// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -emit-llvm -

[clang] [NFC][FMV][AArch64] Tidy up codegen tests. (PR #132273)

2025-03-21 Thread Alexandros Lamprineas via cfe-commits
@@ -1,1145 +0,0 @@ -// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals --include-generated-funcs --global-value-regex ".*" -// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -emit-llvm -

[clang] [NFC][FMV][AArch64] Tidy up codegen tests. (PR #132273)

2025-03-21 Thread Alexandros Lamprineas via cfe-commits
@@ -0,0 +1,790 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals --include-generated-funcs --global-value-regex ".*" + +// Test all of the AArch64 feature detection bitmasks in the

[clang] [NFC][FMV][AArch64] Tidy up codegen tests. (PR #132273)

2025-03-21 Thread Alexandros Lamprineas via cfe-commits
@@ -0,0 +1,790 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals --include-generated-funcs --global-value-regex ".*" + +// Test all of the AArch64 feature detection bitmasks in the

[clang] [NFC][FMV][AArch64] Tidy up codegen tests. (PR #132273)

2025-03-21 Thread Alexandros Lamprineas via cfe-commits
@@ -0,0 +1,790 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --check-attributes --check-globals --include-generated-funcs --global-value-regex ".*" + +// Test all of the AArch64 feature detection bitmasks in the

[clang] [libclang/python] Add some bindings to the `Cursor` interface (PR #132377)

2025-03-21 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum created https://github.com/llvm/llvm-project/pull/132377 Make Cursor hashable Add `Cursor.has_attr()` Add `Cursor.specialized_template` >From c433f194600d72a3902c4eed304439d6e3f2f62b Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Thu, 19 Dec 2024 16:22:04 +

[clang] [llvm] [AArch64] Add initial support for -mcpu=olympus. (PR #132368)

2025-03-21 Thread Ricardo Jesus via cfe-commits
rj-jesus wrote: Hi, Olympus is the core in the NVIDIA Vera CPU announced at GTC. https://github.com/llvm/llvm-project/pull/132368 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Minor unused variable error for sanitizer builds (PR #132372)

2025-03-21 Thread CHANDRA GHALE via cfe-commits
@@ -11761,7 +11761,7 @@ void OMPClauseReader::VisitOMPReductionClause(OMPReductionClause *C) { unsigned NumFlags = Record.readInt(); SmallVector Flags; Flags.reserve(NumFlags); - for (unsigned I : llvm::seq(NumFlags)) + for ([[maybe_unused]] unsigned I : llvm::seq(NumF

[clang] [libclang/python] Change all global variables to snake case (PR #132378)

2025-03-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jannick Kremer (DeinAlptraum) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/132378.diff 7 Files Affected: - (modified) clang/bindings/python/clang/cindex.py (+5-5) - (modified) clang/bindings/python/tests/cindex/tes

[clang] Minor unused variable error for sanitizer builds (PR #132372)

2025-03-21 Thread Younan Zhang via cfe-commits
@@ -11761,7 +11761,7 @@ void OMPClauseReader::VisitOMPReductionClause(OMPReductionClause *C) { unsigned NumFlags = Record.readInt(); SmallVector Flags; Flags.reserve(NumFlags); - for (unsigned I : llvm::seq(NumFlags)) + for ([[maybe_unused]] unsigned I : llvm::seq(NumF

[clang] [llvm] Revert "[X86][AVX10.2] Support YMM rounding new instructions (#101825)" (PR #132362)

2025-03-21 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > LGTM - do we have to remove avx10-256 as well (and just use prefer vector > width) or will that remain in some form? Yes, we will remove avx10-256 and evex512 finally. https://github.com/llvm/llvm-project/pull/132362 ___ cfe-commi

[clang] Minor unused variable error for sanitizer builds (PR #132372)

2025-03-21 Thread CHANDRA GHALE via cfe-commits
https://github.com/chandraghale closed https://github.com/llvm/llvm-project/pull/132372 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP 6.0] Parse/Sema support for reduction over private variable with reduction clause. (PR #129938)

2025-03-21 Thread CHANDRA GHALE via cfe-commits
https://github.com/chandraghale closed https://github.com/llvm/llvm-project/pull/129938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP 6.0] Parse/Sema support for reduction over private variable with reduction clause. (PR #129938)

2025-03-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-x86_64-debian` running on `lldb-x86_64-debian` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/18592 Here is the relevant piece of the build lo

[clang] [OpenMP 6.0] Parse/Sema support for reduction over private variable with reduction clause. (PR #129938)

2025-03-21 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/12975 Here is the relevant piece of the

[clang] [NFC][clang] Split clang/lib/CodeGen/CGBuiltin.cpp into target-specific files (PR #132252)

2025-03-21 Thread Jonathan Thackray via cfe-commits
@@ -0,0 +1,105 @@ +//===-- CGBuiltin.h - Emit LLVM Code for builtins -===// +// +// 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] [OpenMP 6.0] Parse/Sema support for reduction over private variable with reduction clause. (PR #129938)

2025-03-21 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 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/30/builds/18108 Here is the releva

[clang] [NFC][clang] Split clang/lib/CodeGen/CGBuiltin.cpp into target-specific files (PR #132252)

2025-03-21 Thread Jonathan Thackray via cfe-commits
@@ -0,0 +1,8040 @@ +//===-- AArch64.cpp - Emit LLVM Code for builtins -===// jthackray wrote: Thanks, fixed. https://github.com/llvm/llvm-project/pull/132252 ___ cfe-commits mailing list cfe-co

[clang] [OpenMP 6.0] Parse/Sema support for reduction over private variable with reduction clause. (PR #129938)

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

[clang] [OpenMP 6.0] Parse/Sema support for reduction over private variable with reduction clause. (PR #129938)

2025-03-21 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 12 "build-stage2-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/builds/9993 He

[libclc] [libclc] link_bc target should depends on target builtins.link.clc-arch_suffix (PR #132338)

2025-03-21 Thread Wenju He via cfe-commits
wenju-he wrote: I've tested on Windows for half a day, it seems this PR can fix the issue. https://github.com/llvm/llvm-project/pull/132338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [alpha.webkit.UnretainedLambdaCapturesChecker] Add the support for protectedSelf (PR #132363)

2025-03-21 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/132363 This PR adds the support for treating capturing of "self" as safe if the lambda simultaneously captures "protectedSelf", which is a RetainPtr of "self". This PR also fixes a bug that the checker wasn't generating

[clang] [alpha.webkit.UnretainedLambdaCapturesChecker] Add the support for protectedSelf (PR #132363)

2025-03-21 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/132363 >From cf415a9cf9933bc4e55d3c8da9b27551b09061fe Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Fri, 21 Mar 2025 02:32:49 -0700 Subject: [PATCH 1/2] [alpha.webkit.UnretainedLambdaCapturesChecker] Add the support

[clang] [clang-tools-extra] [lldb] [llvm] Add test to clang-doc, it can test comments in macro. Original issue is #59819. (PR #132360)

2025-03-21 Thread via cfe-commits
ZhongUncle wrote: @ilovepi Hey, This is my test to https://github.com/llvm/llvm-project/issues/59819. https://github.com/llvm/llvm-project/pull/132360 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

  1   2   3   4   5   >