[all-commits] [llvm/llvm-project] 99f5e9: [libc][math][c23] Add modff128 C23 math function. ...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Sat Mar 9 13:07:00 PST 2024


  Branch: refs/heads/users/vitalybuka/spr/clang-add-optional-pass-to-remove-ubsan-traps-using-pgo
  Home:   https://github.com/llvm/llvm-project
  Commit: 99f5e9634b6921ebb6dad9bef1c76ade83adc847
      https://github.com/llvm/llvm-project/commit/99f5e9634b6921ebb6dad9bef1c76ade83adc847
  Author: lntue <35648136+lntue at users.noreply.github.com>
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/riscv/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/docs/math/index.rst
    M libc/spec/spec.td
    M libc/spec/stdc.td
    M libc/src/math/CMakeLists.txt
    M libc/src/math/generic/CMakeLists.txt
    A libc/src/math/generic/modff128.cpp
    A libc/src/math/modff128.h
    M libc/test/src/math/smoke/CMakeLists.txt
    M libc/test/src/math/smoke/ModfTest.h
    A libc/test/src/math/smoke/modff128_test.cpp

  Log Message:
  -----------
  [libc][math][c23] Add modff128 C23 math function. (#84532)


  Commit: e19e8600cf743690e1a23fb8a2b0dfbe2dafe559
      https://github.com/llvm/llvm-project/commit/e19e8600cf743690e1a23fb8a2b0dfbe2dafe559
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
    M libcxx/test/tools/CMakeLists.txt
    M libcxx/test/tools/clang_tidy_checks/CMakeLists.txt
    M libcxx/utils/libcxx/test/features.py
    M libcxx/utils/libcxx/test/params.py

  Log Message:
  -----------
  [RFC][libc++] Reworks clang-tidy selection. (#81362)

The current selection is done in the test scripts which gives the user
no control where to find clang-tidy. The version selection itself is
hard-coded and not based on the version of clang used.

This moves the selection to configuration time and tries to find a
better match.
- Mixing the version of clang-tidy and the clang libraries causes ODR
violations. This results in practice in crashes or incorrect results.
- Mixing the version of clang-tidy and the clang binary sometimes causes
issues with supported diagnostic flags. For example, flags tested
against clang 17 may not be available in clang-tidy 16.

Currently clang-tidy 18.1 can be used, it tests against the clang
libraries version 18. This is caused by the new LLVM version numbering
scheme.

The new selection tries to match the clang version or the version of the
HEAD and the last 3 releases. (During the release period libc++ supports
4 versions instead of the typical 3 versions.)


  Commit: 938b9204684222d192a3f817da0c33076ed813e2
      https://github.com/llvm/llvm-project/commit/938b9204684222d192a3f817da0c33076ed813e2
  Author: Noah Goldstein <goldstein.w.n at gmail.com>
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
    M llvm/test/Transforms/InstCombine/binop-itofp.ll

  Log Message:
  -----------
  [InstCombine] Add more tests for transforming `(binop (uitofp), -C)`; NFC


  Commit: 8d976c7f20fe8d92fe6f54af411594e15fac25ae
      https://github.com/llvm/llvm-project/commit/8d976c7f20fe8d92fe6f54af411594e15fac25ae
  Author: Noah Goldstein <goldstein.w.n at gmail.com>
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/add-sitofp.ll
    M llvm/test/Transforms/InstCombine/binop-itofp.ll

  Log Message:
  -----------
  [InstCombine] Make `(binop ({s|u}itofp),({s|u}itofp))` transform more flexible to mismatched signs

Instead of taking the sign of the cast operation as the required since
for the transform, only force a sign if an operation is maybe
negative.

This gives us more flexability when checking if the floats are safely
converable to integers.

Closes #84389


  Commit: 57a2229a2f62746d5616f0bd82a03b23eb459cf3
      https://github.com/llvm/llvm-project/commit/57a2229a2f62746d5616f0bd82a03b23eb459cf3
  Author: rohit-rao <rohitrao at google.com>
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
    M compiler-rt/cmake/base-config-ix.cmake
    M compiler-rt/cmake/builtin-config-ix.cmake

  Log Message:
  -----------
  [compiler-rt] Adds builtins support for xros. (#83484)

Adds support for xros when compiling builtins. This is disabled by
default and controlled with COMPILER_RT_ENABLE_XROS, similar to
watchOS/tvOS.


  Commit: f5811494b0cde306e98caa339e4dc1c06cb5e8e9
      https://github.com/llvm/llvm-project/commit/f5811494b0cde306e98caa339e4dc1c06cb5e8e9
  Author: Zain Jaffal <zain at jjaffal.com>
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
    M llvm/test/Transforms/InstCombine/fdiv-sqrt.ll

  Log Message:
  -----------
  check if operand is div in fold FDivSqrtDivisor (#81970)

This patch fixes the issues introduced in
https://github.com/llvm/llvm-project/commit/bb5c3899d1936ebdf7ebf5ca4347ee2e057bee7f.

I moved the check for the instruction to be div before I check for the
fast math flags which resolves the crash in

```
float a, b;
double sqrt();
void c() { b = a / sqrt(a); }
```

---------

Co-authored-by: Matt Arsenault <arsenm2 at gmail.com>


  Commit: b4001e32b1aa4df07dc6babefba19f2b77f487c6
      https://github.com/llvm/llvm-project/commit/b4001e32b1aa4df07dc6babefba19f2b77f487c6
  Author: Amirreza Ashouri <ar.ashouri999 at gmail.com>
  Date:   2024-03-10 (Sun, 10 Mar 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst

  Log Message:
  -----------
  [NFC] Eliminate trailing white space causing CI build failure (#84632)

To resolve the following issue in the CI build:
```
*** Checking for trailing whitespace left in Clang source files ***
+ grep -rnI '[[:blank:]]$' clang/lib clang/include clang/docs
clang/docs/ReleaseNotes.rst:412:- PTX is no longer included by default when compiling for CUDA. Using
+ echo '*** Trailing whitespace has been found in Clang source files as described above ***'
*** Trailing whitespace has been found in Clang source files as described above ***
+ exit 1
```


  Commit: 110141b37813dc48af33de5e1407231e56acdfc5
      https://github.com/llvm/llvm-project/commit/110141b37813dc48af33de5e1407231e56acdfc5
  Author: Vadim Paretsky <vadim.paretsky at intel.com>
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
    M openmp/runtime/src/kmp.h
    M openmp/runtime/src/kmp_lock.h
    M openmp/runtime/test/tasking/bug_nested_proxy_task.c
    M openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c
    M openmp/runtime/test/tasking/hidden_helper_task/common.h

  Log Message:
  -----------
  [OpenMP] fix endianness dependent definitions in OMP headers for MSVC (#84540)

MSVC does not define __BYTE_ORDER__ making the check for BigEndian
erroneously evaluate to true and breaking the struct definitions in MSVC
compiled builds correspondingly. The fix adds an additional check for
whether __BYTE_ORDER__ is defined by the compiler to fix these.

---------

Co-authored-by: Vadim Paretsky <b-vadipa at microsoft.com>


  Commit: 0d6f9bf274c1bc69e71ff7dd740f2cee1a4ca769
      https://github.com/llvm/llvm-project/commit/0d6f9bf274c1bc69e71ff7dd740f2cee1a4ca769
  Author: Martin Storsjö <martin at martin.st>
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
    M compiler-rt/test/asan/TestCases/Windows/issue64990.cpp

  Log Message:
  -----------
  [asan] [test] Mark a new test UNSUPPORTED for MinGW targets

This test uses the MSVC/clang-cl specific -EHsc flag.

This test was recently added, in
ea12c1fa15093e24818785b2ca6e06588372a3bf.


  Commit: 6f7ebcb71f4e89309c613da9600991850f15f74f
      https://github.com/llvm/llvm-project/commit/6f7ebcb71f4e89309c613da9600991850f15f74f
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
    M compiler-rt/lib/lsan/lsan_common.cpp

  Log Message:
  -----------
  [NFC][compiler-rt] Try to collect more info about crashes on bot


  Commit: 9596e7b1614e826b0795a3abcd2d75ee05b8bca7
      https://github.com/llvm/llvm-project/commit/9596e7b1614e826b0795a3abcd2d75ee05b8bca7
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2024-03-09 (Sat, 09 Mar 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M compiler-rt/cmake/base-config-ix.cmake
    M compiler-rt/cmake/builtin-config-ix.cmake
    M compiler-rt/lib/lsan/lsan_common.cpp
    M compiler-rt/test/asan/TestCases/Windows/issue64990.cpp
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/riscv/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/docs/math/index.rst
    M libc/spec/spec.td
    M libc/spec/stdc.td
    M libc/src/math/CMakeLists.txt
    M libc/src/math/generic/CMakeLists.txt
    A libc/src/math/generic/modff128.cpp
    A libc/src/math/modff128.h
    M libc/test/src/math/smoke/CMakeLists.txt
    M libc/test/src/math/smoke/ModfTest.h
    A libc/test/src/math/smoke/modff128_test.cpp
    M libcxx/test/tools/CMakeLists.txt
    M libcxx/test/tools/clang_tidy_checks/CMakeLists.txt
    M libcxx/utils/libcxx/test/features.py
    M libcxx/utils/libcxx/test/params.py
    M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/add-sitofp.ll
    M llvm/test/Transforms/InstCombine/binop-itofp.ll
    M llvm/test/Transforms/InstCombine/fdiv-sqrt.ll
    M openmp/runtime/src/kmp.h
    M openmp/runtime/src/kmp_lock.h
    M openmp/runtime/test/tasking/bug_nested_proxy_task.c
    M openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c
    M openmp/runtime/test/tasking/hidden_helper_task/common.h

  Log Message:
  -----------
  rebase

Created using spr 1.3.4


Compare: https://github.com/llvm/llvm-project/compare/195afdee83bb...9596e7b1614e

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list