-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: make FuncDecl/FuncDefn polymorphic #692
Merged
Merged
Changes from 21 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
0de995f
FuncDefn/FuncDecl store PolyFuncType - some horrendous hacks with // …
acl-cqc 6c0edbb
build_main/define_function take PolyFuncType not Signature, but tail_…
acl-cqc 3078259
extract_subgraph and FunctionBuilder::new take PolyFuncType not Signa…
acl-cqc 271a15a
believe define_declaration is correct, but refactor a bit
acl-cqc b781155
declare (FuncDecl) takes PolyFuncType
acl-cqc c56e8c2
builder fn call takes TypeArgs - and ExtensionRegistry, ugh
acl-cqc 9fd164b
validate_children: return early if no children
acl-cqc 78316a1
validate_children=>validate_subtree, breaking more tests (wrong choic…
acl-cqc 9c3048a
Separate validate_subtree
acl-cqc 9cb43a1
Revert "validate_children: return early if no children"
acl-cqc 41f0970
Properly check that args to binary compute_signature have no type vars
acl-cqc 793a00c
Don't implement TypeParametrised for OpDef
acl-cqc c55019c
Remove comments - those were correct changes
acl-cqc 6f5526f
fix doclink
acl-cqc 2fa23e9
Merge 'origin/main' into new/poly_funcdeclfn
acl-cqc 9a656d9
Add PolyFuncType::new, make validate public
acl-cqc 293b663
validate_port from validate_subtree not validate_node; some tests
acl-cqc d9da463
Finally give in and add "impl From<TypeBound> for TypeParam"
acl-cqc 3652d56
Test (and comment) re. nested FuncDefns
acl-cqc d2e281b
Comments re. Dataflow::call()
acl-cqc de374c5
Avoid Itertools::Either - can use ExternalOp
acl-cqc 9b23560
Update since-1.75 test
acl-cqc 9b0b5b9
Provide a BuildError::SignatureError variant
acl-cqc 44166ce
Merge remote-tracking branch 'origin/main' into new/poly_funcdeclfn
acl-cqc f069c92
Comment re FuncDefn::validate_op_children
acl-cqc c3d4c83
CANNOT use type vars from enclosing defn's
acl-cqc 95ddb36
Test no_polymorphic_consts, enforce no TVs on Static edges, add ListV…
acl-cqc 7e8c515
wth -> with
acl-cqc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we should make a new error constructor for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, done, hope the comment clarifies