[all-commits] [llvm/llvm-project] 8d541a: [mlir][shape] Add shape.lib attribute

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Thu Dec 31 14:51:35 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d541a1fbe6d92a3fadf6d7d8e8209ed6c76e092
      https://github.com/llvm/llvm-project/commit/8d541a1fbe6d92a3fadf6d7d8e8209ed6c76e092
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2020-12-31 (Thu, 31 Dec 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/Shape/IR/ShapeBase.td
    M mlir/lib/Dialect/Shape/IR/Shape.cpp
    M mlir/test/Analysis/test-shape-fn-report.mlir
    M mlir/test/Dialect/Shape/invalid.mlir
    M mlir/test/lib/Dialect/Shape/TestShapeFunctions.cpp

  Log Message:
  -----------
  [mlir][shape] Add shape.lib attribute

Enable querying shape function library ops from the module. Currently
supports singular or array of them (as long as array has all unique ops
in mappings). The preferred canonical form would have one library, but
given the invariant on the mapping, this can easily be achieved by a
simple merging pass.

Preferred the attribute approach vs naming convention as these could be
added in multiple different ways.




More information about the All-commits mailing list