[all-commits] [llvm/llvm-project] 6ac632: [MLIR][Linalg] Generate unique LibraryCallName for...

Amy Wang via All-commits all-commits at lists.llvm.org
Mon Mar 20 10:51:04 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ac632ad83fb0f1f91cfca2d05e074712aebce79
  Author: Amy Wang <kai.ting.wang at huawei.com>
  Date:   2023-03-20 (Mon, 20 Mar 2023)

  Changed paths:
    M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    M mlir/test/Dialect/Linalg/library-calls.mlir

  Log Message:
  [MLIR][Linalg] Generate unique LibraryCallName for LinalgOps.

When lowering LinalgToStandard for named UnaryFn/BinaryFn ops, ensure
the fun name appears in the generated library name. Further, for
linalg.copy to/from different address spaces, ensure the to/from
address spaces are appended onto the library name for uniqueness.
This fixes the lowering error with the linalg.copy testcase shown in
this patch.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D145467

More information about the All-commits mailing list