1. Jun 01, 2024
  2. May 31, 2024
    • Victor Perez's avatar
      [MLIR][GPU-LLVM] Define `-convert-gpu-to-llvm-spv` pass (#90972) · 98d5d344
      Victor Perez authored
      
      
      Define pass for GPU to LLVM conversion for SPIR-V backend tool ingest.
      
      Supported operations:
      
      - `gpu.block_id`
      - `gpu.global_id`
      - `gpu.block_dim`
      - `gpu.thread_id`
      - `gpu.grid_dim`
      - `gpu.barrier`
      - `gpu.shuffle`
      
      ---------
      
      Signed-off-by: default avatarVictor Perez <victor.perez@codeplay.com>
      98d5d344
    • erichkeane's avatar
      [OpenACC] Fix device_type clause appertainment · 85ea1aaf
      erichkeane authored
      Seemingly I forgot to implement the appertainment checks when doing the
      original device_type implementation, so we fell through to the 'not
      implemented' section of the diagnostics.
      
      This patch corrects the appertainment, so that we disallow it correctly.
      85ea1aaf
    • Ivan Kosarev's avatar
      [AMDGPU][NFC] Eliminate GCNPredicateControl. (#93964) · ca0dae0d
      Ivan Kosarev authored
      Removes ~100K instances of SIAssemblerPredicate and VIAssemblerPredicate
      fields from instruction records.
      ca0dae0d
    • Vladislav Dzhidzhoev's avatar
      [lldb][test] Add --sysroot argument to dotest.py · 5e423f1c
      Vladislav Dzhidzhoev authored
      This argument allows to set specific sysroot pass which will be used for
      building LLDB API test programs.
      It might come in handy for setting up cross-platform remote runs of API
      tests on Windows host.
      
      It can be useful for cross-compiling LLDB API tests. The argument can be
      set using `LLDB_TEST_USER_ARGS` argument:
      ```
      cmake ...
      -DLLDB_TEST_USER_ARGS="...;--sysroot;C:\path\to\sysroot;..."
      ...
      ```
      5e423f1c
    • Valentin Clement (バレンタイン クレメン)'s avatar
      [flang] Avoid double free in bufferize pass (#93922) · e6bef08e
      In some cases where we have an `hlfir.no_reassoc` operation, the
      bufferization pass could not earse the hlfir.destroy op during the
      `hlfir.associate` op conversion as show in the example below.
      
      ```
      func.func @double_free(%arg0: !fir.boxchar<1>) {
        %c5 = arith.constant 5 : index
        %true = arith.constant true
        %0 = hlfir.as_expr %arg0 move %true : (!fir.boxchar<1>, i1) -> !hlfir.expr<!fir.char<1,?>>
        %1 = hlfir.no_reassoc %0 : !hlfir.expr<!fir.char<1,?>>
        %2:3 = hlfir.associate %1 typeparams %c5 {adapt.valuebyref} : (!hlfir.expr<!fir.char<1,?>>, index) -> (!fir.boxchar<1>, !fir.ref<!fir.char<1,?>>, i1)
        fir.call @noop(%2#0) : (!fir.boxchar<1>) -> ()
        hlfir.end_associate %2#1, %2#2 : !fir.ref<!fir.char<1,?>>, i1
        hlfir.destroy %0 : !hlfir.expr<!fir.char<1,?>>
        return
      } 
      func.func private @noop(!fir.boxchar<1>)
      ```
      
      The bufferization pass is looking at uses of its source `%1` that is the
      result of an `hlfir.no_reassoc` operation. In order to avoid double free
      generation, also look at the indirection in presence of
      `hlfir.no_reassoc`.
      e6bef08e
    • Vladislav Dzhidzhoev's avatar
      [lldb] Fix 'session save' command on Windows · c5e417a8
      Vladislav Dzhidzhoev authored
      1. Use dashes (-) instead of colons (:) as time separator in a session log
      file name since Windows doesn't support saving files with names containing
      colons.
      
      2. Temporary file creation code is changed in the test:
      On Windows, the temporary file should be closed before 'session save'
      writes session log to it. NamedTemporaryFile() can preserve the file
      after closing it with delete_on_close=False option.
      However, this option is only available since Python 3.12. Thus
      mkstemp() is used for temporary file creation as the more compatible
      option.
      c5e417a8
    • Luke Lau's avatar
    • Kirill Podoprigora's avatar