LLVM/project 337c6f9libclc/clc/lib/generic/workitem clc_get_global_linear_id.cl

Use __clc_get_enqueued_local_size
DeltaFile
+2-2libclc/clc/lib/generic/workitem/clc_get_global_linear_id.cl
+2-21 files

LLVM/project 861b9calibcxx/include variant, libcxx/test/std/utilities/variant/variant.relops relops.pass.cpp

[libc++] Fix std::variant comparators not working on recursive instantiations (#182238)

We currently have an instantiation cycle in `variant`'s comparison
operators. This patch fixes that by replacing a `decltype(auto)` with an
explicit return type, removing the requirement to instantiate the
function in order to know the return type.

Fixes #182232
DeltaFile
+66-0libcxx/test/std/utilities/variant/variant.relops/relops.pass.cpp
+2-1libcxx/include/variant
+68-12 files

LLVM/project 13e75delibclc/opencl/lib/amdgcn-amdhsa/workitem get_local_size.cl get_global_size.cl, libclc/opencl/lib/amdgcn/workitem get_local_size.cl get_global_size.cl

libclc: Avoid duplicated get_local_size/get_global_size functions

Move opencl handling on top of clc into opencl generic, delete
amdgpu implementations in opencl.
DeltaFile
+0-26libclc/opencl/lib/amdgcn-amdhsa/workitem/get_local_size.cl
+0-22libclc/opencl/lib/amdgcn/workitem/get_local_size.cl
+0-20libclc/opencl/lib/amdgcn-amdhsa/workitem/get_global_size.cl
+0-13libclc/opencl/lib/ptx-nvidiacl/workitem/get_local_size.cl
+13-0libclc/opencl/lib/generic/workitem/get_local_size.cl
+0-13libclc/opencl/lib/amdgcn/workitem/get_global_size.cl
+13-944 files not shown
+14-9910 files

LLVM/project 4d08284llvm CMakeLists.txt

[CMake][LLVM] Align CMAKE_EXPORT_COMPILE_COMMANDS from 1 to ON (#184971)

ON/OFF are more conventional in the project for boolean CMake variables.
DeltaFile
+1-1llvm/CMakeLists.txt
+1-11 files

LLVM/project f4825c4libunwind/src libunwind.cpp, libunwind/test cfi_violating_handler.pass.cpp

[libunwind][PAC] Defang ptrauth's PC in valid CFI range abort

It turns out making the CFI check a release mode abort causes many,
if not the majority, of JITs to fail during unwinding as they do not
set up CFI sections for their generated code. As a result any JITs
that do nominally support unwinding (and catching) through their JIT
or assembly frames trip this abort.

rdar://170862047
DeltaFile
+44-0libunwind/test/cfi_violating_handler.pass.cpp
+11-17libunwind/src/libunwind.cpp
+55-172 files

LLVM/project e830ee8libcxx/docs/ReleaseNotes 23.rst, libcxx/include optional string

[libc++] Don't double-wrap iterators when bounded iterators are used (#182264)

There is no reason to double-wrap iterators, since we can already
achieve anything we want within `__bounded_iter`itself.

This is technically ABI breaking, but people using bounded iterators
shouldn't require ABI stability currently.

Fixes #178521
DeltaFile
+6-16libcxx/include/optional
+4-10libcxx/include/string
+4-10libcxx/include/__vector/vector.h
+5-5libcxx/test/libcxx/iterators/contiguous_iterators.verify.cpp
+4-0libcxx/docs/ReleaseNotes/23.rst
+0-3libcxx/include/__iterator/bounded_iter.h
+23-446 files

LLVM/project cf4d306clang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Dialect/Transforms CIRCanonicalize.cpp

[CIR] Add Commutative/Idempotent traits to binary ops

Add missing MLIR traits to CIR binary operations, matching the arith
dialect conventions:

- AndOp, OrOp: Commutative, Idempotent (fixes FIXME)
- AddOp, MulOp, XorOp, MaxOp: Commutative

Add these ops to the CIRCanonicalize pass op list so trait-based
folding is exercised by applyOpPatternsGreedily.

Update testFloatingPointBinOps in binop.cpp to use computed values,
preventing DCE of the now-canonicalized ops.
DeltaFile
+65-0clang/test/CIR/Transforms/binop-traits.cir
+28-18clang/test/CIR/CodeGen/binop.cpp
+12-8clang/include/clang/CIR/Dialect/IR/CIROps.td
+6-5clang/lib/CIR/Dialect/Transforms/CIRCanonicalize.cpp
+111-314 files

LLVM/project d6b33bdcompiler-rt/cmake config-ix.cmake

[ubsan_minimal] Build on Solaris (#184976)

Two tests currently `FAIL` on Solaris/amd64 and Solaris/sparcv9:

```
  SafeStack-Standalone-i386 :: overflow.c
  SafeStack-Standalone-x86_64 :: overflow.c
```

This happens because `libclang_rt.ubsan_minimal.a` isn't built on
Solaris although it's required with `-fsanitize-minimal-runtime`.

This patch fixes this.

Tested on `amd64-pc-solaris2.11` and `sparcv9-sun-solaris2.11`.
DeltaFile
+1-1compiler-rt/cmake/config-ix.cmake
+1-11 files

LLVM/project 71f5e43clang/lib/CIR/CodeGen CIRGenExprScalar.cpp CIRGenExprComplex.cpp

[CIR] Fix operator-precedence bugs in assert conditions (#185119)

Due to && binding tighter than ||, asserts of the form
assert(A || B && "msg") always pass when A is true. Add
parentheses so the string message is properly attached:
assert((A || B) && "msg").
DeltaFile
+8-7clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
+4-5clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp
+12-122 files

LLVM/project 13cb586libclc/clc/lib/amdgcn SOURCES, libclc/clc/lib/amdgcn/workitem clc_get_num_groups.cl

libclc: Reimplement amdhsa get_num_groups (#185006)

Assume v5 ABI, and move handling into clc.
DeltaFile
+0-22libclc/opencl/lib/amdgcn/workitem/get_num_groups.cl
+20-0libclc/clc/lib/amdgcn/workitem/clc_get_num_groups.cl
+0-19libclc/opencl/lib/amdgcn-amdhsa/workitem/get_num_groups.cl
+13-0libclc/opencl/lib/generic/workitem/get_num_groups.cl
+0-13libclc/opencl/lib/ptx-nvidiacl/workitem/get_num_groups.cl
+1-0libclc/clc/lib/amdgcn/SOURCES
+34-544 files not shown
+35-5710 files

LLVM/project 08f3edaclang/include/clang/CIR/Dialect/IR CIROps.td, clang/test/CIR/Transforms pure-ptr-arithmetic.cir

[CIR] Fix spurious MemRead on pure pointer-arithmetic ops

Remove incorrect [MemRead] annotations from ops that only perform
pointer arithmetic without loading memory. Add Pure trait to ops
that were missing it.

Affected ops:
- VTableGetVPtrOp, VTableGetVirtualFnAddrOp, VTableGetTypeInfoOp:
  remove [MemRead] (already had Pure)
- GetMemberOp, GetRuntimeMemberOp, BaseClassAddrOp, DerivedClassAddrOp:
  remove [MemRead] and add Pure
DeltaFile
+65-0clang/test/CIR/Transforms/pure-ptr-arithmetic.cir
+12-13clang/include/clang/CIR/Dialect/IR/CIROps.td
+77-132 files

LLVM/project 5948beeclang/include/clang/DependencyScanning DependencyScanningWorker.h DependencyScannerImpl.h, clang/include/clang/Tooling DependencyScanningTool.h

Revert "[clang][Dependency Scanning] Fix the In-Memory Buffer Used for By-Name Scanning" (#185150)

Reverts llvm/llvm-project#183396 due to buildbot breakage (e.g.,
https://lab.llvm.org/buildbot/#/builders/55/builds/25102; reported
earlier in
https://github.com/llvm/llvm-project/pull/183396#issuecomment-4015167408)

(Specifically, ASan is allergic to:
```
static const std::string
    FakeInput(" ",
              clang::tooling::CompilerInstanceWithContext::MaxNumOfQueries);
```)
DeltaFile
+2-64clang/lib/Tooling/DependencyScanningTool.cpp
+55-0clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+14-0clang/include/clang/DependencyScanning/DependencyScanningWorker.h
+0-10clang/include/clang/Tooling/DependencyScanningTool.h
+3-3clang/test/ClangScanDeps/modules-full-by-mult-mod-names-diagnostics.c
+1-0clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+75-776 files

LLVM/project 40713f2llvm/include/llvm/ExecutionEngine/Orc WaitingOnGraph.h

[ORC] Refactor WaitingOnGraph::processExternalDeps. NFCI. (#185152)

Refactor WaitingOnGraph::processExternalDeps to use the recently
introduced ContainerElementsMap::visit and ElementSet::remove_if
methods.
DeltaFile
+10-24llvm/include/llvm/ExecutionEngine/Orc/WaitingOnGraph.h
+10-241 files

LLVM/project babead2llvm/lib/Target/RISCV RISCVMacroFusion.td, llvm/test/CodeGen/RISCV features-info.ll macro-fusion-lui-addi.ll

[NFC] Move fusion- to start of Fusion Feature Name (#185146)

This makes it a lot easier to see all the available fusions, because
they appear together in the list.
DeltaFile
+18-18llvm/lib/Target/RISCV/RISCVMacroFusion.td
+13-13llvm/test/CodeGen/RISCV/features-info.ll
+9-9llvm/test/TableGen/MacroFusion.td
+5-5llvm/test/CodeGen/RISCV/macro-fusion-lui-addi.ll
+4-4llvm/test/CodeGen/RISCV/macro-fusions.mir
+2-2llvm/test/CodeGen/RISCV/machinelicm-address-pseudos.ll
+51-511 files not shown
+52-527 files

LLVM/project 5bcf1dfclang/test/CIR/CodeGenOpenACC private-clause-pointer-array-recipes-CtorDtor.cpp combined-reduction-clause-default-ops.cpp, clang/test/CIR/IR cmp.cir

[CIR] Change CmpOp assembly format to use bare keyword style

Update the assembly format of cir.cmp from the parenthesized style
  cir.cmp(gt, %a, %b) : !s32i, !cir.bool
to the bare keyword style used by other CIR ops like cir.cast:
  cir.cmp gt %a, %b : !s32i

The result type (!cir.bool) is now automatically inferred as it is
always cir::BoolType.
DeltaFile
+64-64clang/test/CIR/CodeGenOpenACC/private-clause-pointer-array-recipes-CtorDtor.cpp
+60-60clang/test/CIR/IR/cmp.cir
+57-57clang/test/CIR/CodeGenOpenACC/combined-reduction-clause-default-ops.cpp
+57-57clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-default-ops.c
+57-57clang/test/CIR/CodeGenOpenACC/loop-reduction-clause-default-ops.cpp
+57-57clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-default-ops.cpp
+352-35281 files not shown
+1,320-1,29387 files

LLVM/project 71ea3d9clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.h

[CIR] Fix convertSideEffectForCall header/definition signature mismatch (#185118)

Add missing bool &noReturn parameter to the declaration in
LowerToLLVM.h to match the definition in LowerToLLVM.cpp.
DeltaFile
+1-1clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.h
+1-11 files

LLVM/project 9d3f25cclang/lib/CIR/Dialect/IR CIRDialect.cpp

[CIR] Fix GlobalOp::getSuccessorRegions using wrong region for dtor (#185115)
DeltaFile
+1-1clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+1-11 files

LLVM/project 3d7b22emlir/test/mlir-reduce reduction-tree.mlir multiple-function.mlir

[mlir][reducer] Refactor reduction-tree test (#184974)

Consolidate reduction-tree pass tests into a single file using
mlir-reduce's -split-input-file feature. See
https://github.com/llvm/llvm-project/pull/184970.
DeltaFile
+60-0mlir/test/mlir-reduce/reduction-tree.mlir
+0-39mlir/test/mlir-reduce/multiple-function.mlir
+0-20mlir/test/mlir-reduce/crashop-reduction.mlir
+60-593 files

LLVM/project 937d08cclang/include/clang/DependencyScanning DependencyScanningWorker.h DependencyScannerImpl.h, clang/include/clang/Tooling DependencyScanningTool.h

Revert "[clang][Dependency Scanning] Fix the In-Memory Buffer Used for By-Nam…"

This reverts commit 868147026258b982a8089701dfae531f9ebbd464.
DeltaFile
+2-64clang/lib/Tooling/DependencyScanningTool.cpp
+55-0clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+14-0clang/include/clang/DependencyScanning/DependencyScanningWorker.h
+0-10clang/include/clang/Tooling/DependencyScanningTool.h
+3-3clang/test/ClangScanDeps/modules-full-by-mult-mod-names-diagnostics.c
+1-0clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+75-776 files

LLVM/project 80c7133clang-tools-extra/clang-doc Serialize.cpp Serialize.h, clang-tools-extra/clang-doc/benchmarks ClangDocBenchmark.cpp

[clang-doc] Introduce Serializer class (#184873)

Serialization has mostly been done with static functions, but soon we
will need to share state, like alocator references. To avoid blowing up
our parameter lists, we can just wrap the local functions within a
class.
DeltaFile
+93-110clang-tools-extra/clang-doc/Serialize.cpp
+141-39clang-tools-extra/clang-doc/Serialize.h
+2-1clang-tools-extra/clang-doc/Mapper.cpp
+2-1clang-tools-extra/clang-doc/benchmarks/ClangDocBenchmark.cpp
+2-1clang-tools-extra/unittests/clang-doc/SerializeTest.cpp
+240-1525 files

LLVM/project ca1eefdclang-tools-extra/clang-tidy/readability InconsistentIfElseBracesCheck.cpp BracesAroundStatementsCheck.cpp, clang-tools-extra/clang-tidy/utils BracesAroundStatement.cpp

[clang-tidy] Correctly handle attributes in readability-inconsistent-ifelse-braces (#184095)

Improved the check to correctly handle `[[likely]]` and `[[unlikely]]`
attributes placed between the if/else keyword and the opening brace.

As of AI Usage: Gemini 3 is used for pre-commit reviewing.
Closes https://github.com/llvm/llvm-project/issues/184081
DeltaFile
+50-4clang-tools-extra/test/clang-tidy/checkers/readability/inconsistent-ifelse-braces-attributes.cpp
+14-5clang-tools-extra/clang-tidy/readability/InconsistentIfElseBracesCheck.cpp
+15-3clang-tools-extra/clang-tidy/utils/BracesAroundStatement.cpp
+1-1clang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
+80-134 files

LLVM/project 7473e26clang-tools-extra/clang-doc Serialize.cpp Serialize.h, clang-tools-extra/clang-doc/benchmarks ClangDocBenchmark.cpp

[clang-doc] Introduce Serializer class

Serialization has mostly been done with static functions, but soon we
will need to share state, like alocator references. To avoid blowing up
our parameter lists, we can just wrap the local functions within a
class.
DeltaFile
+93-110clang-tools-extra/clang-doc/Serialize.cpp
+141-39clang-tools-extra/clang-doc/Serialize.h
+2-1clang-tools-extra/unittests/clang-doc/SerializeTest.cpp
+2-1clang-tools-extra/clang-doc/benchmarks/ClangDocBenchmark.cpp
+2-1clang-tools-extra/clang-doc/Mapper.cpp
+240-1525 files

LLVM/project 6990276clang-tools-extra/clang-doc Serialize.cpp Representation.h, clang-tools-extra/unittests/clang-doc BitcodeTest.cpp YAMLGeneratorTest.cpp

[clang-doc] Introduce abstractions for pointer operations (#184872)

Since we're migrating from std::unique_ptr to raw pointers via
arena allocation, we want to have some interfaces that abstract
these operations away, and can be changed to keep the system
working without introducing a lot of unnecessary churn in the code.
DeltaFile
+30-35clang-tools-extra/unittests/clang-doc/BitcodeTest.cpp
+28-33clang-tools-extra/unittests/clang-doc/YAMLGeneratorTest.cpp
+26-31clang-tools-extra/unittests/clang-doc/MDGeneratorTest.cpp
+18-18clang-tools-extra/unittests/clang-doc/MergeTest.cpp
+12-12clang-tools-extra/clang-doc/Serialize.cpp
+11-0clang-tools-extra/clang-doc/Representation.h
+125-1298 files not shown
+144-14814 files

LLVM/project 1a940afclang-tools-extra/unittests/clang-doc BitcodeTest.cpp YAMLGeneratorTest.cpp

Add missing instances of allocatePtr
DeltaFile
+30-30clang-tools-extra/unittests/clang-doc/BitcodeTest.cpp
+28-28clang-tools-extra/unittests/clang-doc/YAMLGeneratorTest.cpp
+26-26clang-tools-extra/unittests/clang-doc/MDGeneratorTest.cpp
+18-18clang-tools-extra/unittests/clang-doc/MergeTest.cpp
+2-2clang-tools-extra/unittests/clang-doc/SerializeTest.cpp
+104-1045 files

LLVM/project b5ae122clang-tools-extra/clang-doc Serialize.cpp Representation.h, clang-tools-extra/clang-doc/benchmarks ClangDocBenchmark.cpp

[clang-doc] Introduce abstractions for pointer operations

Since we're migrating from std::unique_ptr to raw pointers via
arena allocation, we want to have some interfaces that abstract
these operations away, and can be changed to keep the system working
without introducing a lot of unnecessary chrun in the code.
DeltaFile
+12-12clang-tools-extra/clang-doc/Serialize.cpp
+11-0clang-tools-extra/clang-doc/Representation.h
+4-4clang-tools-extra/clang-doc/BitcodeReader.cpp
+4-4clang-tools-extra/clang-doc/benchmarks/ClangDocBenchmark.cpp
+3-3clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
+3-3clang-tools-extra/clang-doc/Representation.cpp
+37-263 files not shown
+40-299 files

LLVM/project 688344aclang-tools-extra/unittests/clang-doc BitcodeTest.cpp MDGeneratorTest.cpp

Format
DeltaFile
+5-10clang-tools-extra/unittests/clang-doc/BitcodeTest.cpp
+5-10clang-tools-extra/unittests/clang-doc/MDGeneratorTest.cpp
+5-10clang-tools-extra/unittests/clang-doc/YAMLGeneratorTest.cpp
+15-303 files

LLVM/project 5b3ea56clang-tools-extra/clang-doc Serialize.cpp Serialize.h

Add missing method
DeltaFile
+2-3clang-tools-extra/clang-doc/Serialize.cpp
+1-1clang-tools-extra/clang-doc/Serialize.h
+3-42 files

LLVM/project e84588fclang-tools-extra/clang-doc Serialize.cpp Serialize.h, clang-tools-extra/clang-doc/benchmarks ClangDocBenchmark.cpp

[clang-doc] Introduce Serializer class

Serialization has mostly been done with static functions, but soon we
will need to share state, like alocator references. To avoid blowing up
our parameter lists, we can just wrap the local functions within a
class.
DeltaFile
+104-107clang-tools-extra/clang-doc/Serialize.cpp
+141-39clang-tools-extra/clang-doc/Serialize.h
+2-1clang-tools-extra/clang-doc/benchmarks/ClangDocBenchmark.cpp
+2-1clang-tools-extra/clang-doc/Mapper.cpp
+2-1clang-tools-extra/unittests/clang-doc/SerializeTest.cpp
+251-1495 files

LLVM/project 263e3a3clang-tools-extra/clang-doc Representation.h BitcodeReader.cpp, clang-tools-extra/clang-doc/tool ClangDocMain.cpp

[clang-doc] Introduce type alias for OwningPtrVec/Array (#184871)

We commonly have vectors/arrays of owned pointers. This should simplify
future refactoring when switching to arena allocation.
DeltaFile
+9-16clang-tools-extra/unittests/clang-doc/BitcodeTest.cpp
+10-2clang-tools-extra/clang-doc/Representation.h
+4-4clang-tools-extra/unittests/clang-doc/MergeTest.cpp
+2-3clang-tools-extra/clang-doc/BitcodeReader.cpp
+2-3clang-tools-extra/clang-doc/Representation.cpp
+1-1clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
+28-293 files not shown
+31-329 files

LLVM/project a14a104llvm/include/llvm/ExecutionEngine/Orc WaitingOnGraph.h

[ORC] Add WaitingOnGraph::visitWithRemoval, refactor some loops. (#185001)

visitWithRemoval visits the elements of a vector performing a
swap-and-pop to remove any for which the visitor returns true.

Use this to refactor some loops in WaitingOnGraph that used this idiom.
DeltaFile
+54-68llvm/include/llvm/ExecutionEngine/Orc/WaitingOnGraph.h
+54-681 files