[all-commits] [llvm/llvm-project] 3501bb: [mlir][OpenACC] Preserve explicit device numbers i...

leovance via All-commits all-commits at lists.llvm.org
Thu Sep 24 07:24:24 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3501bbfcff7a0e87b1b90d9f67f1ad12f0feb3d7
      https://github.com/llvm/llvm-project/commit/3501bbfcff7a0e87b1b90d9f67f1ad12f0feb3d7
  Author: leovance <leovancekang at outlook.com>
  Date:   2026-09-24 (Thu, 24 Sep 2026)

  Changed paths:
    M mlir/include/mlir/Conversion/OpenACCToLLVM/ACCToLLVMUtils.h
    M mlir/lib/Conversion/OpenACCToLLVM/ACCExecutableDirectivePatterns.cpp
    M mlir/lib/Conversion/OpenACCToLLVM/ACCToLLVMUtils.cpp
    M mlir/test/Conversion/OpenACCToLLVM/data.mlir
    M mlir/test/Conversion/OpenACCToLLVM/wait.mlir

  Log Message:
  -----------
  [mlir][OpenACC] Preserve explicit device numbers in wait lowering (#222604)

WaitOpLowering currently ignores wait_devnum and always passes zero as
the device number to __tgt_acc_wait.

Forward the converted operand when present, adapting it to the runtime's
i32 parameter. Zero-extend narrow unsigned integers, sign-extend narrow
signed or signless integers, and truncate wider operands. Determine
signedness from the original operand type, since LLVM type conversion
makes integer types signless.

Keep the default device number unchanged when wait_devnum is absent.

Add regression coverage for explicit device numbers, integer width and
signedness conversions, index operands, and waits combining if and
async.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list