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

2025-04-05 Thread via cfe-commits
@@ -158,6 +158,7 @@ Non-comprehensive list of changes in this release - Support parsing the `cc` operand modifier and alias it to the `c` modifier (#GH127719). - Added `__builtin_elementwise_exp10`. +- Added `__builtin_is_modifiable_lvalue` to identify assignable arguments in

[clang] [C23] Implement WG14 N3037 (PR #132939)

2025-04-05 Thread Shafik Yaghmour via cfe-commits
@@ -1849,8 +1852,9 @@ TEST_F(StructuralEquivalenceCacheTest, ReturnStmtNonEq) { Lang_CXX03); StructuralEquivalenceContext Ctx( - get<0>(TU)->getASTContext(), get<1>(TU)->getASTContext(), - NonEquivalentDecls, StructuralEquivalenceKind::Default, false, false);

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

2025-04-05 Thread Lyle Dean via cfe-commits
lyledean1 wrote: Happy to adjust this @MagentaTreehouse for LLVM 20 - what would that require? @erichkeane is this ok to merge (assuming I make the changes for the above - the CI has passed) https://github.com/llvm/llvm-project/pull/132116 ___ cfe-co

[clang] [llvm] Vectorize: Support fminimumnum and fmaximumnum (PR #131781)

2025-04-05 Thread YunQiang Su via cfe-commits
@@ -0,0 +1,1059 @@ +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5 +; RUN: opt --passes=loop-vectorize --mtriple=riscv64 -mattr="+zvfh,+v" -S < %s | FileCheck %s --check-prefix=RV64 +; RUN: opt --passes=loop-vectorize --mtriple=aa

[clang] [CodeGen] Use llvm::reverse (NFC) (PR #133550)

2025-04-05 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/133550 None >From 9d1f0d61d9caffdf9021861bbfef39247c4cfb74 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 27 Mar 2025 21:16:15 -0700 Subject: [PATCH] [CodeGen] Use llvm::reverse (NFC) --- clang/lib/Cod

[clang] [clang-format] Correctly annotate requires clause in `&& requires(` (PR #132882)

2025-04-05 Thread via cfe-commits
https://github.com/mydeveloperday approved this pull request. https://github.com/llvm/llvm-project/pull/132882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Update license headers (PR #132070)

2025-04-05 Thread Fraser Cormack via cfe-commits
@@ -1,24 +1,10 @@ -/* - * Copyright (c) 2015 Advanced Micro Devices, Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] Support adopt(cast(copy(~)) (PR #132316)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes This PR adds the support for recognizing calling adoptCF/adoptNS on the result of a cast operation on the return value of a function which creates NS or CF types. It also fixes a bug that we weren't reporting

[clang] [clang-format] Don't wrap before attributes in parameter lists (PR #132519)

2025-04-05 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/132519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-04-05 Thread Alex Voicu via cfe-commits
@@ -4920,6 +4920,116 @@ If no address spaces names are provided, all address spaces are fenced. __builtin_amdgcn_fence(__ATOMIC_SEQ_CST, "workgroup", "local") __builtin_amdgcn_fence(__ATOMIC_SEQ_CST, "workgroup", "local", "global") +__builtin_amdgcn_processor_is and __bui

[clang-tools-extra] [clang-tidy] Add new check bugprone-unintended-char-ostream-output (PR #127720)

2025-04-05 Thread Oliver Stöneberg via cfe-commits
firewave wrote: > I am seeing this with an enum type which might be valid, working code but > have not looked into it yet. The warnings in question were correct. It exposed a behavior change introduced by fixing `performance-enum-size`. https://github.com/llvm/llvm-project/pull/127720 ___

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-04-05 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/133125 >From 75ef42d644da9136fb07014ade18b6be137426a1 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 26 Mar 2025 12:54:29 -0400 Subject: [PATCH 01/11] [C2y] Implement WG14 N3369 and N3469 (_Countof) C2y

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

2025-04-05 Thread Younan Zhang via cfe-commits
zyn0217 wrote: The commit message is mysteriously gone when merging with the github app 🥲 https://github.com/llvm/llvm-project/pull/132061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-04-05 Thread Alex Voicu via cfe-commits
AlexVlx wrote: > > This change adds two semi-magical builtins for AMDGPU: > > ``` > > * `__builtin_amdgcn_processor_is`, which is similar in observable behaviour > > with `__builtin_cpu_is`, except that it is never "evaluated" at run time; > > > > * `__builtin_amdgcn_is_invocable`, which is beh

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

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes Otherwise Windows users have troubles with lexer tests that use emojis. --- Full diff: https://github.com/llvm/llvm-project/pull/131816.diff 1 Files Affected: - (modified) clang/www/make_cxx_dr_statu

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

2025-04-05 Thread via cfe-commits
Sirraide wrote: Hmm, not sure what is going on here; I’ll revert this for now and investigate. https://github.com/llvm/llvm-project/pull/132348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [llvm] [PowerPC] Enable indiviual crbits tracking at -O2 (PR #133617)

2025-04-05 Thread Henry Jiang via cfe-commits
https://github.com/mustartt created https://github.com/llvm/llvm-project/pull/133617 https://reviews.llvm.org/D124060 >From d10bfa59ba468d1f3159aad66b532e4be0e56831 Mon Sep 17 00:00:00 2001 From: Henry Jiang Date: Sun, 30 Mar 2025 00:23:10 -0400 Subject: [PATCH] Enable indiviual crbits trackin

[clang] [clang][CGObjC] Remove unused ExternalProtocolPtrTy (NFC) (PR #133870)

2025-04-05 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/133870 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-04-05 Thread Jonas Paulsson via cfe-commits
JonPsson1 wrote: Thanks to @boomanaiden154 for pointing out that I need to pass -DCOMPILER_RT_BUILD_BUILTINS=ON to cmake - the tests now builds and runs. The test for half->double conversions added, with the 64-bit hex values taken from the compiler-rt conversion function results (should be co

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

2025-04-05 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > > Hi, I tried to explain everything here: > > Thanks, I missed that! For RFCs it's preferable to use > [Discourse](https://discourse.llvm.org/c/clang/clang-tidy/71), as there is a > lot less traffic and can more easily catch the eyes of relevant people. I did > not see m

[clang] [llvm] [Clang][AMDGPU] Add __builtin_amdgcn_cvt_off_f32_i4 (PR #133741)

2025-04-05 Thread Shilei Tian via cfe-commits
Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= , Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= , Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= , Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= , Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= , Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= , Juan Manuel

[clang] [clang][CGObjC] Remove unused ExternalProtocolPtrTy (NFC) (PR #133870)

2025-04-05 Thread Mats Jun Larsen via cfe-commits
https://github.com/junlarsen edited https://github.com/llvm/llvm-project/pull/133870 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix Mame Mangling Crashes (PR #134486)

2025-04-05 Thread via cfe-commits
https://github.com/Mr-Anyone created https://github.com/llvm/llvm-project/pull/134486 It appears that Clang currently mangles names incorrectly when handling lambda expressions in constraint (`requires`) clauses. The issue likely stems from `mangleLocalName` being used, whereas `mangleNested

[clang] [llvm] Enable unnecessary-virtual-specifier by default (PR #133265)

2025-04-05 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: @DKLoehr @AaronBallman Did you see the revert? https://github.com/llvm/llvm-project/pull/133265 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Move fmin & fmax to CLC library (PR #134218)

2025-04-05 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck updated https://github.com/llvm/llvm-project/pull/134218 >From 583261a0d1fc57ddb8ae964cbaf4f044c39d9bf2 Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Thu, 3 Apr 2025 09:29:28 +0100 Subject: [PATCH 1/2] [libclc] Move fmin & fmax to CLC library This is an alt

[clang] [llvm] Enable unnecessary-virtual-specifier by default (PR #133265)

2025-04-05 Thread James Y Knight via cfe-commits
jyknight wrote: Wait, _on by default_? Perhaps I'm out of line with current thinking here, but IMO, on-by-default should only diagnose things which are likely to be harmful -- NOT just a style or inefficiency issue, which seems to be all this is diagnosing. That LLVM's style conflicts with it

[clang] [libcxx] [Clang] Add __builtin_common_reference (PR #121199)

2025-04-05 Thread via cfe-commits
https://github.com/huixie90 edited https://github.com/llvm/llvm-project/pull/121199 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [fatlto] Use the ThinLTO default pipeline for FatLTO (PR #134434)

2025-04-05 Thread Nikita Popov via cfe-commits
@@ -1692,6 +1692,19 @@ PassBuilder::buildFatLTODefaultPipeline(OptimizationLevel Level, bool ThinLTO, if (ThinLTO && PGOOpt && PGOOpt->Action == PGOOptions::SampleUse) MPM.addPass(buildThinLTODefaultPipeline(Level, /*ImportSummary=*/nullptr)); else { +// ModuleSimp

[clang] Fix complex long double division with -mno-x87. (PR #133152)

2025-04-05 Thread Zahira Ammarguellat via cfe-commits
@@ -0,0 +1,49 @@ +// RUN %clang_cc1 %s -O0 -emit-llvm -triple x86_64-unknown-unknown \ +// RUN -verify -complex-range=promoted -o - | FileCheck %s + +// RUN %clang_cc1 %s -O0 -emit-llvm -triple x86_64-unknown-unknown \ +// RUN -verify=nopromotion -complex-range=promoted -target-fe

[clang-tools-extra] [clang-tidy][C++20] Add support for Initialization Forwarding in structs and Nested Objects within modernize-use-emplace (PR #131969)

2025-04-05 Thread David Rivera via cfe-commits
@@ -332,19 +380,44 @@ void UseEmplaceCheck::check(const MatchFinder::MatchResult &Result) { }(); assert(Call && "No call matched"); - assert((CtorCall || MakeCall) && "No push_back parameter matched"); + assert((CtorCall || MakeCall || AggInitCall) && + "No push

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

2025-04-05 Thread via cfe-commits
Author: CHANDRA GHALE Date: 2025-03-21T14:19:08+05:30 New Revision: 6da8f5661961416c704061a9d401ea6ae480cbc1 URL: https://github.com/llvm/llvm-project/commit/6da8f5661961416c704061a9d401ea6ae480cbc1 DIFF: https://github.com/llvm/llvm-project/commit/6da8f5661961416c704061a9d401ea6ae480cbc1.diff

[clang] Hlsl dst function (PR #133828)

2025-04-05 Thread Farzon Lotfi via cfe-commits
@@ -0,0 +1,85 @@ +// RUN: %clang_cc1 -finclude-default-header -x hlsl -triple dxil-pc-shadermodel6.2-library %s -fnative-half-type -emit-llvm -O1 -o - | FileCheck %s + + +// CHECK-LABEL: define noundef nofpclass(nan inf) <4 x float> @_Z12dstWithFloatDv4_fS_( +// CHECK-SAME: <4

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

2025-04-05 Thread Ibraim Ganiev via cfe-commits
olologin wrote: >it sounds like the goal is somewhat less about clang-tidy checks and more >about running code transformations more easily. Original goal was to have just clang-tidy checks. We use it on our CI to guard main branch from people accidentally merging prohibited stuff. If CI informs

[clang] 38d71c9 - [Clang] Fix the assertion condition after b8d1f3d6 (#132669)

2025-04-05 Thread via cfe-commits
Author: Younan Zhang Date: 2025-03-24T16:46:48+08:00 New Revision: 38d71c9bdcf6b10c6fe02d5bd74fc8e6efb50a4d URL: https://github.com/llvm/llvm-project/commit/38d71c9bdcf6b10c6fe02d5bd74fc8e6efb50a4d DIFF: https://github.com/llvm/llvm-project/commit/38d71c9bdcf6b10c6fe02d5bd74fc8e6efb50a4d.diff

[clang] Hlsl dst function (PR #133828)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (metkarpoonam) Changes Implement dst algorithm in the hlsl_intrinsics.h and added test cases for HLSL codegen and sema fixes: https://github.com/llvm/llvm-project/issues/99108 --- Full diff: https://github.com/llvm/llvm-project/pull/

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

2025-04-05 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

[clang] [CIR] Add binary operators (PR #132420)

2025-04-05 Thread Andy Kaylor via cfe-commits
@@ -127,6 +136,8 @@ struct MissingFeatures { static bool ternaryOp() { return false; } static bool tryOp() { return false; } static bool zextOp() { return false; } + static bool opPtrStride() { return false; } + static bool opPtrDiff() { return false; }

[clang-tools-extra] [clangd] [C++20] [Modules] Add modules suffix for 'Header' Source Switch (PR #131591)

2025-04-05 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet approved this pull request. https://github.com/llvm/llvm-project/pull/131591 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Enable indiviual crbits tracking at -O2 (PR #133617)

2025-04-05 Thread Maryam Moghadas via cfe-commits
https://github.com/maryammo commented: Can we have a test where it shows with this PR, the backend computeFSAdditions can override the CRBits passed by frontend? https://github.com/llvm/llvm-project/pull/133617 ___ cfe-commits mailing list cfe-commits

[clang] [clang][modules] Guard against bad -fmodule-file mappings (#132059) (PR #133462)

2025-04-05 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth created https://github.com/llvm/llvm-project/pull/133462 When using -fmodule-file== with incorrect inputs, the compiler crashes in two scenarios: 1. A module is mapped to the right BMI file but one of its transitively exported module dependencies is also mapped

[clang] [clang-tools-extra] [clang] Concepts: support pack expansions for type constraints (PR #132626)

2025-04-05 Thread Younan Zhang via cfe-commits
@@ -3239,61 +3162,11 @@ bool Sema::SubstTypeConstraint( TC->getTemplateArgsAsWritten(); if (!EvaluateConstraints) { -bool ShouldExpandExplicitTemplateArgs = -TemplArgInfo && ArgumentPackSubstitutionIndex != -1 && -llvm::any_of(TemplArgInfo->argument

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

2025-04-05 Thread via cfe-commits
@@ -1655,6 +1667,10 @@ bool RISCVAsmParser::matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, return generateImmOutOfRangeError(Operands, ErrorInfo, 1, (1 << 5)); case Match_InvalidUImm5GE6Plus1: return generateImmOutOfRangeError(Operands, ErrorInfo, 6, (1 << 5)

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

2025-04-05 Thread via cfe-commits
https://github.com/Sirraide commented: I think splitting this up by target is a good idea. https://github.com/llvm/llvm-project/pull/132252 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

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

2025-04-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/8021 Here is the relevant piece o

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

2025-04-05 Thread via cfe-commits
@@ -0,0 +1,32 @@ +// RUN: rm -rf %t && mkdir -p %t +// RUN: clang-doc --format=md --doxygen --output=%t --executor=standalone %s +// RUN: clang-doc --format=html --doxygen --output=%t --executor=standalone %s +// RUN: FileCheck %s < %t/GlobalNamespace/MyClass.md --check-prefix=MD

[clang] [Clang] Implement CWG2517 Useless restriction on use of parameter in constraint-expression (PR #132919)

2025-04-05 Thread Imad Aldij via cfe-commits
@@ -32,6 +32,26 @@ enum E2 : S::I { e }; #endif } // namespace cwg2516 +namespace cwg2517 { // cwg2517: 21 +#if __cplusplus >= 202302L imdj wrote: Shouldn't it follow the status mentioned here https://cplusplus.github.io/CWG/issues/2517.html? or it there a m

[clang] [llvm] [LLVM][Clang][Cygwin] Fix building Clang for Cygwin (PR #134494)

2025-04-05 Thread via cfe-commits
Mateusz =?utf-8?q?Mikuła?= , Mateusz =?utf-8?q?Mikuła?= , Mateusz =?utf-8?q?Mikuła?= Message-ID: In-Reply-To: @@ -847,7 +847,11 @@ void llvm::sys::PrintStackTrace(raw_ostream &OS, int Depth) { const char *name = strrchr(dlinfo.dli_fname, '/'); if (!name) +#ifdef __

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

2025-04-05 Thread Balázs Kéri via cfe-commits
@@ -436,9 +436,9 @@ class StdLibraryFunctionsChecker llvm::raw_ostream &Out) const override; ValueConstraintPtr negate() const override { - NotNullBufferConstraint Tmp(*this); + BufferNullnessConstraint Tmp(*this); Tmp.Cannot

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

2025-04-05 Thread Lucas Duarte Prates via cfe-commits
pratlucas wrote: I see this change re-landed yesterday but we continue to see failures related to the extra `-unknown` component in our downstream testing of [arm/arm-toolchain](https://github.com/arm/arm-toolchain), which are similar to what was described in the comment above: ``` arm-softwar

[clang] [flang] [driver] Generalize the code that adds the path of libflang_rt.runtime.a. (PR #134362)

2025-04-05 Thread Daniel Chen via cfe-commits
DanielCChen wrote: > May I ask not to merge this yet? I have a question above, but I will not be > at work until next Thursday to discuss this in a timely manner. @vzakhari Sure, I will wait until you come back. https://github.com/llvm/llvm-project/pull/134362 ___

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

2025-04-05 Thread Eugene Shalygin via cfe-commits
zeule wrote: > IMO, a boolean option, e.g. `AllowBreakBeforeQPropertyKeyword` should > suffice. I don't like to hardcode neither the macro name nor the keywords, which depend on Qt version. Implementation would not differ save for the source we fetch keywords from. https://github.com/llvm/

[clang-tools-extra] [clang-doc] [feat] add --repository-line-prefix argument (PR #131280)

2025-04-05 Thread Mohamed Emad via cfe-commits
@@ -749,13 +752,8 @@ genHTML(const EnumInfo &I, const ClangDocContext &CDCtx) { Out.emplace_back(std::move(Table)); - if (I.DefLoc) { -if (!CDCtx.RepositoryUrl) - Out.emplace_back(writeFileDefinition(*I.DefLoc)); -else - Out.emplace_back( - write

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

2025-04-05 Thread via cfe-commits
@@ -38,7 +38,7 @@ class CollectUnexpandedParameterPacksVisitor unsigned DepthLimit = (unsigned)-1; #ifndef NDEBUG -bool ContainsIntermediatePacks = false; + bool ContainsIntermediatePacks = false; cor3ntin wrote: We gain nothing by hiding that behind N

[clang-tools-extra] [clang-tidy] Fix false negative `modernize-use-ranges` when using getter function (PR #127377)

2025-04-05 Thread via cfe-commits
https://github.com/Andrewyuan34 updated https://github.com/llvm/llvm-project/pull/127377 >From fb2a4067517c1378ea6801ccd4a90207f607715f Mon Sep 17 00:00:00 2001 From: Andrewyuan34 Date: Thu, 20 Mar 2025 22:59:06 -0400 Subject: [PATCH] [clang-tidy] Fix false negative modernize-use-ranges when u

[clang] [compiler-rt] [Coverage] Fix region creation after try statements (PR #133463)

2025-04-05 Thread Justin Cady via cfe-commits
justincady wrote: Coverage report before: https://github.com/user-attachments/assets/80bb84a0-a76e-4f45-aca8-fd53378caa73"; /> Coverage report after: https://github.com/user-attachments/assets/987ae207-0eaf-4f33-aeb0-387c27cb382f"; /> https://github.com/llvm/llvm-project/pull/133463

[clang] [modules] Handle friend function that was a definition but became only a declaration during AST deserialization (PR #132214)

2025-04-05 Thread Dmitry Polukhin via cfe-commits
https://github.com/dmpolukhin edited https://github.com/llvm/llvm-project/pull/132214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RFC] Initial implementation of P2719 (PR #113510)

2025-04-05 Thread Oliver Hunt via cfe-commits
@@ -2234,6 +2234,101 @@ enum class CXXNewInitializationStyle { Braces }; +enum class TypeAwareAllocationMode : unsigned { No, Yes }; +inline bool isTypeAwareAllocation(TypeAwareAllocationMode Mode) { + return Mode == TypeAwareAllocationMode::Yes; +} +inline TypeAwareAllocat

[clang] [llvm] [RISCV] Add MC layer support for XSfmm*. (PR #133031)

2025-04-05 Thread Craig Topper via cfe-commits
topperc wrote: > > SiFive's AME proposal locates in OP-V/OP-VE category > > Yes, this is a good point. I do think we should also remove other vendor > instruction sets which abused the standard op fields. The RISC-V specification does not take a hard stance on non-conforming extensions. It sh

[clang] [compiler-rt] [llvm] [FMV][AArch64] Add feature CSSC and detect on linux platform. (PR #132727)

2025-04-05 Thread Jon Roelofs via cfe-commits
https://github.com/jroelofs approved this pull request. https://github.com/llvm/llvm-project/pull/132727 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream initial for-loop support (PR #132266)

2025-04-05 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. https://github.com/llvm/llvm-project/pull/132266 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add binary operators (PR #132420)

2025-04-05 Thread Andy Kaylor via cfe-commits
@@ -994,6 +992,127 @@ mlir::LogicalResult CIRToLLVMUnaryOpLowering::matchAndRewrite( << elementType; } +mlir::LLVM::IntegerOverflowFlags +CIRToLLVMBinOpLowering::getIntOverflowFlag(cir::BinOp op) const { + if (op.getNoUnsignedWrap()) +return mlir:

[clang] [Clang][BPF] Add tests for btf_type_tag c2x-style attributes (PR #133666)

2025-04-05 Thread via cfe-commits
https://github.com/yonghong-song closed https://github.com/llvm/llvm-project/pull/133666 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 61907eb - [Clang][CodeGen] Do not use the GEP result to infer offset and result type (#134221)

2025-04-05 Thread via cfe-commits
Author: Yingwei Zheng Date: 2025-04-03T18:03:42+08:00 New Revision: 61907ebd764afe75aa7134627f41827e6893d6d0 URL: https://github.com/llvm/llvm-project/commit/61907ebd764afe75aa7134627f41827e6893d6d0 DIFF: https://github.com/llvm/llvm-project/commit/61907ebd764afe75aa7134627f41827e6893d6d0.diff

[clang] cuda clang: Add support for CUDA surfaces (PR #132883)

2025-04-05 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/13779 Here is the relevant piece of the

[clang] [llvm] [RISCV] SiFive CLIC Support (PR #132481)

2025-04-05 Thread Jessica Clarke via cfe-commits
jrtc27 wrote: Is there a reason why these aren't lowercase like the rest? https://github.com/llvm/llvm-project/pull/132481 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 515d1ae - [clang-doc] Add --repository-line-prefix argument (#131280)

2025-04-05 Thread via cfe-commits
Author: Mohamed Emad Date: 2025-03-28T16:45:09-07:00 New Revision: 515d1ae679ea25687423be37abec74565d755921 URL: https://github.com/llvm/llvm-project/commit/515d1ae679ea25687423be37abec74565d755921 DIFF: https://github.com/llvm/llvm-project/commit/515d1ae679ea25687423be37abec74565d755921.diff

[clang] [Clang] Link libgcc_s.1.dylib when building for macOS 10.5 and older (PR #124651)

2025-04-05 Thread via cfe-commits
https://github.com/Un1q32 updated https://github.com/llvm/llvm-project/pull/124651 >From d4e97c4113086c3d2dfa3bf6e9ecfee377f8c4b6 Mon Sep 17 00:00:00 2001 From: Un1q32 Date: Mon, 27 Jan 2025 18:00:34 -0500 Subject: [PATCH 1/3] [Clang] Link libgcc_s.1.dylib when building for macOS 10.5 and olde

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

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alexandros Lamprineas (labrinea) Changes Removes attr-target-version.c which doesn't have a clear purpose. Introduces AArch64/fmv-detection.c to check detection bitmasks. Adds coverage in AArch64/fmv-resolver-emission.c --- Patch is 87.47

[clang] [clang] Track final substitution for Subst* AST nodes (PR #132748)

2025-04-05 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: @fmayer this patch touches nowhere near where those backtraces indicate. https://github.com/llvm/llvm-project/pull/130182 is a far more likely culprit. https://github.com/llvm/llvm-project/pull/132748 ___ cfe-commits mailing list cfe-co

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

2025-04-05 Thread Matheus Izvekov 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 , =?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: mizvekov wrote:

[clang] [llvm] Remove Native Client support (PR #133661)

2025-04-05 Thread Brad Smith via cfe-commits
https://github.com/brad0 edited https://github.com/llvm/llvm-project/pull/133661 ___ 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-04-05 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `polly-x86_64-linux-shared` running on `polly-x86_64-gce2` while building `clang` at step 5 "build". Full details are available at: https://lab.llvm.org/buildbot/#/builders/97/builds/5523 Here is the relevant piece of the bui

[clang] cuda clang: Add support for CUDA surfaces (PR #132883)

2025-04-05 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B closed https://github.com/llvm/llvm-project/pull/132883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format]: Add `Custom` to `ShortFunctionStyle`; add new AllowShortFunctionsOnASingleLineOptions for granular setup (PR #134337)

2025-04-05 Thread Owen Pan via cfe-commits
@@ -871,13 +871,81 @@ struct FormatStyle { /// void f() { bar(); } /// \endcode SFS_All, +/// Configure merge behavior using AllowShortFunctionsOnASingleLineOptions +SFS_Custom, }; /// Dependent on the value, ``int f() { return 0; }`` can be put on

[clang] [clang] Track final substitution for Subst* AST nodes (PR #132748)

2025-04-05 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: @thurstond Well can you provide a more recent buildbot failure link where https://github.com/llvm/llvm-project/pull/130182 is not on the list of possible culpirits? Because the link @fmayer provided for sure included it. https://github.com/llvm/llvm-project/pull/132748

[clang] [clang-format] Set C11 instead of C17 for LK_C (PR #134472)

2025-04-05 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. But why does this fix it? https://github.com/llvm/llvm-project/pull/134472 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [llvm] [LLVM][Clang][Cygwin] Fix building Clang for Cygwin (PR #134494)

2025-04-05 Thread via cfe-commits
Mateusz =?utf-8?q?Mikuła?= , Mateusz =?utf-8?q?Mikuła?= , Mateusz =?utf-8?q?Mikuła?= Message-ID: In-Reply-To: @@ -847,7 +847,11 @@ void llvm::sys::PrintStackTrace(raw_ostream &OS, int Depth) { const char *name = strrchr(dlinfo.dli_fname, '/'); if (!name) +#ifdef __

[clang] [Clang] Improve ``-Wtautological-overlap-compare`` diagnostics flag (PR #133653)

2025-04-05 Thread Yutong Zhu via cfe-commits
https://github.com/YutongZhuu ready_for_review https://github.com/llvm/llvm-project/pull/133653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve ``-Wtautological-overlap-compare`` diagnostics flag (PR #133653)

2025-04-05 Thread Yutong Zhu via cfe-commits
https://github.com/YutongZhuu edited https://github.com/llvm/llvm-project/pull/133653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LLVM][Clang][Cygwin] Fix building Clang for Cygwin (PR #134494)

2025-04-05 Thread via cfe-commits
Mateusz =?utf-8?q?Mikuła?= , Mateusz =?utf-8?q?Mikuła?= , Mateusz =?utf-8?q?Mikuła?= Message-ID: In-Reply-To: @@ -847,7 +847,11 @@ void llvm::sys::PrintStackTrace(raw_ostream &OS, int Depth) { const char *name = strrchr(dlinfo.dli_fname, '/'); if (!name) +#ifdef __

[clang] [llvm] [LLVM][Clang][Cygwin] Fix building Clang for Cygwin (PR #134494)

2025-04-05 Thread via cfe-commits
Mateusz =?utf-8?q?Mikuła?= , Mateusz =?utf-8?q?Mikuła?= , Mateusz =?utf-8?q?Mikuła?= Message-ID: In-Reply-To: https://github.com/jeremyd2019 edited https://github.com/llvm/llvm-project/pull/134494 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [clang] Updating to include gcc-toolsets 13 and 14 (PR #128438)

2025-04-05 Thread Bill Blum via cfe-commits
https://github.com/roadswitcher closed https://github.com/llvm/llvm-project/pull/128438 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Updating to include gcc-toolsets 13 and 14 (PR #128438)

2025-04-05 Thread Bill Blum via cfe-commits
roadswitcher wrote: Closing on assumption there's a More Preferred way to build this with gcc-toolset. https://github.com/llvm/llvm-project/pull/128438 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [clang-format] Set C11 instead of C17 for LK_C (PR #134472)

2025-04-05 Thread Owen Pan via cfe-commits
https://github.com/owenca demilestoned https://github.com/llvm/llvm-project/pull/134472 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LLVM][Clang][Cygwin] Fix building Clang for Cygwin (PR #134494)

2025-04-05 Thread Mateusz Mikuła via cfe-commits
@@ -847,7 +847,11 @@ void llvm::sys::PrintStackTrace(raw_ostream &OS, int Depth) { const char *name = strrchr(dlinfo.dli_fname, '/'); if (!name) +#ifdef __CYGWIN__ + OS << format(" %-*s", width, &dlinfo.dli_fname); mati865 wrote: Good point, som

[clang] [llvm] [LLVM][Clang][Cygwin] Fix building Clang for Cygwin (PR #134494)

2025-04-05 Thread Mateusz Mikuła via cfe-commits
https://github.com/mati865 edited https://github.com/llvm/llvm-project/pull/134494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Set C11 instead of C17 for LK_C (PR #134472)

2025-04-05 Thread Owen Pan via cfe-commits
owenca wrote: See #134514 https://github.com/llvm/llvm-project/pull/134472 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Merge inline short functions for BS_Whitesmiths (PR #134473)

2025-04-05 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/134473 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] aaaeb86 - [clang-format] Merge inline short functions for BS_Whitesmiths (#134473)

2025-04-05 Thread via cfe-commits
Author: Owen Pan Date: 2025-04-05T17:03:55-07:00 New Revision: aaaeb86acea77c5bcdb60011ce6aaaf4ebca4081 URL: https://github.com/llvm/llvm-project/commit/aaaeb86acea77c5bcdb60011ce6aaaf4ebca4081 DIFF: https://github.com/llvm/llvm-project/commit/aaaeb86acea77c5bcdb60011ce6aaaf4ebca4081.diff LOG:

[clang] [llvm] Remove Native Client support (PR #133661)

2025-04-05 Thread Brad Smith via cfe-commits
brad0 wrote: @MaskRay Another thing I wanted to ask about was there were some tests I removed with nacl in the name that used nacl triples as well as rodata-section.s. I am not sure if any of them are still relevant outside of a nacl environment. Should they be renamed and use a different trip

[clang] [driver] return in `addArchSpecificRPath` for AIX and also get the triple without the OS on AIX. (PR #134520)

2025-04-05 Thread Daniel Chen via cfe-commits
https://github.com/DanielCChen created https://github.com/llvm/llvm-project/pull/134520 `addArchSpecificRPath` shoudl immediately return for AIX as AIX doesn't support `rpath` option. `getArchSpecificLibPaths` also needs to get the triple without the OS version on AIX. >From a3583c59f7797a40a

[clang] [driver] return in `addArchSpecificRPath` for AIX and also get the triple without the OS on AIX. (PR #134520)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Daniel Chen (DanielCChen) Changes `addArchSpecificRPath` shoudl immediately return for AIX as AIX doesn't support `rpath` option. `getArchSpecificLibPaths` also needs to get the triple without the OS version on AIX. --- Full diff: https:

[clang] [driver] return in `addArchSpecificRPath` for AIX and also get the triple without the OS on AIX in `getArchSpecificLibPaths`. (PR #134520)

2025-04-05 Thread Daniel Chen via cfe-commits
https://github.com/DanielCChen edited https://github.com/llvm/llvm-project/pull/134520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][ARM]Ensure both -mno-unaligned-access and -munaligned-access are passed to multilib selection logic (PR #134099)

2025-04-05 Thread Simi Pallipurath via cfe-commits
https://github.com/simpal01 updated https://github.com/llvm/llvm-project/pull/134099 >From 7f6302053575732f633c69bbf55f2624da1e8bf4 Mon Sep 17 00:00:00 2001 From: Simi Pallipurath Date: Wed, 2 Apr 2025 12:35:16 +0100 Subject: [PATCH 1/4] Refine multilib selection to handle alignment based on a

[clang] dedb632 - [HIP] Claim `--offload-compress` for `-M` (#133456)

2025-04-05 Thread via cfe-commits
Author: Yaxun (Sam) Liu Date: 2025-04-02T18:28:56-04:00 New Revision: dedb632b833f14ef28c6f8a7f5e8983c1be60fa9 URL: https://github.com/llvm/llvm-project/commit/dedb632b833f14ef28c6f8a7f5e8983c1be60fa9 DIFF: https://github.com/llvm/llvm-project/commit/dedb632b833f14ef28c6f8a7f5e8983c1be60fa9.dif

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

2025-04-05 Thread Sarah Spall via cfe-commits
https://github.com/spall updated https://github.com/llvm/llvm-project/pull/131666 >From 4d4541232fb8ada1a4a17701919809a2a727d52d Mon Sep 17 00:00:00 2001 From: Sarah Spall Date: Mon, 17 Mar 2025 12:01:11 -0700 Subject: [PATCH 1/2] remove Macros implementing overloads for min and max. Implement

[clang] [llvm] [LLVM][Clang][Cygwin] Fix building Clang for Cygwin (PR #134494)

2025-04-05 Thread via cfe-commits
Mateusz =?utf-8?q?Mikuła?= , Mateusz =?utf-8?q?Mikuła?= , Mateusz =?utf-8?q?Mikuła?= Message-ID: In-Reply-To: https://github.com/jeremyd2019 edited https://github.com/llvm/llvm-project/pull/134494 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] 910f7f4 - [Driver] Haiku address sanitizer support (#132335)

2025-04-05 Thread via cfe-commits
Author: Brad Smith Date: 2025-03-21T02:13:33-04:00 New Revision: 910f7f45f27d1f3cfad779669d0e0f15ff5b9686 URL: https://github.com/llvm/llvm-project/commit/910f7f45f27d1f3cfad779669d0e0f15ff5b9686 DIFF: https://github.com/llvm/llvm-project/commit/910f7f45f27d1f3cfad779669d0e0f15ff5b9686.diff LO

[clang] [llvm] [Clang] [OpenMP] Support NOWAIT with optional argument (PR #128742)

2025-04-05 Thread via cfe-commits
https://github.com/jadhbeika updated https://github.com/llvm/llvm-project/pull/128742 >From fa3dd1423e4bf2209feb9713f1833e653ec43a74 Mon Sep 17 00:00:00 2001 From: Jad Hbeika Date: Wed, 19 Feb 2025 12:53:11 -0800 Subject: [PATCH 1/4] [Clang] [OpenMP] Support NOWAIT with optional argument ---

[clang] [Driver] Use a range constructor of StringSet (NFC) (PR #133201)

2025-04-05 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/133201 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    2   3   4   5   6   7   8   >