Basic SemIR partial support (#5736)

This adds something similar to the level of `const` support - that it's
a type, but not the conversions and limitations on usage that are
needed.

---------

Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
This commit is contained in:
David Blaikie
2025-06-26 23:55:48 +00:00
committed by GitHub
co-authored by Chandler Carruth
parent 49212feac6
commit b39a0f0c8c
11 changed files with 405 additions and 1 deletions
+6
View File
@@ -514,6 +514,12 @@ class Stringifier {
name_scope.name_id());
}
auto StringifyInst(InstId /*inst_id*/, PartialType inst) -> void {
*out_ << "partial ";
step_stack_->PushInstId(inst.inner_id);
}
auto StringifyInst(InstId /*inst_id*/, PatternType inst) -> void {
*out_ << "<pattern for ";
step_stack_->Push(inst.scrutinee_type_inst_id, ">");