[llvm-branch-commits] [lld, wasm] Replace config-> with ctx.arg. (PR #119835)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lld Author: Fangrui Song (MaskRay) Changes --- Patch is 87.53 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/119835.diff 17 Files Affected: - (modified) lld/wasm/Driver.cpp (+151-152) - (modified) lld/w

[llvm-branch-commits] [lld, wasm] Replace config-> with ctx.arg. (PR #119835)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lld-wasm Author: Fangrui Song (MaskRay) Changes --- Patch is 87.53 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/119835.diff 17 Files Affected: - (modified) lld/wasm/Driver.cpp (+151-152) - (modified)

[llvm-branch-commits] [lld, wasm] Replace config-> with ctx.arg. (PR #119835)

2024-12-12 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay created https://github.com/llvm/llvm-project/pull/119835 None ___ 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] AMDGPU: Fix libcall recognition of image array types (PR #119832)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Matt Arsenault (arsenm) Changes Add tests with get_image_width as a sample for all of the non-extension image types. The transform doesn't do anything, but this runs through all the mangled libfunc parsing and shows it does not cra

[llvm-branch-commits] [clang] [llvm] AMDGPU: Fix libcall recognition of image array types (PR #119832)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/119832?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [clang] [llvm] AMDGPU: Fix libcall recognition of image array types (PR #119832)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/119832 ___ 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] AMDGPU: Fix libcall recognition of image array types (PR #119832)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/119832 Add tests with get_image_width as a sample for all of the non-extension image types. The transform doesn't do anything, but this runs through all the mangled libfunc parsing and shows it does not crash. It would p

[llvm-branch-commits] [clang-doc] Use QualName in Markdown output (PR #119815)

2024-12-12 Thread Petr Hosek via llvm-branch-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/119815 ___ 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-doc] Precommit test case for functions with templated parameters and return (PR #119814)

2024-12-12 Thread Petr Hosek via llvm-branch-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/119814 ___ 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-doc] Add tests for Markdown output with C++ templates (PR #119813)

2024-12-12 Thread Petr Hosek via llvm-branch-commits
@@ -75,3 +89,8 @@ void function(bool x) {} // YAML-NEXT: - Contents:'0' // YAML-NEXT: ... +// MD: ### function +// MD: *void function(_Bool x)* +// MD: *Defined at {{.*}}templates.cpp#[[# @LINE - 27]]* + + petrhosek wrote: Nit: These extra e

[llvm-branch-commits] [clang-doc] Add tests for Markdown output with C++ templates (PR #119813)

2024-12-12 Thread Petr Hosek via llvm-branch-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/119813 ___ 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-doc][NFC] Make test resilient to line changes (PR #119811)

2024-12-12 Thread Petr Hosek via llvm-branch-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/119811 ___ 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] [CI][Github] Add linux premerge workflow (PR #119635)

2024-12-12 Thread Aiden Grossman via llvm-branch-commits
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/119635 >From 19f4098c0934f242ed5b332533dfe03c44e82de8 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Wed, 11 Dec 2024 23:31:07 + Subject: [PATCH 01/29] [CI][Github] Add linux premerge workflow This pat

[llvm-branch-commits] [llvm] [CI][Github] Add linux premerge workflow (PR #119635)

2024-12-12 Thread Aiden Grossman via llvm-branch-commits
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/119635 >From 19f4098c0934f242ed5b332533dfe03c44e82de8 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Wed, 11 Dec 2024 23:31:07 + Subject: [PATCH 01/29] [CI][Github] Add linux premerge workflow This pat

[llvm-branch-commits] [clang-doc] Use QualName in Markdown output (PR #119815)

2024-12-12 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 2fd7f05be97ccdc2bf8c1786e84f7bd531cce785 aeefb3a570b080e9632e81451073b22f8e61fba6 --e

[llvm-branch-commits] [clang-doc] Use QualName in Markdown output (PR #119815)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Paul Kirth (ilovepi) Changes QualName will provide the more useful typename when the type is templated. Fixes #67549 --- Full diff: https://github.com/llvm/llvm-project/pull/119815.diff 2 Files Affected: - (modified) clang

[llvm-branch-commits] [clang-doc] Precommit test case for functions with templated parameters and return (PR #119814)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Paul Kirth (ilovepi) Changes To address #67549 we need a test case that will show up in the markdown output for functions. --- Full diff: https://github.com/llvm/llvm-project/pull/119814.diff 1 Files Affected: - (modified)

[llvm-branch-commits] [clang-doc] Add tests for Markdown output with C++ templates (PR #119813)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Paul Kirth (ilovepi) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/119813.diff 1 Files Affected: - (modified) clang-tools-extra/test/clang-doc/templates.cpp (+19) ``diff diff --git a/clang-tool

[llvm-branch-commits] [clang-doc][NFC] Avoid unnecessary operations in the template test (PR #119812)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Paul Kirth (ilovepi) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/119812.diff 1 Files Affected: - (modified) clang-tools-extra/test/clang-doc/templates.cpp (+1-4) ``diff diff --git a/clang-too

[llvm-branch-commits] [clang-doc][NFC] Make test resilient to line changes (PR #119811)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Paul Kirth (ilovepi) Changes This just reorganizes the test code, so its easy to use @LINE directives in the test, and avoid needing to update all the line numbers when making unrelated changes. --- Full diff: https://github.c

[llvm-branch-commits] [clang-doc] Use QualName in Markdown output (PR #119815)

2024-12-12 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/119815 QualName will provide the more useful typename when the type is templated. Fixes #67549 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org http

[llvm-branch-commits] [clang-doc] Precommit test case for functions with templated parameters and return (PR #119814)

2024-12-12 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/119814 To address #67549 we need a test case that will show up in the markdown output for functions. ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org

[llvm-branch-commits] [clang-doc] Add tests for Markdown output with C++ templates (PR #119813)

2024-12-12 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/119813 None ___ 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-doc][NFC] Avoid unnecessary operations in the template test (PR #119812)

2024-12-12 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/119812 None ___ 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-doc][NFC] Make test resilient to line changes (PR #119811)

2024-12-12 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/119811 This just reorganizes the test code, so its easy to use @LINE directives in the test, and avoid needing to update all the line numbers when making unrelated changes. ___

[llvm-branch-commits] [llvm] 1f125e3 - Revert "[SLP] Make getSameOpcode support different instructions if they have …"

2024-12-12 Thread via llvm-branch-commits
Author: Han-Kuan Chen Date: 2024-12-13T12:20:43+08:00 New Revision: 1f125e3075e254918a2742992f458806523c01a3 URL: https://github.com/llvm/llvm-project/commit/1f125e3075e254918a2742992f458806523c01a3 DIFF: https://github.com/llvm/llvm-project/commit/1f125e3075e254918a2742992f458806523c01a3.diff

[llvm-branch-commits] [llvm] RegAlloc: Fix verifier error after failed allocation (PR #119690)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/119690 >From 060a3a68654f59548c0ae5e915c559384a774947 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 25 Mar 2022 20:27:39 -0400 Subject: [PATCH] RegAlloc: Fix verifier error after failed allocation In some ca

[llvm-branch-commits] [llvm] AMDGPU: Delete spills of undef values (PR #119684)

2024-12-12 Thread Christudasan Devadasan via llvm-branch-commits
https://github.com/cdevadas approved this pull request. https://github.com/llvm/llvm-project/pull/119684 ___ 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] RegAlloc: Fix verifier error after failed allocation (PR #119690)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/119690 >From 4ef1f6eb46bc892a01e91dae9b6effd94827a32b Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 25 Mar 2022 20:27:39 -0400 Subject: [PATCH] RegAlloc: Fix verifier error after failed allocation In some ca

[llvm-branch-commits] [llvm] AMDGPU: Delete spills of undef values (PR #119684)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/119684 >From c56e320b410a50791b006dd75c48ff74c89a735d Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 28 Mar 2022 11:24:48 -0400 Subject: [PATCH 1/2] AMDGPU: Delete spills of undef values It would be a bit mor

[llvm-branch-commits] [llvm] [Statepoint] Treat undef operands less specially (PR #119682)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/119682 >From 9af0962247e83d3d270aedf35084f73f17cbc77a Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 28 Mar 2022 14:11:28 -0400 Subject: [PATCH] [Statepoint] Treat undef operands less specially This reverts c

[llvm-branch-commits] [llvm] RegAlloc: Fix failure on undef use when all registers are reserved (PR #119647)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/119647 >From 21a94e80ec529fac5a23febcdf738f01c56d0100 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 12 Dec 2024 10:07:10 +0900 Subject: [PATCH 1/2] RegAlloc: Fix failure on undef use when all registers are r

[llvm-branch-commits] [llvm] AMDGPU: Reduce AddedComplexity on canonicalize pattern (PR #119796)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Matt Arsenault (arsenm) Changes Pick the minimum complexity required for tests to pass instead of a giant debug value of 1000. --- Full diff: https://github.com/llvm/llvm-project/pull/119796.diff 1 Files Affected: - (modified)

[llvm-branch-commits] [llvm] AMDGPU: Reduce AddedComplexity on canonicalize pattern (PR #119796)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/119796 ___ 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: Reduce AddedComplexity on canonicalize pattern (PR #119796)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/119796 Pick the minimum complexity required for tests to pass instead of a giant debug value of 1000. >From afdc198444b70ea53322321d1e192db0cdee8110 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 13 Dec 2024

[llvm-branch-commits] [llvm] AMDGPU: Reduce AddedComplexity on canonicalize pattern (PR #119796)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/119796?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] TargetParser: AArch64: Add part numbers for Apple CPUs. (PR #119777)

2024-12-12 Thread via llvm-branch-commits
https://github.com/pcc updated https://github.com/llvm/llvm-project/pull/119777 ___ 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] TargetParser: AArch64: Add part numbers for Apple CPUs. (PR #119777)

2024-12-12 Thread via llvm-branch-commits
https://github.com/pcc updated https://github.com/llvm/llvm-project/pull/119777 ___ 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] TargetParser: AArch64: Add part numbers for Apple CPUs. (PR #119777)

2024-12-12 Thread Jon Roelofs via llvm-branch-commits
https://github.com/jroelofs approved this pull request. https://github.com/llvm/llvm-project/pull/119777 ___ 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] TargetParser: AArch64: Add part numbers for Apple CPUs. (PR #119777)

2024-12-12 Thread Jon Roelofs via llvm-branch-commits
@@ -347,6 +347,29 @@ StringRef sys::detail::getHostCPUNameForARM(StringRef ProcCpuinfoContent) { } } + if (Implementer == "0x61") { // Apple +return StringSwitch(Part) +.Case("0x020", "apple-m1") +.Case("0x021", "apple-m1") +.Case("0x022", "

[llvm-branch-commits] [llvm] RegAlloc: Do not fatal error if there are no registers in the alloc order (PR #119640)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
@@ -192,3 +177,50 @@ void RegAllocBase::enqueue(const LiveInterval *LI) { << " in skipped register class\n"); } } + +MCPhysReg RegAllocBase::getErrorAssignment(const TargetRegisterClass &RC, + const MachineInstr

[llvm-branch-commits] [llvm] AMDGPU: Delete spills of undef values (PR #119684)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: > Currently, regalloc won't do subreg spilling. But it will be fixed in the > foreseeable future. What will happen if you write a test that spills the > `undef` subreg of a tuple? Do you want to cover it anyway? There's no change in interpretation of an undef use with subregister

[llvm-branch-commits] [llvm] RegAlloc: Do not fatal error if there are no registers in the alloc order (PR #119640)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/119640 ___ 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] [DirectX] Introduce the DXILResourceAccess pass (PR #116726)

2024-12-12 Thread Justin Bogner via llvm-branch-commits
@@ -10,10 +10,11 @@ ; CHECK-NEXT: DXIL Intrinsic Expansion ; CHECK-NEXT: DXIL Data Scalarization ; CHECK-NEXT: DXIL Array Flattener +; CHECK-NEXT: DXIL Resource analysis bogner wrote: This is no longer relevant after splitting the analysis passes http

[llvm-branch-commits] [clang] [compiler-rt] [TySan] A Type Sanitizer (Runtime Library) (PR #76261)

2024-12-12 Thread Florian Hahn via llvm-branch-commits
fhahn wrote: Test failures on linux should be fixed now, they were due to debug paths using full paths on Linux and in one case a C++ struct type wasnt' de-mangled on Linux https://github.com/llvm/llvm-project/pull/76261 ___ llvm-branch-commits mailin

[llvm-branch-commits] [clang] [compiler-rt] [TySan] A Type Sanitizer (Runtime Library) (PR #76261)

2024-12-12 Thread Florian Hahn via llvm-branch-commits
https://github.com/fhahn updated https://github.com/llvm/llvm-project/pull/76261 >From 524eb555b0473bd93401297c5deba77f4dbd83fe Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Fri, 22 Nov 2024 15:01:41 + Subject: [PATCH 1/6] [TySan] A Type Sanitizer (Runtime Library) --- clang/runtime/CM

[llvm-branch-commits] [llvm] [DirectX] Introduce the DXILResourceAccess pass (PR #116726)

2024-12-12 Thread Justin Bogner via llvm-branch-commits
https://github.com/bogner edited https://github.com/llvm/llvm-project/pull/116726 ___ 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] TargetParser: AArch64: Add part numbers for Apple CPUs. (PR #119777)

2024-12-12 Thread via llvm-branch-commits
https://github.com/pcc created https://github.com/llvm/llvm-project/pull/119777 Part numbers taken from: https://github.com/AsahiLinux/m1n1/blob/main/src/chickens.c ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists

[llvm-branch-commits] [llvm] [DirectX] Create symbols for resource handles (PR #119775)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-analysis Author: Justin Bogner (bogner) Changes We need to create symbols with "the original shape of resource and element type" to put in the resource metadata in order to generate valid DXIL. Note that DXC generally doesn't emit an actual symbol

[llvm-branch-commits] [llvm] [DirectX] Create symbols for resource handles (PR #119775)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-directx Author: Justin Bogner (bogner) Changes We need to create symbols with "the original shape of resource and element type" to put in the resource metadata in order to generate valid DXIL. Note that DXC generally doesn't emit an actual symb

[llvm-branch-commits] [llvm] [DirectX] Split resource info into type and binding info. NFC (PR #119773)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-directx Author: Justin Bogner (bogner) Changes This splits the DXILResourceAnalysis pass into TypeAnalysis and BindingAnalysis passes. The type analysis pass is made immutable and populated lazily so that it can be used earlier in the pipeline

[llvm-branch-commits] [llvm] [DirectX] Split resource info into type and binding info. NFC (PR #119773)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-analysis Author: Justin Bogner (bogner) Changes This splits the DXILResourceAnalysis pass into TypeAnalysis and BindingAnalysis passes. The type analysis pass is made immutable and populated lazily so that it can be used earlier in the pipeline wi

[llvm-branch-commits] [libc] 168b0ea - Revert "[libc] Breakup freelist_malloc into separate files (#98784)"

2024-12-12 Thread via llvm-branch-commits
Author: Petr Hosek Date: 2024-12-12T11:35:19-08:00 New Revision: 168b0ea705c8e1e46daf89ca587f535c3f02afb0 URL: https://github.com/llvm/llvm-project/commit/168b0ea705c8e1e46daf89ca587f535c3f02afb0 DIFF: https://github.com/llvm/llvm-project/commit/168b0ea705c8e1e46daf89ca587f535c3f02afb0.diff LO

[llvm-branch-commits] [llvm] RegAlloc: Fix failure on undef use when all registers are reserved (PR #119647)

2024-12-12 Thread Paul Kirth via llvm-branch-commits
@@ -982,16 +982,23 @@ void RegAllocFastImpl::allocVirtRegUndef(MachineOperand &MO) { if (!shouldAllocateRegister(VirtReg)) return; - LiveRegMap::const_iterator LRI = findLiveVirtReg(VirtReg); + LiveRegMap::iterator LRI = findLiveVirtReg(VirtReg); MCPhysReg PhysReg;

[llvm-branch-commits] [clang] [flang] [lld] [llvm] [Flang] LLVM_ENABLE_RUNTIMES=flang-rt (PR #110217)

2024-12-12 Thread via llvm-branch-commits
jeanPerier wrote: Thanks for the detailed explanation about the shared/static library builds! I am in line with your plan of going towards libcxx/libc/libunwind options (FLANG_RT_ENABLE_SHARED/FLANG_RT_ENABLE_STATIC.) I feel that in the short term (this patch) loosing the ability to build shar

[llvm-branch-commits] [lld] release/19.x: [lld][WebAssembly] Fix use of uninitialized stack data with --wasm64 (#107780) (PR #119723)

2024-12-12 Thread Derek Schuff via llvm-branch-commits
https://github.com/dschuff approved this pull request. https://github.com/llvm/llvm-project/pull/119723 ___ 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] [lld] release/19.x: [lld][WebAssembly] Fix use of uninitialized stack data with --wasm64 (#107780) (PR #119723)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lld-wasm Author: None (llvmbot) Changes Backport 5c8fd1eece8fff69871cef57a2363dc0f734a7d1 Requested by: @nikic --- Full diff: https://github.com/llvm/llvm-project/pull/119723.diff 1 Files Affected: - (modified) lld/wasm/SyntheticSections.cpp (+1-2)

[llvm-branch-commits] [lld] release/19.x: [lld][WebAssembly] Fix use of uninitialized stack data with --wasm64 (#107780) (PR #119723)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-lld Author: None (llvmbot) Changes Backport 5c8fd1eece8fff69871cef57a2363dc0f734a7d1 Requested by: @nikic --- Full diff: https://github.com/llvm/llvm-project/pull/119723.diff 1 Files Affected: - (modified) lld/wasm/SyntheticSections.cpp (+1-2) ``

[llvm-branch-commits] [lld] release/19.x: [lld][WebAssembly] Fix use of uninitialized stack data with --wasm64 (#107780) (PR #119723)

2024-12-12 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/119723 ___ 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] [lld] release/19.x: [lld][WebAssembly] Fix use of uninitialized stack data with --wasm64 (#107780) (PR #119723)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @dschuff What do you think about merging this PR to the release branch? https://github.com/llvm/llvm-project/pull/119723 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[llvm-branch-commits] [lld] release/19.x: [lld][WebAssembly] Fix use of uninitialized stack data with --wasm64 (#107780) (PR #119723)

2024-12-12 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/119723 Backport 5c8fd1eece8fff69871cef57a2363dc0f734a7d1 Requested by: @nikic >From fc310d328d3954207a775d0f0b17f9796912777a Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Mon, 9 Sep 2024 09:28:08 -0700 Subject: [PAT

[llvm-branch-commits] [clang] [compiler-rt] [TySan] A Type Sanitizer (Runtime Library) (PR #76261)

2024-12-12 Thread Florian Hahn via llvm-branch-commits
https://github.com/fhahn updated https://github.com/llvm/llvm-project/pull/76261 >From 524eb555b0473bd93401297c5deba77f4dbd83fe Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Fri, 22 Nov 2024 15:01:41 + Subject: [PATCH 1/5] [TySan] A Type Sanitizer (Runtime Library) --- clang/runtime/CM

[llvm-branch-commits] [clang] [compiler-rt] [TySan] A Type Sanitizer (Runtime Library) (PR #76261)

2024-12-12 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 13c4092708f82809aeec5320c093387aa4e17993 758c99abb36139fe759b51bd70f9ffeac76f21fa --e

[llvm-branch-commits] [clang] [compiler-rt] [TySan] A Type Sanitizer (Runtime Library) (PR #76261)

2024-12-12 Thread Florian Hahn via llvm-branch-commits
https://github.com/fhahn updated https://github.com/llvm/llvm-project/pull/76261 >From 524eb555b0473bd93401297c5deba77f4dbd83fe Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Fri, 22 Nov 2024 15:01:41 + Subject: [PATCH 1/4] [TySan] A Type Sanitizer (Runtime Library) --- clang/runtime/CM

[llvm-branch-commits] [flang] [MLIR][OpenMP] Add Lowering support for OpenMP Declare Mapper directive (PR #117046)

2024-12-12 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: I looked at the clang code and it's not clear to me why they do it at runtime. Mappers can refer to other mappers (for sub-objects), but all mappers and all type layouts should be present in (or obtainable from) the AST[1]. In other words, clang should be able to emit all the

[llvm-branch-commits] [llvm] RegAlloc: Do not fatal error if there are no registers in the alloc order (PR #119640)

2024-12-12 Thread Quentin Colombet via llvm-branch-commits
@@ -192,3 +177,50 @@ void RegAllocBase::enqueue(const LiveInterval *LI) { << " in skipped register class\n"); } } + +MCPhysReg RegAllocBase::getErrorAssignment(const TargetRegisterClass &RC, + const MachineInstr

[llvm-branch-commits] [llvm] AMDGPU: Delete spills of undef values (PR #119684)

2024-12-12 Thread Christudasan Devadasan via llvm-branch-commits
cdevadas wrote: Currently, regalloc won't do subreg spilling. But it will be fixed in the foreseeable future. What will happen if you write a test that spills the `undef` subreg of a tuple? Do you want to cover it anyway? https://github.com/llvm/llvm-project/pull/119684 ___

[llvm-branch-commits] [flang] [MLIR][OpenMP] Add Lowering support for OpenMP Declare Mapper directive (PR #117046)

2024-12-12 Thread Krzysztof Parzyszek via llvm-branch-commits
kparzysz wrote: 1. If you want to create an MLIR op for the mapper, you can give it some name (you can mangle it if you want). You will need to store it in the MLIR somewhere/somehow. 2. If you want to record the use of a mapper in a clause, you can just use the name of the mapper in the same

[llvm-branch-commits] [llvm] RegAlloc: Fix verifier error after failed allocation (PR #119690)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/119690 >From 8d34266ce9d4b461da62d63791affce6489686d8 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 25 Mar 2022 20:27:39 -0400 Subject: [PATCH] RegAlloc: Fix verifier error after failed allocation In some ca

[llvm-branch-commits] [llvm] [Statepoint] Treat undef operands less specially (PR #119682)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/119682 >From 31bfcc47ad1e141c3c897514ab5992bb1a56eaa8 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 28 Mar 2022 14:11:28 -0400 Subject: [PATCH] [Statepoint] Treat undef operands less specially This reverts c

[llvm-branch-commits] [llvm] AMDGPU: Delete spills of undef values (PR #119684)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/119684 >From 3db8f1e5c89a19bf289d6745bca910f220c51dd4 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 28 Mar 2022 11:24:48 -0400 Subject: [PATCH 1/2] AMDGPU: Delete spills of undef values It would be a bit mor

[llvm-branch-commits] [llvm] RegAlloc: Fix verifier error after failed allocation (PR #119690)

2024-12-12 Thread via llvm-branch-commits
github-actions[bot] wrote: :warning: undef deprecator found issues in your code. :warning: You can test this locally with the following command: ``bash git diff -U0 --pickaxe-regex -S '([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9_-]|UndefValue::get)' 2bd0046adb0bdc1b7ae32ba653df59913fe72612

[llvm-branch-commits] [llvm] RegAlloc: Fix verifier error after failed allocation (PR #119690)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/119690 >From bca529ad0b6fabe5825c3ed305b389d489f7e2c9 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 25 Mar 2022 20:27:39 -0400 Subject: [PATCH] RegAlloc: Fix verifier error after failed allocation In some ca

[llvm-branch-commits] [llvm] RegAlloc: Fix verifier error after failed allocation (PR #119690)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-regalloc Author: Matt Arsenault (arsenm) Changes In some cases after reporting an allocation failure, this would fail the verifier. It picks the first allocatable register and assigns it, but didn't update the liveness appropriately. When VirtRegRew

[llvm-branch-commits] [llvm] RegAlloc: Fix verifier error after failed allocation (PR #119690)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/119690 ___ 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] RegAlloc: Fix verifier error after failed allocation (PR #119690)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/119690?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [llvm] RegAlloc: Fix verifier error after failed allocation (PR #119690)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/119690 In some cases after reporting an allocation failure, this would fail the verifier. It picks the first allocatable register and assigns it, but didn't update the liveness appropriately. When VirtRegRewriter relied

[llvm-branch-commits] [llvm] AMDGPU: Delete spills of undef values (PR #119684)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/119684 ___ 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: Delete spills of undef values (PR #119684)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/119684 >From 03cca4cf3b65cb6988db7a983f3c3349fa0b390a Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 28 Mar 2022 14:11:28 -0400 Subject: [PATCH 1/3] [Statepoint] Treat undef operands less specially This rever

[llvm-branch-commits] [clang] [compiler-rt] [TySan] A Type Sanitizer (Runtime Library) (PR #76261)

2024-12-12 Thread Florian Hahn via llvm-branch-commits
fhahn wrote: The Clang and LLVM parts are now ready to land, with just the compiler-rt bits pending approval. There are a few test failures on Linux which don't fail on macOS, will look at them today probably https://github.com/llvm/llvm-project/pull/76261

[llvm-branch-commits] [clang] [compiler-rt] [TySan] A Type Sanitizer (Runtime Library) (PR #76261)

2024-12-12 Thread Florian Hahn via llvm-branch-commits
@@ -0,0 +1,79 @@ +//===-- tysan.h -*- 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

[llvm-branch-commits] [llvm] AMDGPU: Delete spills of undef values (PR #119684)

2024-12-12 Thread via llvm-branch-commits
github-actions[bot] wrote: :warning: undef deprecator found issues in your code. :warning: You can test this locally with the following command: ``bash git diff -U0 --pickaxe-regex -S '([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9_-]|UndefValue::get)' 21a94e80ec529fac5a23febcdf738f01c56d0100

[llvm-branch-commits] [llvm] AMDGPU: Delete spills of undef values (PR #119684)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Matt Arsenault (arsenm) Changes AMDGPU: Delete spills of undef values It would be a bit more logical to preserve the undef and do the normal expansion, but this is less work. This avoids verifier errors in a future patch which sta

[llvm-branch-commits] [llvm] AMDGPU: Delete spills of undef values (PR #119684)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/119684?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [llvm] AMDGPU: Delete spills of undef values (PR #119684)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/119684 ___ 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: Delete spills of undef values (PR #119684)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/119684 AMDGPU: Delete spills of undef values It would be a bit more logical to preserve the undef and do the normal expansion, but this is less work. This avoids verifier errors in a future patch which starts deleting l

[llvm-branch-commits] [lldb][Process] Introduce LoongArch64 hw break/watchpoint support (PR #118770)

2024-12-12 Thread David Spickett via llvm-branch-commits
DavidSpickett wrote: Linux Arm and AArch64, Windows on Arm and x86 bots are fine with the refactoring PR before this. If you haven't had any complaints from the Apple bots (it's native code, so I'd hope not), then this can land. Thanks for putting in the work on the refactoring! https://githu

[llvm-branch-commits] [llvm] [Statepoint] Treat undef operands less specially (PR #119682)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Matt Arsenault (arsenm) Changes This reverts commit f7443905af1e06eaacda1e437fff8d54dc89c487. This is to avoid an assertion if an undef operand appears in a stackmap. This is important to avoid hitting verifier errors when register a

[llvm-branch-commits] [llvm] [Statepoint] Treat undef operands less specially (PR #119682)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/119682 ___ 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] [Statepoint] Treat undef operands less specially (PR #119682)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/119682?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [llvm] [Statepoint] Treat undef operands less specially (PR #119682)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/119682 This reverts commit f7443905af1e06eaacda1e437fff8d54dc89c487. This is to avoid an assertion if an undef operand appears in a stackmap. This is important to avoid hitting verifier errors when register allocation s

[llvm-branch-commits] [llvm] Extend CallSiteInfo with TypeId (PR #87574)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
@@ -0,0 +1,68 @@ +# Test MIR printer and parser for type id field in callSites. It is used +# for propogating call site type identifiers to emit in the call graph section. + +# RUN: llc --call-graph-section %s -run-pass=none -o - | FileCheck %s +# CHECK: name: main +# CHECK: callS

[llvm-branch-commits] [llvm] Extend CallSiteInfo with TypeId (PR #87574)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
@@ -0,0 +1,68 @@ +# Test MIR printer and parser for type id field in callSites. It is used +# for propogating call site type identifiers to emit in the call graph section. + +# RUN: llc --call-graph-section %s -run-pass=none -o - | FileCheck %s +# CHECK: name: main +# CHECK: callS

[llvm-branch-commits] [llvm] NFC: Move RegAlloc headers to include dir (PR #119672)

2024-12-12 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan closed https://github.com/llvm/llvm-project/pull/119672 ___ 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] NFC: Move RegAlloc headers to include dir (PR #119672)

2024-12-12 Thread Akshat Oke via llvm-branch-commits
@@ -142,7 +142,7 @@ class LLVM_LIBRARY_VISIBILITY InterferenceCache { // Point to an entry for each physreg. The entry pointed to may not be up to // date, and it may have been reused for a different physreg. - unsigned char* PhysRegEntries = nullptr; + unsigned char *Ph

[llvm-branch-commits] [llvm] NFC: Move RegAlloc headers to include dir (PR #119672)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm commented: Why? These are supposed to be private headers to the regalloc implementation https://github.com/llvm/llvm-project/pull/119672 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.ll

[llvm-branch-commits] [llvm] NFC: Move RegAlloc headers to include dir (PR #119672)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/119672 ___ 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] NFC: Move RegAlloc headers to include dir (PR #119672)

2024-12-12 Thread Matt Arsenault via llvm-branch-commits
@@ -142,7 +142,7 @@ class LLVM_LIBRARY_VISIBILITY InterferenceCache { // Point to an entry for each physreg. The entry pointed to may not be up to // date, and it may have been reused for a different physreg. - unsigned char* PhysRegEntries = nullptr; + unsigned char *Ph

[llvm-branch-commits] [llvm] NFC: Move RegAlloc headers to include dir (PR #119672)

2024-12-12 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-regalloc @llvm/pr-subscribers-mlgo Author: Akshat Oke (optimisan) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/119672.diff 13 Files Affected: - (renamed) llvm/include/llvm/CodeGen/InterferenceCache.h (+6-16) - (renamed) llv

[llvm-branch-commits] [llvm] NFC: Move RegAlloc headers to include dir (PR #119672)

2024-12-12 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan ready_for_review https://github.com/llvm/llvm-project/pull/119672 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

  1   2   >