Skip to content

Conversation

aviatesk
Copy link
Member

@aviatesk aviatesk commented Jan 6, 2024

We would probably need to backport similar changes to 1.10 too.

xref: aviatesk/JET.jl#589

We would probably need to backport similar changes to 1.10 too.

xref: aviatesk/JET.jl#589
@aviatesk aviatesk force-pushed the avi/memoryop-lattice branch from 5707c9a to 5354a8b Compare January 6, 2024 10:59
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.:(𝕃)
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member

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

Copy link
Member Author

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.

Copy link
Member

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

@aviatesk aviatesk merged commit bac95cc into master Jan 7, 2024
@aviatesk aviatesk deleted the avi/memoryop-lattice branch January 7, 2024 01:36
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.

3 participants