-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
inference: thread lattice through memoryop type check #52773
Conversation
We would probably need to backport similar changes to 1.10 too. xref: aviatesk/JET.jl#589
5707c9a
to
5354a8b
Compare
# Check that we can determine the element type | ||
isa(memtype, DataType) || return false | ||
elemtype_expected = memoryref_elemtype(memtype) | ||
elemtype_expected === Union{} && return false | ||
# Check that the element type is compatible with the element we're assigning | ||
⊑ = Core.Compiler.:⊑(𝕃) |
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.
Aren't we already in Core.Compiler here?
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.
This is a hack to use the same symbol as a binary operator in the local context.
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.
A little ugly, but I guess I don't care.
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.
Should be just Compiler.⊑
then, since Core.Compiler
might be a different module from 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.
tfuncs.jl is loaded only within Core.Compiler
, but let's make this clean in another PR.
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 often load other Compilers that aren't the one in Core
We would probably need to backport similar changes to 1.10 too.
xref: aviatesk/JET.jl#589