-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What's changed This change implements a bufferization interface for the ttir generic op and to_layout op and invokes the relevant passes. This also means that these ops can now accept memrefs as inputs. Some excellent documentation on the bufferization pass can be found here https://mlir.llvm.org/docs/Bufferization/. The motivation in our case is to leverage this upstream machinery and get "for free": - Automatic analysis of buffer allocation, aliasing, deallocation - Type conversion from tensors to buffer objects - Seamless integration with other dialects used at this stage, memref, linalg, affine, etc. ### Checklist - [x] New/Existing tests provide coverage for changes
- Loading branch information
Showing
18 changed files
with
522 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.