Add MaybeUnformed(T) type. (#5989)

This type has the same object representation as `T`, but always uses a
pointer type as its value representation. No other semantics are
provided for it yet.
This commit is contained in:
Richard Smith
2025-09-02 20:50:49 +00:00
committed by GitHub
parent 4483d1e5a7
commit 0e6dd7e701
16 changed files with 318 additions and 21 deletions
+4
View File
@@ -521,6 +521,10 @@ class Stringifier {
sem_ir_->specific_interfaces().Get(inst.query_specific_interface_id));
}
auto StringifyInst(InstId /*inst_id*/, MaybeUnformedType inst) -> void {
step_stack_->Push("<builtin MaybeUnformed(", inst.inner_id, ")>");
}
auto StringifyInst(InstId /*inst_id*/, NameRef inst) -> void {
*out_ << sem_ir_->names().GetFormatted(inst.name_id);
}