HomePhabricator

Moved getStaticLoopRanges and getStaticShape methods to LinalgInterfaces.td to…

Authored by inho9606 on Mar 10 2021, 3:56 AM.

Description

Moved getStaticLoopRanges and getStaticShape methods to LinalgInterfaces.td to add static shape verification

It is to use the methods in LinalgInterfaces.cpp for additional static shape verification to match the shaped operands and loop on linalgOps. If I used the existing methods, I would face circular dependency linking issue. Now we can use them as methods of LinalgOp.

Reviewed By: hanchung

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