[llvm-branch-commits] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-08-09 Thread Kevin Sala Penades via llvm-branch-commits
https://github.com/kevinsala edited https://github.com/llvm/llvm-project/pull/152831 ___ 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] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-08-09 Thread Kevin Sala Penades via llvm-branch-commits
@@ -4515,6 +4515,15 @@ void omp_free(void *ptr, omp_allocator_handle_t allocator) { } /* end of OpenMP 5.1 Memory Management routines */ +void *omp_get_dyn_groupprivate_ptr(size_t offset, int *is_fallback, + omp_access_t access_group) { + if

[llvm-branch-commits] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-08-09 Thread Kevin Sala Penades via llvm-branch-commits
https://github.com/kevinsala updated https://github.com/llvm/llvm-project/pull/152831 >From fa3c7425ae9e5ffea83841f2be61b0f494b99038 Mon Sep 17 00:00:00 2001 From: Kevin Sala Date: Fri, 8 Aug 2025 11:25:14 -0700 Subject: [PATCH 1/2] [OpenMP][Offload] Add offload runtime support for dyn_grouppr

[llvm-branch-commits] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-08-09 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 -- offload/test/offloading/dyn_groupprivate_strict.cpp

[llvm-branch-commits] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-08-09 Thread Kevin Sala Penades via llvm-branch-commits
https://github.com/kevinsala edited https://github.com/llvm/llvm-project/pull/152831 ___ 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] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-08-09 Thread Kevin Sala Penades via llvm-branch-commits
@@ -163,4 +163,8 @@ typedef enum omp_allocator_handle_t { ///} +enum omp_access_t { kevinsala wrote: Actually there another value in the standard. Added and documented. https://github.com/llvm/llvm-project/pull/152831 ___

[llvm-branch-commits] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-08-09 Thread Kevin Sala Penades via llvm-branch-commits
https://github.com/kevinsala updated https://github.com/llvm/llvm-project/pull/152831 >From fa3c7425ae9e5ffea83841f2be61b0f494b99038 Mon Sep 17 00:00:00 2001 From: Kevin Sala Date: Fri, 8 Aug 2025 11:25:14 -0700 Subject: [PATCH 1/2] [OpenMP][Offload] Add offload runtime support for dyn_grouppr

[llvm-branch-commits] [llvm] [AMDGPULowerBufferFatPointers] Handle ptrtoaddr by extending the offset (PR #139413)

2025-08-09 Thread Alexander Richardson via llvm-branch-commits
https://github.com/arichardson updated https://github.com/llvm/llvm-project/pull/139413 >From a2dec95d11a68c7911eef777ad78b07aa747bef5 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Sat, 10 May 2025 15:35:50 -0700 Subject: [PATCH 1/2] remove fixme Created using spr 1.3.6-beta.1 --- .../

[llvm-branch-commits] [llvm] [AMDGPULowerBufferFatPointers] Handle ptrtoaddr by extending the offset (PR #139413)

2025-08-09 Thread Alexander Richardson via llvm-branch-commits
https://github.com/arichardson updated https://github.com/llvm/llvm-project/pull/139413 >From a2dec95d11a68c7911eef777ad78b07aa747bef5 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Sat, 10 May 2025 15:35:50 -0700 Subject: [PATCH 1/2] remove fixme Created using spr 1.3.6-beta.1 --- .../

[llvm-branch-commits] [llvm] [ir] MD_prof is not UB-implying (PR #152420)

2025-08-09 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/152420 >From df2474e2319c466bebb18c48b0ba6c12a8429772 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Wed, 6 Aug 2025 17:43:35 -0700 Subject: [PATCH] [ir] MD_prof is not UB-implying --- llvm/lib/IR/Metadata.cpp

[llvm-branch-commits] [llvm] [ir] MD_prof is not UB-implying (PR #152420)

2025-08-09 Thread Mircea Trofin via llvm-branch-commits
https://github.com/mtrofin updated https://github.com/llvm/llvm-project/pull/152420 >From df2474e2319c466bebb18c48b0ba6c12a8429772 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Wed, 6 Aug 2025 17:43:35 -0700 Subject: [PATCH] [ir] MD_prof is not UB-implying --- llvm/lib/IR/Metadata.cpp

[llvm-branch-commits] ELF: Introduce R_AARCH64_PATCHINST relocation type. (PR #133534)

2025-08-09 Thread Fangrui Song via llvm-branch-commits
MaskRay wrote: Need an aarch64 maintainer's signoff on the llvm part. https://github.com/llvm/llvm-project/pull/133534 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch

[llvm-branch-commits] ELF: Introduce R_AARCH64_PATCHINST relocation type. (PR #133534)

2025-08-09 Thread Fangrui Song via llvm-branch-commits
MaskRay wrote: > The R_AARCH64_PATCHINST relocation type is to support deactivation symbols. > For more information, see the RFC: > [discourse.llvm.org/t/rfc-deactivation-symbols/85556](https://discourse.llvm.org/t/rfc-deactivation-symbols/85556) > > An AArch64 psABI extension proposal has bee

[llvm-branch-commits] ELF: Introduce R_AARCH64_PATCHINST relocation type. (PR #133534)

2025-08-09 Thread Fangrui Song via llvm-branch-commits
@@ -61,6 +61,7 @@ ELF_RELOC(R_AARCH64_LD64_GOT_LO12_NC,0x138) ELF_RELOC(R_AARCH64_LD64_GOTPAGE_LO15, 0x139) ELF_RELOC(R_AARCH64_PLT32, 0x13a) ELF_RELOC(R_AARCH64_GOTPCREL32, 0x13b) +ELF_RELOC(R_AARCH64

[llvm-branch-commits] ELF: Introduce R_AARCH64_PATCHINST relocation type. (PR #133534)

2025-08-09 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/133534 ___ 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] ELF: Introduce R_AARCH64_PATCHINST relocation type. (PR #133534)

2025-08-09 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay approved this pull request. The assembler part (BinaryFormat / Target/AArch64 changes) look good. The linker change should be made separate. But thank for combining this in a single PR, making the full picture clear:) https://github.com/llvm/llvm-project/pull/133534

[llvm-branch-commits] ELF: Introduce R_AARCH64_PATCHINST relocation type. (PR #133534)

2025-08-09 Thread Fangrui Song via llvm-branch-commits
@@ -0,0 +1,87 @@ +# RUN: rm -rf %t && split-file %s %t MaskRay wrote: consider adding `&& cd %t` so that we can remove `%t/` below, which clutter up the commands... https://github.com/llvm/llvm-project/pull/133534 ___

[llvm-branch-commits] ELF: Introduce R_AARCH64_PATCHINST relocation type. (PR #133534)

2025-08-09 Thread Fangrui Song via llvm-branch-commits
@@ -0,0 +1,7 @@ +// RUN: llvm-mc -triple aarch64-elf -filetype=obj %s -o - | llvm-objdump -r - | FileCheck %s + +// Test that PATCHINST appears after JUMP26. +// CHECK: R_AARCH64_JUMP26 +// CHECK-NEXT: R_AARCH64_PATCHINST +.reloc ., R_AARCH64_PATCHINST, ds +b f1

[llvm-branch-commits] [llvm] [LoopPeel] Fix branch weights' effect on block frequencies (PR #128785)

2025-08-09 Thread Joel E. Denny via llvm-branch-commits
https://github.com/jdenny-ornl updated https://github.com/llvm/llvm-project/pull/128785 >From f4135207e955f6c2e358cad54a7ef6f2f18087f8 Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Wed, 19 Mar 2025 16:19:40 -0400 Subject: [PATCH 1/9] [LoopPeel] Fix branch weights' effect on block freque

[llvm-branch-commits] [libc] [llvm] [libc][math] Refactor cosf16 implementation to header-only in src/__support/math folder. (PR #152871)

2025-08-09 Thread Muhammad Bassiouni via llvm-branch-commits
https://github.com/bassiounix edited https://github.com/llvm/llvm-project/pull/152871 ___ 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] [libc] [llvm] [libc][math] Refactor cosf16 implementation to header-only in src/__support/math folder. (PR #152871)

2025-08-09 Thread Muhammad Bassiouni via llvm-branch-commits
https://github.com/bassiounix ready_for_review https://github.com/llvm/llvm-project/pull/152871 ___ 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] [libc] [llvm] [libc][math] Refactor cosf16 implementation to header-only in src/__support/math folder. (PR #152871)

2025-08-09 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-libc Author: Muhammad Bassiouni (bassiounix) Changes --- Patch is 22.19 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/152871.diff 15 Files Affected: - (modified) libc/shared/math.h (+1) - (added) libc/

[llvm-branch-commits] [libc] [llvm] [libc][math] Refactor cosf16 implementation to header-only in src/__support/math folder. (PR #152871)

2025-08-09 Thread Muhammad Bassiouni via llvm-branch-commits
https://github.com/bassiounix updated https://github.com/llvm/llvm-project/pull/152871 >From 99fcd032df293e5f3404e7ce275ce43891f7c9f3 Mon Sep 17 00:00:00 2001 From: bassiounix Date: Sat, 9 Aug 2025 20:15:12 +0300 Subject: [PATCH] [libc][math] Refactor cosf16 implementation to header-only in sr

[llvm-branch-commits] [libc] [llvm] [libc][math] Refactor cosf16 implementation to header-only in src/__support/math folder. (PR #152871)

2025-08-09 Thread Muhammad Bassiouni via llvm-branch-commits
bassiounix 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/152871?utm_source=stack-comment-downstack-mergeability-warnin

[llvm-branch-commits] [libc] [llvm] [libc][math] Refactor cosf16 implementation to header-only in src/__support/math folder. (PR #152871)

2025-08-09 Thread Muhammad Bassiouni via llvm-branch-commits
https://github.com/bassiounix created https://github.com/llvm/llvm-project/pull/152871 None >From 7031956b4e52cac9e294673d5a96ea4e289325ed Mon Sep 17 00:00:00 2001 From: bassiounix Date: Sat, 9 Aug 2025 20:15:12 +0300 Subject: [PATCH] [libc][math] Refactor cosf16 implementation to header-only

[llvm-branch-commits] [llvm] release/21.x: [TailDup] Delay aggressive computed-goto taildup to after RegAlloc. (#150911) (PR #151680)

2025-08-09 Thread via llvm-branch-commits
mikulas-patocka wrote: > > > > Seems like we are still waiting for confirmation on this one? > > > > > > > > > My understanding from @mikulas-patocka in #106846 is that there was no > > > regression on current main after merging over a week ago, so I think we > > > should be good to go. > > >

[llvm-branch-commits] [libc] [llvm] [libc][math] Refactor cosf implementation to header-only in src/__support/math folder. (PR #152069)

2025-08-09 Thread Muhammad Bassiouni via llvm-branch-commits
https://github.com/bassiounix updated https://github.com/llvm/llvm-project/pull/152069 >From d6211d7695c4a25e823ff0e87693906af06a20fb Mon Sep 17 00:00:00 2001 From: bassiounix Date: Tue, 5 Aug 2025 06:30:16 +0300 Subject: [PATCH] [libc][math] Refactor cosf implementation to header-only in src/

[llvm-branch-commits] [libc] [llvm] [libc][math] Refactor cosf implementation to header-only in src/__support/math folder. (PR #152069)

2025-08-09 Thread Muhammad Bassiouni via llvm-branch-commits
https://github.com/bassiounix updated https://github.com/llvm/llvm-project/pull/152069 >From d6211d7695c4a25e823ff0e87693906af06a20fb Mon Sep 17 00:00:00 2001 From: bassiounix Date: Tue, 5 Aug 2025 06:30:16 +0300 Subject: [PATCH] [libc][math] Refactor cosf implementation to header-only in src/

[llvm-branch-commits] [llvm] release/21.x: [TailDup] Delay aggressive computed-goto taildup to after RegAlloc. (#150911) (PR #151680)

2025-08-09 Thread Florian Hahn via llvm-branch-commits
fhahn wrote: > > > Seems like we are still waiting for confirmation on this one? > > > > > > My understanding from @mikulas-patocka in #106846 is that there was no > > regression on current main after merging over a week ago, so I think we > > should be good to go. > > Not sure what the remai

[llvm-branch-commits] [llvm] release/21.x: [TailDup] Delay aggressive computed-goto taildup to after RegAlloc. (#150911) (PR #151680)

2025-08-09 Thread via llvm-branch-commits
mikulas-patocka wrote: > > Seems like we are still waiting for confirmation on this one? > > My understanding from @mikulas-patocka in #106846 is that there was no > regression on current main after merging over a week ago, so I think we > should be good to go. > > Not sure what the remaining

[llvm-branch-commits] [llvm] [LoongArch] Use xvperm.w for cross-lane access within a single vector (PR #151634)

2025-08-09 Thread via llvm-branch-commits
https://github.com/zhaoqi5 updated https://github.com/llvm/llvm-project/pull/151634 >From f759464ee797830c998d66d1076d9896c5a1 Mon Sep 17 00:00:00 2001 From: Qi Zhao Date: Fri, 1 Aug 2025 11:30:19 +0800 Subject: [PATCH 1/2] [LoongArch] Use xvperm.w for cross-lane access within a single vec

[llvm-branch-commits] [clang] [clang-tools-extra] [lldb] [PATCH 5/7] [clang] NNS improvement: getOriginalDecl changes (PR #149747)

2025-08-09 Thread Matheus Izvekov via llvm-branch-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/149747 ___ 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] [LoongArch] Pre-commit tests for shuffle visiting same lane. NFC (PR #151633)

2025-08-09 Thread via llvm-branch-commits
https://github.com/zhaoqi5 closed https://github.com/llvm/llvm-project/pull/151633 ___ 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] [LoongArch] Use xvperm.w for cross-lane access within a single vector (PR #151634)

2025-08-09 Thread via llvm-branch-commits
https://github.com/zhaoqi5 edited https://github.com/llvm/llvm-project/pull/151634 ___ 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] [LoongArch] Pre-commit tests for shuffle visiting same lane. NFC (PR #151633)

2025-08-09 Thread via llvm-branch-commits
https://github.com/zhaoqi5 updated https://github.com/llvm/llvm-project/pull/151633 >From 8873a1bfc37c643a0e66d7f245b36fbb1f64ad25 Mon Sep 17 00:00:00 2001 From: Qi Zhao Date: Fri, 1 Aug 2025 09:47:53 +0800 Subject: [PATCH] [LoongArch] Pre-commit tests for shuffle visiting same lane --- .../l

[llvm-branch-commits] [llvm] [ir] MD_prof is not UB-implying (PR #152420)

2025-08-09 Thread Nikita Popov via llvm-branch-commits
nikic wrote: All this tests needs is a hoistable select with prof metadata. You do not need any of the blockaddress / indirectbr stuff. https://github.com/llvm/llvm-project/pull/152420 ___ llvm-branch-commits mailing

[llvm-branch-commits] [llvm] [ir] MD_prof is not UB-implying (PR #152420)

2025-08-09 Thread Nikita Popov via llvm-branch-commits
@@ -1678,6 +1680,8 @@ void Instruction::dropUnknownNonDebugMetadata(ArrayRef KnownIDs) { // A DIAssignID attachment is debug metadata, don't drop it. KnownSet.insert(LLVMContext::MD_DIAssignID); + if (!ProfcheckDisableMetadataFixes) +KnownSet.insert(LLVMContext::MD_p

[llvm-branch-commits] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-08-09 Thread Matt Arsenault via llvm-branch-commits
@@ -163,4 +163,8 @@ typedef enum omp_allocator_handle_t { ///} +enum omp_access_t { arsenm wrote: Document, it's particularly weird seeing an enum with only 1 entry https://github.com/llvm/llvm-project/pull/152831 __

[llvm-branch-commits] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-08-09 Thread Matt Arsenault via llvm-branch-commits
@@ -4515,6 +4515,15 @@ void omp_free(void *ptr, omp_allocator_handle_t allocator) { } /* end of OpenMP 5.1 Memory Management routines */ +void *omp_get_dyn_groupprivate_ptr(size_t offset, int *is_fallback, + omp_access_t access_group) { + if

[llvm-branch-commits] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-08-09 Thread Matt Arsenault via llvm-branch-commits
@@ -158,6 +158,34 @@ void SharedMemorySmartStackTy::pop(void *Ptr, uint64_t Bytes) { memory::freeGlobal(Ptr, "Slow path shared memory deallocation"); } +struct DynCGroupMemTy { + void init(KernelLaunchEnvironmentTy *KLE, void *NativeDynCGroup) { +Size = 0; +Ptr = n

[llvm-branch-commits] [llvm] [openmp] [OpenMP][Offload] Add offload runtime support for dyn_groupprivate clause (PR #152831)

2025-08-09 Thread Matt Arsenault via llvm-branch-commits
@@ -430,6 +463,17 @@ int omp_get_team_num() { return mapping::getBlockIdInKernel(); } int omp_get_initial_device(void) { return -1; } int omp_is_initial_device(void) { return 0; } + +void *omp_get_dyn_groupprivate_ptr(size_t Offset, int *IsFallback, +