[all-commits] [llvm/llvm-project] e3ea2d: [mlir][Linalg] Add basic lowering test to library ...

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Thu Jun 24 03:57:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e3ea2d706198c37b1564533676a5f85e4576504a
      https://github.com/llvm/llvm-project/commit/e3ea2d706198c37b1564533676a5f85e4576504a
  Author: Nicolas Vasilache <nicolas.vasilache at gmail.com>
  Date:   2021-06-24 (Thu, 24 Jun 2021)

  Changed paths:
    A mlir/test/Dialect/Linalg/library-calls.mlir

  Log Message:
  -----------
  [mlir][Linalg] Add basic lowering test to library calls

This test shows how convert-linalg-to-std rewrites named linalg ops as library calls.
This can be coupled with a C++ shim to connect to existing libraries such as https://gist.github.com/nicolasvasilache/691ef992404c49dc9b5d543c4aa6db38.
Everything can then be linked together with mlir-cpu-runner and MLIR can call C++ (which can itself call MLIR if needed).

This should evolve into specific rewrite patterns that can be applied on op instances independently rather than having to use a full conversion.

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




More information about the All-commits mailing list