[all-commits] [llvm/llvm-project] 3bc755: [mlir][linalg] Use attributes in named ops' indexi...

Lei Zhang via All-commits all-commits at lists.llvm.org
Wed Jan 13 07:08:45 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3bc7555ffac0a803e44c4b1462e0c4c5eee865ea
      https://github.com/llvm/llvm-project/commit/3bc7555ffac0a803e44c4b1462e0c4c5eee865ea
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2021-01-13 (Wed, 13 Jan 2021)

  Changed paths:
    M mlir/docs/Dialects/Linalg.md
    M mlir/test/mlir-linalg-ods-gen/test-linalg-ods-gen.tc
    M mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp

  Log Message:
  -----------
  [mlir][linalg] Use attributes in named ops' indexing maps

This commit adds support for parsing attribute uses in indexing
maps. These attribute uses are represented as affine symbols in
the resultant indexing maps because we can only know their
concrete value (which are coming from op attributes and are
constants) for specific op instances. The `indxing_maps()`
calls are synthesized to read these attributes and create affine
constants to replace the placeholder affine symbols and simplify.

Depends on D94240

Reviewed By: nicolasvasilache

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




More information about the All-commits mailing list