Changes

Summary

  1. Accept symmetric sparse matrix in Matrix Market Exchange Format. (details)
  2. [sanitizer] Fail instead of crash without real_pthread_create (details)
  3. [ELF] Support the "read-only" memory region attribute (details)
  4. [AMDGPU] Check for unneeded shift mask in shift PatFrags. (details)
  5. [sanitizer] Add Abs<T> (details)
  6. [clang-tidy] performance-unnecessary-copy-initialization: Fix false negative. (details)
  7. [mlir][scf] Canonicalize scf.while with unused results (details)
Commit 02710413a32afbd6eeeff0fd56c960f4c4e21629 by bixia
Accept symmetric sparse matrix in Matrix Market Exchange Format.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D114402
The file was modifiedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sum.mlir
The file was modifiedmlir/lib/ExecutionEngine/SparseTensorUtils.cpp
The file was addedmlir/test/Integration/data/test_symmetric.mtx
The file was modifiedmlir/test/CMakeLists.txt
Commit 55792b5ac44e4c0d3a8feb8a793d60d58e38cf20 by Vitaly Buka
[sanitizer] Fail instead of crash without real_pthread_create
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
Commit 8cdf1c1edb937b192d162f299127fad8d9dc0faa by ikudrin
[ELF] Support the "read-only" memory region attribute

The attribute 'r' allows (or disallows for the negative case) read-only
sections, i.e. ones without the SHF_WRITE flag, to be assigned to the
memory region. Before the patch, lld could put a section in the wrong
region or fail with "error: no memory region specified for section".

Differential Revision: https://reviews.llvm.org/D113771
The file was modifiedlld/ELF/ScriptParser.cpp
The file was addedlld/test/ELF/linkerscript/memory-attr.test
The file was modifiedlld/ELF/LinkerScript.h
The file was modifiedlld/ELF/LinkerScript.cpp
Commit 078da26b1ce3e509b9705bba95686e4ef8b8e480 by abinav.puthanpurayil
[AMDGPU] Check for unneeded shift mask in shift PatFrags.

The existing constrained shift PatFrags only dealt with masked shift
from OpenCL front-ends. This change copies the
X86DAGToDAGISel::isUnneededShiftMask() function to AMDGPU and uses it in
the shift PatFrag predicates.

Differential Revision: https://reviews.llvm.org/D113448
The file was modifiedllvm/test/CodeGen/AMDGPU/sra.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/imm16.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/shl.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/ashr.v2i16.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/lshr.v2i16.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstructions.td
The file was modifiedllvm/test/CodeGen/AMDGPU/shl.v2i16.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/constrained-shift.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/fshr.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/extract-lowbits.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.h
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/shl.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/ashr.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/lshr.ll
Commit b9fd7247a71d7ab652c3e827b7018d6ea446024e by Vitaly Buka
[sanitizer] Add Abs<T>
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_common.h
Commit ba4411e7c6a5879ce8acf246b0cd03ec738d9d6b by courbet
[clang-tidy] performance-unnecessary-copy-initialization: Fix false negative.

`isConstRefReturningMethodCall` should be considering
`CXXOperatorCallExpr` in addition to `CXXMemberCallExpr`. Clang considers
these to be distinct (`CXXOperatorCallExpr` derives from `CallExpr`, not
`CXXMemberCallExpr`), but we don't care in the context of this
check.

This is important because of
`std::vector<Expensive>::operator[](size_t) const`.

Differential Revision: https://reviews.llvm.org/D114249
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-copy-initialization-excluded-container-types.cpp
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-copy-initialization.cpp
The file was modifiedclang-tools-extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp
Commit 7f5d9bf13a7d872dc173d09598743c006f59d6b8 by ivan.butygin
[mlir][scf] Canonicalize scf.while with unused results

Differential Revision: https://reviews.llvm.org/D114291
The file was modifiedmlir/lib/Dialect/SCF/SCF.cpp
The file was modifiedmlir/test/Dialect/SCF/canonicalize.mlir