Changes

Summary

  1. [opt-viewer] Use safe yaml load_all (details)
  2. [LLDB] [NFC] Typo fix in usage text for "type filter" command (details)
  3. [NFC][LoopIdiom] Add more test case to runtime-determined memset size (details)
  4. [fir] Add Character helper (details)
  5. [lldb][NFC] clang-format CPlusPlusLanguage.cpp (details)
  6. [mlir][linalg][bufferize] Bufferize using PostOrder traversal (details)
  7. [mlir][linalg][bufferize][NFC] Check return value of getResultBuffer (details)
  8. [MLIR][OpenMP] Add support for ordered construct (details)
  9. [lldb] [Host] Add setters for common teletype properties to Terminal (details)
  10. [SVE][Analysis] Tune the cost model according to the tune-cpu attribute (details)
  11. [mlir][linalg][bufferize][NFC] Change findValueInReverseUseDefChain signature (details)
Commit 1123e03a9d9401c5203ae55bff533dd4d133d8d2 by yikong
[opt-viewer] Use safe yaml load_all

Differential Revision: https://reviews.llvm.org/D112075
The file was modifiedllvm/tools/opt-viewer/optrecord.py
Commit d531e5cf58413e34dc006a580d2c109863bddaa1 by shivam98.tkg
[LLDB] [NFC] Typo fix in usage text for "type filter" command

When you invoke "help type filter" the resulting help shows:

Syntax: type synthetic [<sub-command-options>]

This patch fixes the help so it says "type filter" instead of "type synthetic".

patch by: "Daniel Jalkut <jalkut@red-sweater.com>"

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D112199
The file was modifiedlldb/source/Commands/CommandObjectType.cpp
Commit 76db6d80805a70802fa9796ca1a5bb999ff205c7 by eopxd
[NFC][LoopIdiom] Add more test case to runtime-determined memset size

This patch supplements missing test case for D107353.
- Fix wrong descriptions in 64-bit mode test case
- Added testcase under 32-bit mode

Reviewed By: bmahjour

Differential Revision: https://reviews.llvm.org/D108507
The file was addedllvm/test/Transforms/LoopIdiom/memset-runtime-64bit.ll
The file was addedllvm/test/Transforms/LoopIdiom/memset-runtime-32bit.ll
The file was removedllvm/test/Transforms/LoopIdiom/memset-runtime.ll
Commit e4ce92245c96cea9492767d7149eb9e30dee0d16 by clementval
[fir] Add Character helper

This patch is extracted from D111337. It introduce the
CharacterExprHelper that helps dealing with character in FIR.

Reviewed By: schweitz, awarzynski

Differential Revision: https://reviews.llvm.org/D112140

Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: V Donaldson <vdonaldson@nvidia.com>
The file was addedflang/lib/Optimizer/Builder/Character.cpp
The file was modifiedflang/include/flang/Optimizer/Builder/FIRBuilder.h
The file was modifiedflang/unittests/Optimizer/Builder/FIRBuilderTest.cpp
The file was modifiedflang/unittests/Optimizer/CMakeLists.txt
The file was addedflang/include/flang/Optimizer/Builder/Character.h
The file was modifiedflang/include/flang/Optimizer/Dialect/FIROpsSupport.h
The file was addedflang/unittests/Optimizer/Builder/CharacterTest.cpp
The file was modifiedflang/include/flang/Optimizer/Dialect/FIRType.h
The file was modifiedflang/lib/Optimizer/Builder/FIRBuilder.cpp
The file was modifiedflang/lib/Optimizer/Builder/CMakeLists.txt
Commit 46fb5d5ddffdccbd14a09c7dcff63de6fef63c07 by Raphael Isemann
[lldb][NFC] clang-format CPlusPlusLanguage.cpp
The file was modifiedlldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
Commit 9c55e718f537577f2aac9e52b2dce9e01aadd1d7 by springerm
[mlir][linalg][bufferize] Bufferize using PostOrder traversal

This is required for bufferization of scf::IfOp, which is added in a subsequent commit.

Some ops (scf::ForOp, TiledLoopOp) require PreOrder traversal to make sure that bbArgs are mapped before bufferizing the loop body.

Differential Revision: https://reviews.llvm.org/D111924
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize-invalid.mlir
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
Commit 65ef43e288ad1e9fa7a01d2c09a13727f568b870 by springerm
[mlir][linalg][bufferize][NFC] Check return value of getResultBuffer

In a subsequent commit, getResultBuffer can return a "null" Value. This is the case when the returned buffer from an scf.if is not unique.

This commit is in preparation for scf.if support to keep the next commit smaller.

Differential Revision: https://reviews.llvm.org/D111927
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
Commit b37e5187f22fc13079a2f6d0684ccc08ecfdf0a8 by qiaopeixin
[MLIR][OpenMP] Add support for ordered construct

This patch supports the ordered construct in OpenMP dialect following
Section 2.19.9 of the OpenMP 5.1 standard. Also lowering to LLVM IR
using OpenMP IRBduiler. Lowering to LLVM IR for ordered simd directive
is not supported yet since LLVM optimization passes do not support it
for now.

Reviewed By: kiranchandramohan, clementval, ftynse, shraiysh

Differential Revision: https://reviews.llvm.org/D110015
The file was modifiedmlir/test/Dialect/OpenMP/ops.mlir
The file was modifiedmlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
The file was modifiedmlir/test/Target/LLVMIR/openmp-llvm.mlir
The file was modifiedmlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
The file was modifiedmlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
The file was modifiedmlir/test/Dialect/OpenMP/invalid.mlir
Commit 92fb574c9f20aef56948c51f4921a92efbb72a5b by mgorny
[lldb] [Host] Add setters for common teletype properties to Terminal

Add setters for common teletype properties to the Terminal class:

- SetRaw() to enable common raw mode options

- SetBaudRate() to set the baud rate

- SetStopBits() to select the number of stop bits

- SetParity() to control parity bit in the output

- SetHardwareControlFlow() to enable or disable hardware control flow
  (if supported)

Differential Revision: https://reviews.llvm.org/D111030
The file was modifiedlldb/unittests/Host/posix/TerminalTest.cpp
The file was modifiedlldb/source/Host/common/Terminal.cpp
The file was modifiedlldb/include/lldb/Host/Terminal.h
Commit 9448cdc90007611659ecbec4dca18a83f06bc4c3 by david.sherwood
[SVE][Analysis] Tune the cost model according to the tune-cpu attribute

This patch introduces a new function:

  AArch64Subtarget::getVScaleForTuning

that returns a value for vscale that can be used for tuning the cost
model when using scalable vectors. The VScaleForTuning option in
AArch64Subtarget is initialised according to the following rules:

1. If the user has specified the CPU to tune for we use that, else
2. If the target CPU was specified we use that, else
3. The tuning is set to "generic".

For CPUs of type "generic" I have assumed that vscale=2.

New tests added here:

  Analysis/CostModel/AArch64/sve-gather.ll
  Analysis/CostModel/AArch64/sve-scatter.ll
  Transforms/LoopVectorize/AArch64/sve-strict-fadd-cost.ll

Differential Revision: https://reviews.llvm.org/D110259
The file was modifiedllvm/lib/Target/AArch64/AArch64Subtarget.cpp
The file was modifiedllvm/test/Analysis/CostModel/AArch64/sve-scatter.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
The file was modifiedllvm/test/Analysis/CostModel/AArch64/sve-gather.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/AArch64/sve-strict-fadd-cost.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
The file was modifiedllvm/test/Analysis/CostModel/AArch64/sve-intrinsics.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64Subtarget.h
Commit 36ec848dc7186b9713bb69ade134f9b2b7d65070 by springerm
[mlir][linalg][bufferize][NFC] Change findValueInReverseUseDefChain signature

This commit is in preparation for scf.if support.

* `condition` in findValueInReverseUseDefChain takes a Value instead of OpOperand*.
* Return a SetVector<Value> instead of a single Value. This SetVector always contains exactly one Value at the moment.

Differential Revision: https://reviews.llvm.org/D111928
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp

Summary

  1. [LNT] Added reading nm and objdump paths from env variables (details)
Commit 929073304937b636de0e7fed5363ad42e78161b3 by kosov.pavel
[LNT] Added reading nm and objdump paths from env variables

  - Added reading nm and objdump paths from env variables
  - Added binaryCacheRoot

Reviewed By: thopre

Differential Revision: https://reviews.llvm.org/D110839

OS Laboratory. Huawei Russian Research Institute. Saint-Petersburg
The file was modifiedlnt/testing/profile/profile.py (diff)
The file was modifiedlnt/testing/profile/cPerf.cpp (diff)
The file was modifiedlnt/testing/profile/perf.py (diff)