Changes

Summary

  1. [LLDB] [NFC] Typo fix in usage text for "type filter" command (details)
  2. [NFC][LoopIdiom] Add more test case to runtime-determined memset size (details)
  3. [fir] Add Character helper (details)
  4. [lldb][NFC] clang-format CPlusPlusLanguage.cpp (details)
  5. [mlir][linalg][bufferize] Bufferize using PostOrder traversal (details)
  6. [mlir][linalg][bufferize][NFC] Check return value of getResultBuffer (details)
  7. [MLIR][OpenMP] Add support for ordered construct (details)
  8. [lldb] [Host] Add setters for common teletype properties to Terminal (details)
  9. [SVE][Analysis] Tune the cost model according to the tune-cpu attribute (details)
  10. [mlir][linalg][bufferize][NFC] Change findValueInReverseUseDefChain signature (details)
  11. [NARY-REASSOCIATE][NFC] Simplify min/max handling (details)
  12. [lldb] Add serial:// protocol for connecting to serial port (details)
  13. [lldb] [unittest] Disable SetParity() tests on Linux entirely (details)
  14. [lldb] [Host/Terminal] Add missing #ifdef for baudRateToConst() (details)
  15. [lldb] [Host/SerialPort] Add std::moves for better compatibility (details)
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-32bit.ll
The file was addedllvm/test/Transforms/LoopIdiom/memset-runtime-64bit.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 modifiedflang/include/flang/Optimizer/Dialect/FIROpsSupport.h
The file was modifiedflang/unittests/Optimizer/CMakeLists.txt
The file was modifiedflang/include/flang/Optimizer/Builder/FIRBuilder.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/CMakeLists.txt
The file was addedflang/include/flang/Optimizer/Builder/Character.h
The file was modifiedflang/unittests/Optimizer/Builder/FIRBuilderTest.cpp
The file was addedflang/lib/Optimizer/Builder/Character.cpp
The file was modifiedflang/lib/Optimizer/Builder/FIRBuilder.cpp
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/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize-invalid.mlir
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir
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/Target/LLVMIR/openmp-llvm.mlir
The file was modifiedmlir/test/Dialect/OpenMP/ops.mlir
The file was modifiedmlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
The file was modifiedmlir/test/Dialect/OpenMP/invalid.mlir
The file was modifiedmlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
The file was modifiedmlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
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/include/lldb/Host/Terminal.h
The file was modifiedlldb/source/Host/common/Terminal.cpp
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/AArch64TargetTransformInfo.h
The file was modifiedllvm/test/Analysis/CostModel/AArch64/sve-gather.ll
The file was modifiedllvm/test/Analysis/CostModel/AArch64/sve-intrinsics.ll
The file was modifiedllvm/test/Analysis/CostModel/AArch64/sve-scatter.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64Subtarget.h
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
The file was modifiedllvm/lib/Target/AArch64/AArch64Subtarget.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/AArch64/sve-strict-fadd-cost.ll
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
Commit 1a8ec24efbae282f39eaacd5b22f37c2d8cad12f by ybrevnov
[NARY-REASSOCIATE][NFC] Simplify min/max handling

In order to explore different variants of reassociation current implementation uses "swap in a loop" approach. Unfortunately, the implementation is more complicated than it could be. This is an attempt to streamline the code. New approach is to extract core functionality into a helper function and call it explicitly as many times as required.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D112128
The file was modifiedllvm/lib/Transforms/Scalar/NaryReassociate.cpp
Commit 4a7b4beac759ad9001671a61846ee2bfc9076eec by mgorny
[lldb] Add serial:// protocol for connecting to serial port

Add a new serial:// protocol along with SerialPort that provides a new
API to open serial ports.  The URL consists of serial device path
followed by URL-style options, e.g.:

    serial:///dev/ttyS0?baud=115200&parity=even

If no options are provided, the serial port is only set to raw mode
and the other attributes remain unchanged.  Attributes provided via
options are modified to the specified values.  Upon closing the serial
port, its original attributes are restored.

Differential Revision: https://reviews.llvm.org/D111355
The file was modifiedlldb/include/lldb/Host/File.h
The file was modifiedlldb/include/lldb/Host/posix/ConnectionFileDescriptorPosix.h
The file was modifiedlldb/source/Host/common/File.cpp
The file was modifiedlldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp
The file was modifiedlldb/test/API/functionalities/gdb_remote_client/gdbclientutils.py
The file was modifiedlldb/test/API/functionalities/gdb_remote_client/TestPty.py
Commit 4745e4178397b387263f2547e13018e3c8ee396c by mgorny
[lldb] [unittest] Disable SetParity() tests on Linux entirely

Attempting to enable PARENB causes tcsetattr() to fail on the Debian
and Ubuntu buildbots, so let's skip these tests on Linux entirely.
The file was modifiedlldb/unittests/Host/posix/TerminalTest.cpp
Commit cbe789844703fe72d45b15614fa3b350e76f8570 by mgorny
[lldb] [Host/Terminal] Add missing #ifdef for baudRateToConst()
The file was modifiedlldb/source/Host/common/Terminal.cpp
Commit b8c3683d46f92a693746217542ab4895562fa36c by mgorny
[lldb] [Host/SerialPort] Add std::moves for better compatibility
The file was modifiedlldb/source/Host/common/File.cpp