Add facet type values and an instruction that produces them (#4460)

Still to do:
* Represent facet type values in a canonical form
* Produce & consume facet type values instead of interface values
* `type` should be associated with a canonical facet type value
* Support `&` on facet type values
* Type check and enforce requirements in facet types

---------

Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
josh11bandJosh L authored and GitHub committed 2024-11-04 21:43:55 +00:00
1 parent 607522c7de
commit ea0b0b4b48
18 files changed
+495 -253

No files matched your search

+1
View File
@@ -256,6 +256,7 @@ auto GetExprCategory(const File& file, InstId inst_id) -> ExprCategory {
case ClassType::Kind:
case CompleteTypeWitness::Kind:
case ConstType::Kind:
case FacetType::Kind:
case FacetTypeAccess::Kind:
case FloatLiteral::Kind:
case FloatType::Kind: