[llvm-branch-commits] [llvm] [BPF] expand cttz, ctlz for i32, i64 (PR #73668)

2023-12-13 Thread Yingchi Long via llvm-branch-commits
inclyc wrote: Pinging @yonghong-song https://github.com/llvm/llvm-project/pull/73668 ___ 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] [libcxx] [compiler-rt] [mlir] [libcxxabi] [lldb] [openmp] [flang] [lld] [clang-tools-extra] [libc] [llvm] [clang] Function Multi Versioning supports IFunc lowerings on Da

2023-12-13 Thread Fangrui Song via llvm-branch-commits
@@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -o - %s | FileCheck %s --check-prefix=LINUX +// RUN: %clang_cc1 -triple x86_64-apple-macosx -emit-llvm -o - %s | FileCheck %s --check-prefix=LINUX MaskRay wrote: Is "macosx" a deprecated OS

[llvm-branch-commits] [lldb] [clang-tools-extra] [openmp] [llvm] [mlir] [flang] [libcxx] [lld] [compiler-rt] [libc] [clang] [libcxxabi] [clang] Function Multi Versioning supports IFunc lowerings on Da

2023-12-13 Thread Pavel Iliin via llvm-branch-commits
https://github.com/ilinpv approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/73688 ___ 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] [libcxx] [libc] [lldb] [lld] [libcxxabi] [compiler-rt] [clang-tools-extra] [flang] [openmp] [mlir] [llvm] [clang] [builtins][arm64] Build __init_cpu_features_resolver on Apple pl

2023-12-13 Thread Pavel Iliin via llvm-branch-commits
https://github.com/ilinpv approved this pull request. LGTM, thanks for adding Darwin support to cpu features detection! https://github.com/llvm/llvm-project/pull/73685 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://list

[llvm-branch-commits] [compiler-rt] [msan] Use `pthread_atfork` instead of interceptor (PR #75398)

2023-12-13 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer Author: Vitaly Buka (vitalybuka) Changes This is done for consistency with other sanitizers. Also lock the allocator. --- Full diff: https://github.com/llvm/llvm-project/pull/75398.diff 6 Files Affected: - (modified) compiler-r

[llvm-branch-commits] [compiler-rt] [msan] Use `pthread_atfork` instead of interceptor (PR #75398)

2023-12-13 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/75398 This is done for consistency with other sanitizers. Also lock the allocator. ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.

[llvm-branch-commits] [llvm] [LivePhysRegs] Add callee-saved regs from MFI in addLiveOutsNoPristines. (PR #73553)

2023-12-13 Thread Florian Hahn via llvm-branch-commits
fhahn wrote: > Just looked at https://gist.github.com/fhahn/67937125b64440a8a414909c4a1b7973 > ; that seems roughly appropriate. It's a little ugly to set the bit to false, > then set it back to true, though; I'd rather just explicitly check whether > all return instructions are LDMIA_RET/t2LD

[llvm-branch-commits] [compiler-rt] [flang] [libc] [lldb] [clang-tools-extra] [libcxxabi] [libunwind] [lld] [llvm] [clang] [mlir] [libcxx] [test][hwasan] Implement sanitizer_specific for HWASAN (PR #7

2023-12-13 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/75280 ___ 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] [lldb] [clang-tools-extra] [libcxx] [compiler-rt] [mlir] [libunwind] [libcxxabi] [flang] [libc] [clang] [lld] [test][hwasan] Implement sanitizer_specific for HWASAN (PR #7

2023-12-13 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/75280 ___ 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] [mlir] [libunwind] [lldb] [clang-tools-extra] [compiler-rt] [libcxx] [clang] [llvm] [libc] [flang] [libcxxabi] [lld] [test][hwasan] Implement sanitizer_specific for HWASAN (PR #7

2023-12-13 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/75280 ___ 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] [compiler-rt] [flang] [libc] [lldb] [clang-tools-extra] [libcxxabi] [libunwind] [lld] [llvm] [clang] [mlir] [libcxx] [test][hwasan] Implement sanitizer_specific for HWASAN (PR #7

2023-12-13 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/75280 ___ 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] [libunwind] [lldb] [clang] [libcxx] [libcxxabi] [libc] [compiler-rt] [lld] [flang] [clang-tools-extra] [llvm] [test][hwasan] Implement sanitizer_specific for HWASAN (PR #75280)

2023-12-13 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/75280 ___ 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] [compiler-rt] [lldb] [flang] [libcxxabi] [lld] [libunwind] [libcxx] [clang-tools-extra] [clang] [libc] [llvm] [test][hwasan] Implement sanitizer_specific for HWASAN (PR #75280)

2023-12-13 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/75280 ___ 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] [compiler-rt] [libcxx] [libcxxabi] [lld] [libunwind] [lldb] [flang] [clang] [libc] [llvm] [asan] Install `pthread_atfork` (PR #75290)

2023-12-13 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/75290 ___ 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] [lldb] [llvm] [libc] [libunwind] [flang] [lld] [compiler-rt] [libcxx] [libcxxabi] [clang] [asan] Install `pthread_atfork` (PR #75290)

2023-12-13 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/75290 ___ 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] [compiler-rt] [libcxx] [libunwind] [lld] [libcxxabi] [libc] [lldb] [llvm] [clang] [clang-tools-extra] [flang] [lsan] Install `pthread_atfork` (PR #75281)

2023-12-13 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/75281 ___ 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] [libcxx] [lldb] [llvm] [lld] [libunwind] [libcxxabi] [flang] [clang-tools-extra] [libc] [compiler-rt] [clang] [lsan] Install `pthread_atfork` (PR #75281)

2023-12-13 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/75281 ___ 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] [clang] [compiler-rt] [clang-tools-extra] [llvm] [libcxx] [test][hwasan] Implement sanitizer_specific for HWASAN (PR #75280)

2023-12-13 Thread Thurston Dang via llvm-branch-commits
@@ -31,6 +31,30 @@ static void make_mem_good(void *p, size_t s) { static void make_mem_bad(void *p, size_t s) { __asan_poison_memory_region(p, s); } +#elif __has_feature(hwaddress_sanitizer) +# include +# include +static void check_mem_is_good(void *p, size_t s) { + if (

[llvm-branch-commits] [lld] [libcxx] [llvm] [compiler-rt] [clang-tools-extra] [clang] [test][hwasan] Implement sanitizer_specific for HWASAN (PR #75280)

2023-12-13 Thread Thurston Dang via llvm-branch-commits
@@ -42,7 +42,18 @@ static void make_mem_good(void *p, size_t s) { __hwasan_tag_memory(p, __hwasan_get_tag_from_pointer(p), s); } static void make_mem_bad(void *p, size_t s) { - __hwasan_tag_memory(p, ~__hwasan_get_tag_from_pointer(p), s); + uint8_t tag = ~__hwasan_get_tag_f

[llvm-branch-commits] [lld] [clang] [compiler-rt] [clang-tools-extra] [llvm] [libcxx] [test][hwasan] Implement sanitizer_specific for HWASAN (PR #75280)

2023-12-13 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/75280 ___ 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] [clang-tools-extra] [llvm] [clang] [compiler-rt] [libcxx] [test][hwasan] Implement sanitizer_specific for HWASAN (PR #75280)

2023-12-13 Thread Vitaly Buka via llvm-branch-commits
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/75280 ___ 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] [compiler-rt] [asan] Install `pthread_atfork` (PR #75290)

2023-12-13 Thread Thurston Dang via llvm-branch-commits
https://github.com/thurstond approved this pull request. https://github.com/llvm/llvm-project/pull/75290 ___ 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] [compiler-rt] [asan] Install `pthread_atfork` (PR #75290)

2023-12-13 Thread Thurston Dang via llvm-branch-commits
@@ -148,6 +148,30 @@ void PlatformTSDDtor(void *tsd) { } #endif +void InstallAtForkHandler() { + auto before = []() { +if (CAN_SANITIZE_LEAKS) { + __lsan::LockGlobal(); +} +// `_lsan` functions defined regardless of `CAN_SANITIZE_LEAKS` and do the +// job

[llvm-branch-commits] [compiler-rt] [asan] Install `pthread_atfork` (PR #75290)

2023-12-13 Thread Thurston Dang via llvm-branch-commits
https://github.com/thurstond edited https://github.com/llvm/llvm-project/pull/75290 ___ 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-tools-extra] [lld] [libcxx] [compiler-rt] [llvm] [lsan] Install `pthread_atfork` (PR #75281)

2023-12-13 Thread Thurston Dang via llvm-branch-commits
https://github.com/thurstond approved this pull request. https://github.com/llvm/llvm-project/pull/75281 ___ 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-tools-extra] [lld] [libcxx] [compiler-rt] [llvm] [test][hwasan] Implement sanitizer_specific for HWASAN (PR #75280)

2023-12-13 Thread Thurston Dang via llvm-branch-commits
@@ -31,6 +31,19 @@ static void make_mem_good(void *p, size_t s) { static void make_mem_bad(void *p, size_t s) { __asan_poison_memory_region(p, s); } +#elif __has_feature(hwaddress_sanitizer) +# include +# include +static void check_mem_is_good(void *p, size_t s) { + if (

[llvm-branch-commits] [libc] d5a7456 - Revert "[libc][NFC] Implement `FPBits` in terms of `FloatProperties` to reduce clutter (#75196)"

2023-12-13 Thread via llvm-branch-commits
Author: Guillaume Chatelet Date: 2023-12-13T09:54:13+01:00 New Revision: d5a74566ca46cbb84945b0a523ccd44adb075071 URL: https://github.com/llvm/llvm-project/commit/d5a74566ca46cbb84945b0a523ccd44adb075071 DIFF: https://github.com/llvm/llvm-project/commit/d5a74566ca46cbb84945b0a523ccd44adb075071.