forked from apache/tvm
-
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.
[TIR][Driver] Move ShouldAnnotateEntryFunc logic into transform (apac…
…he#14562) * [TIR][Driver] Move ShouldAnnotateEntryFunc logic into transform Prior to this commit, the `MixedModulePassManager` determined whether the module should have its entry function annotated, while the `AnnotateEntryFunc` validates that this condition was upheld, duplicating the logic applied. This commit moves the logic to `AnnotateEntryFunc`, which is unconditionally called from the `MixedModulePassManager`, but which is a no-op for cases where no annotation is required. * Maintain previous behavior for modules with one function
- Loading branch information
1 parent
ddd2e81
commit a954742
Showing
2 changed files
with
44 additions
and
14 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