@@ -85,7 +85,7 @@ class EvalContext {
8585
8686 // Gets the value of the specified compile-time binding in this context.
8787 // Returns `None` if the value is not fixed in this context.
88- auto GetCompileTimeBindValue (SemIR::CompileTimeBindIndex bind_index)
88+ auto GetCompileTimeAcquireValue (SemIR::CompileTimeBindIndex bind_index)
8989 -> SemIR::ConstantId {
9090 if (!bind_index.has_value () || !specific_id_.has_value ()) {
9191 return SemIR::ConstantId::None;
@@ -2142,18 +2142,18 @@ auto TryEvalTypedInst<SemIR::ImportRefLoaded>(EvalContext& /*eval_context*/,
21422142// Symbolic bindings are a special case because they can reach into the eval
21432143// context and produce a context-specific value.
21442144template <>
2145- auto TryEvalTypedInst<SemIR::BindSymbolicName >(EvalContext& eval_context,
2146- SemIR::InstId inst_id,
2147- SemIR::Inst inst)
2145+ auto TryEvalTypedInst<SemIR::SymbolicBinding >(EvalContext& eval_context,
2146+ SemIR::InstId inst_id,
2147+ SemIR::Inst inst)
21482148 -> SemIR::ConstantId {
2149- auto bind = inst.As <SemIR::BindSymbolicName >();
2149+ auto bind = inst.As <SemIR::SymbolicBinding >();
21502150
21512151 // If we know which specific we're evaluating within and this is an argument
21522152 // of that specific, its constant value is the corresponding argument value.
21532153 const auto & bind_name = eval_context.entity_names ().Get (bind.entity_name_id );
21542154 if (bind_name.bind_index ().has_value ()) {
21552155 if (auto value =
2156- eval_context.GetCompileTimeBindValue (bind_name.bind_index ());
2156+ eval_context.GetCompileTimeAcquireValue (bind_name.bind_index ());
21572157 value.has_value ()) {
21582158 return value;
21592159 }
@@ -2165,7 +2165,7 @@ auto TryEvalTypedInst<SemIR::BindSymbolicName>(EvalContext& eval_context,
21652165 bind.value_id = SemIR::InstId::None;
21662166 if (!ReplaceTypeWithConstantValue (eval_context, inst_id, &bind, &phase) ||
21672167 !ReplaceFieldWithConstantValue (eval_context, &bind,
2168- &SemIR::BindSymbolicName ::entity_name_id,
2168+ &SemIR::SymbolicBinding ::entity_name_id,
21692169 &phase)) {
21702170 return SemIR::ConstantId::NotConstant;
21712171 }
@@ -2184,14 +2184,14 @@ auto TryEvalTypedInst<SemIR::SymbolicBindingType>(EvalContext& eval_context,
21842184 inst.As <SemIR::SymbolicBindingType>().entity_name_id );
21852185 if (bind_name.bind_index ().has_value ()) {
21862186 if (auto value =
2187- eval_context.GetCompileTimeBindValue (bind_name.bind_index ());
2187+ eval_context.GetCompileTimeAcquireValue (bind_name.bind_index ());
21882188 value.has_value ()) {
21892189 auto value_inst_id = eval_context.constant_values ().GetInstId (value);
21902190
21912191 // A SymbolicBindingType can evaluate to a FacetAccessType if the new
21922192 // value of the entity is a facet value that that does not have a concrete
21932193 // type (a FacetType) and does not have a new EntityName to point to (a
2194- // BindSymbolicName ).
2194+ // SymbolicBinding ).
21952195 auto access = SemIR::FacetAccessType{
21962196 .type_id = SemIR::TypeType::TypeId,
21972197 .facet_value_inst_id = value_inst_id,
0 commit comments