Skip to content

add flags to InternedTy and InternedRegion types #627

Closed
@nikomatsakis

Description

@nikomatsakis

In rustc, we have a "flags" system that propagates information about a type upward and which can be used to shortcircuit a lot of work. The [TypeFlags] propagates various bits. Each time a type is interned, the flags from any subtypes are combined to form the flags for the new interned type. This allows us to do things like skip subtrees that don't contain the sort of thing we are looking for efficiently.

In the meeting today we discussed different ways of doing this. I'll add a comment with more notes.

Metadata

Metadata

Assignees

Labels

good first issueA good issue to start working on Chalk with

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions