[llvm-branch-commits] [clang] release/20.x: [Clang][AST] Fix HandleLValueBase to deal with references (#140105) (PR #140246)

2025-05-16 Thread Eli Friedman via llvm-branch-commits
efriedma-quic wrote: How do we do release notes for things that are fixed on a release branch after the release? Do we put a release note for both 20 and 21? https://github.com/llvm/llvm-project/pull/140246 ___ llvm-branch-commits mailing list llvm-b

[llvm-branch-commits] [IRTranslator] Handle ptrtoaddr (PR #139601)

2025-05-16 Thread Alexander Richardson via llvm-branch-commits
@@ -1583,6 +1583,26 @@ bool IRTranslator::translateCast(unsigned Opcode, const User &U, return true; } +bool IRTranslator::translatePtrToAddr(const User &U, + MachineIRBuilder &MIRBuilder) { + if (containsBF16Type(U)) +return false;

[llvm-branch-commits] [WIP] Introduce a G_PTRTOADDR GIsel node (PR #140300)

2025-05-16 Thread via llvm-branch-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 HEAD~1 HEAD --extensions cpp,h -- llvm/include/llvm/CodeGen/GlobalISel/GenericMachine

[llvm-branch-commits] [GISelValueTracking] Use representation size for G_PTRTOINT src width (PR #139608)

2025-05-16 Thread Alexander Richardson via llvm-branch-commits
arichardson wrote: The current behaviour is definitely buggy since we lower G_PTRTOINT as a COPY node, but assume that it zeroes the upper bits for ptr addrspace(8). I think this patch is sufficient to prevent that issue. https://github.com/llvm/llvm-project/pull/139608 ___

[llvm-branch-commits] [clang] release/20.x: [Clang][AST] Fix HandleLValueBase to deal with references (#140105) (PR #140246)

2025-05-16 Thread A. Jiang via llvm-branch-commits
https://github.com/frederick-vs-ja milestoned https://github.com/llvm/llvm-project/pull/140246 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] AMDGPU: Start considering new atomicrmw metadata on integer operations (PR #122138)

2025-05-16 Thread Yaxun Liu via llvm-branch-commits
https://github.com/yxsamliu approved this pull request. https://github.com/llvm/llvm-project/pull/122138 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [flang] [flang] translate derived type array init to attribute if possible (PR #140268)

2025-05-16 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-flang-codegen Author: None (jeanPerier) Changes This patch relies on #140235 and #139724 to speed-up compilations of files with derived type array global with initial value. Currently, such derived type global init was lowered to an llvm.mlir.insertval

[llvm-branch-commits] [flang] [flang] translate derived type array init to attribute if possible (PR #140268)

2025-05-16 Thread via llvm-branch-commits
https://github.com/jeanPerier created https://github.com/llvm/llvm-project/pull/140268 This patch relies on #140235 and #139724 to speed-up compilations of files with derived type array global with initial value. Currently, such derived type global init was lowered to an llvm.mlir.insertvalue

[llvm-branch-commits] [NFC] Run formatter on three files (PR #140269)

2025-05-16 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qinkun Bao (qinkunbao) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140269.diff 3 Files Affected: - (modified) clang/lib/Basic/Diagnostic.cpp (+78-70) - (modified) llvm/include/llvm/Support/SpecialCaseList.h (+1-1)

[llvm-branch-commits] [NFC] Run formatter on three files (PR #140269)

2025-05-16 Thread Qinkun Bao via llvm-branch-commits
https://github.com/qinkunbao created https://github.com/llvm/llvm-project/pull/140269 None Rate limit ยท GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Aria

[llvm-branch-commits] [NFC] Run formatter on three files (PR #140269)

2025-05-16 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-support Author: Qinkun Bao (qinkunbao) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/140269.diff 3 Files Affected: - (modified) clang/lib/Basic/Diagnostic.cpp (+78-70) - (modified) llvm/include/llvm/Support/SpecialCaseList.h

[llvm-branch-commits] [NFC] Run formatter on three files (PR #140269)

2025-05-16 Thread Qinkun Bao via llvm-branch-commits
https://github.com/qinkunbao closed https://github.com/llvm/llvm-project/pull/140269 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Add parsing of floats for StaticSampler (PR #140181)

2025-05-16 Thread Finn Plummer via llvm-branch-commits
@@ -663,6 +669,23 @@ RootSignatureParser::parseStaticSamplerParams() { return std::nullopt; Params.Reg = Reg; } + +// `mipLODBias` `=` NUMBER +if (tryConsumeExpectedToken(TokenKind::kw_mipLODBias)) { + if (Params.MipLODBias.has_value()) { +

[llvm-branch-commits] [flang] [flang] translate derived type array init to attribute if possible (PR #140268)

2025-05-16 Thread Asher Mancinelli via llvm-branch-commits
@@ -0,0 +1,204 @@ +//===-- LLVMInsertChainFolder.cpp -===// +// +// 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

[llvm-branch-commits] [flang] [flang] translate derived type array init to attribute if possible (PR #140268)

2025-05-16 Thread Asher Mancinelli via llvm-branch-commits
https://github.com/ashermancinelli edited https://github.com/llvm/llvm-project/pull/140268 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [flang] [flang] translate derived type array init to attribute if possible (PR #140268)

2025-05-16 Thread Asher Mancinelli via llvm-branch-commits
@@ -0,0 +1,204 @@ +//===-- LLVMInsertChainFolder.cpp -===// +// +// 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

[llvm-branch-commits] [flang] [flang] translate derived type array init to attribute if possible (PR #140268)

2025-05-16 Thread Asher Mancinelli via llvm-branch-commits
https://github.com/ashermancinelli approved this pull request. Thanks, this is a really interesting fix! My review comments are just nits/questions. https://github.com/llvm/llvm-project/pull/140268 ___ llvm-branch-commits mailing list llvm-branch-comm

[llvm-branch-commits] [flang] [flang] translate derived type array init to attribute if possible (PR #140268)

2025-05-16 Thread Asher Mancinelli via llvm-branch-commits
@@ -0,0 +1,204 @@ +//===-- LLVMInsertChainFolder.cpp -===// +// +// 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

[llvm-branch-commits] [llvm] [llvm][EmbedBitcodePass] Prevent modifying the module with ThinLTO (PR #139999)

2025-05-16 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: I'm testing the release branch now. I believe that the issue w/ cloning was solved before we cut the release, and the patch above just added regression tests, so I expect it to work. I'm all ears if you can think of a better way to handle this on main. The main problem I saw as

[llvm-branch-commits] CodeGen: Fix implementation of __builtin_trivially_relocate. (PR #140312)

2025-05-16 Thread Oliver Hunt via llvm-branch-commits
https://github.com/ojhunt requested changes to this pull request. https://github.com/llvm/llvm-project/pull/140312 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commi

[llvm-branch-commits] CodeGen: Fix implementation of __builtin_trivially_relocate. (PR #140312)

2025-05-16 Thread Oliver Hunt via llvm-branch-commits
@@ -8,7 +8,7 @@ struct S trivially_relocatable_if_eligible { }; // CHECK: @_Z4testP1SS0_ -// CHECK: call void @llvm.memmove.p0.p0.i64 +// CHECK: call void @llvm.memmove.p0.p0.i64({{.*}}, i64 8 ojhunt wrote: given this was a size issue, I think it's important

[llvm-branch-commits] [mlir] [mlir][SparseTensor] Fix type conversion rule (PR #140350)

2025-05-16 Thread Matthias Springer via llvm-branch-commits
https://github.com/matthias-springer created https://github.com/llvm/llvm-project/pull/140350 A type conversion rule cannot make any assumptions about the number of pre-existing types in the `results` vector. This commit fixes a failed assertion in a SparseTensor type conversion rule. This is

[llvm-branch-commits] [mlir] [mlir][SparseTensor] Fix type conversion rule (PR #140350)

2025-05-16 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mlir Author: Matthias Springer (matthias-springer) Changes A type conversion rule cannot make any assumptions about the number of pre-existing types in the `results` vector. This commit fixes a failed assertion in a SparseTensor type conversion rule.

[llvm-branch-commits] [mlir] [mlir][OpenMP] Add translation of private_barrier attr to LLVMIR (PR #140090)

2025-05-16 Thread via llvm-branch-commits
https://github.com/NimishMishra approved this pull request. LGTM. Thanks https://github.com/llvm/llvm-project/pull/140090 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branc

[llvm-branch-commits] [compiler-rt] release/20.x: [sanitizer_common] Remove interceptors for deprecated struct termio (#137403) (PR #137707)

2025-05-16 Thread H. Peter Anvin via llvm-branch-commits
hpax wrote: Yes, I think so. After all, this is about the kernel interfaces (which remain being termio, termios and termios2, with termios being a *different* interface than glibc termios) and by using rather than you are getting exactly the kernel (ioctl) interfaces. https://github.com/llv

[llvm-branch-commits] [compiler-rt] release/20.x: [sanitizer_common] Remove interceptors for deprecated struct termio (#137403) (PR #137707)

2025-05-16 Thread H. Peter Anvin via llvm-branch-commits
hpax wrote: And once you are including picking up all three interfaces is trivial. https://github.com/llvm/llvm-project/pull/137707 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Update serializer for improved template handling (PR #138065)

2025-05-16 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/138065 >From 26fd7a5c98b075a6b0eb0a1c5bcfce4a3d557d8a Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 29 Apr 2025 18:31:54 -0700 Subject: [PATCH] [clang-doc] Update serializer for improved template handling This

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Track if a type is a template or builtin (PR #138067)

2025-05-16 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/138067 >From 79d6630a5cb65acc9b590b68bd2cc7ef9ab81e7c Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Wed, 30 Apr 2025 14:20:40 -0700 Subject: [PATCH] [clang-doc] Track if a type is a template or builtin Originally pa

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Implement setupTemplateValue for HTMLMustacheGenerator (PR #138064)

2025-05-16 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/138064 >From d3bedfc1f9b2b160e0aebaa0de60d08df39dcd3b Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Wed, 30 Apr 2025 08:13:46 -0700 Subject: [PATCH] [clang-doc] Implement setupTemplateValue for HTMLMustacheGenerator

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Track if a type is a template or builtin (PR #138067)

2025-05-16 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/138067 >From 79d6630a5cb65acc9b590b68bd2cc7ef9ab81e7c Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Wed, 30 Apr 2025 14:20:40 -0700 Subject: [PATCH] [clang-doc] Track if a type is a template or builtin Originally pa

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Implement setupTemplateValue for HTMLMustacheGenerator (PR #138064)

2025-05-16 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/138064 >From d3bedfc1f9b2b160e0aebaa0de60d08df39dcd3b Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Wed, 30 Apr 2025 08:13:46 -0700 Subject: [PATCH] [clang-doc] Implement setupTemplateValue for HTMLMustacheGenerator

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Update serializer for improved template handling (PR #138065)

2025-05-16 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/138065 >From 26fd7a5c98b075a6b0eb0a1c5bcfce4a3d557d8a Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 29 Apr 2025 18:31:54 -0700 Subject: [PATCH] [clang-doc] Update serializer for improved template handling This

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Extract Info into JSON values (PR #138063)

2025-05-16 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/138063 >From 8e0b4fca40e01a78fc2bcca6eb2099aa946d9ff5 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Wed, 30 Apr 2025 08:11:39 -0700 Subject: [PATCH] [clang-doc] Extract Info into JSON values Split from #133161. This

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Update clang-doc tool to enable mustache templates (PR #138066)

2025-05-16 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/138066 >From ec5d9201447a267e8a5506d7e9c1687b23e2 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 29 Apr 2025 18:08:03 -0700 Subject: [PATCH] [clang-doc] Update clang-doc tool to enable mustache templates Th

[llvm-branch-commits] [clang-tools-extra] [clang-doc] Extract Info into JSON values (PR #138063)

2025-05-16 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/138063 >From 8e0b4fca40e01a78fc2bcca6eb2099aa946d9ff5 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Wed, 30 Apr 2025 08:11:39 -0700 Subject: [PATCH] [clang-doc] Extract Info into JSON values Split from #133161. This

[llvm-branch-commits] [llvm] [AMDGPU] Do not promote uniform i16 operations to i32 in CGP (PR #140208)

2025-05-16 Thread Pierre van Houtryve via llvm-branch-commits
Pierre-vh wrote: ### Merge activity * **May 16, 4:09 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/140208). https://github.com/llvm/llvm-project/pull/140208 __

[llvm-branch-commits] [llvm] [DAGCombiner] Remove hasOneUse check from sext+sext_inreg to sext_inreg combine (PR #140207)

2025-05-16 Thread Pierre van Houtryve via llvm-branch-commits
Pierre-vh wrote: ### Merge activity * **May 16, 4:09 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/140207). https://github.com/llvm/llvm-project/pull/140207 __

<    1   2