LLVM/project b4084bdclang-tools-extra/docs ReleaseNotes.rst, clang-tools-extra/test/clang-tidy/checkers/misc const-correctness-pointer-as-pointers.cpp

[clang] Detect pointee mutations in placement new expressions (#187508)

Fixes #187012 which is a false positive on clang-tidy end.
DeltaFile
+10-0clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp
+8-0clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-pointer-as-pointers.cpp
+3-0clang-tools-extra/docs/ReleaseNotes.rst
+2-0clang/lib/Analysis/ExprMutationAnalyzer.cpp
+23-04 files

LLVM/project a0d5508llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 abdu.ll abdu-neg.ll

[X86] Prefer branchless code with sbb for abdu (#187783)

We can use the negate if carry trick for abdu, and it works on all legal for sbb
DeltaFile
+110-114llvm/test/CodeGen/X86/abdu.ll
+86-101llvm/test/CodeGen/X86/abdu-neg.ll
+49-55llvm/test/CodeGen/X86/midpoint-int.ll
+38-18llvm/lib/Target/X86/X86ISelLowering.cpp
+283-2884 files

LLVM/project 5324c23llvm/lib/DebugInfo/DWARF DWARFDebugLoc.cpp, llvm/unittests/Support FormatVariadicTest.cpp

[llvm][DebugInfo] Use formatv instead of format in DWARFDebugLoc (#186800)

This relates to #35980.
DeltaFile
+7-4llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
+3-0llvm/unittests/Support/FormatVariadicTest.cpp
+10-42 files

LLVM/project 5b71607mlir/include/mlir/Dialect/Linalg/TransformOps LinalgTransformOps.td, mlir/lib/Dialect/Linalg/TransformOps LinalgTransformOps.cpp

[mlir][linalg] Specialize transform op - emit category ops (#187506)

Adds optional attribute to allow specialization into category Linalg
ops.

The default behavior of the transform op remains unchanged.
DeltaFile
+37-0mlir/test/Dialect/Linalg/transform-op-specialize-matmul.mlir
+8-6mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
+3-1mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
+48-73 files

LLVM/project a547208clang-tools-extra/clang-tidy/readability RedundantParenthesesCheck.cpp, clang-tools-extra/test/clang-tidy/checkers/readability redundant-parentheses.cpp

[clang-tidy] False negatives readability-redundant-parantheses member of struct (#187054)

Fixes #186749
DeltaFile
+50-0clang-tools-extra/test/clang-tidy/checkers/readability/redundant-parentheses.cpp
+2-1clang-tools-extra/clang-tidy/readability/RedundantParenthesesCheck.cpp
+52-12 files

LLVM/project 24546d9clang/lib/CodeGen CGExprScalar.cpp

[clang][CodeGen] Use FieldDecl::getFieldIndex() in VisitOffsetOfExpr (#187826)

Use FieldDecl::getFieldIndex() instead of manually iterating over
fields.
DeltaFile
+4-12clang/lib/CodeGen/CGExprScalar.cpp
+4-121 files

LLVM/project 6f6adfborc-rt/include/orc-rt Session.h, orc-rt/unittests SessionTest.cpp

[orc-rt] Add Session::tryCreateService convenience function. (#187640)

Session::tryCreateService will try to create an instance of ServiceT by
forwarding the given arguments to the ServiceT::Create method, which
must return an Expected<std::unique_ptr<ServiceT>>.

This enables one-line construction and registration of Services with
fallible constructors (which are expected to be common).
DeltaFile
+27-0orc-rt/unittests/SessionTest.cpp
+14-0orc-rt/include/orc-rt/Session.h
+41-02 files

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