Changes

Summary

  1. Allow /STACK in #pragma comment(linker, ...) (details)
  2. Attach metadata to simplified masked loads and stores (details)
  3. [mlir][Linalg] Fix test to use new reshape op form. (details)
  4. [MCAsmInfo] Support UsesCFIForDebug for targets with no exception handling (details)
  5. [AArch64] Deleted unused AsmBackend functions (details)
Commit 7ac3fcc526ceb36da9ed41f27f686709a5554af8 by rnk
Allow /STACK in #pragma comment(linker, ...)

The Halide project uses `#pragma comment(linker, "/STACK:...")` to set
the stack size high enough for our embedded compiler to run in end-user
programs on Windows.

Unfortunately, lld-link.exe breaks on this when embedded in a COFF
object, despite supporting the flag on the command line. MSVC's link.exe
supports this fine. This patch extends support for this to lld-link.exe
for better compatibility with MSVC projects.

Differential Revision: https://reviews.llvm.org/D99680
The file was addedlld/test/COFF/stack-drectve.s
The file was modifiedlld/COFF/Driver.cpp
Commit 6251b2f7f697f9378f4f0dbb284eea9cbe286728 by kparzysz
Attach metadata to simplified masked loads and stores
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
The file was addedllvm/test/Transforms/InstCombine/masked_intrinsics_keep_metadata.ll
Commit 4b2d7ef3ea81d0d6746e609b46f38bfceff23838 by ravishankarm
[mlir][Linalg] Fix test to use new reshape op form.

Differential Revision: https://reviews.llvm.org/D101956
The file was modifiedmlir/test/Dialect/Linalg/fusion-push-reshape.mlir
Commit 41f8b8e8075bfb80037390ff033558565f656007 by VenkataRamanaiah.Nalamothu
[MCAsmInfo] Support UsesCFIForDebug for targets with no exception handling

This change enables emitting CFI unwind information for debugging purpose
for targets with MCAsmInfo::ExceptionsType == ExceptionHandling::None.

Currently generating CFI unwind information is entangled with supporting
the exceptions, even when AsmPrinter explicitly recognizes that the unwind
tables are being generated as debug information.

In fact, the unwind information is not generated even if we specify
--force-dwarf-frame-section, unless exceptions are enabled. The LIT test
llvm/test/CodeGen/AMDGPU/debug_frame.ll demonstrates this behavior.

Enable this option for AMDGPU to prepare for future patches which add
complete CFI support.

Reviewed By: dblaikie, MaskRay

Differential Revision: https://reviews.llvm.org/D78778
The file was modifiedllvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/debug_frame.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/split-arg-dbg-value.ll
The file was addedllvm/test/DebugInfo/AMDGPU/cfi.ll
The file was modifiedllvm/include/llvm/CodeGen/AsmPrinter.h
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
The file was addedllvm/test/MC/ELF/AMDGPU/cfi.s
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/ptr-arg-dbg-value.ll
The file was addedllvm/test/MC/ELF/AMDGPU/lit.local.cfg
The file was modifiedllvm/include/llvm/MC/MCAsmInfo.h
Commit d738ac6e12ac90f0254febb45f7b79d2dc5357e8 by i
[AArch64] Deleted unused AsmBackend functions
The file was modifiedllvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp