-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API: add
Op
suffix to all operations in xDSL (#3522)
I recently received feedback that one of the confusing aspects of xDSL is that it's not consistent in terms of operation class naming, unlike MLIR. This PR changes this. To make these changes, I added a runtime check to Operation's post_init, asserted that it ended in "Op", and changed the class names to make everything pass, then reverted that change, so this PR converts all the classes that are initialized at some point in our tests to this naming convention. We might want to add that check in the future, but I wanted to discuss this in a separate PR. This was the check I used: ``` python assert ( "cmath" in self.name or self.__class__.__name__[-2:] == "Op" ), self.__class__.__name__ ```
- Loading branch information
1 parent
b7e13f2
commit 9fa78bf
Showing
174 changed files
with
2,303 additions
and
2,212 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
Oops, something went wrong.