1. Feb 16, 2023
    • Scott Linder's avatar
      [LLD] Add --lto-CGO[0-3] option · 45ee0a9a
      Scott Linder authored
      Allow controlling the CodeGenOpt::Level independent of the LTO
      optimization level in LLD via new options for the COFF, ELF, MachO, and
      wasm frontends to lld. Most are spelled as --lto-CGO[0-3], but COFF is
      spelled as -opt:lldltocgo=[0-3].
      
      See D57422 for discussion surrounding the issue of how to set the CG opt
      level. The ultimate goal is to let each function control its CG opt
      level, but until then the current default means it is impossible to
      specify a CG opt level lower than 2 while using LTO. This option gives
      the user a means to control it for as long as it is not handled on a
      per-function basis.
      
      Reviewed By: MaskRay, #lld-macho, int3
      
      Differential Revision: https://reviews.llvm.org/D141970
      45ee0a9a
    • Thomas Raoux's avatar
      [mlir][vectorToGPU] Fix type used when folding transpose into read op · 3cf7f224
      Thomas Raoux authored
      Pick the right result type when folding transpose op into a read
      
      Differential Revision: https://reviews.llvm.org/D144113
      3cf7f224
    • J. Ryan Stinnett's avatar
    • Rahul Kayaith's avatar
      [mlir] Silence a few -Wunused-but-set-parameter warnings · 82ae83a8
      Rahul Kayaith authored
      Some older versions of gcc hit false positives here:
      
      /workdir/llvm-project/mlir/include/mlir/IR/Attributes.h:391:49: warning: parameter 'ty' set but not used [-Wunused-but-set-parameter]
        391 |   static inline bool isPossible(mlir::Attribute ty) {
      
      https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81676
      82ae83a8
    • Krzysztof Drewniak's avatar
      [mlir][AMDGPU] 8-bit float usage in the AMDGPU dialect · 22f0c7a4
      Krzysztof Drewniak authored
      Upcoming AMD hardware will include functions that accept 8-bit floats.
      Specifically, there are MFMA instructions that accept 8-bit floats,
      either using the same or mixed formats. This patch adds MLIR wrappers
      for these intrinsics and explicitly adds support for 8-bit floats in
      the gpu-to-rocdl conversion by way of amdgpu-to-rocdl.
      
      Since LLVM does not have f8 types, when targeting LLVM for compilation
      on an AMD GPU, both f8 types used on AMD hardware (f8E5M2FNUZ and
      f8E4M3FNUZ) are rewritten to i8.
      
      This patch also relaxes the restriction that the types of both source
      operands to a amdgpu.mfma instructions match exactly, as this is not
      necessarily required for the bf8 (f8E5M2FNUZ) and fp8 (f8E4M3FNUZ)
      instructions. In addition, since the buffer_{load,store} operations
      maintain a whitelist of permitted types, we add the relevant f8 types
      to that list.
      
      This patch does not add any implementations of arithmetic operations
      for f8 types.
      
      Reviewed By: jakeh-gc
      
      Differential Revision: https://reviews.llvm.org/D143956
      22f0c7a4
    • Sanjay Patel's avatar
      50ef8673
    • Zain Jaffal's avatar
      Recommit "[ConstraintElimination] Change debug output to display variable names." · 07f93d8c
      Zain Jaffal authored
      This reverts commit 02ae7e72.
      
      include Value.h in ConstraintSystem.h
      07f93d8c
    • Xing Xue's avatar
      [libc++abi][AIX] Skip non-C++ EH aware frames when retrieving exception object · b413b84a
      Xing Xue authored
      Summary:
      The personality routine for the legacy AIX xlclang++ compiler uses the stack slot reserved for compilers to pass the exception object to the landing pad. The landing pad retrieves the exception object with a call to the runtime function __xlc_exception_handle(). The current implementation incorrectly assumes that __xlc_exception_handle() should go up one stack frame to get to the stack frame of the caller of __xlc_exception_handle(), which is supposedly the stack frame of the function containing the landing pad. However, this does not always work, e.g., the xlclang++ compiler sometimes generates a wrapper of __xlc_exception_handle() and calls the wrapper from the landing pad for optimization purposes. This patch changes the implementation to unwind the stack from __xlc_exception_handle() and skip frames not associated with functions that are C++ EH-aware until a frame associated with a C++ EH-aware function is found and then retrieving the exception object with the expectation that the located frame is the one that the personality routine installed as it transferred control to the landing pad.
      
      Reviewed by: cebowleratibm, hubert.reinterpretcast, daltenty
      
      Differential Revision: https://reviews.llvm.org/D143010
      b413b84a
    • David Green's avatar
      [AArch64] Always lower fp16 zero to FMOVH0 · b0bfbad1
      David Green authored
      We can always use FMOVH0 to lower fp16 zero, even without fullfp16. We can
      either expand it to movi d0, #0 or fmov s0, wzr, which will both clear all the
      bits of the register.
      
      Differential Revision: https://reviews.llvm.org/D143988
      b0bfbad1
    • Peter Klausler's avatar
      [flang][runtime] Return the right mutable modes from INQUIRE in child I/O · ef15617f
      Peter Klausler authored
      During child I/O -- a call to a user-defined subroutine with a generic interface
      to handle read and write operations on a specific derived type -- ensure that
      any INQUIRE statement probing mutable modes like BLANK= will observe changes
      that have been made to those modes via control edit descriptors like BN
      while processing the original I/O statement's format.
      
      Differential Revision: https://reviews.llvm.org/D144046
      ef15617f
  2. Feb 15, 2023