SuccessChanges

Summary

  1. [MLIR][SPIRVToLLVM] Updated documentation for SPIR-V to LLVM conversion (details)
  2. DomTree: Make PostDomTree indifferent to block successors swap (details)
  3. [MLIR][SPIRVToLLVM] Conversion pattern for loop op (details)
  4. [SyntaxTree] Add test coverage for `->*` operator (details)
  5. [lldb] fix building with panel.h being in /usr/include/ncurses/ (details)
  6. [lldb][gui] implement TerminalSizeChanged() (details)
  7. [lldb][gui] implement shift+tab for going back in views (details)
  8. [lldb][gui] implement breakpoint removal on breakpoint toggling (details)
  9. [lldb][gui] move TestGuiBasicDebug.py to lldb/test and update it (details)
  10. [lldb][gui] add a test for 'b' (toggle breakpoint) (details)
  11. [Flang] Fix multi-config generator builds (details)
  12. [AMDGPU] Lower frem f16 (details)
  13. [AMDGPU] Precommit tests for D84518 Propagate fast math flags in frem lowering (details)
  14. [AMDGPU] Propagate fast math flags in frem lowering (details)
  15. [MLIR][SPIRVToLLVM] Updated LLVM types in the documentation (details)
Commit 521c0b2659074c512d292dc30da78c862782d34c by georgemitenk0v
[MLIR][SPIRVToLLVM] Updated documentation for SPIR-V to LLVM conversion

Updated the documentation for SPIR-V to LLVM conversion, particularly:
- Added a section on control flow
- Added a section on memory ops
- Added a section on GLSL ops

Also, moved `spv.FunctionCall` to control flow section. Added a new section
that will be used to describe the modelling of runtime-related ops.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D84734
The file was modifiedmlir/docs/SPIRVToLLVMDialectConversion.md
Commit bc10888dcdda1fe80a983029bc50eec4b248cc77 by yrouban
DomTree: Make PostDomTree indifferent to block successors swap

Fixed the commit c35585e209efe69e2233bdc5ecd23bed7b735ba3.

This is a fix for the bug 46098 where PostDominatorTree
is unexpectedly changed by InstCombine's branch swapping
transformation.
This patch fixes PostDomTree builder. While looking for
the furthest away node in a reverse unreachable subgraph
this patch runs DFS with successors in their function order.
This order is indifferent to the order of successors, so is
the furthest away node.

Reviewers: kuhar, nikic, lebedev.ri
Differential Revision: https://reviews.llvm.org/D84763
The file was modifiedllvm/include/llvm/Support/GenericDomTreeConstruction.h
The file was addedllvm/test/Transforms/InstCombine/infinite-loop-postdom.ll
Commit e739648cfae21d2b564751ef0511fec9559305fa by georgemitenk0v
[MLIR][SPIRVToLLVM] Conversion pattern for loop op

This patch introduces a conversion of `spv.loop` to LLVM dialect.
Similarly to `spv.selection`, op's control attributes are not mapped
to LLVM yet and therefore the conversion fails if the loop control is
not `None`. Also, all blocks within the loop should be reachable in
order for conversion to succeed.

Reviewed By: mravishankar

Differential Revision: https://reviews.llvm.org/D84245
The file was modifiedmlir/test/Conversion/SPIRVToLLVM/control-flow-ops-to-llvm.mlir
The file was modifiedmlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
Commit c5cdc3e801ad1b0aceaf220d78a3ff3fab1e0fdb by ecaldas
[SyntaxTree] Add test coverage for `->*` operator

This was the last binary operator that we supported but didn't have any
test coverage. The recent fix in a crash in member pointers allowed us
to add this test.

Differential Revision: https://reviews.llvm.org/D85185
The file was modifiedclang/unittests/Tooling/Syntax/TreeTest.cpp
Commit c952ec15d38843b69e22dfd7b0665304a0459f9f by l.lunak
[lldb] fix building with panel.h being in /usr/include/ncurses/

My openSUSE 15.2 has /usr/include/curses.h as a symlink to
/usr/include/ncurses/curses.h , but there's no such symlink
for panel.h . Prefer using /usr/include/ncurses for the includes
if they are found there by the CMake check.

Differential Revision: https://reviews.llvm.org/D85219
The file was modifiedlldb/source/Core/IOHandlerCursesGUI.cpp
The file was modifiedlldb/include/lldb/Host/Config.h.cmake
Commit 2f1b24b70c6c3ecf3cf5ccd35209d9d7e426be63 by l.lunak
[lldb][gui] implement TerminalSizeChanged()

Differential Revision: https://reviews.llvm.org/D85088
The file was modifiedlldb/source/Core/IOHandlerCursesGUI.cpp
The file was modifiedlldb/include/lldb/Core/IOHandlerCursesGUI.h
Commit 7a63dc534eb8ebdf1b0aa2c0f6d943d0c7adda1d by l.lunak
[lldb][gui] implement shift+tab for going back in views

Also simplify the code for going forward.

Differential Revision: https://reviews.llvm.org/D85089
The file was modifiedlldb/source/Core/IOHandlerCursesGUI.cpp
Commit d6868d9ca1dbdeceaaa1660b6e7b4af0c207fcae by l.lunak
[lldb][gui] implement breakpoint removal on breakpoint toggling

It says it toggles breakpoints, so if one already exists
on the selected location, remove it instead of adding.

Differential Revision: https://reviews.llvm.org/D85098
The file was modifiedlldb/source/Core/IOHandlerCursesGUI.cpp
Commit c7be982c836cdaf7b1ef303d903e6a3de2eb4a34 by l.lunak
[lldb][gui] move TestGuiBasicDebug.py to lldb/test and update it

Between the time it was created and it was pushed upstream,
99451b4453688a94c6014cac233d371ab4cc342d has moved the existing
gui gui tests to lldb/test, so move this one too.
And update it to contain TestGuiBasic.py changes since the time
when it was based on that test.

Differential Revision: https://reviews.llvm.org/D85106
The file was addedlldb/test/API/commands/gui/basicdebug/main.c
The file was addedlldb/test/API/commands/gui/basicdebug/TestGuiBasicDebug.py
The file was removedlldb/packages/Python/lldbsuite/test/commands/gui/basicdebug/func.c
The file was addedlldb/test/API/commands/gui/basicdebug/func.c
The file was removedlldb/packages/Python/lldbsuite/test/commands/gui/basicdebug/Makefile
The file was removedlldb/packages/Python/lldbsuite/test/commands/gui/basicdebug/main.c
The file was addedlldb/test/API/commands/gui/basicdebug/Makefile
The file was removedlldb/packages/Python/lldbsuite/test/commands/gui/basicdebug/TestGuiBasicDebug.py
Commit db828aba55aca0ce977f086dcd449f8fe667f30a by l.lunak
[lldb][gui] add a test for 'b' (toggle breakpoint)

Differential Revision: https://reviews.llvm.org/D85107
The file was addedlldb/test/API/commands/gui/breakpoints/main.c
The file was addedlldb/test/API/commands/gui/breakpoints/Makefile
The file was addedlldb/test/API/commands/gui/breakpoints/TestGuiBreakpoints.py
Commit 621681e3e59241c2ba9a4ac59047c46cdcc3c947 by andrzej.warzynski
[Flang] Fix multi-config generator builds

Based on https://reviews.llvm.org/D84022 with additional changes to
maintain out-of-tree builds.

Original commit message:
Currently the binaries are output directly into the bin subdirectory of
the build directory. This doesn't work correctly with multi-config
generators which should output the binaries into <CONFIG_NAME>/bin
instead.

The original patch was implemented by David Truby and the additional
changes added here were also proposed by David Truby.

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

Co-authored-by: David Truby <david.truby@arm.com>
The file was modifiedflang/test/lit.site.cfg.py.in
The file was modifiedflang/CMakeLists.txt
The file was modifiedflang/tools/f18/CMakeLists.txt
The file was modifiedflang/test/CMakeLists.txt
The file was modifiedflang/test/lit.cfg.py
Commit 04cf4a5a65576f286ca2e8a1aae7584def512761 by jay.foad
[AMDGPU] Lower frem f16

Without this it would fail to select on subtargets that have 16-bit
instructions.

Differential Revision: https://reviews.llvm.org/D84517
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/frem.ll
Commit 1bb07e1b91c187d868bfe383175c2ce04ebed8b8 by jay.foad
[AMDGPU] Precommit tests for D84518 Propagate fast math flags in frem lowering
The file was modifiedllvm/test/CodeGen/AMDGPU/frem.ll
Commit 8cbf4a17ac57921b2c0e2112e766555d345494c4 by jay.foad
[AMDGPU] Propagate fast math flags in frem lowering

Differential Revision: https://reviews.llvm.org/D84518
The file was modifiedllvm/test/CodeGen/AMDGPU/frem.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
Commit 159806704b05f2b562ea93e622f8dbb1976e24f0 by georgemitenk0v
[MLIR][SPIRVToLLVM] Updated LLVM types in the documentation

Updated the documentation with new MLIR LLVM types for
vectors, pointers, arrays and structs. Also, changed remaining
tabs to spaces.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D85277
The file was modifiedmlir/docs/SPIRVToLLVMDialectConversion.md