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
+5
View File
@@ -167,6 +167,11 @@ auto EvalConstantInst(Context& context, SemIR::ConstType inst)
return ConstantEvalResult::NewSamePhase(inst);
}
auto EvalConstantInst(Context& /*context*/, SemIR::PartialType inst)
-> ConstantEvalResult {
return ConstantEvalResult::NewSamePhase(inst);
}
auto EvalConstantInst(Context& context, SemIR::Converted inst)
-> ConstantEvalResult {
// A conversion evaluates to the result of the conversion.