LLVM/project 3258d36clang/lib/Frontend VerifyDiagnosticConsumer.cpp

[Clang] Use stable_sort in VerifyDiagnosticsConsumer. (#187827)

The new code introduced for `-verify-directives` in PR #179835 enforces
that the order of diagnostics matches the order of the directives.
However, before checking this, it sorts the directives by
SourceLocation. Perhaps non-obviously, all directives which appear
inside a single comment are given the same SourceLocation, pointing to
the beginning of the comment. While these are added in order they appear
in the comment, the non-stable std::sort may non-detministically
misorder them. Switching to stable_sort ensures the correct order is
verified.

This was observed as a random test failure on the checks in
clang/test/CXX/drs/cwg25xx.cpp lines 250 and 264, in some builds of
Clang. Note that those lines end in backslashes, and thus, despite
appearances, the directives on the following lines are also within the
same single comment.
DeltaFile
+1-1clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
+1-11 files

LLVM/project f014202clang/lib/Format FormatToken.h Format.cpp, clang/unittests/Format ConfigParseTest.cpp QualifierFixerTest.cpp

[clang-format][NFC] Remove redundant parens enclosing braced list
DeltaFile
+135-151clang/lib/Format/FormatToken.h
+13-13clang/lib/Format/Format.cpp
+4-5clang/unittests/Format/ConfigParseTest.cpp
+1-1clang/unittests/Format/QualifierFixerTest.cpp
+153-1704 files

LLVM/project 2bbb449clang/lib/Format WhitespaceManager.cpp, clang/unittests/Format FormatTest.cpp

[clang-format] Merge case alignment into AlignTokens (#187811)

Use (nearly) the same code to align case statements and expression, as
the other alignments do. That way we also fix two things:
- Keep the ColumnLimit intact, without duplicating the calculation.
- Align all the case colons, even for empty cases.
DeltaFile
+137-195clang/lib/Format/WhitespaceManager.cpp
+16-0clang/unittests/Format/FormatTest.cpp
+153-1952 files

LLVM/project aa62224libc/shared/math sqrtbf16.h, libc/src/__support/math sqrtbf16.h CMakeLists.txt

[libc][math] Refactor sqrtbf16 function header-only (#187849)
DeltaFile
+25-0libc/src/__support/math/sqrtbf16.h
+23-0libc/shared/math/sqrtbf16.h
+16-0utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+11-0libc/src/__support/math/CMakeLists.txt
+2-5libc/src/math/generic/sqrtbf16.cpp
+1-5libc/src/math/generic/CMakeLists.txt
+78-103 files not shown
+81-109 files

LLVM/project 58ab41elibc/src/__support/math log.h

fma
DeltaFile
+1-2libc/src/__support/math/log.h
+1-21 files

LLVM/project e94f13flibc/src/__support/CPP bit.h

static
DeltaFile
+1-1libc/src/__support/CPP/bit.h
+1-11 files

LLVM/project 1120c97llvm/test/MachineVerifier/AMDGPU invalid-vop3-source-modifiers.mir

[NFC][AMDGPU] Set output to null for llvm/test/MachineVerifier/AMDGPU/invalid-vop3-source-modifiers.mir (#187888)
DeltaFile
+1-1llvm/test/MachineVerifier/AMDGPU/invalid-vop3-source-modifiers.mir
+1-11 files

LLVM/project 1443144libc/src/__support/wctype perfect_hash_map.h

rename var
DeltaFile
+2-2libc/src/__support/wctype/perfect_hash_map.h
+2-21 files

LLVM/project 5c09fcelibc/src/__support/CPP iterator.h

fix 2
DeltaFile
+0-4libc/src/__support/CPP/iterator.h
+0-41 files

LLVM/project 9e7c12alibc/src/__support/wctype perfect_hash_map.h CMakeLists.txt

add UInt128
DeltaFile
+7-7libc/src/__support/wctype/perfect_hash_map.h
+1-0libc/src/__support/wctype/CMakeLists.txt
+8-72 files

LLVM/project 5d24c29libc/src/__support/CPP iterator.h, libc/src/__support/wctype perfect_hash_map.h

cleanup
DeltaFile
+1-2libc/src/__support/wctype/perfect_hash_map.h
+1-1libc/src/__support/CPP/iterator.h
+2-32 files

LLVM/project ea5249elibc/utils/wctype_utils gen.py, libc/utils/wctype_utils/conversion hex_writer.py

format
DeltaFile
+2-1libc/utils/wctype_utils/conversion/hex_writer.py
+2-1libc/utils/wctype_utils/gen.py
+4-22 files

LLVM/project c882bf4libc/src/__support/CPP iterator.h

fix iterator
DeltaFile
+1-3libc/src/__support/CPP/iterator.h
+1-31 files

LLVM/project 333293flibc/utils/wctype_utils gen.py, libc/utils/wctype_utils/conversion hex_writer.py

format
DeltaFile
+4-5libc/utils/wctype_utils/gen.py
+1-2libc/utils/wctype_utils/conversion/hex_writer.py
+5-72 files

LLVM/project 29818a8libc/utils/wctype_utils gen.py

remove flag
DeltaFile
+1-1libc/utils/wctype_utils/gen.py
+1-11 files

LLVM/project cab93ddlibc/src/__support/wctype perfect_hash_map.h lower_to_upper.h, libc/utils/wctype_utils/conversion hex_writer.py

[libc][wctype] Add perfect hash map for conversion functions
DeltaFile
+876-0libc/src/__support/wctype/perfect_hash_map.h
+568-0libc/src/__support/wctype/lower_to_upper.h
+553-0libc/src/__support/wctype/upper_to_lower.h
+0-400libc/src/__support/wctype/lower_to_upper.inc
+0-390libc/src/__support/wctype/upper_to_lower.inc
+71-1libc/utils/wctype_utils/conversion/hex_writer.py
+2,068-7918 files not shown
+2,256-79714 files

LLVM/project 257ad36libc/src/__support/CPP bit.h

[libc][math] Qualify ceil functions to constexpr
DeltaFile
+1-1libc/src/__support/CPP/bit.h
+1-11 files

LLVM/project 755ab65libc/src/__support/math log.h

[libc][math] Qualify log with constant evaluation support
DeltaFile
+2-1libc/src/__support/math/log.h
+2-11 files

LLVM/project f29df13libc/src/__support/math ceill.h, libc/test/shared shared_math_test.cpp

link issue
DeltaFile
+2-13libc/src/__support/math/ceill.h
+3-5libc/test/shared/shared_math_test.cpp
+5-182 files

LLVM/project 729ef09libc/src/__support/CPP bit.h

reapply static
DeltaFile
+1-1libc/src/__support/CPP/bit.h
+1-11 files

LLVM/project 7afc021libc/src/__support/FPUtil bfloat16.h NearestIntegerOperations.h, libc/src/__support/FPUtil/generic add_sub.h

[libc][math] Qualify ceil functions to constexpr
DeltaFile
+59-5libc/test/shared/shared_math_test.cpp
+13-13libc/src/__support/FPUtil/generic/add_sub.h
+11-11libc/src/__support/FPUtil/bfloat16.h
+8-8libc/src/__support/FPUtil/NearestIntegerOperations.h
+7-7libc/src/__support/FPUtil/comparison_operations.h
+13-1libc/src/__support/math/ceill.h
+111-459 files not shown
+141-7015 files

LLVM/project d780d16libc/src/__support/math log.h

remove unnecessary check
DeltaFile
+1-2libc/src/__support/math/log.h
+1-21 files

LLVM/project 0248882libc/src/__support/math log.h

revert to ifdef
DeltaFile
+1-1libc/src/__support/math/log.h
+1-11 files

LLVM/project ca9e20clibc/src/__support/math log.h

[libc][math] Qualify log with constant evaluation support
DeltaFile
+2-1libc/src/__support/math/log.h
+2-11 files

LLVM/project eea589flibc/src/__support/FPUtil PolyEval.h, libc/src/__support/macros attributes.h config.h

[libc][math] Qualify log with constant evaluation support (#184745)

Lay the ground for C++26 `constexpr` math functions:
- Introduce `LIBC_ENABLE_CONSTEXPR` macro switch to specify the desire
of `constexpr`-only code route.
- Introduce `LIBC_HAS_CONSTANT_EVALUATION` to indicate that we are using
`constexpr`-only code in all dependent functions.
- Introduce `LIBC_CONSTEXPR` macro qualifier to aid in altering the
signature of non-`constexpr` functions.

Note that non-`constexpr` qualified functions are caused by the
exploitation of non-`constexpr` compatible utils, resulting in
non-qualified dependent function, but it can be modified to be qualified
using other code routes.

If the function is `constexpr` compatible, then it's prohibited to use
`LIBC_CONSTEXPR` as a function qualifier. We only qualify it with
`constexpr` as usual.


    [12 lines not shown]
DeltaFile
+16-1libc/test/shared/shared_math_test.cpp
+15-0libc/src/__support/macros/attributes.h
+10-0libc/src/__support/macros/config.h
+4-4libc/src/__support/FPUtil/PolyEval.h
+3-4libc/src/__support/math/log.h
+2-2libc/src/__support/math/log_range_reduction.h
+50-112 files not shown
+56-138 files

LLVM/project c266670llvm/test/MachineVerifier/AMDGPU invalid-vop3-source-modifiers.mir

[NFC][AMDGPU] Set output to null for llvm/test/MachineVerifier/AMDGPU/invalid-vop3-source-modifiers.mir
DeltaFile
+1-1llvm/test/MachineVerifier/AMDGPU/invalid-vop3-source-modifiers.mir
+1-11 files

LLVM/project c672819. benchmark_build.sh

normalize script
DeltaFile
+10-81benchmark_build.sh
+10-811 files

LLVM/project 1f1d316clang/lib/Format UnwrappedLineParser.cpp, clang/unittests/Format TokenAnnotatorTest.cpp

[clang-format] Correctly annotate Java lambda/sychronized blocks (#187842)

Fixes #171841
DeltaFile
+12-0clang/unittests/Format/TokenAnnotatorTest.cpp
+2-0clang/lib/Format/UnwrappedLineParser.cpp
+14-02 files

LLVM/project adcb17bclang/lib/CodeGen CGHLSLBuiltins.cpp

[Clang][HLSL] Fix -Wunused-variable

Inline the definition of a variable into an assertion given it has no
other users and no side effects.
DeltaFile
+2-2clang/lib/CodeGen/CGHLSLBuiltins.cpp
+2-21 files

LLVM/project 2be28d6llvm/utils/gn/secondary/lldb/source/Core BUILD.gn

[gn] "port" 0ec9f7ebbdf72a94

Just use an empty list always.
DeltaFile
+8-0llvm/utils/gn/secondary/lldb/source/Core/BUILD.gn
+8-01 files