[llvm-branch-commits] [lld] [llvm] [CGData][llvm-cgdata] Support for stable function map (PR #112664)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/112664 >From f6fc25953b8f5109abb968c43ebc7d53f2e475db Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Mon, 9 Sep 2024 19:38:05 -0700 Subject: [PATCH] [CGData][llvm-cgdata] Support for stable function map This int

[llvm-branch-commits] [llvm] [CGData] Global Merge Functions (PR #112671)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com created https://github.com/llvm/llvm-project/pull/112671 None >From 2a690c75924de5feadb4a582d76822b4d4d1d2cf Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Fri, 30 Aug 2024 00:09:09 -0700 Subject: [PATCH] [CGData] Global Merge Functions --- llvm/include/llvm/

[llvm-branch-commits] [lld] [CGData][lld-macho] Add Global Merge Func Pass (PR #112674)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com created https://github.com/llvm/llvm-project/pull/112674 None >From 36978c1da750496941705b284b3c34495b6f7386 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Wed, 16 Oct 2024 22:56:38 -0700 Subject: [PATCH] [CGData][lld-macho] Add Global Merge Func Pass --- lld

[llvm-branch-commits] [flang] [llvm] [Flang] Move runtime library files to clang-rt. NFC (PR #110298)

2024-10-17 Thread Michael Kruse via llvm-branch-commits
Meinersbur wrote: Removed the library name (`flang_rt`, `CufRuntime`) from the include paths and put the CufRuntime file into a CUDA subdirectory. IMHO this violates the basic convention that when including a header file, the path indicates what library you will have to link to. E.g. with `#in

[llvm-branch-commits] [clang] [clang] Reject if constexpr in C (#112685) (PR #112697)

2024-10-17 Thread Mariya Podchishchaeva via llvm-branch-commits
https://github.com/Fznamznon created https://github.com/llvm/llvm-project/pull/112697 Fixes https://github.com/llvm/llvm-project/issues/112587 >From 35dd9fa1ca01c0c7204a4d8677c615c0956fd397 Mon Sep 17 00:00:00 2001 From: Mariya Podchishchaeva Date: Thu, 17 Oct 2024 13:42:35 +0200 Subject: [PAT

[llvm-branch-commits] [llvm] 007ad83 - Revert "[llvm][ARM]Add widen global arrays pass (#107120)"

2024-10-17 Thread via llvm-branch-commits
Author: Nashe Mncube Date: 2024-10-17T13:35:23+01:00 New Revision: 007ad8343672de5161772c0873f87d00759fd82c URL: https://github.com/llvm/llvm-project/commit/007ad8343672de5161772c0873f87d00759fd82c DIFF: https://github.com/llvm/llvm-project/commit/007ad8343672de5161772c0873f87d00759fd82c.diff

[llvm-branch-commits] [clang] [clang] Reject if constexpr in C (#112685) (PR #112697)

2024-10-17 Thread Aaron Ballman via llvm-branch-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/112697 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-comm

[llvm-branch-commits] [llvm] GlobalISel: Fix combine duplicating atomic loads (PR #111730)

2024-10-17 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/111730 >From e6c0bf257510507bea11e9e8de2533cdd36cc13d Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 9 Oct 2024 22:05:48 +0400 Subject: [PATCH 1/2] GlobalISel: Fix combine duplicating atomic loads The sext_in

[llvm-branch-commits] [clang] [clang] Reject if constexpr in C (#112685) (PR #112697)

2024-10-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mariya Podchishchaeva (Fznamznon) Changes Fixes https://github.com/llvm/llvm-project/issues/112587 --- Full diff: https://github.com/llvm/llvm-project/pull/112697.diff 2 Files Affected: - (modified) clang/lib/Parse/ParseStmt.cpp (+7-4)

[llvm-branch-commits] [clang] [clang] Reject if constexpr in C (#112685) (PR #112697)

2024-10-17 Thread Mariya Podchishchaeva via llvm-branch-commits
https://github.com/Fznamznon milestoned https://github.com/llvm/llvm-project/pull/112697 ___ 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] [libc][math][c23] Add log2f16 C23 math function (PR #106084)

2024-10-17 Thread via llvm-branch-commits
https://github.com/overmighty updated https://github.com/llvm/llvm-project/pull/106084 >From 6d2abb503321d6564ce6333c366c2ab3d82b17a5 Mon Sep 17 00:00:00 2001 From: OverMighty Date: Mon, 26 Aug 2024 16:36:19 +0200 Subject: [PATCH 1/3] [libc][math][c23] Add log2f16 C23 math function Part of #95

[llvm-branch-commits] [llvm] [CGData] Global Merge Functions (PR #112671)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/112671 >From 1601086634428b95d1a195e5ecb8f5b9d1f1709c Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Fri, 30 Aug 2024 00:09:09 -0700 Subject: [PATCH] [CGData] Global Merge Functions --- llvm/include/llvm/CGData

[llvm-branch-commits] [llvm][fatlto] Drop any CFI related instrumentation after emitting bitcode (PR #112788)

2024-10-17 Thread Petr Hosek via llvm-branch-commits
@@ -1629,6 +1629,10 @@ PassBuilder::buildFatLTODefaultPipeline(OptimizationLevel Level, bool ThinLTO, MPM.addPass(buildLTOPreLinkDefaultPipeline(Level)); MPM.addPass(EmbedBitcodePass(ThinLTO, EmitSummary)); + // If we're doing FatLTO w/ CFI enabled, we don't want the t

[llvm-branch-commits] [sanitizer] Add MemCpyAccessible (PR #112794)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
@@ -219,6 +219,32 @@ static void StopStackDepotBackgroundThread() { static void StopStackDepotBackgroundThread() {} #endif +void MemCpyAccessible(void *dest, const void *src, uptr n) { + if (TryMemCpy(dest, src, n)) vitalybuka wrote: Not sure as well. On som

[llvm-branch-commits] [llvm][fatlto] Drop any CFI related instrumentation after emitting bitcode (PR #112788)

2024-10-17 Thread Paul Kirth via llvm-branch-commits
@@ -1629,6 +1629,10 @@ PassBuilder::buildFatLTODefaultPipeline(OptimizationLevel Level, bool ThinLTO, MPM.addPass(buildLTOPreLinkDefaultPipeline(Level)); MPM.addPass(EmbedBitcodePass(ThinLTO, EmitSummary)); + // If we're doing FatLTO w/ CFI enabled, we don't want the t

[llvm-branch-commits] [sanitizer] Add MemCpyAccessible (PR #112794)

2024-10-17 Thread Florian Mayer via llvm-branch-commits
@@ -219,6 +219,32 @@ static void StopStackDepotBackgroundThread() { static void StopStackDepotBackgroundThread() {} #endif +void MemCpyAccessible(void *dest, const void *src, uptr n) { + if (TryMemCpy(dest, src, n)) +return; + + const uptr page_size = GetPageSize(); + u

[llvm-branch-commits] [sanitizer] Add MemCpyAccessible (PR #112794)

2024-10-17 Thread Florian Mayer via llvm-branch-commits
@@ -219,6 +219,32 @@ static void StopStackDepotBackgroundThread() { static void StopStackDepotBackgroundThread() {} #endif +void MemCpyAccessible(void *dest, const void *src, uptr n) { + if (TryMemCpy(dest, src, n)) fmayer wrote: I am not fully sure about th

[llvm-branch-commits] [sanitizer] Add MemCpyAccessible (PR #112794)

2024-10-17 Thread Florian Mayer via llvm-branch-commits
@@ -273,6 +273,8 @@ bool IsAccessibleMemoryRange(uptr beg, uptr size); // Returns true if we can read a memory range starting at `src`, and copies // content into `dest`. bool TryMemCpy(void *dest, const void *src, uptr n); +// Copies accesible memory, and zero fill the rest. -

[llvm-branch-commits] [llvm][fatlto] Drop any CFI related instrumentation after emitting bitcode (PR #112788)

2024-10-17 Thread Paul Kirth via llvm-branch-commits
@@ -1629,6 +1629,10 @@ PassBuilder::buildFatLTODefaultPipeline(OptimizationLevel Level, bool ThinLTO, MPM.addPass(buildLTOPreLinkDefaultPipeline(Level)); MPM.addPass(EmbedBitcodePass(ThinLTO, EmitSummary)); + // If we're doing FatLTO w/ CFI enabled, we don't want the t

[llvm-branch-commits] [llvm][fatlto] Drop any CFI related instrumentation after emitting bitcode (PR #112788)

2024-10-17 Thread via llvm-branch-commits
@@ -1629,6 +1629,10 @@ PassBuilder::buildFatLTODefaultPipeline(OptimizationLevel Level, bool ThinLTO, MPM.addPass(buildLTOPreLinkDefaultPipeline(Level)); MPM.addPass(EmbedBitcodePass(ThinLTO, EmitSummary)); + // If we're doing FatLTO w/ CFI enabled, we don't want the t

[llvm-branch-commits] [lld] [llvm] [CGData][llvm-cgdata] Support for stable function map (PR #112664)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/112664 >From 09f1ec7730868a53cb566b0913e7952dfc15fa16 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Mon, 9 Sep 2024 19:38:05 -0700 Subject: [PATCH] [CGData][llvm-cgdata] Support for stable function map This int

[llvm-branch-commits] [llvm] [CGData] Stable Function Map (PR #112662)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/112662 >From 060a23e39a68729859bb7b74e38586b0356e2ba6 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Sat, 7 Sep 2024 22:48:17 -0700 Subject: [PATCH] [CGData] Stable Function Map These define the main data struct

[llvm-branch-commits] [libc] [libc][math][c23] Add log10f16 C23 math function (PR #106091)

2024-10-17 Thread via llvm-branch-commits
https://github.com/overmighty updated https://github.com/llvm/llvm-project/pull/106091 >From d4ff8e37305f98ebb140bfd5d6968c73dc10a1c4 Mon Sep 17 00:00:00 2001 From: OverMighty Date: Mon, 26 Aug 2024 17:23:01 +0200 Subject: [PATCH 1/2] [libc][math][c23] Add log10f16 C23 math function Part of #9

[llvm-branch-commits] [lld] [CGData][lld-macho] Add Global Merge Func Pass (PR #112674)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/112674 >From 6b0b6194a02209036e032a8941f8e5817b402318 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Wed, 16 Oct 2024 22:56:38 -0700 Subject: [PATCH] [CGData][lld-macho] Add Global Merge Func Pass --- lld/MachO

[llvm-branch-commits] [libc] [libc][math][c23] Add sqrtf16 C23 math function (PR #112406)

2024-10-17 Thread via llvm-branch-commits
https://github.com/overmighty updated https://github.com/llvm/llvm-project/pull/112406 >From 52c1c1bad3cd90d17b90082063bdad49fb0b5aa9 Mon Sep 17 00:00:00 2001 From: OverMighty Date: Mon, 26 Aug 2024 18:43:12 +0200 Subject: [PATCH] [libc][math][c23] Add sqrtf16 C23 math function Part of #95250.

[llvm-branch-commits] [sanitizer] Add TryMemCpy (PR #112668)

2024-10-17 Thread Florian Mayer via llvm-branch-commits
@@ -325,6 +325,44 @@ bool IsAccessibleMemoryRange(uptr beg, uptr size) { return true; } +bool TryMemCpy(void *dest, const void *src, uptr n) { + int sock_pair[2]; + if (pipe(sock_pair)) +return false; + + auto cleanup = at_scope_exit([&]() { +internal_close(sock_p

[llvm-branch-commits] [llvm] [CGData] Global Merge Functions (PR #112671)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/112671 >From ded5771bb4ff7c8fd5401b4efe0af988539a8162 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Fri, 30 Aug 2024 00:09:09 -0700 Subject: [PATCH] [CGData] Global Merge Functions --- llvm/include/llvm/CGData

[llvm-branch-commits] [sanitizer] Add TryMemCpy (PR #112668)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/112668 ___ 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] [sanitizer] Add TryMemCpy (PR #112668)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/112668 ___ 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] [sanitizer] Add MemCpyAccessible (PR #112794)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/112794 ___ 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] [sanitizer] Add MemCpyAccessible (PR #112794)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/112794 ___ 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] [sanitizer] Add MemCpyAccessible (PR #112794)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/112794 ___ 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][fatlto] Drop any CFI related instrumentation after emitting bitcode (PR #112788)

2024-10-17 Thread via llvm-branch-commits
@@ -1629,6 +1629,10 @@ PassBuilder::buildFatLTODefaultPipeline(OptimizationLevel Level, bool ThinLTO, MPM.addPass(buildLTOPreLinkDefaultPipeline(Level)); MPM.addPass(EmbedBitcodePass(ThinLTO, EmitSummary)); + // If we're doing FatLTO w/ CFI enabled, we don't want the t

[llvm-branch-commits] [llvm][fatlto] Drop any CFI related instrumentation after emitting bitcode (PR #112788)

2024-10-17 Thread via llvm-branch-commits
@@ -1629,6 +1629,10 @@ PassBuilder::buildFatLTODefaultPipeline(OptimizationLevel Level, bool ThinLTO, MPM.addPass(buildLTOPreLinkDefaultPipeline(Level)); MPM.addPass(EmbedBitcodePass(ThinLTO, EmitSummary)); + // If we're doing FatLTO w/ CFI enabled, we don't want the t

[llvm-branch-commits] [lld] [llvm] [CGData][llvm-cgdata] Support for stable function map (PR #112664)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/112664 >From 09f1ec7730868a53cb566b0913e7952dfc15fa16 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Mon, 9 Sep 2024 19:38:05 -0700 Subject: [PATCH] [CGData][llvm-cgdata] Support for stable function map This int

[llvm-branch-commits] [llvm] [CGData] Global Merge Functions (PR #112671)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/112671 >From 584a2d7fdadf91838b7b305a1b09056fcb0e805f Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Fri, 30 Aug 2024 00:09:09 -0700 Subject: [PATCH] [CGData] Global Merge Functions --- llvm/include/llvm/CGData

[llvm-branch-commits] [libc] [libc][math][c23] Add sqrtf16 C23 math function (PR #112406)

2024-10-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-libc Author: OverMighty (overmighty) Changes Part of #95250. --- Full diff: https://github.com/llvm/llvm-project/pull/112406.diff 14 Files Affected: - (modified) libc/config/gpu/entrypoints.txt (+1) - (modified) libc/config/linux/aarch64/entrypoints

[llvm-branch-commits] [libc] [libc][math][c23] Add sqrtf16 C23 math function (PR #112406)

2024-10-17 Thread via llvm-branch-commits
https://github.com/lntue approved this pull request. https://github.com/llvm/llvm-project/pull/112406 ___ 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] [flang] [lld] [llvm] [Flang] LLVM_ENABLE_RUNTIMES=FortranRuntime (PR #110217)

2024-10-17 Thread via llvm-branch-commits
@@ -24,7 +24,7 @@ list(INSERT CMAKE_MODULE_PATH 0 # We order libraries to mirror roughly how they are layered, except that compiler-rt can depend # on libc++, so we put it after. set(LLVM_DEFAULT_RUNTIMES "libc;libunwind;libcxxabi;pstl;libcxx;compiler-rt;openmp;offload") -set

[llvm-branch-commits] [llvm][fatlto] Drop any CFI related instrumentation after emitting bitcode (PR #112788)

2024-10-17 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/112788 We want to support CFI instrumentation for the bitcode section, without miscompiling the object code portion of a FatLTO object. We can reuse the existing mechanisms in the LowerTypeTestsPass to do that, by just

[llvm-branch-commits] [llvm][fatlto] Drop any CFI related instrumentation after emitting bitcode (PR #112788)

2024-10-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Paul Kirth (ilovepi) Changes We want to support CFI instrumentation for the bitcode section, without miscompiling the object code portion of a FatLTO object. We can reuse the existing mechanisms in the LowerTypeTestsPass to do that, by just

[llvm-branch-commits] [sanitizer] Add MemCpyAccessible (PR #112794)

2024-10-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer Author: Vitaly Buka (vitalybuka) Changes A layer over `TryMemCpy` to copy only availible pages. --- Full diff: https://github.com/llvm/llvm-project/pull/112794.diff 3 Files Affected: - (modified) compiler-rt/lib/sanitizer_commo

[llvm-branch-commits] [sanitizer] Add MemCpyAccessible (PR #112794)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/112794 A layer over `TryMemCpy` to copy only availible pages. ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[llvm-branch-commits] [sanitizer] Add MemCpyAccessible (PR #112794)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/112794 ___ 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] [sanitizer] Add MemCpyAccessible (PR #112794)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/112794 ___ 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][fatlto] Drop any CFI related instrumentation after emitting bitcode (PR #112788)

2024-10-17 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/112788 ___ 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][fatlto] Drop any CFI related instrumentation after emitting bitcode (PR #112788)

2024-10-17 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/112788 ___ 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] [CGData][lld-macho] Add Global Merge Func Pass (PR #112674)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/112674 >From ead1aee8eeb4046ec0641c09652cea726becd48a Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Wed, 16 Oct 2024 22:56:38 -0700 Subject: [PATCH] [CGData][lld-macho] Add Global Merge Func Pass --- lld/MachO

[llvm-branch-commits] [llvm] [llvm][fatlto] Drop any CFI related instrumentation after emitting bitcode (PR #112788)

2024-10-17 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/112788 >From ad89d61e60bac57cf8c66a974d741377ebe1db30 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Fri, 18 Oct 2024 01:59:26 + Subject: [PATCH] Use new enum in constructor Created using spr 1.3.4 --- llvm/lib/

[llvm-branch-commits] [libc] [libc][math][c23] Add logf16 C23 math function (PR #106072)

2024-10-17 Thread via llvm-branch-commits
https://github.com/overmighty updated https://github.com/llvm/llvm-project/pull/106072 >From f011fa727e0974dc3ec69ecd8b5860008efa524d Mon Sep 17 00:00:00 2001 From: OverMighty Date: Mon, 26 Aug 2024 15:30:54 +0200 Subject: [PATCH 1/4] [libc][math][c23] Add logf16 C23 math function Part of #952

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

2024-10-17 Thread Michael Kruse via llvm-branch-commits
@@ -261,6 +263,7 @@ function(runtime_default_target) llvm_ExternalProject_Add(runtimes ${CMAKE_CURRENT_SOURCE_DIR}/../../runtimes DEPENDS ${ARG_DEPENDS} + ${enable_fortran} Meiner

[llvm-branch-commits] [clang] [Clang] Disable use of the counted_by attribute for whole struct pointers (#112636) (PR #112786)

2024-10-17 Thread Bill Wendling via llvm-branch-commits
https://github.com/bwendling created https://github.com/llvm/llvm-project/pull/112786 The whole struct is specificed in the __bdos. The calculation of the whole size of the structure can be done in two ways: 1) sizeof(struct S) + count * sizeof(typeof(fam)) 2) offsetof(struct S, fam) +

[llvm-branch-commits] [clang] [Clang] Disable use of the counted_by attribute for whole struct pointers (#112636) (PR #112786)

2024-10-17 Thread Bill Wendling via llvm-branch-commits
https://github.com/bwendling milestoned https://github.com/llvm/llvm-project/pull/112786 ___ 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] [Clang] Disable use of the counted_by attribute for whole struct pointers (#112636) (PR #112786)

2024-10-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: Bill Wendling (bwendling) Changes The whole struct is specificed in the __bdos. The calculation of the whole size of the structure can be done in two ways: 1) sizeof(struct S) + count * sizeof(typeof

[llvm-branch-commits] [clang] [Clang] Disable use of the counted_by attribute for whole struct pointers (#112636) (PR #112786)

2024-10-17 Thread Bill Wendling via llvm-branch-commits
https://github.com/bwendling edited https://github.com/llvm/llvm-project/pull/112786 ___ 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] [Coverage] Make additional counters available for BranchRegion. NFC. (PR #112730)

2024-10-17 Thread NAKAMURA Takumi via llvm-branch-commits
https://github.com/chapuni edited https://github.com/llvm/llvm-project/pull/112730 ___ 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] [lsan] Process non-suspended threads (PR #112807)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/112807 For such threads we have no registers, so no exact stack range, and no guaranties that stack is mapped at all. To avoid crashes on unmapped memory, `MemCpyAccessible` copies intersting range into temporaril

[llvm-branch-commits] [lsan] Process non-suspended threads (PR #112807)

2024-10-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer Author: Vitaly Buka (vitalybuka) Changes For such threads we have no registers, so no exact stack range, and no guaranties that stack is mapped at all. To avoid crashes on unmapped memory, `MemCpyAccessible` copies intersting rang

[llvm-branch-commits] [lsan] Process non-suspended threads (PR #112807)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/112807 ___ 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] [lsan] Process non-suspended threads (PR #112807)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/112807 ___ 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] [CGData][lld-macho] Add Global Merge Func Pass (PR #112674)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/112674 >From 549cf5d3880450641c720a6bc1f3bddae272f902 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Wed, 16 Oct 2024 22:56:38 -0700 Subject: [PATCH] [CGData][lld-macho] Add Global Merge Func Pass --- lld/MachO

[llvm-branch-commits] [llvm] [CGData] Global Merge Functions (PR #112671)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com edited https://github.com/llvm/llvm-project/pull/112671 ___ 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] clang/HIP: Remove requires system-linux from some driver tests (PR #112842)

2024-10-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Matt Arsenault (arsenm) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/112842.diff 2 Files Affected: - (modified) clang/test/Driver/hip-partial-link.hip (+1-1) - (modified) clang/tes

[llvm-branch-commits] [clang] clang/HIP: Remove requires system-linux from some driver tests (PR #112842)

2024-10-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Matt Arsenault (arsenm) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/112842.diff 2 Files Affected: - (modified) clang/test/Driver/hip-partial-link.hip (+1-1) - (modified) clang/test/Driver/linker-wrapper.c

[llvm-branch-commits] [clang] clang/HIP: Remove requires system-linux from some driver tests (PR #112842)

2024-10-17 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/112842?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [clang] clang/HIP: Remove requires system-linux from some driver tests (PR #112842)

2024-10-17 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/112842 ___ 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] clang/HIP: Remove requires system-linux from some driver tests (PR #112842)

2024-10-17 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/112842 None >From 2951ca1579e7249fc513dd69e10c10cbd7441c1a Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 18 Oct 2024 09:40:34 +0400 Subject: [PATCH] clang/HIP: Remove requires system-linux from some driver

[llvm-branch-commits] [llvm] AMDGPU: Add baseline tests for cmpxchg custom expansion (PR #109408)

2024-10-17 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/109408 >From 3cf356ca6ad7dd2a4c7d07635e69dbde1694afb8 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 12 Sep 2024 12:44:04 +0400 Subject: [PATCH] AMDGPU: Add baseline tests for cmpxchg custom expansion We need

[llvm-branch-commits] [libc] [libc][math][c23] Add logf16 C23 math function (PR #106072)

2024-10-17 Thread via llvm-branch-commits
https://github.com/lntue edited https://github.com/llvm/llvm-project/pull/106072 ___ 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] release/19.x: [clang-format] Handle template opener/closer in braced list (#112494) (PR #112815)

2024-10-17 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/112815 Backport 67f576f31d661897c5da302b8611decb7e0f9237 Requested by: @owenca >From d2c97f90d9b1fe0d6f239c6bf6483632be05483e Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 17 Oct 2024 19:56:09 -0700 Subject: [PA

[llvm-branch-commits] [clang] release/19.x: [clang-format] Handle template opener/closer in braced list (#112494) (PR #112815)

2024-10-17 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/112815 ___ 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] release/19.x: [clang-format] Handle template opener/closer in braced list (#112494) (PR #112815)

2024-10-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: None (llvmbot) Changes Backport 67f576f31d661897c5da302b8611decb7e0f9237 Requested by: @owenca --- Full diff: https://github.com/llvm/llvm-project/pull/112815.diff 2 Files Affected: - (modified) clang/lib/Format/UnwrappedLinePar

[llvm-branch-commits] [clang] release/19.x: [clang-format] Handle template opener/closer in braced list (#112494) (PR #112815)

2024-10-17 Thread via llvm-branch-commits
llvmbot wrote: @mydeveloperday What do you think about merging this PR to the release branch? https://github.com/llvm/llvm-project/pull/112815 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[llvm-branch-commits] [llvm] [StructuralHash] Support Differences (PR #112638)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com edited https://github.com/llvm/llvm-project/pull/112638 ___ 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] [CGData][lld-macho] Add Global Merge Func Pass (PR #112674)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com edited https://github.com/llvm/llvm-project/pull/112674 ___ 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] [llvm] [CGData][llvm-cgdata] Support for stable function map (PR #112664)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com edited https://github.com/llvm/llvm-project/pull/112664 ___ 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] [StructuralHash] Support Differences (PR #112638)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com edited https://github.com/llvm/llvm-project/pull/112638 ___ 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] [CGData] Stable Function Map (PR #112662)

2024-10-17 Thread Kyungwoo Lee via llvm-branch-commits
https://github.com/kyulee-com edited https://github.com/llvm/llvm-project/pull/112662 ___ 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] [libc][math][c23] Add logf16 C23 math function (PR #106072)

2024-10-17 Thread via llvm-branch-commits
@@ -287,6 +287,34 @@ template LIBC_INLINE float16 eval_sinh_or_cosh(float16 x) { lo, half_p_odd * exp2_hi_mid_diff, half_p_even * exp2_hi_mid_sum)); } +// Generated by Sollya with the following commands: +// > display = hexadecimal; +// > for i from 0 to 31 do prin

[llvm-branch-commits] [llvm] AMDGPU: Custom expand flat cmpxchg which may access private (PR #109410)

2024-10-17 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/109410 >From 671718564c70f4e7dc06bfb86a4cd07bf24315ed Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 14 Aug 2024 13:57:14 +0400 Subject: [PATCH 1/2] AMDGPU: Custom expand flat cmpxchg which may access private

[llvm-branch-commits] [libc] [libc][math][c23] Add sqrtf16 C23 math function (PR #112406)

2024-10-17 Thread via llvm-branch-commits
https://github.com/lntue approved this pull request. https://github.com/llvm/llvm-project/pull/112406 ___ 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] [Coverage] Make additional counters available for BranchRegion. NFC. (PR #112730)

2024-10-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: NAKAMURA Takumi (chapuni) Changes `getBranchCounterPair()` allocates an additional Counter to SkipPath in `SingleByteCoverage`. `IsCounterEqual()` calculates the comparison with rewinding counter replacements. `NumRegionCounters

[llvm-branch-commits] [clang] [llvm] [Coverage] Make additional counters available for BranchRegion. NFC. (PR #112730)

2024-10-17 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: NAKAMURA Takumi (chapuni) Changes `getBranchCounterPair()` allocates an additional Counter to SkipPath in `SingleByteCoverage`. `IsCounterEqual()` calculates the comparison with rewinding counter replacements. `NumRegionCounters` is upd

[llvm-branch-commits] [clang] [llvm] [Coverage] Make additional counters available for BranchRegion. NFC. (PR #112730)

2024-10-17 Thread NAKAMURA Takumi via llvm-branch-commits
https://github.com/chapuni created https://github.com/llvm/llvm-project/pull/112730 `getBranchCounterPair()` allocates an additional Counter to SkipPath in `SingleByteCoverage`. `IsCounterEqual()` calculates the comparison with rewinding counter replacements. `NumRegionCounters` is updated t

[llvm-branch-commits] [clang] [llvm] [Coverage] Make additional counters available for BranchRegion. NFC. (PR #112730)

2024-10-17 Thread NAKAMURA Takumi via llvm-branch-commits
https://github.com/chapuni edited https://github.com/llvm/llvm-project/pull/112730 ___ 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] [llvm] [Flang] Move runtime library files to flang-rt. NFC (PR #110298)

2024-10-17 Thread Michael Kruse via llvm-branch-commits
https://github.com/Meinersbur edited https://github.com/llvm/llvm-project/pull/110298 ___ 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] [flang] [lld] [llvm] [Flang] LLVM_ENABLE_RUNTIMES=FortranRuntime (PR #110217)

2024-10-17 Thread Michael Kruse via llvm-branch-commits
https://github.com/Meinersbur edited https://github.com/llvm/llvm-project/pull/110217 ___ 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] [flang] [lld] [llvm] [Flang] LLVM_ENABLE_RUNTIMES=FortranRuntime (PR #110217)

2024-10-17 Thread Michael Kruse via llvm-branch-commits
@@ -11,8 +11,11 @@ using namespace Fortran::parser::literals; + Meinersbur wrote: Removed whitespace change. Thank you. https://github.com/llvm/llvm-project/pull/110217 ___ llvm-branch-commits mailing list llvm-br

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

2024-10-17 Thread Michael Kruse via llvm-branch-commits
@@ -24,7 +24,7 @@ list(INSERT CMAKE_MODULE_PATH 0 # We order libraries to mirror roughly how they are layered, except that compiler-rt can depend # on libc++, so we put it after. set(LLVM_DEFAULT_RUNTIMES "libc;libunwind;libcxxabi;pstl;libcxx;compiler-rt;openmp;offload") -set

[llvm-branch-commits] [sanitizer] Add TryMemCpy (PR #112668)

2024-10-17 Thread Florian Mayer via llvm-branch-commits
@@ -325,6 +325,44 @@ bool IsAccessibleMemoryRange(uptr beg, uptr size) { return true; } +bool TryMemCpy(void *dest, const void *src, uptr n) { + int sock_pair[2]; + if (pipe(sock_pair)) +return false; + + auto cleanup = at_scope_exit([&]() { +internal_close(sock_p

[llvm-branch-commits] [sanitizer] Add TryMemCpy (PR #112668)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/112668 ___ 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] [sanitizer] Add TryMemCpy (PR #112668)

2024-10-17 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/112668 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits