forked from tensorflow/mlir
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR introduces the infrastructure to provide a custom Std-to-LLVM lowering for MemRef type: * MemRefDescriptor class is turned into an abstract API that defines the methods needed to perform the custom lowering. * Existing MemRefDesriptor class is renamed to DefaultMemRefDescriptor. It provides default struct lowering implementation (NFC). * TestCustomMemRefLLVMLowering.cpp implements a custom MemRef descriptor lowering and LLVM type converter with the basic functionality to lower MemRef type to a plain pointer to element type. * convert-memref-ops.mlir is split into convert-static-memref-ops.mlir and `convert-dynamic-memref-ops.mlir` so that TestCustomMemRefLLVMLowering.cpp can be tested on all the static MemRef tests available. Related discussion: tensorflow#309
- Loading branch information
Showing
9 changed files
with
792 additions
and
308 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
Oops, something went wrong.