[PATCH] D77067: [mlir][Linalg] Create a tool to generate named Linalg ops from a Tensor Comprehensions-like specification.

Sean Silva via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 30 19:41:19 PDT 2020


silvas added inline comments.


================
Comment at: mlir/test/mlir-linalg-ods-gen/test-linalg-ods-gen.tc:23
+//
+def matvec(A: f32(M, K), B: f32(K)) -> (C: f32(M)) {
+  C(m) = std_addf<k>(std_mulf(A(m, k), B(k)));
----------------
This actually looks like it could be reasonably parsed with a custom `linalg_named_op_gen.def` op? Or is there a dependency issue with using MLIR for this as this needs to happen during build time?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77067/new/

https://reviews.llvm.org/D77067





More information about the llvm-commits mailing list