[clang] [clang][modules] Separate parsing of modulemaps (PR #119740)

2025-02-20 Thread Michael Spencer via cfe-commits
@@ -3157,25 +2140,18 @@ bool ModuleMap::parseModuleMapFile(FileEntryRef File, bool IsSystem, assert((!Offset || *Offset <= Buffer->getBufferSize()) && "invalid buffer offset"); - // Parse this module map file. - Lexer L(SourceMgr.getLocForStartOfFile(ID), MMapLan

[clang] [libc] [Clang] Fix cross-lane scan when given divergent lanes (PR #127703)

2025-02-20 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#128085 https://github.com/llvm/llvm-project/pull/127703 ___ 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 bugprone-smartptr-reset-ambiguous-call check (PR #121291)

2025-02-20 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,48 @@ +.. title:: clang-tidy - readability-ambiguous-smartptr-reset-call + +readability-ambiguous-smartptr-reset-call += + +Finds potentially erroneous calls to ``reset`` method on smart pointers when +the pointee type also has a

[clang] fd5d1cb - [clang][Index] Use HeuristicResolver in IndexTypeSourceInfo as well (#128106)

2025-02-20 Thread via cfe-commits
Author: Nathan Ridge Date: 2025-02-21T00:45:51-05:00 New Revision: fd5d1cbb75e4278d9074ff105efd3ab48f778b4b URL: https://github.com/llvm/llvm-project/commit/fd5d1cbb75e4278d9074ff105efd3ab48f778b4b DIFF: https://github.com/llvm/llvm-project/commit/fd5d1cbb75e4278d9074ff105efd3ab48f778b4b.diff

[clang] [clang][Index] Use HeuristicResolver in IndexTypeSourceInfo as well (PR #128106)

2025-02-20 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/128106 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement the core language parts of P2786 - Trivial relocation (PR #127636)

2025-02-20 Thread Younan Zhang via cfe-commits
@@ -7258,6 +7261,217 @@ void Sema::CheckCompletedCXXClass(Scope *S, CXXRecordDecl *Record) { } } +static bool hasSuitableConstructorForReplaceability(CXXRecordDecl *D, +bool Implicit) { + assert(D->hasDefinition() && !D->

[clang] [Clang] Implement the core language parts of P2786 - Trivial relocation (PR #127636)

2025-02-20 Thread Younan Zhang via cfe-commits
@@ -12427,6 +12427,11 @@ def err_builtin_invalid_arg_type: Error < "an 'int'|" "a vector of floating points}1 (was %2)">; +def err_builtin_trivially_relocate_invalid_arg_type: Error < + "first%select{||| and second}0 argument%select{|||s}0 to " zyn0217 wr

[clang] [Clang] Implement the core language parts of P2786 - Trivial relocation (PR #127636)

2025-02-20 Thread Younan Zhang via cfe-commits
@@ -2862,6 +2862,30 @@ bool QualType::isTriviallyRelocatableType(const ASTContext &Context) const { } } +bool QualType::isCppTriviallyRelocatableType(const ASTContext &Context) const { + QualType BaseElementType = Context.getBaseElementType(*this); + if (BaseElementType->

[clang] [Clang] Implement the core language parts of P2786 - Trivial relocation (PR #127636)

2025-02-20 Thread Younan Zhang via cfe-commits
@@ -757,7 +757,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, Builder.defineMacro("__cpp_explicit_this_parameter", "202110L"); } - // We provide those C++23 features as extensions in earlier language modes, so + // We provide those

[clang] [CIR] Initial implementation of lowering CIR to MLIR (PR #127835)

2025-02-20 Thread Valentin Clement バレンタイン クレメン via cfe-commits
@@ -2958,6 +2958,8 @@ defm clangir : BoolFOption<"clangir", BothFlags<[], [ClangOption, CC1Option], "">>; def emit_cir : Flag<["-"], "emit-cir">, Visibility<[ClangOption, CC1Option]>, Group, HelpText<"Build ASTs and then lower to ClangIR">; +def emit_cir_mlir : Flag<["-"],

[clang] [Clang] emit -Wunused-variable warning for unused structured bindings without the [[maybe_unused]] attribute (PR #127061)

2025-02-20 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/127061 >From a76ee008bdb87655da465e21d09c840edecc2b1b Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Thu, 13 Feb 2025 15:24:09 +0200 Subject: [PATCH 1/2] [Clang] emit -Wunused-variable warning for unused structur

[clang] [WebAssembly] Generate invokes with llvm.wasm.(re)throw (PR #128105)

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

[clang] [clang][Index] Use HeuristicResolver in IndexTypeSourceInfo as well (PR #128106)

2025-02-20 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/128106 None >From 10edf87574f5473da01bd985cec4c7810f57c516 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Thu, 20 Feb 2025 20:44:52 -0500 Subject: [PATCH] [clang][Index] Use HeuristicResolver in IndexTypeSou

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++][ranges] P2542R8: Implement `views::concat` (PR #120920)

2025-02-20 Thread A. Jiang via cfe-commits
@@ -0,0 +1,646 @@ +// -*- 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

[clang] [clang] Improve module out of date error message (PR #128103)

2025-02-20 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: would you like to add a test? https://github.com/llvm/llvm-project/pull/128103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][LoongArch] Add OHOS target (PR #127555)

2025-02-20 Thread via cfe-commits
@@ -0,0 +1,16 @@ +/// Check the max-page-size for OHOS aarch64/loongarch64/riscv64/x86_64. Ami-zhang wrote: Removed the new file and added the page-size check in ohos.c, following the style of similar tests. Thanks! https://github.com/llvm/llvm-project/pull/127

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++][ranges] P2542R8: Implement `views::concat` (PR #120920)

2025-02-20 Thread A. Jiang via cfe-commits
https://github.com/frederick-vs-ja edited https://github.com/llvm/llvm-project/pull/120920 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a60675d - [CodeGen][NFC] Move test builtin_signbit.cpp to CodeGen (#127814)

2025-02-20 Thread via cfe-commits
Author: Donát Nagy Date: 2025-02-20T10:56:02+01:00 New Revision: a60675d22723d682ba66c769ccb2b42e0b825a04 URL: https://github.com/llvm/llvm-project/commit/a60675d22723d682ba66c769ccb2b42e0b825a04 DIFF: https://github.com/llvm/llvm-project/commit/a60675d22723d682ba66c769ccb2b42e0b825a04.diff LO

[clang] [CodeGen][NFC] Move test builtin_signbit.cpp to CodeGen (PR #127814)

2025-02-20 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/127814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Mark P1061 (Structured Bindings can introduce a Pack) as implemented (PR #127980)

2025-02-20 Thread via cfe-commits
cor3ntin wrote: Note that there does not seem to be any appetite to backport that to 20 - despite limited risks - so we mark it as a Clang 21 feature https://github.com/llvm/llvm-project/pull/127980 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang] dc326d0 - [Clang][doc] -ffp-contract options and standard compliance (#127621)

2025-02-20 Thread via cfe-commits
Author: Sjoerd Meijer Date: 2025-02-20T10:10:23Z New Revision: dc326d0b01f63e49f4f11c0c332369bf109721df URL: https://github.com/llvm/llvm-project/commit/dc326d0b01f63e49f4f11c0c332369bf109721df DIFF: https://github.com/llvm/llvm-project/commit/dc326d0b01f63e49f4f11c0c332369bf109721df.diff LOG:

[clang] [CodeGen][NFC] Move test builtin_signbit.cpp to CodeGen (PR #127814)

2025-02-20 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/13334 Here is the r

[clang] [Clang][doc] -ffp-contract options and standard compliance (PR #127621)

2025-02-20 Thread Sjoerd Meijer via cfe-commits
https://github.com/sjoerdmeijer closed https://github.com/llvm/llvm-project/pull/127621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Align `-x f95[-cpp-input]` language modes with `gfortran` (PR #127986)

2025-02-20 Thread Iñaki Amatria Barral via cfe-commits
https://github.com/inaki-amatria created https://github.com/llvm/llvm-project/pull/127986 This PR may solve some of the issues described in: https://github.com/llvm/llvm-project/issues/127617. The reason to revert https://github.com/llvm/llvm-project/commit/81d82cac8c4cbd006bf991fd7380de2d728

[clang] Revert "[clang] Lower modf builtin using `llvm.modf` intrinsic" (PR #127987)

2025-02-20 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue created https://github.com/llvm/llvm-project/pull/127987 Reverts llvm/llvm-project#126750 Revering while I investigate: https://lab.llvm.org/buildbot/#/builders/72/builds/8406 >From e082cbf5fd4f889762e12062d2544f862339b959 Mon Sep 17 00:00:00 2001 From: Benjamin Max

[clang] [flang] [flang] Align `-x f95[-cpp-input]` language modes with `gfortran` (PR #127986)

2025-02-20 Thread Iñaki Amatria Barral via cfe-commits
https://github.com/inaki-amatria edited https://github.com/llvm/llvm-project/pull/127986 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d595fc9 - Revert "[clang] Lower modf builtin using `llvm.modf` intrinsic" (#127987)

2025-02-20 Thread via cfe-commits
Author: Benjamin Maxwell Date: 2025-02-20T10:25:18Z New Revision: d595fc91aeb35cb7fad8ad37fa84a70863b09f69 URL: https://github.com/llvm/llvm-project/commit/d595fc91aeb35cb7fad8ad37fa84a70863b09f69 DIFF: https://github.com/llvm/llvm-project/commit/d595fc91aeb35cb7fad8ad37fa84a70863b09f69.diff L

[clang] Revert "[clang] Lower modf builtin using `llvm.modf` intrinsic" (PR #127987)

2025-02-20 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue closed https://github.com/llvm/llvm-project/pull/127987 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Align `-x f95[-cpp-input]` language modes with `gfortran` (PR #127986)

2025-02-20 Thread via cfe-commits
=?utf-8?q?Iñaki?= Amatria Barral Message-ID: In-Reply-To: llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Iñaki Amatria Barral (inaki-amatria) Changes This PR may solve some of the issues described in: https://github.com/llvm/llvm-project/issues/127617. The reason to revert

[clang] [flang] [flang] Align `-x f95[-cpp-input]` language modes with `gfortran` (PR #127986)

2025-02-20 Thread Iñaki Amatria Barral via cfe-commits
https://github.com/inaki-amatria edited https://github.com/llvm/llvm-project/pull/127986 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[clang] Lower modf builtin using `llvm.modf` intrinsic" (PR #127987)

2025-02-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Benjamin Maxwell (MacDue) Changes Reverts llvm/llvm-project#126750 Revering while I investigate: https://lab.llvm.org/buildbot/#/builders/72/builds/8406 --- Full diff: https://github.com/llvm/llvm-project/pull/127987.diff 6 Files Affe

[clang] Revert "[clang] Lower modf builtin using `llvm.modf` intrinsic" (PR #127987)

2025-02-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Benjamin Maxwell (MacDue) Changes Reverts llvm/llvm-project#126750 Revering while I investigate: https://lab.llvm.org/buildbot/#/builders/72/builds/8406 --- Full diff: https://github.com/llvm/llvm-project/pull/127987.diff 6 Fi

[clang] Revert "[clang] Lower modf builtin using `llvm.modf` intrinsic" (PR #127987)

2025-02-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Benjamin Maxwell (MacDue) Changes Reverts llvm/llvm-project#126750 Revering while I investigate: https://lab.llvm.org/buildbot/#/builders/72/builds/8406 --- Full diff: https://github.com/llvm/llvm-project/pull/127987.diff 6 File

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-02-20 Thread Matheus Izvekov via cfe-commits
@@ -11714,27 +11714,51 @@ static void DiagnoseBadDeduction(Sema &S, NamedDecl *Found, Decl *Templated, return; } - case TemplateDeductionResult::InvalidExplicitArguments: + case TemplateDeductionResult::InvalidExplicitArguments: { assert(ParamD && "no parameter f

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-02-20 Thread Matheus Izvekov via cfe-commits
@@ -11714,27 +11714,51 @@ static void DiagnoseBadDeduction(Sema &S, NamedDecl *Found, Decl *Templated, return; } - case TemplateDeductionResult::InvalidExplicitArguments: + case TemplateDeductionResult::InvalidExplicitArguments: { assert(ParamD && "no parameter f

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-02-20 Thread Matheus Izvekov via cfe-commits
@@ -3572,10 +3572,17 @@ TemplateDeductionResult Sema::SubstituteExplicitTemplateArguments( SugaredBuilder, CanonicalBuilder, /*UpdateArgsWithConversions=*/false) || Trap.hasErrorOccurred()) { + unsigned

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-02-20 Thread Matheus Izvekov via cfe-commits
@@ -4870,14 +4870,17 @@ def note_ovl_candidate_inconsistent_deduction_types : Note< "candidate template ignored: deduced values %diff{" "of conflicting types for parameter %0 (%1 of type $ vs. %3 of type $)|" "%1 and %3 of conflicting types for parameter %0}2,4">;

[clang] [ARM] Fix lane ordering for AdvSIMD intrinsics on big-endian targets (PR #127068)

2025-02-20 Thread Oliver Stannard via cfe-commits
ostannard wrote: Ping https://github.com/llvm/llvm-project/pull/127068 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ARM, AArch64] Fix ABI bugs with over-sized bitfields (PR #126774)

2025-02-20 Thread Oliver Stannard via cfe-commits
ostannard wrote: Ping https://github.com/llvm/llvm-project/pull/126774 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0948fc8 - [clang] print correct context for diagnostics suppressed by deduction (#125453)

2025-02-20 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-02-20T08:50:03-03:00 New Revision: 0948fc85aa99a8fd193d2d66a517e31b8b639f20 URL: https://github.com/llvm/llvm-project/commit/0948fc85aa99a8fd193d2d66a517e31b8b639f20 DIFF: https://github.com/llvm/llvm-project/commit/0948fc85aa99a8fd193d2d66a517e31b8b639f20.dif

[clang] [clang] Implement instantiation context note for checking template parameters (PR #126088)

2025-02-20 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/126088 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] print correct context for diagnostics suppressed by deduction (PR #125453)

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

[clang] [clang][LoongArch] Add OHOS target (PR #127555)

2025-02-20 Thread Lu Weining via cfe-commits
SixWeining wrote: Could you add some tests in ohos.c with the `--sysroot` option specified? https://github.com/llvm/llvm-project/pull/127555 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] Revert "[clang] Lower modf builtin using `llvm.modf` intrinsic" (PR #127987)

2025-02-20 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/13336 Here is the relevant piec

[libunwind] [libunwind][NFC] Remove the CET keyword in shadow stack-related stuffs (PR #126663)

2025-02-20 Thread Ming-Yi Lai via cfe-commits
https://github.com/mylai-mtk closed https://github.com/llvm/llvm-project/pull/126663 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add BuiltinTemplates.td to generate code for builtin templates (PR #123736)

2025-02-20 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/123736 >From 586dd4edfc79c88cc1583b64d186c1481fbd6ce1 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Wed, 4 Sep 2024 13:31:39 +0200 Subject: [PATCH 1/7] [Clang] Add BuiltinTemplates.td to generate code for bu

[libunwind] 507e413 - [libunwind][NFC] Remove the CET keyword in shadow stack-related stuffs (#126663)

2025-02-20 Thread via cfe-commits
Author: Ming-Yi Lai Date: 2025-02-20T16:12:16+08:00 New Revision: 507e413a2d85fb25f70caa9ef843f7c7cffb94c6 URL: https://github.com/llvm/llvm-project/commit/507e413a2d85fb25f70caa9ef843f7c7cffb94c6 DIFF: https://github.com/llvm/llvm-project/commit/507e413a2d85fb25f70caa9ef843f7c7cffb94c6.diff L

[clang] [Clang] Add BuiltinTemplates.td to generate code for builtin templates (PR #123736)

2025-02-20 Thread Nikolas Klauser via cfe-commits
@@ -0,0 +1,162 @@ +//=- ClangBuiltinsEmitter.cpp - Generate Clang builtin templates-*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [Clang] Add BuiltinTemplates.td to generate code for builtin templates (PR #123736)

2025-02-20 Thread Nikolas Klauser via cfe-commits
@@ -0,0 +1,46 @@ +//===--- BuiltinTemplates.td - Clang builtin template aliases ---*- 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] [Clang] Add BuiltinTemplates.td to generate code for builtin templates (PR #123736)

2025-02-20 Thread Nikolas Klauser via cfe-commits
@@ -0,0 +1,162 @@ +//=- ClangBuiltinsEmitter.cpp - Generate Clang builtin templates-*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [CIR] Initial implementation of lowering CIR to MLIR (PR #127835)

2025-02-20 Thread Henrich Lauko via cfe-commits
@@ -2958,6 +2958,8 @@ defm clangir : BoolFOption<"clangir", BothFlags<[], [ClangOption, CC1Option], "">>; def emit_cir : Flag<["-"], "emit-cir">, Visibility<[ClangOption, CC1Option]>, Group, HelpText<"Build ASTs and then lower to ClangIR">; +def emit_cir_mlir : Flag<["-"],

[clang] [Clang][doc] -ffp-contract options and standard compliance (PR #127621)

2025-02-20 Thread Sjoerd Meijer via cfe-commits
sjoerdmeijer wrote: Thanks for your reviews! I will make those changes before merging this. https://github.com/llvm/llvm-project/pull/127621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [Clang] Mark P1061 (Structured Bindings can introduce a Pack) as implemented (PR #127980)

2025-02-20 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/127980 None >From 5dc1b59e2739ac3af24e05723f8d6240d6e8e139 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Thu, 20 Feb 2025 10:51:15 +0100 Subject: [PATCH] [Clang] Mark P1061 (Structured Bindings can introduce a

[clang] [Clang] Mark P1061 (Structured Bindings can introduce a Pack) as implemented (PR #127980)

2025-02-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/127980.diff 5 Files Affected: - (modified) clang/docs/LanguageExtensions.rst (+1) - (modified) clang/docs/ReleaseNotes.rst (+3-1) - (modified) clang

[clang] default clause replaced by otherwise clause for metadirective in OpenMP 5.2 (PR #125648)

2025-02-20 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 updated https://github.com/llvm/llvm-project/pull/125648 >From 189dd3cc2230ea5752969f02f119b6ee30e3df69 Mon Sep 17 00:00:00 2001 From: Urvi Rav Date: Tue, 4 Feb 2025 01:35:41 -0600 Subject: [PATCH 1/6] default clause replaced by otherwise clause for metadirective

[clang] default clause replaced by otherwise clause for metadirective in OpenMP 5.2 (PR #125648)

2025-02-20 Thread Urvi Rav via cfe-commits
ravurvi20 wrote: > Did anybody run the OpenMP VV suite before and after this change? Curious to > know if that improves results. The changes I implemented are related to parsing, specifically addressing the deprecation of the default clause. These modifications do not impact the results, as t

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

2025-02-20 Thread Nikita Popov via cfe-commits
@@ -255,4 +255,9 @@ void RuntimeLibcallsInfo::initLibcalls(const Triple &TT) { } setLibcallName(RTLIB::MULO_I128, nullptr); } + + if (TT.isSystemZ()) { +setLibcallName(RTLIB::FPROUND_F32_F16, "__truncsfhf2"); +setLibcallName(RTLIB::FPEXT_F16_F32, "__extendhfs

[clang] [clang][LoongArch] Add OHOS target (PR #127555)

2025-02-20 Thread Lu Weining via cfe-commits
@@ -235,3 +235,24 @@ // CHECK-OHOS-PTHREAD-NOT: -lpthread +// RUN: %clang -### --target=aarch64-linux-ohos %s 2>&1 | \ +// RUN: FileCheck --check-prefix=CHECK-MAXPAGESIZE-4KB %s +// RUN: %clang -### --target=aarch64-none-linux-gnu %s 2>&1 | \ +// RUN: FileCheck --check-pr

[clang] [flang] [flang][OpenMP] Upstream `do concurrent` loop-nest detection. (PR #127595)

2025-02-20 Thread Kareem Ergawy via cfe-commits
ergawy wrote: @clementval @jeanPerier can you please take a look at the PR and @kiranchandramohan's comment above? 🙏 https://github.com/llvm/llvm-project/pull/127595 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [HLSL][Sema] Fix Struct Size Calculation containing 16/32 bit scalars (PR #128086)

2025-02-20 Thread Ashley Coleman via cfe-commits
https://github.com/V-FEXrt created https://github.com/llvm/llvm-project/pull/128086 Fixes #119641 Update SemaHLSL to correctly calculate the alignment barrier for scalars that are not 4 bytes wide >From bebfc20fac6b27d02bca9af328d0568018672c71 Mon Sep 17 00:00:00 2001 From: Ashley Coleman Da

[clang] [Fix] Speedup -Wunsafe-buffer-usage when using clang modules. (PR #127161)

2025-02-20 Thread via cfe-commits
https://github.com/matts1 updated https://github.com/llvm/llvm-project/pull/127161 >From 46dc2732948e2776909d2ec752a235f22ac471f3 Mon Sep 17 00:00:00 2001 From: Matt Stark Date: Fri, 14 Feb 2025 14:14:03 +1100 Subject: [PATCH] [Fix] Speedup -Wunsafe-buffer-usage when using clang modules. See h

[clang-tools-extra] [clang-tidy] Add bugprone-smartptr-reset-ambiguous-call check (PR #121291)

2025-02-20 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,131 @@ +//===--- AmbiguousSmartptrResetCallCheck.cpp - clang-tidy -===// +// +// 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] [HLSL][Sema] Fix Struct Size Calculation containing 16/32 bit scalars (PR #128086)

2025-02-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ashley Coleman (V-FEXrt) Changes Fixes #119641 Update SemaHLSL to correctly calculate the alignment barrier for scalars that are not 4 bytes wide --- Full diff: https://github.com/llvm/llvm-project/pull/128086.diff 2 Files Affected: -

[clang] [clang][Index] Use HeuristicResolver in IndexTypeSourceInfo as well (PR #128106)

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

[clang] [llvm] [AMDGPU] Add builtins for wave reduction intrinsics (PR #127013)

2025-02-20 Thread via cfe-commits
@@ -346,6 +346,24 @@ BUILTIN(__builtin_amdgcn_endpgm, "v", "nr") BUILTIN(__builtin_amdgcn_get_fpenv, "WUi", "n") BUILTIN(__builtin_amdgcn_set_fpenv, "vWUi", "n") +//===--===// + +// Wave Reduction builtins. +

[clang] [llvm] [AMDGPU] Add builtins for wave reduction intrinsics (PR #127013)

2025-02-20 Thread via cfe-commits
@@ -346,6 +346,24 @@ BUILTIN(__builtin_amdgcn_endpgm, "v", "nr") BUILTIN(__builtin_amdgcn_get_fpenv, "WUi", "n") BUILTIN(__builtin_amdgcn_set_fpenv, "vWUi", "n") +//===--===// + +// Wave Reduction builtins. +

[clang] [clang][bytecode] Use ExtendingDecl mechanism for primitives as well (PR #128141)

2025-02-20 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/128141 ... when creating the temporary variables for a MaterializeTemporaryExpr. >From c097cff3502bf0fbbbd2a1c8c791f578fd1ce507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 20 Feb 2025 20:2

[clang] [clang][bytecode] Use ExtendingDecl mechanism for primitives as well (PR #128141)

2025-02-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes ... when creating the temporary variables for a MaterializeTemporaryExpr. --- Patch is 24.69 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/128141.diff 3 Files

[clang] [clang-format] Allow specifying the language for `.h` files (PR #128122)

2025-02-20 Thread Owen Pan via cfe-commits
owenca wrote: > a bit old school.. > > ``` > /* -*- Mode: C++; -*- */ > /* -*- Mode: C; -*- */ > /* -*- Mode: objc; -*- */ > ``` We support the following now: ```cpp // clang-format off // clang-format off: reason // clang-format on // clang-format on: reason /* clang-format off */ /* clang-for

[clang] [libc] [Clang] Fix cross-lane scan when given divergent lanes (PR #127703)

2025-02-20 Thread Joseph Huber via cfe-commits
jhuber6 wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/6cc7ca084a5bbb7ccf606cab12065604453dde59 https://github.com/llvm/llvm-project/pull/127703 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[clang-tools-extra] [clang-tidy] Add bugprone-smartptr-reset-ambiguous-call check (PR #121291)

2025-02-20 Thread Denis Mikhailov via cfe-commits
https://github.com/denzor200 requested changes to this pull request. https://github.com/llvm/llvm-project/pull/121291 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Implement default constant buffer `$Globals` (PR #125807)

2025-02-20 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-asan` running on `sanitizer-buildbot7` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/24/builds/5528 Here is the releva

[clang] 24c06a1 - [C++20] [Modules] handling selectAny attribute for vardecl

2025-02-20 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-02-21T10:48:30+08:00 New Revision: 24c06a19be7bcf28b37e5eabbe65df95a2c0265a URL: https://github.com/llvm/llvm-project/commit/24c06a19be7bcf28b37e5eabbe65df95a2c0265a DIFF: https://github.com/llvm/llvm-project/commit/24c06a19be7bcf28b37e5eabbe65df95a2c0265a.diff LO

[clang] Revert "[HLSL] Implement default constant buffer `$Globals`" (PR #128112)

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

[clang] [lld] [llvm] Integrated Distributed ThinLTO (DTLTO): Initial support (PR #126654)

2025-02-20 Thread Katya Romanova via cfe-commits
romanova-ekaterina wrote: > > I don't have a strong opinion on this but I have basically the same > > concerns with completely opposite conclusions. To me, the distributed > > thinLTO makes you think there is a distributed full LTO, while just call it > > distributed LTO will eliminate that co

[clang] [lld] [llvm] Integrated Distributed ThinLTO (DTLTO): Initial support (PR #126654)

2025-02-20 Thread Katya Romanova via cfe-commits
romanova-ekaterina wrote: > I'm fine with DTLTO as a shorthand for "integrated distributed ThinLTO". Great! I'm glad that you support this acronim too. :) > BTW thanks for sending the LLVM patch, I will review that tonight or more > likely tomorrow. Teresa, when reviewing, could you please fo

[clang] [clang-format] Allow specifying the language for `.h` files (PR #128122)

2025-02-20 Thread via cfe-commits
https://github.com/mydeveloperday approved this pull request. I think this should help, I wonder if there is a equivalent of this (but for C/ObjC) that we can support ``` # -*-Mode: Makefile;-*- ``` https://github.com/llvm/llvm-project/pull/128122 _

[clang] [clang-format] Allow specifying the language for `.h` files (PR #128122)

2025-02-20 Thread via cfe-commits
mydeveloperday wrote: a bit old school.. ``` /* -*- Mode: C++; -*- */ /* -*- Mode: C; -*- */ /* -*- Mode: objc; -*- */ ``` https://github.com/llvm/llvm-project/pull/128122 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] [clang][modules] Fix local submodule visibility of macros from transitive import (PR #122955)

2025-02-20 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese approved this pull request. https://github.com/llvm/llvm-project/pull/122955 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 204dcaf - [clang-format] Fix a bug in BCIS_AfterColon and `ColumnLimit: 0` (#127964)

2025-02-20 Thread via cfe-commits
Author: Owen Pan Date: 2025-02-20T19:06:51-08:00 New Revision: 204dcafec0ecf0db81d420d2de57b02ada6b09ec URL: https://github.com/llvm/llvm-project/commit/204dcafec0ecf0db81d420d2de57b02ada6b09ec DIFF: https://github.com/llvm/llvm-project/commit/204dcafec0ecf0db81d420d2de57b02ada6b09ec.diff LOG:

[clang] [clang-format] Fix a bug in BCIS_AfterColon and `ColumnLimit: 0` (PR #127964)

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

[clang] Revert "[HLSL] Implement default constant buffer `$Globals`" (PR #128112)

2025-02-20 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-win` running on `as-builder-10` while building `clang` at step 17 "test-check-lldb-api". Full details are available at: https://lab.llvm.org/buildbot/#/builders/197/builds/2288 Here is the relevant piece o

[clang] Revert "[HLSL] Implement default constant buffer `$Globals`" (PR #128112)

2025-02-20 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/13381 Here is the r

[clang-tools-extra] [clang-tidy] Add bugprone-smartptr-reset-ambiguous-call check (PR #121291)

2025-02-20 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/121291 >From 42e03bb9cc9bd815476b0a3f06ac5f58826e3708 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Fri, 31 Jan 2025 19:29:05 +0300 Subject: [PATCH 1/6] [clang-tidy] add new check bugprone-reset-ambiguous-call

[clang] [Clang] Implement CWG2918 'Consideration of constraints for address of overloaded function' (PR #127773)

2025-02-20 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/127773 >From 2d9c248c70b6d24f277982a32f36e2ef1bde2829 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Wed, 19 Feb 2025 17:13:56 +0800 Subject: [PATCH 1/3] [Clang] Implement CWG2918 'Consideration of constraints for

[clang-tools-extra] [clang-tidy] Add bugprone-smartptr-reset-ambiguous-call check (PR #121291)

2025-02-20 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,49 @@ +.. title:: clang-tidy - readability-ambiguous-smartptr-reset-call + +readability-ambiguous-smartptr-reset-call += + +Finds potentially erroneous calls to ``reset`` method on smart pointers when +the pointee type also has a

[clang] [Clang] Implement CWG2918 'Consideration of constraints for address of overloaded function' (PR #127773)

2025-02-20 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/127773 >From 2d9c248c70b6d24f277982a32f36e2ef1bde2829 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Wed, 19 Feb 2025 17:13:56 +0800 Subject: [PATCH 1/4] [Clang] Implement CWG2918 'Consideration of constraints for

[clang] Add clang atomic control options and attribute (PR #114841)

2025-02-20 Thread Yaxun Liu via cfe-commits
@@ -313,6 +313,8 @@ EXTENSION(datasizeof, LangOpts.CPlusPlus) FEATURE(cxx_abi_relative_vtable, LangOpts.CPlusPlus && LangOpts.RelativeCXXABIVTables) +FEATURE(atomic_attributes, true) yxsamliu wrote: will change https://github.com/llvm/llvm-project/pull/114

[clang] [clang-format] Allow specifying the language for `.h` files (PR #128122)

2025-02-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Owen Pan (owenca) Changes Closes #128119 --- Full diff: https://github.com/llvm/llvm-project/pull/128122.diff 5 Files Affected: - (modified) clang/docs/ClangFormatStyleOptions.rst (+7-1) - (modified) clang/docs/ReleaseNotes.rst (+3) -

[clang] [clang-format] Allow specifying the language for `.h` files (PR #128122)

2025-02-20 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/128122 Closes #128119 >From 507c54acac3e73826f63691c901ceba9c569869f Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 20 Feb 2025 20:02:44 -0800 Subject: [PATCH] [clang-format] Allow specifying the language for `.h`

[clang] [clang][Index] Use HeuristicResolver in IndexTypeSourceInfo as well (PR #128106)

2025-02-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nathan Ridge (HighCommander4) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/128106.diff 1 Files Affected: - (modified) clang/lib/Index/IndexTypeSourceInfo.cpp (+3-21) ``diff diff --git a/clang/lib/Index/In

[clang] [clang][Index] Use HeuristicResolver in IndexTypeSourceInfo as well (PR #128106)

2025-02-20 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 ready_for_review https://github.com/llvm/llvm-project/pull/128106 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Index] Use HeuristicResolver in IndexTypeSourceInfo as well (PR #128106)

2025-02-20 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/128106 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Index] Use HeuristicResolver in IndexTypeSourceInfo as well (PR #128106)

2025-02-20 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. Thanks, this is a nice improvement. not: I think it'd be better to say NFC in the PR title. https://github.com/llvm/llvm-project/pull/128106 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang-format] Allow specifying the language for `.h` files (PR #128122)

2025-02-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Closes #128119 --- Full diff: https://github.com/llvm/llvm-project/pull/128122.diff 5 Files Affected: - (modified) clang/docs/ClangFormatStyleOptions.rst (+7-1) - (modified) clang/docs/ReleaseNotes.rst

[clang] [Clang][CodeGen] Bail out on constexpr unknown values in ConstantEmitter (PR #127525)

2025-02-20 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/127525 >From d931667e3b7e18f8ba6f054405ffc5fe2fac36b4 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Tue, 18 Feb 2025 01:26:26 +0800 Subject: [PATCH 1/3] [Clang][CodeGen] Bail out on constexpr unknown values in Co

[clang] Add clang atomic control options and attribute (PR #114841)

2025-02-20 Thread Yaxun Liu via cfe-commits
@@ -5400,6 +5400,151 @@ third argument, can only occur at file scope. a = b[i] * c[i] + e; } +Extensions for controlling atomic code generation += + +The ``[[clang::atomic]]`` statement attribute enables users to control ho

[clang] [clang][Index] Use HeuristicResolver in IndexTypeSourceInfo as well (PR #128106)

2025-02-20 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/128106 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][Sema] Fix Struct Size Calculation containing 16/32 bit scalars (PR #128086)

2025-02-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Ashley Coleman (V-FEXrt) Changes Fixes #119641 Update SemaHLSL to correctly calculate the alignment barrier for scalars that are not 4 bytes wide --- Full diff: https://github.com/llvm/llvm-project/pull/128086.diff 2 Files Affected: -

[clang] [llvm] [Coroutines] Mark parameter allocas with coro.outside.frame metadata (PR #127653)

2025-02-20 Thread Reid Kleckner via cfe-commits
https://github.com/rnk commented: In the issue (#127499) you pointed out that this issue applies to the MSVC ABI where all parameters are destroyed in the callee. Is it reasonable to construct the analogous test case in that environment? I tried to do this locally, but can't for unrelated buil

  1   2   3   4   5   >