Repository navigation
Adopt pipeline-in-a-pass infra - #3741
Conversation
This avoids needing to register all dialects that a TargetBackend transformation will create because we can now create the pipeline early and query that for its dependent dialects. Now TargetBackends are resposible only for declaring the dialects they create entities from in declareTargetOps, which is a localized thing. Resolves iree-org#1036
|
Ben, it's not totally clear to me that the current infra fulfills your concept of what a "dynamic pass pipeline" would mean here, but I think this is what we're going to get from upstream unless we can better clarify what we're looking for. What, if anything, do you think is still unfulfilled by this approach? |
benvanik
left a comment
There was a problem hiding this comment.
I think this is what we wanted! I think mehdi/river said runPipeline does nice nesting and reuses pass manager options. If we now can get a reproducer spit out from iree-opt if there's an error in a backend pass then I think that fully closes all the related issues!
silvasean
left a comment
There was a problem hiding this comment.
This is exactly how I imagined that we would use it!
LGTM, but leaving it to Ben to finalize the detailed review.
* 1ba69d9 Deduplicate flow.executable ops during Flow dialect transformation. (#3702) * 848b893 Seperate tensorflow coverage into multiple pages (#3758) * be8dd02 Merge pull request #3760 from google/benvanik-aot-windows-prework * 6d83db8 Adding support for embedding debug symbols (pdb/dwarf/etc) in dylibs. * 8a1347f Bumping tracy to disable vsync capture and expose the dbghelp lock. * 4dc7064 Improving error messages in iree-run-module with invalid function names. * 4d7805b Optimizations to reduce dispatch overhead. All of these will be fixed with the.. * d57efa3 Making IREE_CHECK_OK not double-evaluate. Prior to this it would run the expre.. * 10b400e Canonicalizing win32 paths prior to trying to open files. Useful in cases wher.. * f9c11f2 [spirv] Use addNestedPass<FuncOp>() for passes working on functions (#3745) * ab4cb7c Add static, dynamic and training tests for all tf.keras.layers (#3753) * aaf3377 Adopt pipeline-in-a-pass infra (#3741) * 43b1d76 Create template for Bug Reports (#3755) * d264a16 Remove unused deps from kws test (#3751) * 0601682 Add 'deep_copy' to bazel to allow variable reuse (#3750) * a70b1d1 Merge google -> main (#3749) COPYBARA_INTEGRATE_REVIEW=#3762 from ScottTodd:main-to-google 1ba69d9 PiperOrigin-RevId: 341484363
* 1ba69d9 Deduplicate flow.executable ops during Flow dialect transformation. (#3702) * 848b893 Seperate tensorflow coverage into multiple pages (#3758) * be8dd02 Merge pull request #3760 from google/benvanik-aot-windows-prework * 6d83db8 Adding support for embedding debug symbols (pdb/dwarf/etc) in dylibs. * 8a1347f Bumping tracy to disable vsync capture and expose the dbghelp lock. * 4dc7064 Improving error messages in iree-run-module with invalid function names. * 4d7805b Optimizations to reduce dispatch overhead. All of these will be fixed with the.. * d57efa3 Making IREE_CHECK_OK not double-evaluate. Prior to this it would run the expre.. * 10b400e Canonicalizing win32 paths prior to trying to open files. Useful in cases wher.. * f9c11f2 [spirv] Use addNestedPass<FuncOp>() for passes working on functions (#3745) * ab4cb7c Add static, dynamic and training tests for all tf.keras.layers (#3753) * aaf3377 Adopt pipeline-in-a-pass infra (#3741) * 43b1d76 Create template for Bug Reports (#3755) * d264a16 Remove unused deps from kws test (#3751) * 0601682 Add 'deep_copy' to bazel to allow variable reuse (#3750) * a70b1d1 Merge google -> main (#3749) COPYBARA_INTEGRATE_REVIEW=#3762 from ScottTodd:main-to-google 1ba69d9 PiperOrigin-RevId: 341484363
This avoids needing to register all dialects that a TargetBackend
transformation will create because we can now create the pipeline early
and query that for its dependent dialects.
Now TargetBackends are resposible only for declaring the dialects they
create entities from in declareTargetOps, which is a localized thing.
It also nicely propagates pass manager options and gives us parallelism
at the ExecutableTarget level.
Resolves #1036