1. Sep 10, 2023
  2. Sep 09, 2023
    • Fabian Mora's avatar
      Reland [mlir][test][gpu] Migrate CUDA tests to the TargetAttr compilation workflow (llvm#65768) · 119c489c
      Fabian Mora authored
      The revert happened due to a build bot failure that threw 'CUDA_ERROR_UNSUPPORTED_PTX_VERSION'.
      The failure's root cause was a pass using "+ptx76" for compilation and an old CUDA driver
      on the bot. This commit relands the patch with "+ptx60".
      
      Original Gh PR: #65768
      Original commit message:
          Migrate tests referencing `gpu-to-cubin` to the new compilation workflow
          using `TargetAttrs`. The `test-lower-to-nvvm` pass pipeline was modified
          to use the new compilation workflow to simplify the introduction of
          future tests.
      
          The `createLowerGpuOpsToNVVMOpsPass` function was removed, as it didn't
          allow for passing all options available in the `ConvertGpuOpsToNVVMOp`
          pass.
      119c489c
    • Mark de Wever's avatar
      [libc++][nfc] Fixes emacs magic marker. · 2374ae43
      Mark de Wever authored
      2374ae43
    • Sergei Barannikov's avatar
      [Sparc] Replace some CAS instructions with InstAlias (#65588) · 0917c501
      Sergei Barannikov authored
      According to the manual, cas, casl, casx and casxl are synthetic
      instructions. They map to casa and casxa with certain ASI tags.
      0917c501
    • Fabian Mora's avatar
      Revert "[mlir][test][gpu] Migrate CUDA tests to the TargetAttr compilation... · 2c596ea9
      Fabian Mora authored
      Revert "[mlir][test][gpu] Migrate CUDA tests to the TargetAttr compilation workflow (#65768) (#65848)
      
      This reverts commit d21b6729.
      2c596ea9
    • Fabian Mora's avatar
      [mlir][test][gpu] Migrate CUDA tests to the TargetAttr compilation workflow (#65768) · d21b6729
      Fabian Mora authored
      Migrate tests referencing `gpu-to-cubin` to the new compilation workflow
      using `TargetAttrs`. The `test-lower-to-nvvm` pass pipeline was modified
      to use the new compilation workflow to simplify the introduction of
      future tests.
      
      The `createLowerGpuOpsToNVVMOpsPass` function was removed, as it didn't
      allow for passing all options available in the `ConvertGpuOpsToNVVMOp`
      pass.
      d21b6729
    • Job Noorman's avatar
      [ELF][RISCV] Implement --emit-relocs with relaxation · 649cac3b
      Job Noorman authored
      Linker relaxation may change relocations (offsets and types). However,
      when --emit-relocs is used, relocations are simply copied from the input
      section causing a mismatch with the corresponding (relaxed) code
      section.
      
      This patch fixes this as follows: for non-relocatable RISC-V binaries,
      `InputSection::copyRelocations` reads relocations from the relocated
      section's `relocations` array (since this gets updated by the relaxation
      code). For all other cases, relocations are read from the input section
      directly as before.
      
      In order to reuse as much code as possible, and to keep the diff small,
      the original `InputSection::copyRelocations` is changed to accept the
      relocations as a range of `Relocation` objects. This means that, in the
      general case when reading from the input section, raw relocations need
      to be converted to `Relocation`s first, which introduces quite a bit of
      boiler plate. It also means there's a slight code size increase due to
      the extra instantiations of `copyRelocations` (for both range types).
      
      Reviewed By: MaskRay
      
      Differential Revision: https://reviews.llvm.org/D159082
      649cac3b
    • Amy Wang's avatar
      [MLIR][Tensor] Add Destination style RewritePattern for DimOp. (#65780) · 0aa459fc
      Amy Wang authored
      This enables canonicalization to fold away unnecessary tensor.dim ops
      which in turn enables folding away of other operations, as can be seen
      in conv_tensors_dynamic where affine.min operations were folded away.
      0aa459fc
    • Timm Bäder's avatar
      [clang][Interp][NFC] Use delegate() vor ParenExprs · 2744d9b6
      Timm Bäder authored
      Now what we have delegate() we can use it here.
      2744d9b6
    • Timm Bäder's avatar
      [clang][Interp][NFC] Tiny indentation fix · 211f7ddb
      Timm Bäder authored
      211f7ddb