Commit Graph

5 Commits

Author SHA1 Message Date
Morten Borup Petersen 2d5701606c Fix CI 2021-12-14 09:50:27 -08:00
William S. Moses ce76680ee9 Fix build 2021-12-10 09:59:31 -05:00
Morten Borup Petersen 1f6f1e97e7 constrain dynamic indexing based on downstream casts 2021-12-08 15:31:48 -05:00
Morten Borup Petersen e216fc1163 Also simplify trivial dynamic subindexing patterns 2021-12-08 15:31:48 -05:00
Morten Borup Petersen c0aaebb555 Add subindex lowering + testsuite
This commit adds support for lowering polygeist.subindex to memref.subview. This PR addressses this as a lowering pass rather than modifying the internals of Polygeist, since it's faster for me, an outsider, to implement :). In reality, I'd suspect memref.subview subsumes the capabilities of polygeist.subindex.

In addition to this, sets up a lit test suite for polygeist-opt and friends allowing for polygeist transformations to be tested.

Can be considered a partial fix to #111 (only considers statically sized memrefs, for now...).
2021-12-08 15:31:48 -05:00