LLVM/project dc3a902clang/bindings/python/clang cindex.py, clang/bindings/python/tests/cindex test_code_completion.py test_enums.py

Use existing AvailabilityKind enum for code completion availability (#160296)

This adresses point 4 from #156680. This is a necessary step before
`CompletionChunk.Kind` can be removed.

The `ChunkCompletion.Kind` implements `__str__` and `__repr__`
differently from our other enum classes. I have adapted the `__repr__`
of `CompletionString` to stringify the availability of the chunk
differently so that it still looks the same as before.

Also introduce a temporary `AvailabilityKindCompat` to ensure that
`__str__` returns the same format, while also leaving a deprecation
warning that this will be removed in a future release.

---------

Co-authored-by: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
DeltaFile
+46-17clang/bindings/python/clang/cindex.py
+39-2clang/bindings/python/tests/cindex/test_code_completion.py
+11-0clang/docs/ReleaseNotes.rst
+4-0clang/bindings/python/tests/cindex/test_enums.py
+100-194 files

LLVM/project 401cad6mlir/include/mlir/Analysis/DataFlow SparseAnalysis.h IntegerRangeAnalysis.h, mlir/lib/Analysis/DataFlow SparseAnalysis.cpp IntegerRangeAnalysis.cpp

[mlir][Analysis] Clean up `visitNonControlFlowArguments`
DeltaFile
+28-13mlir/include/mlir/Analysis/DataFlow/SparseAnalysis.h
+5-10mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp
+5-5mlir/lib/Analysis/DataFlow/IntegerRangeAnalysis.cpp
+3-5mlir/include/mlir/Analysis/DataFlow/IntegerRangeAnalysis.h
+41-334 files

LLVM/project b089261llvm/test/CodeGen/X86 clmul.ll

[X86] clmul.ll - remove unused SSE checks (#176568)

DeltaFile
+0-745llvm/test/CodeGen/X86/clmul.ll
+0-7451 files

LLVM/project 9696c8bllvm/lib/Transforms/InstCombine InstCombineCalls.cpp, llvm/test/Transforms/InstCombine pr176548.ll

[InstCombine] Bail out on intrinsics with struct return types (#176556)

After https://github.com/llvm/llvm-project/pull/174835, overflow
intrinsics can be vectorized. But `foldShuffledIntrinsicOperands`
doesn't support shuffling vectors inside the struct return value.

Closes https://github.com/llvm/llvm-project/issues/176548.
DeltaFile
+32-0llvm/test/Transforms/InstCombine/pr176548.ll
+2-1llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+34-12 files

LLVM/project 6b86e24llvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp, llvm/lib/Target/AMDGPU/Utils AMDGPUBaseInfo.cpp AMDGPUBaseInfo.h

[AMDGPU][SIInsertWaitcnt] Address review feedback for waitcnt profiling expansion (#175922)

DeltaFile
+38-52llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+2-2llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+1-2llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
+41-563 files

LLVM/project 0d481bfclang/include/clang/Analysis/Scalable/TUSummary ExtractorRegistry.h TUSummaryExtractor.h, clang/lib/Analysis/Scalable/TUSummary ExtractorRegistry.cpp

[clang][ssaf] Add the TUSummaryExtractorRegistry (#173290)

This patch adds the TUSummaryExtractorRegistry for plugging in custom
summary extractors.
This also adds a fake TUSummaryBuilder to observe the side effects of
inserting into the registry.
The original TUSummaryBuilder class will be used to create EntityIDs and
to map those to summary "facts" in the shape of "TUSummaryData" objects,
but that part is not yet upstreamed.
The important point is that TUSummaryBuilders have a use beyond just testing.

---------

Co-authored-by: Jan Korous <jkorous at apple.com>
DeltaFile
+99-0clang/unittests/Analysis/Scalable/Registries/SummaryExtractorRegistryTest.cpp
+48-0clang/include/clang/Analysis/Scalable/TUSummary/ExtractorRegistry.h
+44-0clang/unittests/Analysis/Scalable/Registries/MockSummaryExtractor2.cpp
+44-0clang/unittests/Analysis/Scalable/Registries/MockSummaryExtractor1.cpp
+32-0clang/lib/Analysis/Scalable/TUSummary/ExtractorRegistry.cpp
+28-0clang/include/clang/Analysis/Scalable/TUSummary/TUSummaryExtractor.h
+295-05 files not shown
+359-1211 files

LLVM/project d54f0a1clang/lib/Headers larchintrin.h

[clang][LoongArch] Guard FCSR intrinsics with __loongarch_hard_float

Link: https://gcc.gnu.org/pipermail/gcc-patches/2025-December/703313.html
DeltaFile
+2-0clang/lib/Headers/larchintrin.h
+2-01 files

LLVM/project 0a9d480clang/lib/Basic/Targets LoongArch.cpp, clang/lib/Driver/ToolChains Gnu.cpp

[clang][LoongArch] Add support for LoongArch32 (#172619)

This patch adds support for LoongArch32, as introduced in
la-toolchain-conventions v1.2.

Co-authored-by: Sun Haiyong <sunhaiyong at zdbr.net>
Link:
https://github.com/loongson/la-toolchain-conventions/releases/tag/releases%2Fv1.2
Link:
https://gcc.gnu.org/pipermail/gcc-patches/2025-December/703312.html
DeltaFile
+0-89clang/test/CodeGen/LoongArch/targetattr.c
+89-0clang/test/CodeGen/LoongArch/targetattr-la64.c
+26-0clang/test/CodeGen/LoongArch/targetattr-la32.c
+23-0clang/test/Driver/loongarch-march.c
+16-2clang/lib/Driver/ToolChains/Gnu.cpp
+16-2clang/lib/Basic/Targets/LoongArch.cpp
+170-9311 files not shown
+224-10617 files

LLVM/project bcc8484mlir/include/mlir/Dialect/OpenMP OpenMPClauses.td OpenMPOps.td, mlir/lib/Dialect/OpenMP/IR OpenMPDialect.cpp

remove custom parser/printer for dims
DeltaFile
+6-80mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+0-29mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+9-9mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+1-2mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+16-1204 files

LLVM/project 7cbd8d5llvm/tools/llvm-ir2vec/utils CMakeLists.txt

[NFC] Adding intrinsics_gen dependency to address emb_utils buildbot fixup (#176539)

Addressing build_bot failure
https://lab.llvm.org/buildbot/#/builders/10/builds/20789
DeltaFile
+3-0llvm/tools/llvm-ir2vec/utils/CMakeLists.txt
+3-01 files

LLVM/project e1fc5f1mlir/include/mlir/Dialect/OpenMP OpenMPClauses.td OpenMPOps.td, mlir/lib/Dialect/OpenMP/IR OpenMPDialect.cpp

remove custom parser printer for num_threads
DeltaFile
+4-78mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+0-29mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+18-1mlir/test/Dialect/OpenMP/invalid.mlir
+5-5mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+1-2mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+28-1155 files

LLVM/project a3fded9llvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp

Update llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Co-authored-by: Jay Foad <jay.foad at amd.com>
DeltaFile
+3-3llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+3-31 files

LLVM/project 25e8139llvm/test/CodeGen/AArch64 combine-sdiv.ll fsh.ll, llvm/test/CodeGen/AArch64/GlobalISel knownbits-copy-vector-crash.ll

[AArch64][GlobalISel] Generate WZR for constants < 32bits. (#176106)

I believe how this should work is that a GPR G_CONSTANT is legalized at
least in regbankselect, but this helps clean up some gisel
inefficiencies and prevent some regressions in #175810.
DeltaFile
+60-67llvm/test/CodeGen/AArch64/combine-sdiv.ll
+30-32llvm/test/CodeGen/AArch64/fsh.ll
+24-26llvm/test/CodeGen/AArch64/vec-combine-compare-to-bitmask.ll
+15-16llvm/test/CodeGen/AArch64/arm64-indexed-vector-ldst.ll
+14-15llvm/test/CodeGen/AArch64/GlobalISel/knownbits-copy-vector-crash.ll
+8-18llvm/test/CodeGen/AArch64/aarch64-addv.ll
+151-1747 files not shown
+176-21613 files

LLVM/project f24eafallvm/lib/CodeGen/GlobalISel IRTranslator.cpp

GlobalISel: Use LibcallLoweringInfo more in IRTranslator (#176412)

DeltaFile
+10-5llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+10-51 files

LLVM/project 92ca5e8llvm/tools/llvm-ir2vec llvm-ir2vec.cpp llvm-ir2vec.h, llvm/tools/llvm-ir2vec/utils utils.cpp utils.h

[NFC][IR2Vec][MIR2Vec] llvm-ir2vec refactor - move Tool class implementations into a separate utils file (#174133)

# Refactoring Tool class implementation into a separate utils file
- Addresses https://github.com/llvm/llvm-project/issues/141839

## Summary

This patch extracts the core functionality of llvm-ir2vec's Tool classes
into a separate emb-tool class files to enable code reuse and future
extensibility. This is the next step toward adding Python bindings
interfaces to IR2Vec/MIR2Vec.

## Motivation

Currently, all llvm-ir2vec functionality is contained together. This
makes it difficult to:
- Reuse the embedding generation logic in other contexts
- Create language bindings (Python, etc.)
- Build additional tools on top of IR2Vec/MIR2Vec

    [38 lines not shown]
DeltaFile
+420-0llvm/tools/llvm-ir2vec/utils/utils.cpp
+14-373llvm/tools/llvm-ir2vec/llvm-ir2vec.cpp
+201-0llvm/tools/llvm-ir2vec/utils/utils.h
+0-201llvm/tools/llvm-ir2vec/llvm-ir2vec.h
+11-2llvm/tools/llvm-ir2vec/CMakeLists.txt
+10-0llvm/tools/llvm-ir2vec/utils/CMakeLists.txt
+656-5766 files

LLVM/project 7cea2d5flang/lib/Lower/OpenMP OpenMP.cpp, mlir/include/mlir/Dialect/OpenMP OpenMPClauses.td

remove dims(N) syntax and just use list for dims vals
DeltaFile
+0-133mlir/test/Dialect/OpenMP/invalid.mlir
+14-42mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+22-26mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+18-8mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+6-9flang/lib/Lower/OpenMP/OpenMP.cpp
+11-4mlir/test/Dialect/OpenMP/ops.mlir
+71-2224 files not shown
+88-23210 files

LLVM/project 4c401b1flang/lib/Lower/OpenMP OpenMP.cpp

[Flang] Add missing threadLimitNumDims in TeamsOperands apply method
DeltaFile
+1-0flang/lib/Lower/OpenMP/OpenMP.cpp
+1-01 files

LLVM/project ebb7571mlir/lib/Target/LLVMIR/Dialect/OpenMP OpenMPToLLVMIRTranslation.cpp

fix comment
DeltaFile
+1-0mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+1-01 files

LLVM/project 014e0c3mlir/include/mlir/Dialect/OpenMP OpenMPClauses.td

comments fixes
DeltaFile
+1-1mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+1-11 files

LLVM/project 487fe37flang/lib/Lower/OpenMP OpenMP.cpp, flang/lib/Optimizer/OpenMP LowerWorkdistribute.cpp

Remove separate thread_limit argument from clause
DeltaFile
+19-35mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+14-14mlir/test/Dialect/OpenMP/invalid.mlir
+8-8mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+9-7flang/lib/Lower/OpenMP/OpenMP.cpp
+6-5mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+4-4flang/lib/Optimizer/OpenMP/LowerWorkdistribute.cpp
+60-732 files not shown
+63-758 files

LLVM/project fdff622mlir/include/mlir/Dialect/OpenMP OpenMPClauses.td

update thread_limit description
DeltaFile
+12-1mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+12-11 files

LLVM/project f83855fflang/lib/Optimizer/OpenMP LowerWorkdistribute.cpp, mlir/include/mlir/Dialect/OpenMP OpenMPClauses.td

[OpenMP][MLIR] Add thread_limit with dims modifier support
DeltaFile
+136-3mlir/test/Dialect/OpenMP/invalid.mlir
+68-1mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+28-1mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+10-6flang/lib/Optimizer/OpenMP/LowerWorkdistribute.cpp
+7-1mlir/test/Dialect/OpenMP/ops.mlir
+249-125 files

LLVM/project d5c8a0cmlir/lib/Dialect/OpenMP/IR OpenMPDialect.cpp, mlir/test/Dialect/OpenMP ops.mlir

Update num_teams to have just the list and no dims(N) syntax
DeltaFile
+2-2mlir/test/Dialect/OpenMP/ops.mlir
+1-1mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+3-32 files

LLVM/project 45e752emlir/include/mlir/Dialect/OpenMP OpenMPClauses.td OpenMPOps.td, mlir/lib/Dialect/OpenMP/IR OpenMPDialect.cpp

[OpenMP][MLIR] Add num_teams clause with dims modifier support
DeltaFile
+72-0mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+5-0mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+2-1mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+79-13 files

LLVM/project 8d9649aclang/test/CodeGenObjC lit.local.cfg

fix lit
DeltaFile
+5-2clang/test/CodeGenObjC/lit.local.cfg
+5-21 files

LLVM/project 76d3922flang/lib/Lower/OpenMP OpenMP.cpp, mlir/include/mlir/Dialect/OpenMP OpenMPClauses.td

Remove dims(N) syntax and use list of vals for num_threads
DeltaFile
+13-38mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+22-27mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+0-31mlir/test/Dialect/OpenMP/invalid.mlir
+11-15mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+6-8flang/lib/Lower/OpenMP/OpenMP.cpp
+9-2mlir/test/Dialect/OpenMP/ops.mlir
+61-1213 files not shown
+74-1249 files

LLVM/project e2b12cfflang/lib/Lower/OpenMP OpenMP.cpp

fix adding numThreadsNumDims to ParallelOperands apply method
DeltaFile
+1-0flang/lib/Lower/OpenMP/OpenMP.cpp
+1-01 files

LLVM/project cad7b45flang/lib/Lower/OpenMP OpenMP.cpp, mlir/include/mlir/Dialect/OpenMP OpenMPClauses.td

Use num_threads_dims_values only
DeltaFile
+26-36mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+9-7mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+7-8mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+8-7flang/lib/Lower/OpenMP/OpenMP.cpp
+6-6mlir/test/Dialect/OpenMP/invalid.mlir
+5-5mlir/test/Dialect/OpenMP/ops.mlir
+61-692 files not shown
+66-738 files

LLVM/project 207eca2mlir/include/mlir/Dialect/OpenMP OpenMPClauses.td, mlir/lib/Conversion/SCFToOpenMP SCFToOpenMP.cpp

few more fixes
DeltaFile
+21-23mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+14-19mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+5-5mlir/test/Dialect/OpenMP/invalid.mlir
+3-6mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+2-2mlir/lib/Conversion/SCFToOpenMP/SCFToOpenMP.cpp
+45-555 files

LLVM/project eb17b26mlir/lib/Target/LLVMIR/Dialect/OpenMP OpenMPToLLVMIRTranslation.cpp

Mark mlir->llvmir translation for num_threads with dims as NYI
DeltaFile
+14-1mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+14-11 files