LLVM/project 956d713llvm/include/llvm/Testing/Demangle DemangleTestCases.inc, llvm/lib/Analysis ConstantFolding.cpp

[RFC][NFCI][Constants] Add `Constant::isZeroValue`

The old `isZeroValue` was removed because it was functionally identical to
`Constant::isNullValue`. Currently, a "null value" in LLVM means a zero value.
We are moving toward changing the semantics of `ConstantPointerNull` to
represent a semantic null pointer instead of a zero-valued pointer. As a result,
the meaning of "null value" will also change in the future.

This PR series is the first step toward renaming the two widely used "null
value" interfaces to "zero value". As the first PR in the series, this change
adds a "new" `isZeroValue` alongside `isNullValue`, and makes `isNullValue` call
`isZeroValue` directly. Then, all uses of `isNullValue` in LLVM are replaced
with `isZeroValue`. Uses in other projects will be updated in separate PRs.

The plan is to eventually remove `isNullValue` after all uses have been
migrated.
DeltaFile
+15-15llvm/lib/Analysis/ConstantFolding.cpp
+14-14llvm/lib/IR/Constants.cpp
+11-11llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+11-11llvm/include/llvm/Testing/Demangle/DemangleTestCases.inc
+11-9llvm/lib/IR/ConstantFold.cpp
+9-9llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+71-69101 files not shown
+284-277107 files

LLVM/project c8b54a4clang/lib/CodeGen CGValue.h

[Codegen] Initialize RValue IsVolatile field in constructor (#195556)

Static analysis flagged that in some cases IsVolatile is left
uninitialzed. I adjusted the constructor to initialize IsVolatile.
DeltaFile
+1-1clang/lib/CodeGen/CGValue.h
+1-11 files

LLVM/project c3761b6clang/lib/AST TextNodeDumper.cpp, clang/test/AST ast-dump-linkage.cpp ast-dump-linkage-internal.cpp

[clang] Add formal linkage to textual AST dump (#194600)

This PR adds formal linkage (external, module, internal) to the textual
AST dumps. The motivation is to inform users (including ourselves) what
Clang thinks the linkage is, and to prevent situations where `extern` is
mistaken for an indication of external linkage (see #192116 for an
example).

The wording around linkage is known to be defective, but that's the best
we have: [[basic.link]](https://eel.is/c++draft/basic.link) paragraphs 3
through 7.

There are enough changes in this PR, so I decided to defer adding formal
linkage to JSON dumps to another PR.

(Open questions and suggestions for reviewers are in
https://github.com/llvm/llvm-project/pull/194600#issuecomment-4360515791)

---------

Co-authored-by: Matheus Izvekov <mizvekov at gmail.com>
DeltaFile
+485-0clang/test/AST/ast-dump-linkage.cpp
+477-0clang/test/AST/ast-dump-linkage-internal.cpp
+63-63clang/test/AST/ast-dump-decl.cpp
+54-0clang/lib/AST/TextNodeDumper.cpp
+16-16clang/test/CXX/class/class.mfct/p1-cxx20.cpp
+16-16clang/test/AST/ast-dump-templates-pattern.cpp
+1,111-9569 files not shown
+1,362-34575 files

LLVM/project 03d600eclang/test/Driver cspgo-lto.c

[NFC][Darwin] Use add -fuse-ld=ld for Darwin CSPGO use test (#195721)
DeltaFile
+4-4clang/test/Driver/cspgo-lto.c
+4-41 files

LLVM/project 9aec705utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[bazel][MLIR][NVVM] Port #195608: remove GPUToNVVM (#195731)

Port 2b8c1178ddc4e0e524c14ff4d7fb39a9e502fe9f
DeltaFile
+0-13utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+0-131 files

LLVM/project fe7a252compiler-rt/lib/asan asan_errors.cpp asan_poisoning.cpp, compiler-rt/test/asan/TestCases contiguous_container_crash.cpp

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+80-5compiler-rt/test/asan/TestCases/contiguous_container_crash.cpp
+15-20compiler-rt/lib/asan/asan_errors.cpp
+12-1compiler-rt/lib/asan/asan_poisoning.cpp
+1-1compiler-rt/lib/asan/asan_poisoning.h
+108-274 files

LLVM/project 89ba624compiler-rt/lib/asan asan_errors.cpp asan_poisoning.cpp, compiler-rt/lib/sanitizer_common sanitizer_symbolizer_report.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+80-5compiler-rt/test/asan/TestCases/contiguous_container_crash.cpp
+15-20compiler-rt/lib/asan/asan_errors.cpp
+12-1compiler-rt/lib/asan/asan_poisoning.cpp
+4-4compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp
+1-1compiler-rt/lib/asan/asan_poisoning.h
+1-1compiler-rt/lib/tsan/rtl/tsan_report.cpp
+113-326 files

LLVM/project 69ce00fcompiler-rt/lib/asan asan_errors.cpp asan_poisoning.cpp, compiler-rt/test/asan/TestCases contiguous_container_crash.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+80-5compiler-rt/test/asan/TestCases/contiguous_container_crash.cpp
+15-20compiler-rt/lib/asan/asan_errors.cpp
+12-1compiler-rt/lib/asan/asan_poisoning.cpp
+1-1compiler-rt/lib/asan/asan_poisoning.h
+108-274 files

LLVM/project 37f7421compiler-rt/lib/asan asan_errors.cpp asan_poisoning.cpp, compiler-rt/test/asan/TestCases contiguous_container_crash.cpp

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+80-5compiler-rt/test/asan/TestCases/contiguous_container_crash.cpp
+14-19compiler-rt/lib/asan/asan_errors.cpp
+12-1compiler-rt/lib/asan/asan_poisoning.cpp
+1-1compiler-rt/lib/asan/asan_poisoning.h
+107-264 files

LLVM/project 171d28fcompiler-rt/lib/asan asan_errors.cpp asan_poisoning.cpp, compiler-rt/test/asan/TestCases contiguous_container_crash.cpp

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+80-5compiler-rt/test/asan/TestCases/contiguous_container_crash.cpp
+8-17compiler-rt/lib/asan/asan_errors.cpp
+8-0compiler-rt/lib/asan/asan_poisoning.cpp
+96-223 files

LLVM/project 3a902edcompiler-rt/lib/asan asan_errors.cpp asan_poisoning.cpp, compiler-rt/test/asan/TestCases contiguous_container_crash.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+80-5compiler-rt/test/asan/TestCases/contiguous_container_crash.cpp
+14-19compiler-rt/lib/asan/asan_errors.cpp
+12-1compiler-rt/lib/asan/asan_poisoning.cpp
+1-1compiler-rt/lib/asan/asan_poisoning.h
+107-264 files

LLVM/project 458ec2aclang/test/CIR/IR invalid-construct-catch-param.cir, libc/test/src/__support/File file_test.cpp

rebase

Created using spr 1.3.7
DeltaFile
+474-486llvm/include/llvm/ADT/ArrayRef.h
+370-389llvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll
+160-172llvm/test/CodeGen/AMDGPU/GlobalISel/fshr.ll
+260-0libc/test/src/__support/File/file_test.cpp
+142-75llvm/test/CodeGen/AMDGPU/GlobalISel/urem.i64.ll
+211-0clang/test/CIR/IR/invalid-construct-catch-param.cir
+1,617-1,122140 files not shown
+4,491-2,014146 files

LLVM/project b1d2ac1clang/test/CIR/IR invalid-construct-catch-param.cir, libc/test/src/__support/File file_test.cpp

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+474-486llvm/include/llvm/ADT/ArrayRef.h
+370-389llvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll
+160-172llvm/test/CodeGen/AMDGPU/GlobalISel/fshr.ll
+260-0libc/test/src/__support/File/file_test.cpp
+142-75llvm/test/CodeGen/AMDGPU/GlobalISel/urem.i64.ll
+211-0clang/test/CIR/IR/invalid-construct-catch-param.cir
+1,617-1,122143 files not shown
+4,628-2,050149 files

LLVM/project d1b7493llvm/test/CodeGen/X86 vector-reduce-smin.ll vector-reduce-smax.ll

rebase

Created using spr 1.3.7
DeltaFile
+2,928-1,388llvm/test/CodeGen/X86/vector-reduce-smin.ll
+2,924-1,389llvm/test/CodeGen/X86/vector-reduce-smax.ll
+2,677-1,279llvm/test/CodeGen/X86/vector-reduce-umax.ll
+2,628-1,271llvm/test/CodeGen/X86/vector-reduce-umin.ll
+1,491-563llvm/test/CodeGen/X86/vector-reduce-or-cmp.ll
+1,334-623llvm/test/CodeGen/X86/vector-reduce-and-bool.ll
+13,982-6,513917 files not shown
+42,521-21,325923 files

LLVM/project 3f70454llvm/test/CodeGen/X86 vector-reduce-smin.ll vector-reduce-smax.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+2,928-1,388llvm/test/CodeGen/X86/vector-reduce-smin.ll
+2,924-1,389llvm/test/CodeGen/X86/vector-reduce-smax.ll
+2,677-1,279llvm/test/CodeGen/X86/vector-reduce-umax.ll
+2,628-1,271llvm/test/CodeGen/X86/vector-reduce-umin.ll
+1,491-563llvm/test/CodeGen/X86/vector-reduce-or-cmp.ll
+1,334-623llvm/test/CodeGen/X86/vector-reduce-and-bool.ll
+13,982-6,513917 files not shown
+42,521-21,325923 files

LLVM/project 6bafff3llvm/test/CodeGen/X86 vector-reduce-smin.ll vector-reduce-smax.ll

rebase

Created using spr 1.3.7
DeltaFile
+2,928-1,388llvm/test/CodeGen/X86/vector-reduce-smin.ll
+2,924-1,389llvm/test/CodeGen/X86/vector-reduce-smax.ll
+2,677-1,279llvm/test/CodeGen/X86/vector-reduce-umax.ll
+2,628-1,271llvm/test/CodeGen/X86/vector-reduce-umin.ll
+1,491-563llvm/test/CodeGen/X86/vector-reduce-or-cmp.ll
+1,334-623llvm/test/CodeGen/X86/vector-reduce-and-bool.ll
+13,982-6,513917 files not shown
+42,521-21,325923 files

LLVM/project 387f82ellvm/test/CodeGen/X86 vector-reduce-smin.ll vector-reduce-smax.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+2,928-1,388llvm/test/CodeGen/X86/vector-reduce-smin.ll
+2,924-1,389llvm/test/CodeGen/X86/vector-reduce-smax.ll
+2,677-1,279llvm/test/CodeGen/X86/vector-reduce-umax.ll
+2,628-1,271llvm/test/CodeGen/X86/vector-reduce-umin.ll
+1,491-563llvm/test/CodeGen/X86/vector-reduce-or-cmp.ll
+1,334-623llvm/test/CodeGen/X86/vector-reduce-and-bool.ll
+13,982-6,513917 files not shown
+42,521-21,325923 files

LLVM/project 16c1eefllvm/test/CodeGen/X86 vector-reduce-smin.ll vector-reduce-smax.ll

rebase

Created using spr 1.3.7
DeltaFile
+2,928-1,388llvm/test/CodeGen/X86/vector-reduce-smin.ll
+2,924-1,389llvm/test/CodeGen/X86/vector-reduce-smax.ll
+2,677-1,279llvm/test/CodeGen/X86/vector-reduce-umax.ll
+2,628-1,271llvm/test/CodeGen/X86/vector-reduce-umin.ll
+1,491-563llvm/test/CodeGen/X86/vector-reduce-or-cmp.ll
+1,334-623llvm/test/CodeGen/X86/vector-reduce-and-bool.ll
+13,982-6,513921 files not shown
+42,552-21,352927 files

LLVM/project b48f660llvm/test/CodeGen/X86 vector-reduce-smin.ll vector-reduce-smax.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+2,928-1,388llvm/test/CodeGen/X86/vector-reduce-smin.ll
+2,924-1,389llvm/test/CodeGen/X86/vector-reduce-smax.ll
+2,677-1,279llvm/test/CodeGen/X86/vector-reduce-umax.ll
+2,628-1,271llvm/test/CodeGen/X86/vector-reduce-umin.ll
+1,491-563llvm/test/CodeGen/X86/vector-reduce-or-cmp.ll
+1,334-623llvm/test/CodeGen/X86/vector-reduce-and-bool.ll
+13,982-6,513921 files not shown
+42,552-21,352927 files

LLVM/project 8593191mlir/lib/Dialect/XeGPU/IR XeGPUOps.cpp, mlir/lib/Dialect/XeGPU/Transforms XeGPUArrayLengthOptimization.cpp

[XeGPU][Transform] Add XeGPU array length optimization patterns. (#194062)

This PR adds array_length optimization patterns and a test pass. 
These patterns are used as part of the `XeGPUPeepHoleOptimizerPass`.

These patterns optimize `xegpu.create_nd_desc`, `xegpu.load_nd` and
`xegpu.prefetch_nd`
operations by introducing the array_length attribute when the FCD
(fastest changing
dimension) is larger than the subgroup size (i.e., 16).

The transformation updates:
1. `tensor_desc` type to use array_length and reduced FCD: `shape<32x32>
→ shape<32x16, array_length=2>`
2. `load_nd/prefetch_nd` result vector shape to match register layout:
`vector<32x32> → vector<64x16> (register layout)`
3. `vector.extract_strided_slice` operations to account for memory vs
   register layout difference


    [9 lines not shown]
DeltaFile
+290-0mlir/lib/Dialect/XeGPU/Transforms/XeGPUArrayLengthOptimization.cpp
+167-0mlir/test/Dialect/XeGPU/array-len-op-unit.mlir
+31-0mlir/test/lib/Dialect/XeGPU/TestXeGPUTransforms.cpp
+12-3mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
+7-7mlir/test/Dialect/XeGPU/subgroup-distribute-unit.mlir
+7-7mlir/test/Dialect/XeGPU/ops.mlir
+514-175 files not shown
+533-2111 files

LLVM/project 07afe7cclang/test/CIR/CodeGen devirtualize.cpp, clang/test/CIR/IR invalid-construct-catch-param.cir

rebase

Created using spr 1.3.7
DeltaFile
+260-0libc/test/src/__support/File/file_test.cpp
+211-0clang/test/CIR/IR/invalid-construct-catch-param.cir
+190-13libc/src/__support/File/file.cpp
+104-0clang/test/CIR/CodeGen/devirtualize.cpp
+0-102llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/RegionWithScore.h
+77-20llvm/unittests/SandboxIR/RegionTest.cpp
+842-135119 files not shown
+2,241-732125 files

LLVM/project ae9e4a5mlir/lib/Target/LLVM/XeVM Target.cpp

[MLIR][XeVM] Enable SPV_INTEL_bfloat16_arithmetic (#195727)

SPIR-V extension support for Intel GPU can be found here.

https://github.com/intel/intel-graphics-compiler/blob/master/documentation/igc/supported-spirv-extensions.md
DeltaFile
+6-0mlir/lib/Target/LLVM/XeVM/Target.cpp
+6-01 files

LLVM/project 5cb2f3c. pyproject.toml

List psutil as a dependency in pyproject.toml

Running tests in parallel with `lit` requires psutil, so add it to the dev
dependencies. While at it also set the required fields in the [project] to
make it easy to use `uv`.

Assisted-by: Gemini CLI

Pull Request: https://github.com/llvm/llvm-project/pull/194285
DeltaFile
+22-0pyproject.toml
+22-01 files

LLVM/project 6361ff3clang/include/clang/Basic DiagnosticLexKinds.td, clang/include/clang/Lex TextEncodingConfig.h

address comments
DeltaFile
+58-101clang/lib/Lex/LiteralSupport.cpp
+5-6clang/lib/Lex/TextEncodingConfig.cpp
+4-3clang/lib/Frontend/CompilerInstance.cpp
+2-4clang/include/clang/Basic/DiagnosticLexKinds.td
+2-2clang/lib/Driver/ToolChains/Clang.cpp
+2-2clang/include/clang/Lex/TextEncodingConfig.h
+73-1186 files not shown
+81-12412 files

LLVM/project 96f4b2bclang/include/clang/Lex TextEncodingConfig.h LiteralSupport.h, clang/lib/Driver/ToolChains Clang.cpp

address comments
DeltaFile
+6-6clang/lib/Driver/ToolChains/Clang.cpp
+6-4clang/lib/Lex/TextEncodingConfig.cpp
+3-3clang/include/clang/Lex/TextEncodingConfig.h
+3-3clang/lib/Lex/LiteralSupport.cpp
+2-1llvm/include/llvm/TargetParser/Triple.h
+1-0clang/include/clang/Lex/LiteralSupport.h
+21-176 files

LLVM/project c863f42clang/include/clang/Basic DiagnosticDriverKinds.td, clang/lib/Driver/ToolChains Clang.cpp

update diagnostic
DeltaFile
+1-2clang/include/clang/Basic/DiagnosticDriverKinds.td
+1-2clang/lib/Driver/ToolChains/Clang.cpp
+1-1clang/test/Driver/clang_f_opts.c
+1-1clang/test/Driver/cl-options.c
+4-64 files

LLVM/project 9717dc1clang/include/clang/Basic TokenKinds.h, clang/include/clang/Lex TextEncodingConfig.h

address comments
DeltaFile
+14-9clang/include/clang/Options/Options.td
+12-9clang/lib/Lex/LiteralSupport.cpp
+0-5clang/include/clang/Basic/TokenKinds.h
+1-2clang/include/clang/Lex/TextEncodingConfig.h
+1-2clang/lib/Lex/TextEncodingConfig.cpp
+1-1clang/lib/Frontend/CompilerInstance.cpp
+29-286 files

LLVM/project 0399cc1clang/include/clang/Basic TokenKinds.h, clang/lib/Lex TextEncodingConfig.cpp

translate typeinfo to default encoding, address other comments
DeltaFile
+4-4clang/lib/Lex/TextEncodingConfig.cpp
+0-7clang/include/clang/Basic/TokenKinds.h
+4-112 files

LLVM/project 429d6bfclang/lib/Driver/ToolChains Clang.cpp, clang/lib/Lex LiteralSupport.cpp

remove implementation details from driver, use const reference
DeltaFile
+6-10clang/lib/Driver/ToolChains/Clang.cpp
+11-2llvm/lib/Support/TextEncoding.cpp
+1-2llvm/include/llvm/Support/TextEncoding.h
+1-1llvm/include/llvm/TargetParser/Triple.h
+1-1clang/lib/Lex/LiteralSupport.cpp
+20-165 files

LLVM/project 25c6facclang/test/CodeGen systemz-charset.c

add test for cc1 error
DeltaFile
+4-0clang/test/CodeGen/systemz-charset.c
+4-01 files