Skip to content

Move LinalgBufferizePass to use patterns #5013

Closed

Description

@MaheshRavishankar

The current LinalgBufferize Pass (used on the Linalg on tensors path) is doing direct IR manipulation. That gets tricky cause

  1. It is keeping the previous operations in place
  2. Gets complicated as you have to deal with nested regions.

The pass currently tracks the changes using BlockAndValueMapper, etc. It would be better to use the PatternRewrite mechanism for it.

Activity

  1. added
    codegen
    on Mar 5, 2021
  2. MaheshRavishankar commented on Mar 13, 2021

    @MaheshRavishankar
    CollaboratorAuthor

    One thing that is needed to use patterns is that we need to preprocess to mark which tensors can use the same buffers. After this pre-processing, pattern rewrites can be used. This is the approach being used in the bufferization work in the silo. Use that to cleaup bufferization.

  3. added a commit that references this issue on Apr 22, 2021
    245bb9f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

codegen

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions