[all-commits] [llvm/llvm-project] 953b07: [mlir] AMDGPUToROCDL: RawBufferOpLowering fixes (#...

Ivan Butygin via All-commits all-commits at lists.llvm.org
Fri Dec 20 07:09:23 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 953b07febca46036b2311b5998244fe07b61544f
      https://github.com/llvm/llvm-project/commit/953b07febca46036b2311b5998244fe07b61544f
  Author: Ivan Butygin <ivan.butygin at gmail.com>
  Date:   2024-12-20 (Fri, 20 Dec 2024)

  Changed paths:
    M mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
    M mlir/test/Conversion/AMDGPUToROCDL/amdgpu-to-rocdl.mlir

  Log Message:
  -----------
  [mlir] AMDGPUToROCDL: RawBufferOpLowering fixes (#120642)

1. We can use `getNumElements()` only for memrefs with trivial layout.
2. Buffer ops expecting sizes in i32 but descriptor values can be either
i32 or i64, add appropriate casts. This implementation is not ideal as
it can overflow, but it's still better than generating broken IR.



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