Repository navigation
Adds -iree-tf-strip-*-metadata passes that remove tf attributes. - #3969
Conversation
While here I noticed that this directory is a mismatch of styles from MLIR and TF, wasn't properly namespaced (both on pass names or C++) in many places, and didn't follow the rest of the conventions used in iree/compiler/. To make this code easier to maintain and before we start to copypasta it for other integrations I did a first-pass cleanup. I also noticed we still had a bunch of super flakey alwayslink stuff so I fixed that too. No more alwayslink required! Fixes #3965.
f46c061 to
39b18b5
Compare
ScottTodd
left a comment
There was a problem hiding this comment.
Sorry for the delayed reviews. This generally LGTM.
- Any thoughts, @rsuderman ?
- This has some conflicts with tip of tree and with @stellaraccident 's pending #4043 . How do you all want to proceed?
|
|
||
| // All IREE-specific passes that lower TF representations before reaching the | ||
| // IREE core should go here. | ||
| void createIreeTfImportPipeline(OpPassManager &pm) { |
There was a problem hiding this comment.
@stellaraccident this (and possibly other files) will conflict with #4043
There was a problem hiding this comment.
FIFO - go ahead and land and I'll rebase and likely submit on the OSS side (thought there were going to be more internal entanglements than I thought so started there). I can wait ~a day.
There was a problem hiding this comment.
SGTM. I just resolved the merge conflicts with @rsuderman 's #3941. Planning on merging once checks come back green.
There was a problem hiding this comment.
Thanks - I was going to offer to help land it, but it seems like you've already done the work :)
There was a problem hiding this comment.
Sorry for the delayed reviews. This generally LGTM.
- Any thoughts, @rsuderman ?
- This has some conflicts with tip of tree and with @stellaraccident 's pending Extract standalone "iree-tf-import" tool. #4043 . How do you all want to proceed?
Looks fine with me assuming it does not conflict too much with Stella's changes. I initially hesitated at removing the metadata until I realized its long after I need it for shape inference.
There was a problem hiding this comment.
It conflicts but I'll rebase (and had already locally fixed up some of the style issues so hopefully not too bad) and send a fresh PR on the main branch when ready.
While here I noticed that this directory is a mismatch of styles from
MLIR and TF, wasn't properly namespaced (both on pass names or C++) in
many places, and didn't follow the rest of the conventions used in
iree/compiler/. To make this code easier to maintain and before we start
to copypasta it for other integrations I did a first-pass cleanup.
I also noticed we still had a bunch of super flakey alwayslink stuff so
I fixed that too. No more alwayslink required!
Fixes #3965.