LLVM/project 2c13075mlir/lib/Analysis DataFlowFramework.cpp

[mlir][dataflow] Fix DataFlowFramework crash by add isBlockEnd logic in the ProgramPoint::print (#173471)

Running -test-dead-code-analysis -debug on the following IR will trigger
a data-flow analysis framework assert, you can see
https://github.com/llvm/llvm-project/blob/2d6b1b174194198498eb10ae811632b3dd945ecf/mlir/include/mlir/Analysis/DataFlowFramework.h#L110
Fix DataFlowFramework crash by add isBlockEnd logic in the
ProgramPoint::print.
```
func.func @trs(%idx1: index, %idx2: index, %s: f32) {
  scf.parallel (%i) = (%idx1) to (%idx2) step (%idx2) {
    %r = memref.alloca() : memref<10xf32>
    scf.forall (%e2) in (%idx2) {
      %a = memref.load %r[%idx2] : memref<10xf32>
    }
  }
  return
}
```
DeltaFile
+6-2mlir/lib/Analysis/DataFlowFramework.cpp
+6-21 files

LLVM/project 1f54d26mlir/docs Canonicalization.md

address comments: link to Linalg forms
DeltaFile
+5-4mlir/docs/Canonicalization.md
+5-41 files

LLVM/project b9ada74.github/workflows pr-code-lint.yml

[Github][CI] Trigger `code-lint` for clang-tidy documentations (#173700)

Previously we added `doc8` to `code-lint` workflow. However, PRs contain
only documentation changes won't trigger this workflow.

An example: https://github.com/llvm/llvm-project/pull/173699/checks
didn't trigger `code-lint`.

This commit fixes the issue.
DeltaFile
+1-0.github/workflows/pr-code-lint.yml
+1-01 files

LLVM/project 18fc1e5utils/bazel/llvm-project-overlay/mlir BUILD.bazel

Reflect rename in bazel file
DeltaFile
+2-1utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+2-11 files

LLVM/project 08debd7compiler-rt/cmake builtin-config-ix.cmake, compiler-rt/lib/builtins CMakeLists.txt

[compiler-rt][builtins] Add `-Wno-c2y-extensions`

Since #162662, `__COUNTER__` has caused warnings.
DeltaFile
+1-0compiler-rt/lib/builtins/CMakeLists.txt
+1-0compiler-rt/cmake/builtin-config-ix.cmake
+2-02 files

LLVM/project 6ccf976utils/bazel configure.bzl

[bazel] configure.bzl: Disable `Xtensa` (#173073) by default.

It hasn't been built by default in CMake side.
DeltaFile
+0-1utils/bazel/configure.bzl
+0-11 files

LLVM/project ba9d3c1llvm/lib/Transforms/Scalar DeadStoreElimination.cpp

formatting

Created using spr 1.3.7
DeltaFile
+6-3llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+6-31 files

LLVM/project 2c5c5fdllvm/docs LangRef.rst, llvm/include/llvm/IR Attributes.h

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+37-16llvm/lib/AsmParser/LLParser.cpp
+47-0llvm/include/llvm/IR/Attributes.h
+43-0llvm/test/Transforms/DeadStoreElimination/simple.ll
+35-0llvm/lib/IR/Attributes.cpp
+25-6llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+9-3llvm/docs/LangRef.rst
+196-2512 files not shown
+238-3418 files

LLVM/project c3f13e4llvm/docs LangRef.rst, llvm/include/llvm/IR Attributes.h

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

Created using spr 1.3.7

[skip ci]
DeltaFile
+37-16llvm/lib/AsmParser/LLParser.cpp
+47-0llvm/include/llvm/IR/Attributes.h
+35-0llvm/lib/IR/Attributes.cpp
+9-3llvm/docs/LangRef.rst
+7-0llvm/test/Bitcode/dead-on-return-upgrade.ll
+3-4llvm/lib/IR/Function.cpp
+138-2311 files not shown
+173-2917 files

LLVM/project 73d06d8mlir/cmake/modules AddMLIR.cmake, mlir/include/mlir/IR EnumAttr.td

[MLIR][TblGen] add AttrOrTypeCAPIGen
DeltaFile
+373-0mlir/tools/mlir-tblgen/AttrOrTypeCAPIGen.cpp
+44-0mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h
+3-39mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
+3-0mlir/cmake/modules/AddMLIR.cmake
+1-0mlir/tools/mlir-tblgen/CMakeLists.txt
+1-0mlir/include/mlir/IR/EnumAttr.td
+425-396 files

LLVM/project dfbd5a2llvm/lib/Support/rpmalloc rpmalloc.c, llvm/test/CodeGen/AArch64 atomic-ops-lse.ll

Rebase

Created using spr 1.3.7
DeltaFile
+17,522-20,773llvm/test/CodeGen/X86/wide-scalar-shift-by-byte-multiple-legalization.ll
+8,857-10,952llvm/test/CodeGen/AMDGPU/maximumnum.bf16.ll
+8,840-10,957llvm/test/CodeGen/AMDGPU/minimumnum.bf16.ll
+10,680-0llvm/test/tools/llvm-mca/AArch64/Olympus/sve-instructions.s
+7,585-2,403llvm/test/CodeGen/AArch64/atomic-ops-lse.ll
+4,040-3,996llvm/lib/Support/rpmalloc/rpmalloc.c
+57,524-49,0817,838 files not shown
+529,663-218,1337,844 files

LLVM/project 7b521damlir/cmake/modules AddMLIRPython.cmake, mlir/docs/Bindings Python.md

address comments
DeltaFile
+35-15mlir/cmake/modules/AddMLIRPython.cmake
+7-0mlir/docs/Bindings/Python.md
+1-1mlir/python/CMakeLists.txt
+43-163 files

LLVM/project de39707llvm/test/CodeGen/AArch64 atomic-ops-lse.ll, llvm/test/CodeGen/AMDGPU rsq.f64.ll insert_vector_dynelt.ll

Rebase

Created using spr 1.3.7
DeltaFile
+10,680-0llvm/test/tools/llvm-mca/AArch64/Olympus/sve-instructions.s
+7,585-2,403llvm/test/CodeGen/AArch64/atomic-ops-lse.ll
+4,532-3,195llvm/test/CodeGen/AMDGPU/rsq.f64.ll
+6,871-0llvm/test/CodeGen/RISCV/short-forward-branch-opt-load.ll
+6,837-0llvm/test/tools/llvm-mca/RISCV/Andes45/rvv-arithmetic.s
+5,963-0llvm/test/CodeGen/AMDGPU/insert_vector_dynelt.ll
+42,468-5,5983,613 files not shown
+250,551-61,3973,619 files

LLVM/project c9eb572llvm/lib/Analysis VectorUtils.cpp, llvm/lib/Transforms/Vectorize LoopVectorizationLegality.cpp VPlanRecipes.cpp

[LoopVectorize] Support vectorization of frexp intrinsic (#172957)

This patch enables the vectorization of the llvm.frexp intrinsic.
Following the suggestion in #112408, frexp is moved from
isTriviallyScalarizable to isTriviallyVectorizable.

Fixes #112408
DeltaFile
+72-1llvm/test/Transforms/LoopVectorize/multiple-result-intrinsics.ll
+19-16llvm/test/Transforms/LoopVectorize/struct-return.ll
+1-13llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+5-2llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+1-3llvm/lib/Analysis/VectorUtils.cpp
+98-355 files

LLVM/project f7f4335mlir/cmake/modules AddMLIRPython.cmake, mlir/python CMakeLists.txt

address comments
DeltaFile
+14-11mlir/cmake/modules/AddMLIRPython.cmake
+1-1mlir/python/CMakeLists.txt
+15-122 files

LLVM/project 60e5b86llvm/lib/Transforms/Vectorize VPlanUtils.cpp

[VPlan] Support extends and truncs in getSCEVExprForVPValue. (NFCI)

Handle extends and truncates in getSCEVExprForVPValue. This enables
computing SCEVs in more cases in the VPlan-based cost-model, but should
compute the matching costs in all cases.
DeltaFile
+22-0llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
+22-01 files

LLVM/project 2dc0c1cmlir/cmake/modules AddMLIRPython.cmake

parameteriez add_mlir_python_modules
DeltaFile
+19-12mlir/cmake/modules/AddMLIRPython.cmake
+19-121 files

LLVM/project 1b4de1fmlir/cmake/modules AddMLIRPython.cmake

fix empty _mlir_python_support_libs
DeltaFile
+1-1mlir/cmake/modules/AddMLIRPython.cmake
+1-11 files

LLVM/project 295a01fllvm/include/llvm/Analysis MemoryProfileInfo.h, llvm/lib/Analysis MemoryProfileInfo.cpp

[MemProf] Fix reporting with -memprof-matching-cold-threshold (#173327)

With the -memprof-matching-cold-threshold option, we hint as cold
allocations where the fraction of cold bytes is at least the given
threshold. However, we were incorrectly reporting all of the
allocation's contexts and bytes as hinted cold.

Fix this to report the non-cold contexts as ignored. To do this,
refactor out some existing reporting, and also keep track of the
original allocation type for each context in the Trie along with its
ContextTotalSize information. Most of the changes are the change to this
array's type and name.
DeltaFile
+43-20llvm/lib/Analysis/MemoryProfileInfo.cpp
+17-6llvm/include/llvm/Analysis/MemoryProfileInfo.h
+2-2llvm/test/Transforms/PGOProfile/memprof.ll
+62-283 files

LLVM/project 42ea774llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer crash_exceed_scheduling.ll extract-many-users-buildvector.ll

[SLP]Enable float point math ops as copyables elements.

Patch enables support for float point math operations as base
instructions for copyable elements. It also fixes some scheduling
issues, found during testing

Reviewers: hiraditya, RKSimon

Pull Request: https://github.com/llvm/llvm-project/pull/169857

Recommit after reverts in 9008922707915a6632fb74ed301bce11d8775e2a and
c2441689830fcb2588673dedba98da1219a2fb9e.
c2441689830fcb2588673dedba98da1219a2fb9e was caused by other issues, not
related to this patch directly
DeltaFile
+92-46llvm/test/Transforms/SLPVectorizer/crash_exceed_scheduling.ll
+26-102llvm/test/Transforms/SLPVectorizer/X86/vect_copyable_in_binops.ll
+67-23llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+34-38llvm/test/Transforms/SLPVectorizer/extract-many-users-buildvector.ll
+18-26llvm/test/Transforms/SLPVectorizer/X86/user-with-multi-copyable-ops.ll
+20-20llvm/test/Transforms/SLPVectorizer/insertelement-postpone.ll
+257-25515 files not shown
+351-34421 files

LLVM/project 60189b3lldb/tools/lldb-dap JSONUtils.cpp, lldb/tools/lldb-dap/Handler StackTraceRequestHandler.cpp

[lldb-dap] Migrate stackTrace request to structured types (#173226)

This patch finishes migration to structured types and removes
`LegacyRequestHandler`.
DeltaFile
+126-129lldb/tools/lldb-dap/Handler/StackTraceRequestHandler.cpp
+0-158lldb/tools/lldb-dap/JSONUtils.cpp
+89-0lldb/tools/lldb-dap/Protocol/ProtocolTypes.h
+86-0lldb/unittests/DAP/ProtocolTypesTest.cpp
+68-0lldb/unittests/DAP/ProtocolRequestsTest.cpp
+56-0lldb/tools/lldb-dap/Protocol/ProtocolTypes.cpp
+425-2876 files not shown
+491-35312 files

LLVM/project 571819cllvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/X86 non-schedulable-with-copyable-op.ll non-schedulable-recalculate-deps.ll

[SLP]Recalculate dependencies for all cleared entries

Need to recalculate the dependencies for all cleared items to avoid
a crash, if the entry is used in other vector nodes

Fixes #173469
DeltaFile
+89-0llvm/test/Transforms/SLPVectorizer/X86/non-schedulable-with-copyable-op.ll
+61-0llvm/test/Transforms/SLPVectorizer/X86/non-schedulable-recalculate-deps.ll
+7-7llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+157-73 files

LLVM/project 95eedfemlir/examples/standalone/test lit.cfg.py, mlir/examples/standalone/test/python smoketest.py

check standalone
DeltaFile
+5-7mlir/examples/standalone/test/lit.cfg.py
+4-4mlir/examples/standalone/test/python/smoketest.py
+3-1mlir/test/Examples/standalone/test.wheel.toy
+1-0mlir/test/Examples/standalone/test.toy
+13-124 files

LLVM/project b6c1b1dmlir/include/mlir/Bindings/Python IRCore.h, mlir/lib/Bindings/Python MainModule.cpp Rewrite.cpp

works
DeltaFile
+71-62mlir/lib/Bindings/Python/MainModule.cpp
+24-19mlir/lib/Bindings/Python/Rewrite.cpp
+35-8mlir/include/mlir/Bindings/Python/IRCore.h
+26-13mlir/lib/Bindings/Python/Pass.cpp
+22-15mlir/lib/Bindings/Python/IRTypes.cpp
+25-9mlir/lib/Bindings/Python/IRAffine.cpp
+203-12614 files not shown
+303-17820 files

LLVM/project bc44575mlir/lib/Bindings/Python Rewrite.cpp

address comments
DeltaFile
+0-31mlir/lib/Bindings/Python/Rewrite.cpp
+0-311 files

LLVM/project 89bcbbdmlir/cmake/modules AddMLIRPython.cmake

comments
DeltaFile
+13-6mlir/cmake/modules/AddMLIRPython.cmake
+13-61 files

LLVM/project c26ccbemlir/include/mlir/Bindings/Python IRCore.h, mlir/lib/Bindings/Python MainModule.cpp IRCore.cpp

remove registerError
DeltaFile
+0-19mlir/include/mlir/Bindings/Python/IRCore.h
+14-2mlir/lib/Bindings/Python/MainModule.cpp
+0-16mlir/lib/Bindings/Python/IRCore.cpp
+0-1mlir/lib/Bindings/Python/Pass.cpp
+0-1mlir/lib/Bindings/Python/IRAttributes.cpp
+0-1mlir/lib/Bindings/Python/IRTypes.cpp
+14-406 files

LLVM/project 661b9e8mlir/cmake/modules AddMLIRPython.cmake, mlir/examples/standalone pyproject.toml

globals doesn't work
DeltaFile
+3-16mlir/examples/standalone/test/python/smoketest.py
+12-6mlir/cmake/modules/AddMLIRPython.cmake
+12-6mlir/lib/Bindings/Python/Globals.cpp
+2-5mlir/test/Examples/standalone/test.wheel.toy
+3-0mlir/examples/standalone/pyproject.toml
+0-2mlir/include/mlir/Bindings/Python/Globals.h
+32-356 files

LLVM/project 7d6349dmlir/cmake/modules AddMLIRPython.cmake, mlir/include/mlir-c Support.h

try MLIR_PYTHON_API_EXPORTED
DeltaFile
+65-56mlir/include/mlir/Bindings/Python/IRCore.h
+4-5mlir/cmake/modules/AddMLIRPython.cmake
+2-2mlir/include/mlir/Bindings/Python/Globals.h
+2-1mlir/include/mlir/Bindings/Python/IRTypes.h
+2-0mlir/include/mlir-c/Support.h
+75-645 files

LLVM/project fb43434mlir/cmake/modules AddMLIRPython.cmake

set VISIBILITY_INLINES_HIDDEN for libMLIRPYthonSupport
DeltaFile
+5-0mlir/cmake/modules/AddMLIRPython.cmake
+5-01 files