Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce hierarchical type system and refactor operator / implementation registration #36

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

finn-rudolph
Copy link
Contributor

There are quite a few issues I have to fix, but some tests already run again. (In particular, the signature tree must be able to deal with template types.)

Changes:

  • The operators are now instances, not classes. This makes configuring them for code generation a bit less clumsy.
  • Implementation registration is now done within a single with statement, not a separate one for each operator
  • There is a implicit conversion cost matrix in tree/types.py called IMPLICIT_CONV. We may have to change this to make all the conversions behave as expected. The cost of a conversion is a tuple of two ints.
  • All signature-related stuff is not done via strings + parsing anymore, but via actual type objects.

@finn-rudolph finn-rudolph requested a review from a team as a code owner October 18, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant