-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LowerClasses] Ensure classes are instantiated by an object. (#7072)
LowerClasses creates an object for a corresponding instance only if the instantiated module has property ports. But a class can be created for a corresponding module based on other conditions like, if the module is public, or instantiates other classes. This results in un-instantiated classes that donot correspond to the module hierarchy. This change ensures that if a class is created for a module, the object is also created from the corresponding instance. Thus the module hierarchy is also preserved in the om IR. Downstream tools parsing the IR can assume a single top level class which is required for object model evaluation.
- Loading branch information
Showing
2 changed files
with
18 additions
and
10 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