mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 17:06:41 +00:00
Make SemIR::TypeType be an empty FacetType instruction (#7813)
The type `type` is now a `FacetType` inst with no constraints. This brings the model implemented in the toolchain into better alignment with the language design. The `SemIR::TypeType` struct remains as a scope for holding the `TypeInstId`, `ConstantId`, and `TypeId` constants, but is not an `InstKind` anymore. The `TypeType` inst looks a lot like singletons, but there are many `FacetType` insts so it doesn't quite fit that model. So we put it alongside singletons with a fixed inst id but refer to it as a more general "builtin" inst that is not a singleton. `Namespace::PackageInstId` is similar, and we group it with `TypeType` conceptually as another builtin instruction with a fixed id. No conversion is needed anymore to use a `type` as a facet, since types also have a `FacetType` type. This simplifies and removes a number of helpers and branches throughout the code. The `TypeType` inst is now part of the constant store, so we end up printing it in the constants block in every test. But it's also named `type` rather than `%type` to preserve the majority of existing formatting behaviour, though this does look different from other constants. Assisted-by: Opus 5 was used to generate a first draft and validate the refactoring. Though nearly everything non-trivial the tool wrote has been modified or rewritten.
This commit is contained in:
1 parent
83ca5b71e3
commit
fcae9610bd
795 files changed
+9505
-8048
No files matched your search
+18
-24
@@ -1195,15 +1195,14 @@ static auto CanRemoveQualifiers(SemIR::TypeQualifiers quals,
|
||||
static auto DiagnoseConversionFailureToConstraintValue(
|
||||
Context& context, SemIR::LocId loc_id, SemIR::InstId expr_id,
|
||||
SemIR::TypeId target_type_id) -> void {
|
||||
CARBON_CHECK(context.types().IsFacetType(target_type_id));
|
||||
CARBON_CHECK(context.types().Is<SemIR::FacetType>(target_type_id));
|
||||
|
||||
// If the source type is/has a facet value (converted with `as type` or
|
||||
// otherwise), then we can include its `FacetType` in the diagnostic to help
|
||||
// explain what interfaces the source type implements.
|
||||
auto const_expr_id = GetCanonicalFacetOrTypeValue(context, expr_id);
|
||||
// If the source is a facet with constraints (possibly converted to `type`),
|
||||
// then we can include those constraints in the diagnostic.
|
||||
auto const_expr_id = GetCanonicalFacet(context, expr_id);
|
||||
auto const_expr_type_id = context.insts().Get(const_expr_id).type_id();
|
||||
|
||||
if (context.types().Is<SemIR::FacetType>(const_expr_type_id)) {
|
||||
if (context.types().IsConstrainedFacetType(const_expr_type_id)) {
|
||||
CARBON_DIAGNOSTIC(ConversionFailureFacetToFacet, Error,
|
||||
"cannot convert type {0} that implements {1} into type "
|
||||
"implementing {2}",
|
||||
@@ -1556,7 +1555,7 @@ static auto PerformBuiltinConversion(Context& context, SemIR::LocId loc_id,
|
||||
}
|
||||
}
|
||||
|
||||
if (sem_ir.types().IsFacetType(target.type_id)) {
|
||||
if (sem_ir.types().Is<SemIR::FacetType>(target.type_id)) {
|
||||
auto type_value_id = SemIR::TypeInstId::None;
|
||||
|
||||
// A tuple of types converts to type `type`.
|
||||
@@ -1574,7 +1573,7 @@ static auto PerformBuiltinConversion(Context& context, SemIR::LocId loc_id,
|
||||
}
|
||||
|
||||
if (type_value_id != SemIR::InstId::None) {
|
||||
if (sem_ir.types().Is<SemIR::FacetType>(target.type_id)) {
|
||||
if (target.type_id != SemIR::TypeType::TypeId) {
|
||||
// Use the converted `TypeType` value for converting to a facet.
|
||||
value_id = type_value_id;
|
||||
value_type_id = SemIR::TypeType::TypeId;
|
||||
@@ -1585,21 +1584,18 @@ static auto PerformBuiltinConversion(Context& context, SemIR::LocId loc_id,
|
||||
}
|
||||
}
|
||||
|
||||
// FacetType converts to Type by wrapping the facet value in
|
||||
// FacetAccessType.
|
||||
// All facets convert to `type` by wrapping the facet in FacetAccessType.
|
||||
if (target.type_id == SemIR::TypeType::TypeId &&
|
||||
sem_ir.types().Is<SemIR::FacetType>(value_type_id)) {
|
||||
sem_ir.types().IsConstrainedFacetType(value_type_id)) {
|
||||
return AddInst<SemIR::FacetAccessType>(
|
||||
context, loc_id,
|
||||
{.type_id = target.type_id, .facet_value_inst_id = value_id});
|
||||
}
|
||||
|
||||
// Type values can convert to facet values, and facet values can convert to
|
||||
// other facet values, as long as they satisfy the required interfaces of the
|
||||
// target `FacetType`.
|
||||
if (sem_ir.types().Is<SemIR::FacetType>(target.type_id) &&
|
||||
sem_ir.types().IsOneOf<SemIR::TypeType, SemIR::FacetType>(
|
||||
value_type_id)) {
|
||||
// All facets (including types) can convert into other facets, as long as they
|
||||
// satisfy the constraints of the target `FacetType`.
|
||||
if (sem_ir.types().IsConstrainedFacetType(target.type_id) &&
|
||||
sem_ir.types().Is<SemIR::FacetType>(value_type_id)) {
|
||||
// TODO: Runtime facet values should be allowed to convert based on their
|
||||
// FacetTypes, but we assume constant values for impl lookup at the moment.
|
||||
if (!context.constant_values().Get(value_id).is_constant()) {
|
||||
@@ -1608,9 +1604,9 @@ static auto PerformBuiltinConversion(Context& context, SemIR::LocId loc_id,
|
||||
}
|
||||
|
||||
// Get the canonical type for which we want to attach a new set of witnesses
|
||||
// to match the requirements of the target FacetType.
|
||||
// to match the requirements of the target `FacetType`.
|
||||
auto type_inst_id = SemIR::TypeInstId::None;
|
||||
if (sem_ir.types().Is<SemIR::FacetType>(value_type_id)) {
|
||||
if (value_type_id != SemIR::TypeType::TypeId) {
|
||||
type_inst_id = AddTypeInst<SemIR::FacetAccessType>(
|
||||
context, loc_id,
|
||||
{.type_id = SemIR::TypeType::TypeId,
|
||||
@@ -1627,8 +1623,7 @@ static auto PerformBuiltinConversion(Context& context, SemIR::LocId loc_id,
|
||||
// would evaluate back to the original SymbolicBinding as its canonical
|
||||
// form. We can skip past the whole impl lookup step then and do that
|
||||
// here.
|
||||
auto facet_value_inst_id =
|
||||
GetCanonicalFacetOrTypeValue(context, type_inst_id);
|
||||
auto facet_value_inst_id = GetCanonicalFacet(context, type_inst_id);
|
||||
if (sem_ir.insts().Get(facet_value_inst_id).type_id() == target.type_id) {
|
||||
return facet_value_inst_id;
|
||||
}
|
||||
@@ -1742,8 +1737,7 @@ static auto PerformUserDefinedConversion(Context& context, SemIR::LocId loc_id,
|
||||
target.kind == ConversionTarget::ExplicitAs ? 1
|
||||
: target.kind == ConversionTarget::ExplicitUnsafeAs ? 2
|
||||
: 0;
|
||||
if (target.type_id == SemIR::TypeType::TypeId ||
|
||||
context.types().Is<SemIR::FacetType>(target.type_id)) {
|
||||
if (context.types().Is<SemIR::FacetType>(target.type_id)) {
|
||||
CARBON_DIAGNOSTIC(
|
||||
ConversionFailureNonTypeToFacet, Context,
|
||||
"cannot{0:=0: implicitly|:} convert non-type value of type {1} "
|
||||
@@ -2113,7 +2107,7 @@ static auto ConversionNeedsCompleteTarget(Context& context,
|
||||
// We allow conversion to incomplete facet types, since their representation
|
||||
// is fixed. This allows us to support using the `Self` of an interface inside
|
||||
// its definition.
|
||||
if (context.types().IsFacetType(target.type_id)) {
|
||||
if (context.types().Is<SemIR::FacetType>(target.type_id)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,10 +30,9 @@ namespace Carbon::Check {
|
||||
static auto IsTemplateArg(Context& context, SemIR::InstId arg_id) -> bool {
|
||||
auto arg_type_id = context.insts().Get(arg_id).type_id();
|
||||
auto arg_type = context.types().GetAsInst(arg_type_id);
|
||||
return arg_type
|
||||
.IsOneOf<SemIR::TypeType, SemIR::FacetType, SemIR::CppTemplateNameType,
|
||||
SemIR::GenericClassType, SemIR::GenericInterfaceType,
|
||||
SemIR::GenericNamedConstraintType>();
|
||||
return arg_type.IsOneOf<SemIR::FacetType, SemIR::CppTemplateNameType,
|
||||
SemIR::GenericClassType, SemIR::GenericInterfaceType,
|
||||
SemIR::GenericNamedConstraintType>();
|
||||
}
|
||||
|
||||
// Splits a call argument list into a list of template arguments followed by a
|
||||
|
||||
@@ -332,8 +332,7 @@ static auto ExportGenericBindings(Context& context, SemIR::LocId loc_id,
|
||||
CARBON_CHECK(param_ident, "non-identifier param name {0}",
|
||||
entity_name.name_id);
|
||||
|
||||
if (symbolic_binding.type_id != SemIR::TypeType::TypeId &&
|
||||
!context.types().Is<SemIR::FacetType>(symbolic_binding.type_id)) {
|
||||
if (!context.types().Is<SemIR::FacetType>(symbolic_binding.type_id)) {
|
||||
context.TODO(loc_id, "binding maps to a non-type template parameter");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -28,24 +28,6 @@
|
||||
|
||||
namespace Carbon::Check {
|
||||
|
||||
// Given a value whose type `IsFacetTypeOrError`, returns the corresponding
|
||||
// type.
|
||||
static auto GetFacetAsType(Context& context,
|
||||
SemIR::ConstantId facet_or_type_const_id)
|
||||
-> SemIR::TypeId {
|
||||
auto facet_or_type_id =
|
||||
context.constant_values().GetInstId(facet_or_type_const_id);
|
||||
auto type_type_id = context.insts().Get(facet_or_type_id).type_id();
|
||||
CARBON_CHECK(context.types().IsFacetTypeOrError(type_type_id));
|
||||
|
||||
if (context.types().Is<SemIR::FacetType>(type_type_id)) {
|
||||
// It's a facet; access its type.
|
||||
facet_or_type_id = context.types().GetTypeInstId(
|
||||
GetFacetAccessType(context, facet_or_type_id));
|
||||
}
|
||||
return context.types().GetTypeIdForTypeInstId(facet_or_type_id);
|
||||
}
|
||||
|
||||
// Make the CanonicalKey for a generated function `op_name_id` in the interface
|
||||
// `core_specific_interface`.
|
||||
static auto MakeGeneratedFunctionKey(
|
||||
@@ -242,13 +224,13 @@ static auto CanDestroyType(Context& context, SemIR::LocId loc_id,
|
||||
SemIR::SpecificInterface query_specific_interface)
|
||||
-> DestroyFormat {
|
||||
auto inst_id = context.constant_values().GetInstId(
|
||||
GetCanonicalFacetOrTypeValue(context, query_self_const_id));
|
||||
GetCanonicalFacet(context, query_self_const_id));
|
||||
auto inst = context.insts().Get(inst_id);
|
||||
|
||||
if (context.types().Is<SemIR::FacetType>(inst.type_id())) {
|
||||
// The value's type is a facet (whose type is a facet type). We don't
|
||||
// provide a custom witness for symbolic values of type facet. The witness
|
||||
// will be found from impl lookup.
|
||||
if (context.types().IsConstrainedFacetType(inst.type_id())) {
|
||||
// The value's type is a symbolic constrained facet. We don't provide a
|
||||
// custom witness for constrained facets. The witness must be found in the
|
||||
// constraints by impl lookup.
|
||||
CARBON_CHECK(query_self_const_id.is_symbolic());
|
||||
return DestroyFormat::NoDestroy;
|
||||
}
|
||||
@@ -360,7 +342,6 @@ static auto CanDestroyType(Context& context, SemIR::LocId loc_id,
|
||||
case SemIR::IntLiteralType::Kind:
|
||||
case SemIR::IntType::Kind:
|
||||
case SemIR::PointerType::Kind:
|
||||
case SemIR::TypeType::Kind:
|
||||
// Trivially destructible.
|
||||
return DestroyFormat::Trivial;
|
||||
|
||||
@@ -481,7 +462,8 @@ static auto GetTypesForSelfFacet(
|
||||
query_specific_interface));
|
||||
// The Self facet needs to point to a type value. If it's not one already,
|
||||
// convert to type.
|
||||
auto query_self_as_type_id = GetFacetAsType(context, query_self_const_id);
|
||||
auto query_self_as_type_id = GetFacetAccessType(
|
||||
context, context.constant_values().GetInstId(query_self_const_id));
|
||||
return {facet_type_for_query_specific_interface, query_self_as_type_id};
|
||||
}
|
||||
|
||||
@@ -663,7 +645,8 @@ auto BuildPrimitiveCopyWitness(
|
||||
Context& context, SemIR::LocId loc_id,
|
||||
SemIR::ConstantId query_self_const_id,
|
||||
SemIR::SpecificInterface query_specific_interface) -> SemIR::InstId {
|
||||
auto self_type_id = GetFacetAsType(context, query_self_const_id);
|
||||
auto self_type_id = GetFacetAccessType(
|
||||
context, context.constant_values().GetInstId(query_self_const_id));
|
||||
|
||||
auto op_id = MakeBuiltinOperatorFunction(
|
||||
context, loc_id, {self_type_id}, self_type_id, CoreIdentifier::Op,
|
||||
@@ -682,7 +665,8 @@ static auto BuildDestroyWitness(
|
||||
-> SemIR::InstId {
|
||||
CARBON_CHECK(format != DestroyFormat::NoDestroy);
|
||||
|
||||
auto self_type_id = GetFacetAsType(context, query_self_const_id);
|
||||
auto self_type_id = GetFacetAccessType(
|
||||
context, context.constant_values().GetInstId(query_self_const_id));
|
||||
auto op_id =
|
||||
MakeDestroyOpFunction(context, loc_id, self_type_id,
|
||||
query_specific_interface.interface_id, format);
|
||||
@@ -740,8 +724,10 @@ static auto MakeIntFitsInWitness(
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
auto src_type_id = GetFacetAsType(context, query_self_const_id);
|
||||
auto dest_type_id = GetFacetAsType(context, dest_const_id);
|
||||
auto src_type_id = GetFacetAccessType(
|
||||
context, context.constant_values().GetInstId(query_self_const_id));
|
||||
auto dest_type_id = GetFacetAccessType(
|
||||
context, context.constant_values().GetInstId(dest_const_id));
|
||||
|
||||
auto context_fn = [](DiagnosticContextBuilder& /*builder*/) -> void {};
|
||||
if (!RequireCompleteType(context, src_type_id, loc_id, context_fn) ||
|
||||
@@ -836,8 +822,10 @@ static auto MakeFloatFitsInWitness(
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
auto src_type_id = GetFacetAsType(context, query_self_const_id);
|
||||
auto dest_type_id = GetFacetAsType(context, dest_const_id);
|
||||
auto src_type_id = GetFacetAccessType(
|
||||
context, context.constant_values().GetInstId(query_self_const_id));
|
||||
auto dest_type_id = GetFacetAccessType(
|
||||
context, context.constant_values().GetInstId(dest_const_id));
|
||||
|
||||
auto context_fn = [](DiagnosticContextBuilder& /*builder*/) -> void {};
|
||||
if (!RequireCompleteType(context, src_type_id, loc_id, context_fn) ||
|
||||
|
||||
@@ -306,11 +306,11 @@ auto DeductionContext::Deduce() -> bool {
|
||||
if (context().types().Is<SemIR::PatternType>(param_type_id)) {
|
||||
param_type_id =
|
||||
SemIR::ExtractScrutineeType(context().sem_ir(), param_type_id);
|
||||
} else if (context().types().IsFacetType(param_type_id)) {
|
||||
} else if (context().types().Is<SemIR::FacetType>(param_type_id)) {
|
||||
// Given `fn F[G: Interface](g: G)`, the type of `g` is `G as type`. For
|
||||
// deduction, we want to ignore the `as type`, and check that the argument
|
||||
// can convert to the FacetType of the canonical facet value.
|
||||
param_id = GetCanonicalFacetOrTypeValue(context(), param_id);
|
||||
// can convert to the FacetType of the canonical facet.
|
||||
param_id = GetCanonicalFacet(context(), param_id);
|
||||
param = context().insts().Get(param_id);
|
||||
param_type_id = param.type_id();
|
||||
}
|
||||
|
||||
@@ -3340,15 +3340,15 @@ static auto AddRequirementImpls(Context& context, SemIR::RequirementImpls impls,
|
||||
llvm::append_range(declared_facet_type->self_impls_named_constraints,
|
||||
rhs.extend_named_constraints);
|
||||
} else {
|
||||
auto lhs_facet_or_type = GetCanonicalFacetOrTypeValue(context, lhs_id);
|
||||
auto lhs_facet = GetCanonicalFacet(context, lhs_id);
|
||||
|
||||
auto extends_interface = [=](SemIR::SpecificInterface si)
|
||||
-> SemIR::DeclaredFacetType::TypeImplsInterface {
|
||||
return {lhs_facet_or_type, si};
|
||||
return {lhs_facet, si};
|
||||
};
|
||||
auto extends_constraint = [=](SemIR::SpecificNamedConstraint sc)
|
||||
-> SemIR::DeclaredFacetType::TypeImplsNamedConstraint {
|
||||
return {lhs_facet_or_type, sc};
|
||||
return {lhs_facet, sc};
|
||||
};
|
||||
|
||||
// Extend constraints are copied over without replacing anything, but are
|
||||
|
||||
@@ -214,24 +214,37 @@ auto EvalConstantInst(Context& context, SemIR::ExportDecl inst)
|
||||
|
||||
auto EvalConstantInst(Context& context, SemIR::FacetAccessType inst)
|
||||
-> ConstantEvalResult {
|
||||
if (auto facet_value = context.insts().TryGetAs<SemIR::FacetValue>(
|
||||
inst.facet_value_inst_id)) {
|
||||
auto facet = context.insts().Get(inst.facet_value_inst_id);
|
||||
CARBON_CHECK(context.types().Is<SemIR::FacetType>(facet.type_id()));
|
||||
|
||||
// If the facet is a `type`, we can evaluate to the facet.
|
||||
if (facet.type_id() == SemIR::TypeType::TypeId) {
|
||||
return ConstantEvalResult::Existing(
|
||||
context.constant_values().Get(inst.facet_value_inst_id));
|
||||
}
|
||||
|
||||
// If the facet is a FacetValue, it wraps a `type`, and we can evaluate to
|
||||
// that `type`.
|
||||
if (auto facet_value = facet.TryAs<SemIR::FacetValue>()) {
|
||||
return ConstantEvalResult::Existing(
|
||||
context.constant_values().Get(facet_value->type_inst_id));
|
||||
}
|
||||
|
||||
// The `facet_value_inst_id` is always a facet value (has type facet type).
|
||||
CARBON_CHECK(context.types().Is<SemIR::FacetType>(
|
||||
context.insts().Get(inst.facet_value_inst_id).type_id()));
|
||||
|
||||
// Other instructions (e.g. ImplWitnessAccess) of type FacetType can appear
|
||||
// here, in which case the constant inst is a FacetAccessType until those
|
||||
// Other instructions (e.g. ImplWitnessAccess) of type `FacetType` can appear
|
||||
// here, in which case the constant inst is a `FacetAccessType` until those
|
||||
// instructions resolve to one of the above.
|
||||
return ConstantEvalResult::NewSamePhase(inst);
|
||||
}
|
||||
|
||||
auto EvalConstantInst(Context& context, SemIR::FacetValue inst)
|
||||
-> ConstantEvalResult {
|
||||
// If the FacetValue is of type `type`, then it evaluates to the type inside
|
||||
// it.
|
||||
if (inst.type_id == SemIR::TypeType::TypeId) {
|
||||
return ConstantEvalResult::Existing(
|
||||
context.constant_values().Get(inst.type_inst_id));
|
||||
}
|
||||
|
||||
// A FacetValue that just wraps a facet without adding/removing any witnesses
|
||||
// (which means they have the same type) is evaluated to the facet itself.
|
||||
if (auto access =
|
||||
@@ -296,7 +309,7 @@ static auto TryFindValueInRewriteConstraints(
|
||||
SemIR::ElementIndex interface_index, SemIR::InstId search_facet)
|
||||
-> SemIR::ConstantId {
|
||||
auto access_self_type_id = context.insts().Get(search_facet).type_id();
|
||||
if (context.types().Is<SemIR::TypeType>(access_self_type_id)) {
|
||||
if (access_self_type_id == SemIR::TypeType::TypeId) {
|
||||
// A self facet of type `type` has no rewrite constraints to look in.
|
||||
return SemIR::ConstantId::None;
|
||||
}
|
||||
|
||||
@@ -467,29 +467,6 @@ auto ResolveFacetTypeRewriteConstraints(
|
||||
return true;
|
||||
}
|
||||
|
||||
auto GetEmptyFacetType(Context& context) -> SemIR::TypeId {
|
||||
SemIR::DeclaredFacetTypeId declared_facet_type_id =
|
||||
context.declared_facet_types().Add(SemIR::DeclaredFacetType{});
|
||||
auto const_id = EvalOrAddInst<SemIR::FacetType>(
|
||||
context, SemIR::LocId::None,
|
||||
{.type_id = SemIR::TypeType::TypeId,
|
||||
.declared_facet_type_id = declared_facet_type_id});
|
||||
return context.types().GetTypeIdForTypeConstantId(const_id);
|
||||
}
|
||||
|
||||
auto GetConstantFacetValueForType(Context& context,
|
||||
SemIR::TypeInstId type_inst_id)
|
||||
-> SemIR::ConstantId {
|
||||
// We use an empty facet type because values of type `type` do not provide any
|
||||
// witnesses of their own.
|
||||
auto type_facet_type = GetEmptyFacetType(context);
|
||||
return EvalOrAddInst<SemIR::FacetValue>(
|
||||
context, SemIR::LocId::None,
|
||||
{.type_id = type_facet_type,
|
||||
.type_inst_id = type_inst_id,
|
||||
.witnesses_block_id = SemIR::InstBlockId::Empty});
|
||||
}
|
||||
|
||||
auto GetConstantFacetValueForTypeAndInterface(
|
||||
Context& context, SemIR::TypeInstId type_inst_id,
|
||||
SemIR::SpecificInterface specific_interface, SemIR::InstId witness_id)
|
||||
|
||||
@@ -58,19 +58,6 @@ auto ResolveFacetTypeRewriteConstraints(
|
||||
llvm::SmallVector<SemIR::DeclaredFacetType::RewriteConstraint>& rewrites)
|
||||
-> bool;
|
||||
|
||||
// Get a FacetType instruction for an empty FacetType. This is the facet
|
||||
// equivalent to TypeType.
|
||||
//
|
||||
// TODO: We vaguely plan to replace TypeType with this FacetType in the future,
|
||||
// though that's a big change.
|
||||
auto GetEmptyFacetType(Context& context) -> SemIR::TypeId;
|
||||
|
||||
// Make a facet value for a type value, which has an empty FacetType as its
|
||||
// type. Returns a constant value, whose instruction payload is a FacetValue.
|
||||
auto GetConstantFacetValueForType(Context& context,
|
||||
SemIR::TypeInstId type_inst_id)
|
||||
-> SemIR::ConstantId;
|
||||
|
||||
// Make a facet value for a type value, which has a FacetType containing the
|
||||
// `specific_interface` as its type. Returns a constant value, whose instruction
|
||||
// payload is a FacetValue.
|
||||
|
||||
@@ -858,7 +858,9 @@ auto MakeSpecificWithInnerSelf(Context& context, SemIR::LocId loc_id,
|
||||
if (self_facet == SemIR::ErrorInst::ConstantId) {
|
||||
args.push_back(SemIR::ErrorInst::InstId);
|
||||
} else {
|
||||
auto self_facet_inst_id = context.constant_values().GetInstId(self_facet);
|
||||
// Use the canonical facet for self in order to produce fewer specifics.
|
||||
auto self_facet_inst_id = context.constant_values().GetInstId(
|
||||
GetCanonicalFacet(context, self_facet));
|
||||
CARBON_CHECK(context.types().Is<SemIR::FacetType>(
|
||||
context.insts().Get(self_facet_inst_id).type_id()));
|
||||
args.push_back(self_facet_inst_id);
|
||||
|
||||
@@ -613,7 +613,7 @@ auto HandleParseNode(Context& context,
|
||||
// compile time binding. This is popped when handling the
|
||||
// CompileTimeBindingPatternId.
|
||||
context.scope_stack().PushForSameRegion();
|
||||
MakePeriodSelfFacetValue(context, node_id, GetEmptyFacetType(context));
|
||||
MakePeriodSelfFacetValue(context, node_id, SemIR::TypeType::TypeId);
|
||||
context.node_stack().Push(
|
||||
node_id, SemIR::ElementIndex(context.binding_type_where_count()));
|
||||
return true;
|
||||
|
||||
@@ -58,9 +58,8 @@ auto HandleParseNode(Context& context, Parse::ObserveEqualEqualId node_id)
|
||||
context.args_type_info_stack().AddInstId(
|
||||
AddInstInNoBlock<SemIR::ObserveEquivalent>(
|
||||
context, node_id,
|
||||
{.lhs_id = GetCanonicalFacetOrTypeValue(context, lhs_as_type.inst_id),
|
||||
.rhs_id =
|
||||
GetCanonicalFacetOrTypeValue(context, rhs_as_type.inst_id)}));
|
||||
{.lhs_id = GetCanonicalFacet(context, lhs_as_type.inst_id),
|
||||
.rhs_id = GetCanonicalFacet(context, rhs_as_type.inst_id)}));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -90,9 +89,8 @@ auto HandleParseNode(Context& context, Parse::ObserveImplsId node_id) -> bool {
|
||||
context.args_type_info_stack().AddInstId(
|
||||
AddInstInNoBlock<SemIR::ObserveImpls>(
|
||||
context, node_id,
|
||||
{.lhs_id = GetCanonicalFacetOrTypeValue(context, lhs_as_type.inst_id),
|
||||
.rhs_id =
|
||||
GetCanonicalFacetOrTypeValue(context, rhs_as_type.inst_id)}));
|
||||
{.lhs_id = GetCanonicalFacet(context, lhs_as_type.inst_id),
|
||||
.rhs_id = GetCanonicalFacet(context, rhs_as_type.inst_id)}));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,10 +42,6 @@ static auto GetPeriodSelfType(Context& context,
|
||||
auto frozen_const_id =
|
||||
FreezePeriodSelf(context, extended_id.AsConstantId());
|
||||
return context.types().GetTypeIdForTypeConstantId(frozen_const_id);
|
||||
} else if (facet_type_type_id == SemIR::TypeType::TypeId) {
|
||||
// The self may be `TypeType` in `type where X impls Y`, so we use an empty
|
||||
// facet type.
|
||||
return GetEmptyFacetType(context);
|
||||
} else {
|
||||
CARBON_CHECK(facet_type_type_id == SemIR::ErrorInst::TypeId,
|
||||
"unexpected .Self type {0}", facet_type_type_id);
|
||||
@@ -435,8 +431,7 @@ auto HandleParseNode(Context& context, Parse::RequirementImplsId node_id)
|
||||
// Check lhs is a facet and rhs is a facet type.
|
||||
auto lhs_as_type = ExprAsType(context, lhs_node, lhs_id);
|
||||
auto rhs_as_type = ExprAsType(context, rhs_node, rhs_id);
|
||||
if (rhs_as_type.type_id != SemIR::ErrorInst::TypeId &&
|
||||
!context.types().IsFacetType(rhs_as_type.type_id)) {
|
||||
if (!context.types().IsFacetTypeOrError(rhs_as_type.type_id)) {
|
||||
DiagnoseImplsOnNonFacetType(context, rhs_node);
|
||||
rhs_as_type.type_id = SemIR::ErrorInst::TypeId;
|
||||
rhs_as_type.inst_id = SemIR::ErrorInst::TypeInstId;
|
||||
|
||||
@@ -528,10 +528,10 @@ auto AddImplWitnessForDeclaration(Context& context, SemIR::LocId loc_id,
|
||||
// value to that type now we know the value of `Self`.
|
||||
SemIR::TypeId assoc_const_type_id = assoc_constant_decl->type_id;
|
||||
if (assoc_const_type_id.is_symbolic()) {
|
||||
auto self_facet = GetConstantFacetValueForType(context, impl.self_id);
|
||||
auto interface_with_self_specific_id = MakeSpecificWithInnerSelf(
|
||||
context, loc_id, interface.generic_id, interface.generic_with_self_id,
|
||||
impl.interface.specific_id, self_facet);
|
||||
impl.interface.specific_id,
|
||||
context.constant_values().Get(impl.self_id));
|
||||
|
||||
// Get the type of the associated constant in this interface with this
|
||||
// value for `Self`.
|
||||
@@ -861,8 +861,8 @@ auto CheckRequireDeclsSatisfied(Context& context, SemIR::LocId loc_id,
|
||||
|
||||
// The IdentifiedFacetType canonicalizes the self facets, so we do the same
|
||||
// for comparing with it.
|
||||
auto self_const_id = GetCanonicalFacetOrTypeValue(
|
||||
context, context.constant_values().Get(impl.self_id));
|
||||
auto self_const_id =
|
||||
GetCanonicalFacet(context, context.constant_values().Get(impl.self_id));
|
||||
|
||||
// We already identified the `impl.self_id` as the canonical
|
||||
// `full_constraint_id`, so this should just be a cache lookup and can't fail.
|
||||
@@ -932,11 +932,9 @@ auto CheckRequireDeclsSatisfied(Context& context, SemIR::LocId loc_id,
|
||||
return;
|
||||
}
|
||||
|
||||
// Make a facet value for the self type.
|
||||
auto self_facet = GetConstantFacetValueForType(context, impl.self_id);
|
||||
auto interface_with_self_specific_id = MakeSpecificWithInnerSelf(
|
||||
context, loc_id, interface.generic_id, interface.generic_with_self_id,
|
||||
impl.interface.specific_id, self_facet);
|
||||
impl.interface.specific_id, context.constant_values().Get(impl.self_id));
|
||||
|
||||
for (auto require_id : require_ids) {
|
||||
const auto& require = context.require_impls().Get(require_id);
|
||||
|
||||
@@ -270,7 +270,7 @@ static auto TryGetSpecificWitnessIdForImpl(
|
||||
// to the facet value here, and if the query was a FacetAccessType we did the
|
||||
// same there so they still match.
|
||||
auto deduced_self_const_id =
|
||||
GetCanonicalFacetOrTypeValue(context, noncanonical_deduced_self_const_id);
|
||||
GetCanonicalFacet(context, noncanonical_deduced_self_const_id);
|
||||
if (query_self_const_id != deduced_self_const_id) {
|
||||
return SemIR::ConstantId::None;
|
||||
}
|
||||
@@ -431,8 +431,7 @@ static auto CollectFacetWitnessSources(
|
||||
// constraints.
|
||||
const auto& impls = context.where_stack().back().impls;
|
||||
for (auto [self_const_id, facet_type_const_id] : impls) {
|
||||
auto canon_self_const_id =
|
||||
GetCanonicalFacetOrTypeValue(context, self_const_id);
|
||||
auto canon_self_const_id = GetCanonicalFacet(context, self_const_id);
|
||||
// TypeType (and ErrorInst) is never stored in the impls stack, so we
|
||||
// always have a FacetType in `facet_type_const_id`.
|
||||
auto identified_id = TryToIdentifyFacetType(
|
||||
@@ -983,8 +982,7 @@ auto LookupImplWitness(Context& context, SemIR::LocId loc_id,
|
||||
context.insts()
|
||||
.Get(context.constant_values().GetInstId(query_self_const_id))
|
||||
.type_id();
|
||||
CARBON_CHECK((context.types().IsOneOf<SemIR::TypeType, SemIR::FacetType>(
|
||||
query_self_type_id)));
|
||||
CARBON_CHECK(context.types().Is<SemIR::FacetType>(query_self_type_id));
|
||||
// The query facet type value is indeed a facet type.
|
||||
CARBON_CHECK(context.constant_values().InstIs<SemIR::FacetType>(
|
||||
query_facet_type_const_id));
|
||||
@@ -1122,8 +1120,8 @@ auto GetCanonicalQuerySelfForLookupImplWitness(Context& context,
|
||||
// LookupImplWitness instruction, avoiding multiple constant values for
|
||||
// `<facet value>` and `<facet value> as type`, which always have the same
|
||||
// lookup result.
|
||||
return GetCanonicalFacetOrTypeValue(
|
||||
context, context.constant_values().Get(self_inst_id));
|
||||
return GetCanonicalFacet(context,
|
||||
context.constant_values().Get(self_inst_id));
|
||||
}
|
||||
|
||||
// Record the query which found a final impl witness. It's illegal to
|
||||
@@ -1171,7 +1169,7 @@ auto EvalLookupSingleFinalWitness(Context& context, SemIR::LocId loc_id,
|
||||
context.specific_interfaces().Get(eval_query.query_specific_interface_id);
|
||||
|
||||
// Ensure specifics don't substitute in weird things for the query self.
|
||||
CARBON_CHECK(context.types().IsFacetType(
|
||||
CARBON_CHECK(context.types().Is<SemIR::FacetType>(
|
||||
context.insts().Get(eval_query.query_self_inst_id).type_id()));
|
||||
SemIR::ConstantId query_self_const_id =
|
||||
context.constant_values().Get(eval_query.query_self_inst_id);
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "toolchain/sem_ir/inst_kind.h"
|
||||
#include "toolchain/sem_ir/name_scope.h"
|
||||
#include "toolchain/sem_ir/observe.h"
|
||||
#include "toolchain/sem_ir/singleton_insts.h"
|
||||
#include "toolchain/sem_ir/specific_interface.h"
|
||||
#include "toolchain/sem_ir/specific_named_constraint.h"
|
||||
#include "toolchain/sem_ir/type_info.h"
|
||||
@@ -4578,8 +4579,9 @@ static auto TryResolveInstCanonical(ImportRefResolver& resolver,
|
||||
"Constant value of constant instruction should refer to "
|
||||
"the same instruction");
|
||||
|
||||
if (SemIR::IsSingletonInstId(constant_inst_id)) {
|
||||
// Constants for builtins can be directly copied.
|
||||
if (SemIR::IsSingletonInstId(constant_inst_id) ||
|
||||
constant_inst_id == SemIR::TypeType::TypeInstId) {
|
||||
// Constants for singletons and TypeType can be directly copied.
|
||||
return ResolveResult::Done(
|
||||
resolver.local_constant_values().Get(constant_inst_id));
|
||||
}
|
||||
@@ -4985,15 +4987,21 @@ auto ImportRefResolver::ResolveType(SemIR::TypeId import_type_id)
|
||||
auto import_type_const_id = import_ir().types().GetConstantId(import_type_id);
|
||||
CARBON_CHECK(import_type_const_id.has_value());
|
||||
|
||||
if (auto import_type_inst_id = import_ir().types().GetAsTypeInstId(
|
||||
import_ir().constant_values().GetInstId(import_type_const_id));
|
||||
SemIR::IsSingletonInstId(import_type_inst_id)) {
|
||||
// Builtins don't require constant resolution; we can use them directly.
|
||||
auto import_type_inst_id = import_ir().types().GetAsTypeInstId(
|
||||
import_ir().constant_values().GetInstId(import_type_const_id));
|
||||
|
||||
// Builtin types don't require constant resolution; we can use them directly.
|
||||
if (SemIR::IsSingletonInstId(import_type_inst_id)) {
|
||||
// Singletons are all types, and need to go through GetSingletonType to
|
||||
// complete them.
|
||||
return GetSingletonType(local_context(), import_type_inst_id);
|
||||
} else {
|
||||
return local_types().GetTypeIdForTypeConstantId(
|
||||
ResolveConstant(import_type_id.AsConstantId()));
|
||||
} else if (import_type_inst_id == SemIR::TypeType::TypeInstId) {
|
||||
// TypeType is the other builtin type, and is already complete.
|
||||
return SemIR::TypeType::TypeId;
|
||||
}
|
||||
|
||||
return local_types().GetTypeIdForTypeConstantId(
|
||||
ResolveConstant(import_type_id.AsConstantId()));
|
||||
}
|
||||
|
||||
auto ImportRefResolver::HasNewWork() -> bool {
|
||||
|
||||
@@ -148,22 +148,21 @@ static auto ScopeNeedsImplLookup(Context& context,
|
||||
SemIR::InstId inst_id =
|
||||
context.constant_values().GetInstId(name_scope_const_id);
|
||||
CARBON_CHECK(inst_id.has_value());
|
||||
SemIR::Inst inst = context.insts().Get(inst_id);
|
||||
|
||||
if (inst.Is<SemIR::FacetType>()) {
|
||||
// Don't perform impl lookup if an associated entity is named as a member of
|
||||
// a facet type.
|
||||
return false;
|
||||
}
|
||||
if (inst.Is<SemIR::Namespace>()) {
|
||||
if (context.insts().Is<SemIR::Namespace>(inst_id)) {
|
||||
// Don't perform impl lookup if an associated entity is named as a namespace
|
||||
// member.
|
||||
// TODO: This case is not yet listed in the design.
|
||||
return false;
|
||||
}
|
||||
|
||||
auto type_id = context.types().GetTypeIdForTypeInstId(inst_id);
|
||||
// Don't perform impl lookup if an associated entity is named as a member of
|
||||
// a constrained facet type.
|
||||
//
|
||||
// Any other kind of scope is assumed to be a type that implements the
|
||||
// interface containing the associated entity, and impl lookup is performed.
|
||||
return true;
|
||||
return !context.types().IsConstrainedFacetType(type_id);
|
||||
}
|
||||
|
||||
static auto PerformImplWitnessAccessAndSubstitute(
|
||||
@@ -490,9 +489,8 @@ static auto PerformActionHelper(Context& context, SemIR::LocId loc_id,
|
||||
SemIR::InstId base_id, SemIR::NameId name_id,
|
||||
bool required) -> SemIR::InstId {
|
||||
// Unwrap the facet value in `base_id` if possible.
|
||||
if (auto facet_value = TryGetCanonicalFacetValue(context, base_id);
|
||||
facet_value.has_value()) {
|
||||
base_id = facet_value;
|
||||
if (auto facet = TryGetCanonicalFacet(context, base_id); facet.has_value()) {
|
||||
base_id = facet;
|
||||
}
|
||||
|
||||
// If the base is a name scope, such as a class or namespace, perform lookup
|
||||
@@ -515,7 +513,7 @@ static auto PerformActionHelper(Context& context, SemIR::LocId loc_id,
|
||||
// `base_id` (as part the class case above), as the `base_id` facet should
|
||||
// have member names that directly name members of the `impl`.
|
||||
auto base_type_id = context.insts().Get(base_id).type_id();
|
||||
if (context.types().Is<SemIR::FacetType>(base_type_id)) {
|
||||
if (context.types().IsConstrainedFacetType(base_type_id)) {
|
||||
// Name lookup into a facet requires the facet type to be complete, so
|
||||
// that any names available through the facet type are known for the
|
||||
// facet.
|
||||
@@ -589,15 +587,15 @@ static auto PerformActionHelper(Context& context, SemIR::LocId loc_id,
|
||||
auto lookup_const_id =
|
||||
context.types().GetConstantId(unqualified_base_type_id);
|
||||
|
||||
// TODO: If the type is a facet, we look through it into the facet's type (a
|
||||
// FacetType) for names. According to the design, we shouldn't need to do
|
||||
// this, as the facet should have member names that directly name members of
|
||||
// the `impl`.
|
||||
auto base_type_as_facet = GetCanonicalFacetOrTypeValue(
|
||||
context, context.types().GetTypeInstId(base_type_id));
|
||||
// TODO: If the type is a constrained facet, we look through it into the
|
||||
// facet's type (a FacetType) for names. According to the design, we shouldn't
|
||||
// need to do this, as the facet should have member names that directly name
|
||||
// members of the `impl`.
|
||||
auto base_type_as_facet =
|
||||
GetCanonicalFacet(context, context.types().GetTypeInstId(base_type_id));
|
||||
auto base_type_facet_type_id =
|
||||
context.insts().Get(base_type_as_facet).type_id();
|
||||
if (context.types().Is<SemIR::FacetType>(base_type_facet_type_id)) {
|
||||
if (context.types().IsConstrainedFacetType(base_type_facet_type_id)) {
|
||||
lookup_const_id = context.types().GetConstantId(base_type_facet_type_id);
|
||||
}
|
||||
|
||||
@@ -606,11 +604,12 @@ static auto PerformActionHelper(Context& context, SemIR::LocId loc_id,
|
||||
if (AppendLookupScopesForConstant(
|
||||
context, loc_id, lookup_const_id,
|
||||
// The `self_type_const_id` should be the type of `base_id` even if
|
||||
// it's a facet.
|
||||
// it's a constrained facet.
|
||||
//
|
||||
// TODO: This can be replaced with `lookup_const_id` once we stop
|
||||
// having to look through the facet at its type for the scope.
|
||||
context.types().GetConstantId(base_type_id), /*extended_scope=*/false,
|
||||
// having to look through the constrained facet at its type for the
|
||||
// scope.
|
||||
base_type_id.AsConstantId(), /*extended_scope=*/false,
|
||||
&lookup_scopes)) {
|
||||
auto member_id = LookupMemberNameInScope(
|
||||
context, loc_id, base_id, name_id, lookup_const_id, lookup_scopes,
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include "common/raw_string_ostream.h"
|
||||
#include "toolchain/check/control_flow.h"
|
||||
#include "toolchain/check/cpp/import.h"
|
||||
#include "toolchain/check/facet_type.h"
|
||||
#include "toolchain/check/generic.h"
|
||||
#include "toolchain/check/import.h"
|
||||
#include "toolchain/check/import_ref.h"
|
||||
@@ -297,50 +296,24 @@ struct ProhibitedAccessInfo {
|
||||
static auto GetSelfFacetForInterfaceFromLookupSelfType(
|
||||
Context& context, const SemIR::GenericId generic_with_self_id,
|
||||
SemIR::ConstantId self_type_const_id) -> SemIR::ConstantId {
|
||||
if (!self_type_const_id.has_value()) {
|
||||
// In a lookup into a non-lexical scope, there is no self-type from the
|
||||
// lookup for the interface-with-self specific. So the self-type we use is
|
||||
// the abstract symbolic Self from the self specific of the
|
||||
// interface-with-self.
|
||||
auto self_specific_args_id = context.specifics().GetArgsOrEmpty(
|
||||
context.generics().GetSelfSpecific(generic_with_self_id));
|
||||
auto self_specific_args = context.inst_blocks().Get(self_specific_args_id);
|
||||
return context.constant_values().Get(self_specific_args.back());
|
||||
if (self_type_const_id.has_value() &&
|
||||
!context.constant_values().InstIs<SemIR::FacetType>(self_type_const_id)) {
|
||||
// Extended name lookup into the type of `x`, such as in a member access
|
||||
// `x.F`. We can find a facet type extended scope from the type of `x`.
|
||||
return self_type_const_id;
|
||||
}
|
||||
|
||||
if (context.constant_values().InstIs<SemIR::FacetType>(self_type_const_id)) {
|
||||
// We are looking directly in a facet type, like `I.F` for an interface `I`,
|
||||
// which means there is no self-type from the lookup for the
|
||||
// interface-with-self specific. So the self-type we use is the abstract
|
||||
// symbolic Self from the self specific of the interface-with-self.
|
||||
auto self_specific_args_id = context.specifics().GetArgsOrEmpty(
|
||||
context.generics().GetSelfSpecific(generic_with_self_id));
|
||||
auto self_specific_args = context.inst_blocks().Get(self_specific_args_id);
|
||||
return context.constant_values().Get(self_specific_args.back());
|
||||
}
|
||||
|
||||
// Extended name lookup into a type, like `x.F`, can find a facet
|
||||
// type extended scope from the type of `x`. The type of `x` maybe a
|
||||
// facet converted to a type, so drop the `as type` conversion if
|
||||
// so.
|
||||
auto canonical_facet_or_type =
|
||||
GetCanonicalFacetOrTypeValue(context, self_type_const_id);
|
||||
|
||||
auto type_of_canonical_facet_or_type =
|
||||
context.insts()
|
||||
.Get(context.constant_values().GetInstId(canonical_facet_or_type))
|
||||
.type_id();
|
||||
if (type_of_canonical_facet_or_type == SemIR::TypeType::TypeId) {
|
||||
// If we still have a type, turn it into a facet for use in the
|
||||
// interface-with-self specific.
|
||||
return GetConstantFacetValueForType(
|
||||
context, context.types().GetAsTypeInstId(
|
||||
context.constant_values().GetInstId(self_type_const_id)));
|
||||
}
|
||||
|
||||
// We have a facet for the self-type (or perhaps an ErrorInst), which we can
|
||||
// use directly in the interface-with-self specific.
|
||||
return canonical_facet_or_type;
|
||||
// If `self_type_const_id` is None, we are doing lookup into a non-lexical
|
||||
// scope. If it is a `FacetType`, then we are doing lookup directly on a facet
|
||||
// type, such as `I.F` on an interface `I`.
|
||||
//
|
||||
// In these cases, there is no self-type from the lookup for the
|
||||
// interface-with-self specific. So the self-type we use is the abstract
|
||||
// symbolic Self from the self specific of the interface-with-self.
|
||||
auto self_specific_args_id = context.specifics().GetArgsOrEmpty(
|
||||
context.generics().GetSelfSpecific(generic_with_self_id));
|
||||
auto self_specific_args = context.inst_blocks().Get(self_specific_args_id);
|
||||
return context.constant_values().Get(self_specific_args.back());
|
||||
}
|
||||
|
||||
auto AppendLookupScopesForConstant(Context& context, SemIR::LocId loc_id,
|
||||
|
||||
@@ -22,8 +22,7 @@ namespace Carbon::Check {
|
||||
|
||||
auto MakePeriodSelfFacetValue(Context& context, SemIR::LocId loc_id,
|
||||
SemIR::TypeId self_type_id) -> SemIR::InstId {
|
||||
CARBON_CHECK(self_type_id == SemIR::ErrorInst::TypeId ||
|
||||
context.types().Is<SemIR::FacetType>(self_type_id));
|
||||
CARBON_CHECK(context.types().IsFacetTypeOrError(self_type_id));
|
||||
auto entity_name_id = context.entity_names().AddCanonical(
|
||||
{.name_id = SemIR::NameId::PeriodSelf,
|
||||
.parent_scope_id = context.scope_stack().PeekNameScopeId(),
|
||||
@@ -57,8 +56,7 @@ static auto TryGetAsPeriodSelf(Context& context, SemIR::InstId inst_id,
|
||||
return std::nullopt;
|
||||
}
|
||||
auto query_inst_id =
|
||||
canonicalize ? GetCanonicalFacetOrTypeValue(context, const_inst_id)
|
||||
: inst_id;
|
||||
canonicalize ? GetCanonicalFacet(context, const_inst_id) : inst_id;
|
||||
if (auto bind =
|
||||
context.insts().TryGetAs<SemIR::SymbolicBinding>(query_inst_id)) {
|
||||
const auto& entity_name = context.entity_names().Get(bind->entity_name_id);
|
||||
@@ -122,7 +120,7 @@ class SubstPeriodSelfCallbacks : public SubstInstCallbacks {
|
||||
context().constant_values().GetInstId(period_self_replacement_id_);
|
||||
auto replacement_type_id =
|
||||
context().insts().Get(replacement_self_inst_id).type_id();
|
||||
CARBON_CHECK(context().types().IsFacetType(replacement_type_id));
|
||||
CARBON_CHECK(context().types().Is<SemIR::FacetType>(replacement_type_id));
|
||||
|
||||
// If the replacement has the same type as `.Self`, use it directly.
|
||||
if (replacement_type_id == period_self_type_id) {
|
||||
@@ -136,42 +134,32 @@ class SubstPeriodSelfCallbacks : public SubstInstCallbacks {
|
||||
}
|
||||
|
||||
// Convert the replacement facet to the type of `.Self`.
|
||||
cached_replacement_id_ =
|
||||
ConvertReplacement(replacement_self_inst_id, replacement_type_id,
|
||||
period_self, period_self_type_id);
|
||||
cached_replacement_id_ = ConvertReplacement(
|
||||
replacement_self_inst_id, period_self, period_self_type_id);
|
||||
cached_replacement_type_id_ = period_self_type_id;
|
||||
return cached_replacement_id_;
|
||||
}
|
||||
|
||||
auto ConvertReplacement(SemIR::InstId replacement_self_inst_id,
|
||||
SemIR::TypeId replacement_type_id,
|
||||
SemIR::InstId period_self_inst_id,
|
||||
SemIR::TypeId period_self_type_id) -> SemIR::InstId {
|
||||
// TODO: Replace all empty facet types with TypeType.
|
||||
if (period_self_type_id == GetEmptyFacetType(context())) {
|
||||
// Convert to an empty facet type (representing TypeType); we don't need
|
||||
// any witnesses.
|
||||
return ConvertToValueOfType(context(), loc_id_, replacement_self_inst_id,
|
||||
period_self_type_id);
|
||||
// Ensure the replacement is a type, which we will need for the return or to
|
||||
// construct FacetValue.
|
||||
auto replacement_self_type_inst_id = context().types().GetTypeInstId(
|
||||
GetFacetAccessType(context(), replacement_self_inst_id));
|
||||
if (period_self_type_id == SemIR::TypeType::TypeId) {
|
||||
return replacement_self_type_inst_id;
|
||||
}
|
||||
|
||||
// We have a facet or a type, but we need more interfaces in the facet type.
|
||||
// We will have to synthesize a symbolic witness for each interface.
|
||||
// We have a replacement facet (converted to `type`), but we need different
|
||||
// interfaces than we had in the facet's type. We will have to synthesize a
|
||||
// symbolic witness for each interface.
|
||||
//
|
||||
// Why is this okay? The type of `.Self` comes from interfaces that are
|
||||
// before it (to the left of it) in the facet type. The replacement for
|
||||
// `.Self` will have to impl those interfaces in order to match the facet
|
||||
// type, so we know that it is valid to construct these witnesses.
|
||||
|
||||
// Make the replacement into a type, which we will need for the FacetValue.
|
||||
if (context().types().Is<SemIR::FacetType>(replacement_type_id)) {
|
||||
replacement_self_inst_id = context().constant_values().GetInstId(
|
||||
EvalOrAddInst<SemIR::FacetAccessType>(
|
||||
context(), loc_id_,
|
||||
{.type_id = SemIR::TypeType::TypeId,
|
||||
.facet_value_inst_id = replacement_self_inst_id}));
|
||||
}
|
||||
|
||||
auto witnesses = MakeWitnessesForPeriodSelfTypeWithoutLookup(
|
||||
context(), loc_id_,
|
||||
context().constant_values().Get(replacement_self_inst_id),
|
||||
@@ -184,8 +172,7 @@ class SubstPeriodSelfCallbacks : public SubstInstCallbacks {
|
||||
context(), loc_id_,
|
||||
{
|
||||
.type_id = period_self_type_id,
|
||||
.type_inst_id =
|
||||
context().types().GetAsTypeInstId(replacement_self_inst_id),
|
||||
.type_inst_id = replacement_self_type_inst_id,
|
||||
.witnesses_block_id = witnesses.inst_block_id(),
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ auto SubstPeriodSelfInFacetType(Context& context, SemIR::LocId loc_id,
|
||||
// Returns whether the constant value of `inst_id` is a reference to `.Self`.
|
||||
//
|
||||
// If `canonicalize` is true, look at the constant value of `inst_id` and get
|
||||
// the canonicalized facet or type to look through FacetAccessType.
|
||||
// the canonicalized facet to look through FacetAccessType.
|
||||
auto IsPeriodSelf(Context& context, SemIR::InstId inst_id,
|
||||
bool canonicalize = true) -> bool;
|
||||
|
||||
|
||||
@@ -158,6 +158,7 @@ extern alias C = Class;
|
||||
// CHECK:STDOUT: --- alias.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
@@ -174,6 +175,7 @@ extern alias C = Class;
|
||||
// CHECK:STDOUT: --- alias_of_alias.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type %C [concrete]
|
||||
@@ -211,6 +213,7 @@ extern alias C = Class;
|
||||
// CHECK:STDOUT: --- alias_to_generic.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %A.type: type = generic_class_type @A [concrete]
|
||||
// CHECK:STDOUT: %A.generic: %A.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
|
||||
@@ -39,6 +39,7 @@ let a_test: bool = a;
|
||||
// CHECK:STDOUT: --- i32.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
@@ -50,6 +51,10 @@ let a_test: bool = a;
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: --- bool.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: file {
|
||||
// CHECK:STDOUT: %.loc5: type = type_literal bool [concrete = bool]
|
||||
// CHECK:STDOUT: %b: type = alias_binding b, %.loc5 [concrete = bool]
|
||||
@@ -58,6 +63,7 @@ let a_test: bool = a;
|
||||
// CHECK:STDOUT: --- bool_value.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %false: bool = bool_literal false [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type bool [concrete]
|
||||
// CHECK:STDOUT: %a_test.patt: %pattern_type = value_binding_pattern a_test [concrete]
|
||||
|
||||
@@ -75,6 +75,7 @@ var d: D* = &c;
|
||||
// CHECK:STDOUT: --- base.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [concrete]
|
||||
@@ -110,6 +111,7 @@ var d: D* = &c;
|
||||
// CHECK:STDOUT: --- export.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [concrete]
|
||||
@@ -147,6 +149,7 @@ var d: D* = &c;
|
||||
// CHECK:STDOUT: --- export_orig.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [concrete]
|
||||
@@ -184,6 +187,7 @@ var d: D* = &c;
|
||||
// CHECK:STDOUT: --- use_export.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [concrete]
|
||||
@@ -240,6 +244,7 @@ var d: D* = &c;
|
||||
// CHECK:STDOUT: --- fail_orig_name_not_in_export.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
@@ -280,6 +285,7 @@ var d: D* = &c;
|
||||
// CHECK:STDOUT: --- indirect_compat.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
|
||||
|
||||
@@ -68,6 +68,7 @@ var c: () = a_alias_alias;
|
||||
// CHECK:STDOUT: --- class1.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
|
||||
@@ -143,6 +144,7 @@ var c: () = a_alias_alias;
|
||||
// CHECK:STDOUT: --- class2.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
|
||||
@@ -224,6 +226,7 @@ var c: () = a_alias_alias;
|
||||
// CHECK:STDOUT: --- class3.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %complete_type.357: <witness> = complete_type_witness %empty_struct_type [concrete]
|
||||
@@ -300,6 +303,7 @@ var c: () = a_alias_alias;
|
||||
// CHECK:STDOUT: --- var1.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type %empty_tuple.type [concrete]
|
||||
@@ -347,6 +351,7 @@ var c: () = a_alias_alias;
|
||||
// CHECK:STDOUT: --- var2.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type %empty_tuple.type [concrete]
|
||||
// CHECK:STDOUT: %a.patt: %pattern_type = ref_binding_pattern a [concrete]
|
||||
@@ -402,6 +407,7 @@ var c: () = a_alias_alias;
|
||||
// CHECK:STDOUT: --- var3.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type %empty_tuple.type [concrete]
|
||||
|
||||
@@ -59,6 +59,7 @@ var inst: Test.A = {};
|
||||
// CHECK:STDOUT: --- def.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [concrete]
|
||||
@@ -85,6 +86,7 @@ var inst: Test.A = {};
|
||||
// CHECK:STDOUT: --- def.impl.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [concrete]
|
||||
@@ -138,6 +140,7 @@ var inst: Test.A = {};
|
||||
// CHECK:STDOUT: --- fail_local_def.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
@@ -172,6 +175,7 @@ var inst: Test.A = {};
|
||||
// CHECK:STDOUT: --- fail_other_def.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
@@ -36,6 +36,7 @@ var a_val: a = {.v = b_val.v};
|
||||
// CHECK:STDOUT: --- a.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
@@ -79,6 +80,7 @@ var a_val: a = {.v = b_val.v};
|
||||
// CHECK:STDOUT: --- b.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %struct_type.v: type = struct_type {.v: %empty_tuple.type} [concrete]
|
||||
|
||||
@@ -49,6 +49,7 @@ fn F() -> {} {
|
||||
// CHECK:STDOUT: --- in_namespace.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
|
||||
+2
@@ -46,6 +46,7 @@ fn F() -> () {
|
||||
// CHECK:STDOUT: --- global.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
@@ -64,6 +65,7 @@ fn F() -> () {
|
||||
// CHECK:STDOUT: --- fail_local.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
|
||||
+8
-3
@@ -108,6 +108,7 @@ var a: array(1, 1);
|
||||
// CHECK:STDOUT: --- assign_var.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
// CHECK:STDOUT: %tuple.type: type = tuple_type (%empty_tuple.type, %empty_tuple.type, %empty_tuple.type) [concrete]
|
||||
@@ -171,10 +172,11 @@ var a: array(1, 1);
|
||||
// CHECK:STDOUT: --- array_in_place.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %tuple.type.ff9: type = tuple_type (type, type, type) [concrete]
|
||||
// CHECK:STDOUT: %tuple: %tuple.type.ff9 = tuple_value (%C, %C, %C) [concrete]
|
||||
// CHECK:STDOUT: %tuple.type.531: type = tuple_type (type, type, type) [concrete]
|
||||
// CHECK:STDOUT: %tuple: %tuple.type.531 = tuple_value (%C, %C, %C) [concrete]
|
||||
// CHECK:STDOUT: %tuple.type.a8c: type = tuple_type (%C, %C, %C) [concrete]
|
||||
// CHECK:STDOUT: %F.type: type = fn_type @F [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
@@ -214,7 +216,7 @@ var a: array(1, 1);
|
||||
// CHECK:STDOUT: %C.ref.loc10_24: type = name_ref C, file.%C.decl [concrete = constants.%C]
|
||||
// CHECK:STDOUT: %C.ref.loc10_27: type = name_ref C, file.%C.decl [concrete = constants.%C]
|
||||
// CHECK:STDOUT: %C.ref.loc10_30: type = name_ref C, file.%C.decl [concrete = constants.%C]
|
||||
// CHECK:STDOUT: %.loc10_31.1: %tuple.type.ff9 = tuple_literal (%C.ref.loc10_24, %C.ref.loc10_27, %C.ref.loc10_30) [concrete = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc10_31.1: %tuple.type.531 = tuple_literal (%C.ref.loc10_24, %C.ref.loc10_27, %C.ref.loc10_30) [concrete = constants.%tuple]
|
||||
// CHECK:STDOUT: %int_2: Core.IntLiteral = int_value 2 [concrete = constants.%int_2]
|
||||
// CHECK:STDOUT: %.loc10_31.2: type = converted %.loc10_31.1, constants.%tuple.type.a8c [concrete = constants.%tuple.type.a8c]
|
||||
// CHECK:STDOUT: %array_type: type = array_type %int_2, %.loc10_31.2 [concrete = constants.%array_type]
|
||||
@@ -249,6 +251,7 @@ var a: array(1, 1);
|
||||
// CHECK:STDOUT: --- array_vs_tuple.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
// CHECK:STDOUT: %int_3: Core.IntLiteral = int_value 3 [concrete]
|
||||
@@ -348,6 +351,7 @@ var a: array(1, 1);
|
||||
// CHECK:STDOUT: --- assign_return_value.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
// CHECK:STDOUT: %tuple.type: type = tuple_type (%empty_tuple.type) [concrete]
|
||||
@@ -415,6 +419,7 @@ var a: array(1, 1);
|
||||
// CHECK:STDOUT: --- nine_elements.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
// CHECK:STDOUT: %tuple.type: type = tuple_type (%empty_tuple.type, %empty_tuple.type, %empty_tuple.type, %empty_tuple.type, %empty_tuple.type, %empty_tuple.type, %empty_tuple.type, %empty_tuple.type, %empty_tuple.type) [concrete]
|
||||
|
||||
@@ -68,6 +68,7 @@ var b: array(1, 39999999999999999993);
|
||||
// CHECK:STDOUT: --- addition.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %int_1.5b8: Core.IntLiteral = int_value 1 [concrete]
|
||||
@@ -112,6 +113,7 @@ var b: array(1, 39999999999999999993);
|
||||
// CHECK:STDOUT: --- unsigned.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %int_3.1ba: Core.IntLiteral = int_value 3 [concrete]
|
||||
|
||||
@@ -53,6 +53,7 @@ fn F() -> i32 {
|
||||
// CHECK:STDOUT: --- user.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %N: Core.IntLiteral = symbolic_binding N, 0 [symbolic]
|
||||
@@ -116,6 +117,7 @@ fn F() -> i32 {
|
||||
// CHECK:STDOUT: --- import_symbolic_decl.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %int_1.5b8: Core.IntLiteral = int_value 1 [concrete]
|
||||
|
||||
@@ -49,6 +49,7 @@ fn F(a: array({}, 3)) -> {} {
|
||||
// CHECK:STDOUT: --- function_param.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %N: Core.IntLiteral = symbolic_binding N, 0 [symbolic]
|
||||
@@ -189,6 +190,7 @@ fn F(a: array({}, 3)) -> {} {
|
||||
// CHECK:STDOUT: --- index_non_literal.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: %int_3: Core.IntLiteral = int_value 3 [concrete]
|
||||
|
||||
@@ -59,8 +59,9 @@ fn H() { G(3); }
|
||||
// CHECK:STDOUT: --- generic_empty.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: %pattern_type.98f: type = pattern_type type [concrete]
|
||||
// CHECK:STDOUT: %T.patt: %pattern_type.98f = symbolic_binding_pattern T, 0 [symbolic]
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.9a5: type = pattern_type type [concrete]
|
||||
// CHECK:STDOUT: %T.patt: %pattern_type.9a5 = symbolic_binding_pattern T, 0 [symbolic]
|
||||
// CHECK:STDOUT: %T: type = symbolic_binding T, 0 [symbolic]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %int_0: Core.IntLiteral = int_value 0 [concrete]
|
||||
@@ -169,6 +170,7 @@ fn H() { G(3); }
|
||||
// CHECK:STDOUT: --- fail_todo_init_template_dependent_bound.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
|
||||
+8
-3
@@ -173,6 +173,7 @@ var b: B = {.x = ()} as B;
|
||||
// CHECK:STDOUT: --- adapt_class.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %A: type = class_type @A [concrete]
|
||||
// CHECK:STDOUT: %A.Make.type: type = fn_type @A.Make [concrete]
|
||||
// CHECK:STDOUT: %A.Make: %A.Make.type = struct_value () [concrete]
|
||||
@@ -237,6 +238,7 @@ var b: B = {.x = ()} as B;
|
||||
// CHECK:STDOUT: --- adapt_i32.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %A: type = class_type @A [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
@@ -304,6 +306,7 @@ var b: B = {.x = ()} as B;
|
||||
// CHECK:STDOUT: --- multi_level_adapt.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: %D: type = class_type @D [concrete]
|
||||
@@ -333,6 +336,7 @@ var b: B = {.x = ()} as B;
|
||||
// CHECK:STDOUT: --- init_class_value.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %A: type = class_type @A [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
@@ -414,12 +418,13 @@ var b: B = {.x = ()} as B;
|
||||
// CHECK:STDOUT: --- init_tuple_value.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %Noncopyable: type = class_type @Noncopyable [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %A: type = class_type @A [concrete]
|
||||
// CHECK:STDOUT: %empty_struct: %empty_struct_type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: %tuple.type.c8c: type = tuple_type (%empty_struct_type, type) [concrete]
|
||||
// CHECK:STDOUT: %tuple: %tuple.type.c8c = tuple_value (%empty_struct, %Noncopyable) [concrete]
|
||||
// CHECK:STDOUT: %tuple.type.12a: type = tuple_type (%empty_struct_type, type) [concrete]
|
||||
// CHECK:STDOUT: %tuple: %tuple.type.12a = tuple_value (%empty_struct, %Noncopyable) [concrete]
|
||||
// CHECK:STDOUT: %tuple.type.c68: type = tuple_type (%empty_struct_type, %Noncopyable) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type %A [concrete]
|
||||
// CHECK:STDOUT: %a_value.patt: %pattern_type = value_binding_pattern a_value [concrete]
|
||||
@@ -430,7 +435,7 @@ var b: B = {.x = ()} as B;
|
||||
// CHECK:STDOUT: %a.ref: %A = name_ref a, %a
|
||||
// CHECK:STDOUT: %.loc14_35: %empty_struct_type = struct_literal () [concrete = constants.%empty_struct]
|
||||
// CHECK:STDOUT: %Noncopyable.ref: type = name_ref Noncopyable, file.%Noncopyable.decl [concrete = constants.%Noncopyable]
|
||||
// CHECK:STDOUT: %.loc14_49.1: %tuple.type.c8c = tuple_literal (%.loc14_35, %Noncopyable.ref) [concrete = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc14_49.1: %tuple.type.12a = tuple_literal (%.loc14_35, %Noncopyable.ref) [concrete = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc14_49.2: type = converted constants.%empty_struct, constants.%empty_struct_type [concrete = constants.%empty_struct_type]
|
||||
// CHECK:STDOUT: %.loc14_49.3: type = converted %.loc14_49.1, constants.%tuple.type.c68 [concrete = constants.%tuple.type.c68]
|
||||
// CHECK:STDOUT: %.loc14_30.1: %tuple.type.c68 = as_compatible %a.ref
|
||||
|
||||
+11
-6
@@ -131,6 +131,7 @@ let n: {.x: ()} = {.x = ()} as {.x = ()};
|
||||
// CHECK:STDOUT: --- simple_as.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
// CHECK:STDOUT: %struct_type.x.y: type = struct_type {.x: %empty_tuple.type, .y: %empty_tuple.type} [concrete]
|
||||
@@ -173,6 +174,7 @@ let n: {.x: ()} = {.x = ()} as {.x = ()};
|
||||
// CHECK:STDOUT: --- as_type.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type type [concrete]
|
||||
// CHECK:STDOUT: %t.patt: %pattern_type = value_binding_pattern t [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
@@ -204,13 +206,14 @@ let n: {.x: ()} = {.x = ()} as {.x = ()};
|
||||
// CHECK:STDOUT: --- as_tuple.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %X: type = class_type @X [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %Make.type: type = fn_type @Make [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %Make: %Make.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: %tuple.type.24b: type = tuple_type (type, type) [concrete]
|
||||
// CHECK:STDOUT: %tuple: %tuple.type.24b = tuple_value (%X, %X) [concrete]
|
||||
// CHECK:STDOUT: %tuple.type.693: type = tuple_type (type, type) [concrete]
|
||||
// CHECK:STDOUT: %tuple: %tuple.type.693 = tuple_value (%X, %X) [concrete]
|
||||
// CHECK:STDOUT: %tuple.type.359: type = tuple_type (%X, %X) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.3ee: type = pattern_type %tuple.type.359 [concrete]
|
||||
// CHECK:STDOUT: %a.patt: %pattern_type.3ee = value_binding_pattern a [concrete]
|
||||
@@ -233,7 +236,7 @@ let n: {.x: ()} = {.x = ()} as {.x = ()};
|
||||
// CHECK:STDOUT: %.loc13_41.1: %tuple.type.359 = tuple_literal (%Make.call.loc13_32, %Make.call.loc13_40)
|
||||
// CHECK:STDOUT: %X.ref.loc13_47: type = name_ref X, file.%X.decl [concrete = constants.%X]
|
||||
// CHECK:STDOUT: %X.ref.loc13_50: type = name_ref X, file.%X.decl [concrete = constants.%X]
|
||||
// CHECK:STDOUT: %.loc13_51.1: %tuple.type.24b = tuple_literal (%X.ref.loc13_47, %X.ref.loc13_50) [concrete = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc13_51.1: %tuple.type.693 = tuple_literal (%X.ref.loc13_47, %X.ref.loc13_50) [concrete = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc13_51.2: type = converted %.loc13_51.1, constants.%tuple.type.359 [concrete = constants.%tuple.type.359]
|
||||
// CHECK:STDOUT: %.loc13_32.2: ref %X = temporary %.loc13_32.1, %Make.call.loc13_32
|
||||
// CHECK:STDOUT: %.loc13_32.3: %X = acquire_value %.loc13_32.2
|
||||
@@ -244,7 +247,7 @@ let n: {.x: ()} = {.x = ()} as {.x = ()};
|
||||
// CHECK:STDOUT: %.loc13_22.1: type = splice_block %.loc13_22.3 [concrete = constants.%tuple.type.359] {
|
||||
// CHECK:STDOUT: %X.ref.loc13_18: type = name_ref X, file.%X.decl [concrete = constants.%X]
|
||||
// CHECK:STDOUT: %X.ref.loc13_21: type = name_ref X, file.%X.decl [concrete = constants.%X]
|
||||
// CHECK:STDOUT: %.loc13_22.2: %tuple.type.24b = tuple_literal (%X.ref.loc13_18, %X.ref.loc13_21) [concrete = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc13_22.2: %tuple.type.693 = tuple_literal (%X.ref.loc13_18, %X.ref.loc13_21) [concrete = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc13_22.3: type = converted %.loc13_22.2, constants.%tuple.type.359 [concrete = constants.%tuple.type.359]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %a: %tuple.type.359 = wrapper_binding a, %.loc13_41.2
|
||||
@@ -277,7 +280,7 @@ let n: {.x: ()} = {.x = ()} as {.x = ()};
|
||||
// CHECK:STDOUT: %.loc20_41.1: %tuple.type.359 = tuple_literal (%Make.call.loc20_32, %Make.call.loc20_40)
|
||||
// CHECK:STDOUT: %X.ref.loc20_47: type = name_ref X, file.%X.decl [concrete = constants.%X]
|
||||
// CHECK:STDOUT: %X.ref.loc20_50: type = name_ref X, file.%X.decl [concrete = constants.%X]
|
||||
// CHECK:STDOUT: %.loc20_51.1: %tuple.type.24b = tuple_literal (%X.ref.loc20_47, %X.ref.loc20_50) [concrete = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc20_51.1: %tuple.type.693 = tuple_literal (%X.ref.loc20_47, %X.ref.loc20_50) [concrete = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc20_51.2: type = converted %.loc20_51.1, constants.%tuple.type.359 [concrete = constants.%tuple.type.359]
|
||||
// CHECK:STDOUT: %.loc20_41.2: init %tuple.type.359 to %b.var = tuple_init (%Make.call.loc20_32, %Make.call.loc20_40)
|
||||
// CHECK:STDOUT: %.loc20_3: init %tuple.type.359 = converted %.loc20_41.1, %.loc20_41.2
|
||||
@@ -285,7 +288,7 @@ let n: {.x: ()} = {.x = ()} as {.x = ()};
|
||||
// CHECK:STDOUT: %.loc20_22.1: type = splice_block %.loc20_22.3 [concrete = constants.%tuple.type.359] {
|
||||
// CHECK:STDOUT: %X.ref.loc20_18: type = name_ref X, file.%X.decl [concrete = constants.%X]
|
||||
// CHECK:STDOUT: %X.ref.loc20_21: type = name_ref X, file.%X.decl [concrete = constants.%X]
|
||||
// CHECK:STDOUT: %.loc20_22.2: %tuple.type.24b = tuple_literal (%X.ref.loc20_18, %X.ref.loc20_21) [concrete = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc20_22.2: %tuple.type.693 = tuple_literal (%X.ref.loc20_18, %X.ref.loc20_21) [concrete = constants.%tuple]
|
||||
// CHECK:STDOUT: %.loc20_22.3: type = converted %.loc20_22.2, constants.%tuple.type.359 [concrete = constants.%tuple.type.359]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %b: ref %tuple.type.359 = wrapper_binding b, %b.var
|
||||
@@ -306,6 +309,7 @@ let n: {.x: ()} = {.x = ()} as {.x = ()};
|
||||
// CHECK:STDOUT: --- identity.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %X: type = class_type @X [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.6cb: type = pattern_type %X [concrete]
|
||||
@@ -380,6 +384,7 @@ let n: {.x: ()} = {.x = ()} as {.x = ()};
|
||||
// CHECK:STDOUT: --- overloaded.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %X: type = class_type @X [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
|
||||
+3
@@ -95,6 +95,7 @@ fn Use() {
|
||||
// CHECK:STDOUT: --- add_const.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %X: type = class_type @X [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %Init.type: type = fn_type @Init [concrete]
|
||||
@@ -204,6 +205,7 @@ fn Use() {
|
||||
// CHECK:STDOUT: --- remove_const.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %X: type = class_type @X [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %const: type = const_type %X [concrete]
|
||||
@@ -263,6 +265,7 @@ fn Use() {
|
||||
// CHECK:STDOUT: --- unsafe_remove_const.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %X: type = class_type @X [concrete]
|
||||
// CHECK:STDOUT: %const: type = const_type %X [concrete]
|
||||
// CHECK:STDOUT: %ptr.faf: type = ptr_type %const [concrete]
|
||||
|
||||
@@ -136,6 +136,7 @@ fn Use() {
|
||||
// CHECK:STDOUT: --- add_unformed.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %X: type = class_type @X [concrete]
|
||||
// CHECK:STDOUT: %DefaultOrUnformed.type: type = facet_type <@DefaultOrUnformed> [concrete]
|
||||
// CHECK:STDOUT: %ptr.db8: type = ptr_type %X [concrete]
|
||||
@@ -212,6 +213,7 @@ fn Use() {
|
||||
// CHECK:STDOUT: --- fail_todo_add_unformed_nonref.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %X: type = class_type @X [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %Init.type: type = fn_type @Init [concrete]
|
||||
@@ -314,6 +316,7 @@ fn Use() {
|
||||
// CHECK:STDOUT: --- unsafe_remove_unformed.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %X: type = class_type @X [concrete]
|
||||
// CHECK:STDOUT: %MaybeUnformed.198: type = class_type @MaybeUnformed, @MaybeUnformed(%X) [concrete]
|
||||
// CHECK:STDOUT: %ptr.b8c: type = ptr_type %MaybeUnformed.198 [concrete]
|
||||
|
||||
+3
@@ -109,6 +109,7 @@ fn Use() {
|
||||
// CHECK:STDOUT: --- add_partial.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %X: type = class_type @X [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %Init.type: type = fn_type @Init [concrete]
|
||||
@@ -213,6 +214,7 @@ fn Use() {
|
||||
// CHECK:STDOUT: --- remove_partial_in_init.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %X: type = class_type @X [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %.d74: type = partial_type %X [concrete]
|
||||
@@ -292,6 +294,7 @@ fn Use() {
|
||||
// CHECK:STDOUT: --- unsafe_remove_partial.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %X: type = class_type @X [concrete]
|
||||
// CHECK:STDOUT: %.d74: type = partial_type %X [concrete]
|
||||
// CHECK:STDOUT: %ptr.44a: type = ptr_type %.d74 [concrete]
|
||||
|
||||
+1
@@ -30,6 +30,7 @@ fn Convert(unused t: ()) {
|
||||
// CHECK:STDOUT: --- var_init.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %X: type = class_type @X [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
|
||||
@@ -100,6 +100,7 @@ library "[[@TEST_NAME]]";
|
||||
// CHECK:STDOUT: --- function.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %A.type: type = fn_type @A [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %A: %A.type = struct_value () [concrete]
|
||||
@@ -172,6 +173,7 @@ library "[[@TEST_NAME]]";
|
||||
// CHECK:STDOUT: --- class.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %A: type = class_type @A [concrete]
|
||||
// CHECK:STDOUT: %A.G.type: type = fn_type @A.G [concrete]
|
||||
// CHECK:STDOUT: %A.G: %A.G.type = struct_value () [concrete]
|
||||
@@ -214,6 +216,7 @@ library "[[@TEST_NAME]]";
|
||||
// CHECK:STDOUT: --- call_params.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
// CHECK:STDOUT: %A.type: type = fn_type @A [concrete]
|
||||
@@ -255,6 +258,7 @@ library "[[@TEST_NAME]]";
|
||||
// CHECK:STDOUT: --- file_without_ranges.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %F.type: type = fn_type @F [concrete]
|
||||
// CHECK:STDOUT: %F: %F.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
@@ -34,6 +34,7 @@ library "[[@TEST_NAME]]";
|
||||
// CHECK:STDOUT: --- with-range.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %F.type: type = fn_type @F [concrete]
|
||||
// CHECK:STDOUT: %F: %F.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
@@ -50,6 +51,7 @@ library "[[@TEST_NAME]]";
|
||||
// CHECK:STDOUT: --- without-range.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %F.type: type = fn_type @F [concrete]
|
||||
// CHECK:STDOUT: %F: %F.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
@@ -36,6 +36,7 @@ library "[[@TEST_NAME]]";
|
||||
// CHECK:STDOUT: --- with-range.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %F.type: type = fn_type @F [concrete]
|
||||
// CHECK:STDOUT: %F: %F.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
@@ -23,6 +23,7 @@ fn A() {
|
||||
// CHECK:STDOUT: --- duplicate_name_same_line.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.cb1: type = pattern_type %empty_tuple.type [concrete]
|
||||
|
||||
@@ -83,6 +83,7 @@ fn F(c: C) { c.(I.Op)(); }
|
||||
// CHECK:STDOUT: --- exclude/included.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %I.type: type = facet_type <@I> [concrete]
|
||||
// CHECK:STDOUT: %Self: %I.type = symbolic_binding Self, 0 [symbolic]
|
||||
// CHECK:STDOUT: }
|
||||
@@ -119,6 +120,7 @@ fn F(c: C) { c.(I.Op)(); }
|
||||
// CHECK:STDOUT: --- exclude/included_with_range.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %I.type: type = facet_type <@I> [concrete]
|
||||
// CHECK:STDOUT: %Self: %I.type = symbolic_binding Self, 0 [symbolic]
|
||||
// CHECK:STDOUT: %Self.as_type: type = facet_access_type %Self [symbolic]
|
||||
@@ -213,6 +215,7 @@ fn F(c: C) { c.(I.Op)(); }
|
||||
// CHECK:STDOUT: --- import_included.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %empty_struct_type: type = struct_type {} [concrete]
|
||||
// CHECK:STDOUT: %complete_type: <witness> = complete_type_witness %empty_struct_type [concrete]
|
||||
@@ -350,6 +353,7 @@ fn F(c: C) { c.(I.Op)(); }
|
||||
// CHECK:STDOUT: --- import_excluded.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C: type = class_type @C [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.98b: type = pattern_type %C [concrete]
|
||||
// CHECK:STDOUT: %c.param_patt: %pattern_type.98b = value_param_pattern [concrete]
|
||||
|
||||
@@ -31,6 +31,7 @@ fn Boo[runtime a: ()]() {}
|
||||
// CHECK:STDOUT: --- fail_multi_error.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %Foo.type: type = fn_type @Foo [concrete]
|
||||
// CHECK:STDOUT: %Foo: %Foo.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: %Boo.type: type = fn_type @Boo [concrete]
|
||||
|
||||
@@ -17,6 +17,7 @@ var b: i32 = ((2));
|
||||
// CHECK:STDOUT: --- parens.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %Int.type: type = generic_class_type @Int [concrete]
|
||||
// CHECK:STDOUT: %Int.generic: %Int.type = struct_value () [concrete]
|
||||
|
||||
@@ -26,6 +26,7 @@ fn C(r#if: ()) -> () {
|
||||
// CHECK:STDOUT: --- raw_identifier.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type %empty_tuple.type [concrete]
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// CHECK:STDOUT: clang_decl_signatures: {}
|
||||
// CHECK:STDOUT: default_values: {}
|
||||
// CHECK:STDOUT: name_scopes:
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst10, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {}}
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst(Package), parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {}}
|
||||
// CHECK:STDOUT: entity_names: {}
|
||||
// CHECK:STDOUT: functions: {}
|
||||
// CHECK:STDOUT: classes: {}
|
||||
@@ -61,9 +61,10 @@
|
||||
// CHECK:STDOUT: object_layout:
|
||||
// CHECK:STDOUT: size: 0
|
||||
// CHECK:STDOUT: alignment: 1
|
||||
// CHECK:STDOUT: declared_facet_types: {}
|
||||
// CHECK:STDOUT: declared_facet_types:
|
||||
// CHECK:STDOUT: 'declared_facet_type(Empty)': {}
|
||||
// CHECK:STDOUT: insts:
|
||||
// CHECK:STDOUT: 'inst(TypeType)': {kind: TypeType, type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(TypeType)': {kind: FacetType, arg0: declared_facet_type(Empty), type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(AutoType)': {kind: AutoType, type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(BoolType)': {kind: BoolType, type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(BoundMethodType)': {kind: BoundMethodType, type: type(TypeType)}
|
||||
@@ -79,7 +80,7 @@
|
||||
// CHECK:STDOUT: 'inst(UnspecifiedValueType)': {kind: UnspecifiedValueType, type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(VtableType)': {kind: VtableType, type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(WitnessType)': {kind: WitnessType, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst10: {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: 'inst(Package)': {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: bundles: {}
|
||||
// CHECK:STDOUT: constant_values:
|
||||
// CHECK:STDOUT: values:
|
||||
@@ -99,7 +100,7 @@
|
||||
// CHECK:STDOUT: 'inst(UnspecifiedValueType)': concrete_constant(inst(UnspecifiedValueType))
|
||||
// CHECK:STDOUT: 'inst(VtableType)': concrete_constant(inst(VtableType))
|
||||
// CHECK:STDOUT: 'inst(WitnessType)': concrete_constant(inst(WitnessType))
|
||||
// CHECK:STDOUT: inst10: concrete_constant(inst10)
|
||||
// CHECK:STDOUT: 'inst(Package)': concrete_constant(inst(Package))
|
||||
// CHECK:STDOUT: symbolic_constants: {}
|
||||
// CHECK:STDOUT: inst_blocks:
|
||||
// CHECK:STDOUT: inst_block_empty: {}
|
||||
@@ -108,7 +109,7 @@
|
||||
// CHECK:STDOUT: imports: {}
|
||||
// CHECK:STDOUT: global_init: {}
|
||||
// CHECK:STDOUT: inst_block50000005:
|
||||
// CHECK:STDOUT: 0: inst10
|
||||
// CHECK:STDOUT: 0: inst(Package)
|
||||
// CHECK:STDOUT: value_stores:
|
||||
// CHECK:STDOUT: shared_values:
|
||||
// CHECK:STDOUT: ints: {}
|
||||
|
||||
+146
-146
@@ -32,20 +32,20 @@ fn F(generic Form: Core.Form) ->? Form;
|
||||
// CHECK:STDOUT: clang_decl_signatures: {}
|
||||
// CHECK:STDOUT: default_values: {}
|
||||
// CHECK:STDOUT: name_scopes:
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst10, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name(Core): inst70000012, name0: inst70000033}}
|
||||
// CHECK:STDOUT: name_scope70000001: {inst: inst70000012, parent_scope: name_scope0, has_error: false, extended_scopes: [], names: {name1: inst70000017}}
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst(Package), parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name(Core): inst70000012, name0: inst70000032}}
|
||||
// CHECK:STDOUT: name_scope70000001: {inst: inst70000012, parent_scope: name_scope0, has_error: false, extended_scopes: [], names: {name1: inst70000016}}
|
||||
// CHECK:STDOUT: entity_names:
|
||||
// CHECK:STDOUT: entity_name70000000: {name: name(PeriodSelf), parent_scope: name_scope<none>, index: -1, is_template: 0, is_unused: 0, is_frozen_period_self: 1}, form: inst<none>, type: inst<none>}
|
||||
// CHECK:STDOUT: entity_name70000001: {name: name1, parent_scope: name_scope70000001, index: -1, is_template: 0, is_unused: 0, form: inst<none>, type: inst<none>}
|
||||
// CHECK:STDOUT: entity_name70000002: {name: name1, parent_scope: name_scope<none>, index: 0, is_template: 0, is_unused: 0, form: inst<none>, type: inst70000018}
|
||||
// CHECK:STDOUT: entity_name70000002: {name: name1, parent_scope: name_scope<none>, index: 0, is_template: 0, is_unused: 0, form: inst<none>, type: inst70000017}
|
||||
// CHECK:STDOUT: functions:
|
||||
// CHECK:STDOUT: function70000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block70000007, call_params_id: inst_block70000008, return_type_inst_id: inst70000021, return_form_inst_id: inst70000020, return_pattern_id: inst7000002A}
|
||||
// CHECK:STDOUT: function70000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block70000007, call_params_id: inst_block70000008, return_type_inst_id: inst70000020, return_form_inst_id: inst7000001F, return_pattern_id: inst70000029}
|
||||
// CHECK:STDOUT: classes: {}
|
||||
// CHECK:STDOUT: interfaces: {}
|
||||
// CHECK:STDOUT: associated_constants: {}
|
||||
// CHECK:STDOUT: impls: {}
|
||||
// CHECK:STDOUT: generics:
|
||||
// CHECK:STDOUT: generic70000000: {decl: inst70000033, bindings: inst_block7000000B, self_specific_id: specific70000000, decl_block_id: inst_block7000000D, definition_block_id: inst_block<none>}
|
||||
// CHECK:STDOUT: generic70000000: {decl: inst70000032, bindings: inst_block7000000B, self_specific_id: specific70000000, decl_block_id: inst_block7000000D, definition_block_id: inst_block<none>}
|
||||
// CHECK:STDOUT: specifics:
|
||||
// CHECK:STDOUT: specific70000000: {generic: generic70000000, args: inst_block7000000C, decl_block_id: inst_block7000000E, decl_has_error: 0, definition_block_id: inst_block<none>, definition_has_error: 0}
|
||||
// CHECK:STDOUT: specific_interfaces: {}
|
||||
@@ -77,190 +77,190 @@ fn F(generic Form: Core.Form) ->? Form;
|
||||
// CHECK:STDOUT: object_layout:
|
||||
// CHECK:STDOUT: size: 0
|
||||
// CHECK:STDOUT: alignment: 1
|
||||
// CHECK:STDOUT: 'type(inst70000039)':
|
||||
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst7000003A)}
|
||||
// CHECK:STDOUT: 'type(inst70000038)':
|
||||
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst70000039)}
|
||||
// CHECK:STDOUT: object_layout:
|
||||
// CHECK:STDOUT: size: 0
|
||||
// CHECK:STDOUT: alignment: 1
|
||||
// CHECK:STDOUT: 'type(inst7000003A)':
|
||||
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst7000003A)}
|
||||
// CHECK:STDOUT: 'type(inst70000039)':
|
||||
// CHECK:STDOUT: value_repr: {kind: none, type: type(inst70000039)}
|
||||
// CHECK:STDOUT: object_layout:
|
||||
// CHECK:STDOUT: size: 0
|
||||
// CHECK:STDOUT: alignment: 1
|
||||
// CHECK:STDOUT: declared_facet_types:
|
||||
// CHECK:STDOUT: declared_facet_type70000000: {}
|
||||
// CHECK:STDOUT: 'declared_facet_type(Empty)': {}
|
||||
// CHECK:STDOUT: insts:
|
||||
// CHECK:STDOUT: inst10: {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: 'inst(TypeType)': {kind: FacetType, arg0: declared_facet_type(Empty), type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(Package)': {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: inst70000011: {kind: ImportDecl, arg0: name(Core)}
|
||||
// CHECK:STDOUT: inst70000012: {kind: Namespace, arg0: name_scope70000001, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: inst70000013: {kind: FacetType, arg0: declared_facet_type70000000, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000014: {kind: SymbolicBinding, arg0: entity_name70000000, arg1: inst<none>, type: type(inst70000013)}
|
||||
// CHECK:STDOUT: inst70000015: {kind: SymbolicBinding, arg0: entity_name70000000, arg1: inst<none>, type: type(inst70000013)}
|
||||
// CHECK:STDOUT: inst70000016: {kind: NameRef, arg0: name(Core), arg1: inst70000012, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: inst70000017: {kind: ImportRefLoaded, arg0: import_ir_inst0, arg1: entity_name70000001, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000018: {kind: NameRef, arg0: name1, arg1: inst70000017, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000019: {kind: PatternType, arg0: inst(FormType), type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst7000001A: {kind: SymbolicBindingPattern, arg0: entity_name70000002, type: type(inst70000019)}
|
||||
// CHECK:STDOUT: inst7000001B: {kind: SymbolicBindingPattern, arg0: entity_name70000002, type: type(inst70000019)}
|
||||
// CHECK:STDOUT: inst7000001C: {kind: SymbolicBindingPattern, arg0: entity_name70000002, type: type(inst70000019)}
|
||||
// CHECK:STDOUT: inst70000013: {kind: SymbolicBinding, arg0: entity_name70000000, arg1: inst<none>, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000014: {kind: SymbolicBinding, arg0: entity_name70000000, arg1: inst<none>, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000015: {kind: NameRef, arg0: name(Core), arg1: inst70000012, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: inst70000016: {kind: ImportRefLoaded, arg0: import_ir_inst0, arg1: entity_name70000001, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000017: {kind: NameRef, arg0: name1, arg1: inst70000016, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000018: {kind: PatternType, arg0: inst(FormType), type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000019: {kind: SymbolicBindingPattern, arg0: entity_name70000002, type: type(inst70000018)}
|
||||
// CHECK:STDOUT: inst7000001A: {kind: SymbolicBindingPattern, arg0: entity_name70000002, type: type(inst70000018)}
|
||||
// CHECK:STDOUT: inst7000001B: {kind: SymbolicBindingPattern, arg0: entity_name70000002, type: type(inst70000018)}
|
||||
// CHECK:STDOUT: inst7000001C: {kind: SymbolicBinding, arg0: entity_name70000002, arg1: inst<none>, type: type(inst(FormType))}
|
||||
// CHECK:STDOUT: inst7000001D: {kind: SymbolicBinding, arg0: entity_name70000002, arg1: inst<none>, type: type(inst(FormType))}
|
||||
// CHECK:STDOUT: inst7000001E: {kind: SymbolicBinding, arg0: entity_name70000002, arg1: inst<none>, type: type(inst(FormType))}
|
||||
// CHECK:STDOUT: inst7000001F: {kind: SymbolicBinding, arg0: entity_name70000002, arg1: inst<none>, type: type(inst(FormType))}
|
||||
// CHECK:STDOUT: inst70000020: {kind: NameRef, arg0: name1, arg1: inst7000001D, type: type(inst(FormType))}
|
||||
// CHECK:STDOUT: inst70000021: {kind: TypeComponentOf, arg0: inst70000020, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst7000001F: {kind: NameRef, arg0: name1, arg1: inst7000001C, type: type(inst(FormType))}
|
||||
// CHECK:STDOUT: inst70000020: {kind: TypeComponentOf, arg0: inst7000001F, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000021: {kind: TypeComponentOf, arg0: inst7000001D, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000022: {kind: TypeComponentOf, arg0: inst7000001E, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000023: {kind: TypeComponentOf, arg0: inst7000001F, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000024: {kind: PatternType, arg0: inst70000022, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000025: {kind: OutFormParamPatternAction, arg0: inst70000020, type: type(inst(InstType))}
|
||||
// CHECK:STDOUT: inst70000026: {kind: SpliceInst, arg0: inst70000025, type: type(symbolic_constant7000000A)}
|
||||
// CHECK:STDOUT: inst70000027: {kind: SpliceInst, arg0: inst70000025, type: type(symbolic_constant70000007)}
|
||||
// CHECK:STDOUT: inst70000028: {kind: PatternType, arg0: inst70000023, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000029: {kind: SpliceInst, arg0: inst70000025, type: type(symbolic_constant7000000A)}
|
||||
// CHECK:STDOUT: inst7000002A: {kind: ReturnSlotPattern, arg0: inst70000026, arg1: inst70000021, type: type(symbolic_constant7000000A)}
|
||||
// CHECK:STDOUT: inst7000002B: {kind: ReturnSlotPattern, arg0: inst70000027, arg1: inst70000022, type: type(symbolic_constant70000007)}
|
||||
// CHECK:STDOUT: inst7000002C: {kind: ReturnSlotPattern, arg0: inst70000029, arg1: inst70000023, type: type(symbolic_constant7000000A)}
|
||||
// CHECK:STDOUT: inst7000002D: {kind: SpliceBlock, arg0: inst_block70000005, arg1: inst70000018, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst7000002E: {kind: CalleePatternMatchAction, arg0: bundle70000000, type: type(inst(InstType))}
|
||||
// CHECK:STDOUT: inst7000002F: {kind: SpliceInst, arg0: inst7000002E, type: type(symbolic_constant70000006)}
|
||||
// CHECK:STDOUT: inst70000030: {kind: SpliceInst, arg0: inst7000002E, type: type(symbolic_constant70000005)}
|
||||
// CHECK:STDOUT: inst70000031: {kind: SpliceInst, arg0: inst7000002E, type: type(symbolic_constant70000006)}
|
||||
// CHECK:STDOUT: inst70000032: {kind: ReturnSlot, arg0: inst70000022, arg1: inst7000002F, type: type(symbolic_constant70000006)}
|
||||
// CHECK:STDOUT: inst70000033: {kind: FunctionDecl, arg0: function70000000, arg1: inst_block7000000A, type: type(inst70000039)}
|
||||
// CHECK:STDOUT: inst70000034: {kind: OutFormParamPatternAction, arg0: inst7000001E, type: type(inst(InstType))}
|
||||
// CHECK:STDOUT: inst70000035: {kind: SpliceInst, arg0: inst70000034, type: type(symbolic_constant70000007)}
|
||||
// CHECK:STDOUT: inst70000036: {kind: ReturnSlotPattern, arg0: inst70000035, arg1: inst70000022, type: type(symbolic_constant70000007)}
|
||||
// CHECK:STDOUT: inst70000037: {kind: CalleePatternMatchAction, arg0: bundle70000000, type: type(inst(InstType))}
|
||||
// CHECK:STDOUT: inst70000038: {kind: SpliceInst, arg0: inst70000037, type: type(symbolic_constant70000005)}
|
||||
// CHECK:STDOUT: inst70000039: {kind: FunctionType, arg0: function70000000, arg1: specific<none>, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst7000003A: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst7000003B: {kind: StructValue, arg0: inst_block_empty, type: type(inst70000039)}
|
||||
// CHECK:STDOUT: inst70000023: {kind: PatternType, arg0: inst70000021, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000024: {kind: OutFormParamPatternAction, arg0: inst7000001F, type: type(inst(InstType))}
|
||||
// CHECK:STDOUT: inst70000025: {kind: SpliceInst, arg0: inst70000024, type: type(symbolic_constant7000000A)}
|
||||
// CHECK:STDOUT: inst70000026: {kind: SpliceInst, arg0: inst70000024, type: type(symbolic_constant70000007)}
|
||||
// CHECK:STDOUT: inst70000027: {kind: PatternType, arg0: inst70000022, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000028: {kind: SpliceInst, arg0: inst70000024, type: type(symbolic_constant7000000A)}
|
||||
// CHECK:STDOUT: inst70000029: {kind: ReturnSlotPattern, arg0: inst70000025, arg1: inst70000020, type: type(symbolic_constant7000000A)}
|
||||
// CHECK:STDOUT: inst7000002A: {kind: ReturnSlotPattern, arg0: inst70000026, arg1: inst70000021, type: type(symbolic_constant70000007)}
|
||||
// CHECK:STDOUT: inst7000002B: {kind: ReturnSlotPattern, arg0: inst70000028, arg1: inst70000022, type: type(symbolic_constant7000000A)}
|
||||
// CHECK:STDOUT: inst7000002C: {kind: SpliceBlock, arg0: inst_block70000005, arg1: inst70000017, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst7000002D: {kind: CalleePatternMatchAction, arg0: bundle70000000, type: type(inst(InstType))}
|
||||
// CHECK:STDOUT: inst7000002E: {kind: SpliceInst, arg0: inst7000002D, type: type(symbolic_constant70000006)}
|
||||
// CHECK:STDOUT: inst7000002F: {kind: SpliceInst, arg0: inst7000002D, type: type(symbolic_constant70000005)}
|
||||
// CHECK:STDOUT: inst70000030: {kind: SpliceInst, arg0: inst7000002D, type: type(symbolic_constant70000006)}
|
||||
// CHECK:STDOUT: inst70000031: {kind: ReturnSlot, arg0: inst70000021, arg1: inst7000002E, type: type(symbolic_constant70000006)}
|
||||
// CHECK:STDOUT: inst70000032: {kind: FunctionDecl, arg0: function70000000, arg1: inst_block7000000A, type: type(inst70000038)}
|
||||
// CHECK:STDOUT: inst70000033: {kind: OutFormParamPatternAction, arg0: inst7000001D, type: type(inst(InstType))}
|
||||
// CHECK:STDOUT: inst70000034: {kind: SpliceInst, arg0: inst70000033, type: type(symbolic_constant70000007)}
|
||||
// CHECK:STDOUT: inst70000035: {kind: ReturnSlotPattern, arg0: inst70000034, arg1: inst70000021, type: type(symbolic_constant70000007)}
|
||||
// CHECK:STDOUT: inst70000036: {kind: CalleePatternMatchAction, arg0: bundle70000000, type: type(inst(InstType))}
|
||||
// CHECK:STDOUT: inst70000037: {kind: SpliceInst, arg0: inst70000036, type: type(symbolic_constant70000005)}
|
||||
// CHECK:STDOUT: inst70000038: {kind: FunctionType, arg0: function70000000, arg1: specific<none>, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst70000039: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst7000003A: {kind: StructValue, arg0: inst_block_empty, type: type(inst70000038)}
|
||||
// CHECK:STDOUT: bundles:
|
||||
// CHECK:STDOUT: bundle70000000: {arg0: inst70000027, arg1: call_param0}
|
||||
// CHECK:STDOUT: bundle70000000: {arg0: inst70000026, arg1: call_param0}
|
||||
// CHECK:STDOUT: constant_values:
|
||||
// CHECK:STDOUT: values:
|
||||
// CHECK:STDOUT: inst10: concrete_constant(inst10)
|
||||
// CHECK:STDOUT: 'inst(TypeType)': concrete_constant(inst(TypeType))
|
||||
// CHECK:STDOUT: 'inst(Package)': concrete_constant(inst(Package))
|
||||
// CHECK:STDOUT: inst70000012: concrete_constant(inst70000012)
|
||||
// CHECK:STDOUT: inst70000013: concrete_constant(inst70000013)
|
||||
// CHECK:STDOUT: inst70000013: symbolic_constant70000000
|
||||
// CHECK:STDOUT: inst70000014: symbolic_constant70000000
|
||||
// CHECK:STDOUT: inst70000015: symbolic_constant70000000
|
||||
// CHECK:STDOUT: inst70000016: concrete_constant(inst70000012)
|
||||
// CHECK:STDOUT: inst70000015: concrete_constant(inst70000012)
|
||||
// CHECK:STDOUT: inst70000016: concrete_constant(inst(FormType))
|
||||
// CHECK:STDOUT: inst70000017: concrete_constant(inst(FormType))
|
||||
// CHECK:STDOUT: inst70000018: concrete_constant(inst(FormType))
|
||||
// CHECK:STDOUT: inst70000019: concrete_constant(inst70000019)
|
||||
// CHECK:STDOUT: inst7000001A: symbolic_constant70000002
|
||||
// CHECK:STDOUT: inst7000001B: symbolic_constant70000001
|
||||
// CHECK:STDOUT: inst7000001C: symbolic_constant70000002
|
||||
// CHECK:STDOUT: inst7000001D: symbolic_constant70000004
|
||||
// CHECK:STDOUT: inst7000001E: symbolic_constant70000003
|
||||
// CHECK:STDOUT: inst70000018: concrete_constant(inst70000018)
|
||||
// CHECK:STDOUT: inst70000019: symbolic_constant70000002
|
||||
// CHECK:STDOUT: inst7000001A: symbolic_constant70000001
|
||||
// CHECK:STDOUT: inst7000001B: symbolic_constant70000002
|
||||
// CHECK:STDOUT: inst7000001C: symbolic_constant70000004
|
||||
// CHECK:STDOUT: inst7000001D: symbolic_constant70000003
|
||||
// CHECK:STDOUT: inst7000001E: symbolic_constant70000004
|
||||
// CHECK:STDOUT: inst7000001F: symbolic_constant70000004
|
||||
// CHECK:STDOUT: inst70000020: symbolic_constant70000004
|
||||
// CHECK:STDOUT: inst70000021: symbolic_constant70000006
|
||||
// CHECK:STDOUT: inst70000022: symbolic_constant70000005
|
||||
// CHECK:STDOUT: inst70000023: symbolic_constant70000006
|
||||
// CHECK:STDOUT: inst70000024: symbolic_constant70000007
|
||||
// CHECK:STDOUT: inst70000025: symbolic_constant70000008
|
||||
// CHECK:STDOUT: inst70000026: symbolic_constant7000000B
|
||||
// CHECK:STDOUT: inst70000027: symbolic_constant70000009
|
||||
// CHECK:STDOUT: inst70000028: symbolic_constant7000000A
|
||||
// CHECK:STDOUT: inst70000029: symbolic_constant7000000B
|
||||
// CHECK:STDOUT: inst7000002A: symbolic_constant7000000D
|
||||
// CHECK:STDOUT: inst7000002B: symbolic_constant7000000C
|
||||
// CHECK:STDOUT: inst7000002C: symbolic_constant7000000D
|
||||
// CHECK:STDOUT: inst7000002D: concrete_constant(inst(FormType))
|
||||
// CHECK:STDOUT: inst7000002E: symbolic_constant7000000E
|
||||
// CHECK:STDOUT: inst7000002F: symbolic_constant70000010
|
||||
// CHECK:STDOUT: inst70000030: symbolic_constant7000000F
|
||||
// CHECK:STDOUT: inst70000031: symbolic_constant70000010
|
||||
// CHECK:STDOUT: inst70000033: concrete_constant(inst7000003B)
|
||||
// CHECK:STDOUT: inst70000034: symbolic_constant70000011
|
||||
// CHECK:STDOUT: inst70000035: symbolic_constant70000012
|
||||
// CHECK:STDOUT: inst70000036: symbolic_constant70000013
|
||||
// CHECK:STDOUT: inst70000037: symbolic_constant70000014
|
||||
// CHECK:STDOUT: inst70000038: symbolic_constant70000015
|
||||
// CHECK:STDOUT: inst70000020: symbolic_constant70000006
|
||||
// CHECK:STDOUT: inst70000021: symbolic_constant70000005
|
||||
// CHECK:STDOUT: inst70000022: symbolic_constant70000006
|
||||
// CHECK:STDOUT: inst70000023: symbolic_constant70000007
|
||||
// CHECK:STDOUT: inst70000024: symbolic_constant70000008
|
||||
// CHECK:STDOUT: inst70000025: symbolic_constant7000000B
|
||||
// CHECK:STDOUT: inst70000026: symbolic_constant70000009
|
||||
// CHECK:STDOUT: inst70000027: symbolic_constant7000000A
|
||||
// CHECK:STDOUT: inst70000028: symbolic_constant7000000B
|
||||
// CHECK:STDOUT: inst70000029: symbolic_constant7000000D
|
||||
// CHECK:STDOUT: inst7000002A: symbolic_constant7000000C
|
||||
// CHECK:STDOUT: inst7000002B: symbolic_constant7000000D
|
||||
// CHECK:STDOUT: inst7000002C: concrete_constant(inst(FormType))
|
||||
// CHECK:STDOUT: inst7000002D: symbolic_constant7000000E
|
||||
// CHECK:STDOUT: inst7000002E: symbolic_constant70000010
|
||||
// CHECK:STDOUT: inst7000002F: symbolic_constant7000000F
|
||||
// CHECK:STDOUT: inst70000030: symbolic_constant70000010
|
||||
// CHECK:STDOUT: inst70000032: concrete_constant(inst7000003A)
|
||||
// CHECK:STDOUT: inst70000033: symbolic_constant70000011
|
||||
// CHECK:STDOUT: inst70000034: symbolic_constant70000012
|
||||
// CHECK:STDOUT: inst70000035: symbolic_constant70000013
|
||||
// CHECK:STDOUT: inst70000036: symbolic_constant70000014
|
||||
// CHECK:STDOUT: inst70000037: symbolic_constant70000015
|
||||
// CHECK:STDOUT: inst70000038: concrete_constant(inst70000038)
|
||||
// CHECK:STDOUT: inst70000039: concrete_constant(inst70000039)
|
||||
// CHECK:STDOUT: inst7000003A: concrete_constant(inst7000003A)
|
||||
// CHECK:STDOUT: inst7000003B: concrete_constant(inst7000003B)
|
||||
// CHECK:STDOUT: symbolic_constants:
|
||||
// CHECK:STDOUT: symbolic_constant70000000: {inst: inst70000015, kind: self, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000001: {inst: inst7000001B, kind: checked, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000002: {inst: inst7000001B, kind: checked, attached: {generic: generic70000000, index: generic_inst_in_decl0}}
|
||||
// CHECK:STDOUT: symbolic_constant70000003: {inst: inst7000001E, kind: checked, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000004: {inst: inst7000001E, kind: checked, attached: {generic: generic70000000, index: generic_inst_in_decl1}}
|
||||
// CHECK:STDOUT: symbolic_constant70000005: {inst: inst70000022, kind: checked, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000006: {inst: inst70000022, kind: checked, attached: {generic: generic70000000, index: generic_inst_in_decl2}}
|
||||
// CHECK:STDOUT: symbolic_constant70000007: {inst: inst70000024, kind: checked, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000008: {inst: inst70000025, kind: template, attached: {generic: generic70000000, index: generic_inst_in_decl3}}
|
||||
// CHECK:STDOUT: symbolic_constant70000009: {inst: inst70000027, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant7000000A: {inst: inst70000024, kind: checked, attached: {generic: generic70000000, index: generic_inst_in_decl4}}
|
||||
// CHECK:STDOUT: symbolic_constant7000000B: {inst: inst70000027, kind: template, attached: {generic: generic70000000, index: generic_inst_in_decl5}}
|
||||
// CHECK:STDOUT: symbolic_constant7000000C: {inst: inst7000002B, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant7000000D: {inst: inst7000002B, kind: template, attached: {generic: generic70000000, index: generic_inst_in_decl6}}
|
||||
// CHECK:STDOUT: symbolic_constant7000000E: {inst: inst7000002E, kind: template, attached: {generic: generic70000000, index: generic_inst_in_decl7}}
|
||||
// CHECK:STDOUT: symbolic_constant7000000F: {inst: inst70000030, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000010: {inst: inst70000030, kind: template, attached: {generic: generic70000000, index: generic_inst_in_decl8}}
|
||||
// CHECK:STDOUT: symbolic_constant70000011: {inst: inst70000034, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000012: {inst: inst70000035, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000013: {inst: inst70000036, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000014: {inst: inst70000037, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000015: {inst: inst70000038, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000000: {inst: inst70000014, kind: self, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000001: {inst: inst7000001A, kind: checked, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000002: {inst: inst7000001A, kind: checked, attached: {generic: generic70000000, index: generic_inst_in_decl0}}
|
||||
// CHECK:STDOUT: symbolic_constant70000003: {inst: inst7000001D, kind: checked, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000004: {inst: inst7000001D, kind: checked, attached: {generic: generic70000000, index: generic_inst_in_decl1}}
|
||||
// CHECK:STDOUT: symbolic_constant70000005: {inst: inst70000021, kind: checked, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000006: {inst: inst70000021, kind: checked, attached: {generic: generic70000000, index: generic_inst_in_decl2}}
|
||||
// CHECK:STDOUT: symbolic_constant70000007: {inst: inst70000023, kind: checked, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000008: {inst: inst70000024, kind: template, attached: {generic: generic70000000, index: generic_inst_in_decl3}}
|
||||
// CHECK:STDOUT: symbolic_constant70000009: {inst: inst70000026, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant7000000A: {inst: inst70000023, kind: checked, attached: {generic: generic70000000, index: generic_inst_in_decl4}}
|
||||
// CHECK:STDOUT: symbolic_constant7000000B: {inst: inst70000026, kind: template, attached: {generic: generic70000000, index: generic_inst_in_decl5}}
|
||||
// CHECK:STDOUT: symbolic_constant7000000C: {inst: inst7000002A, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant7000000D: {inst: inst7000002A, kind: template, attached: {generic: generic70000000, index: generic_inst_in_decl6}}
|
||||
// CHECK:STDOUT: symbolic_constant7000000E: {inst: inst7000002D, kind: template, attached: {generic: generic70000000, index: generic_inst_in_decl7}}
|
||||
// CHECK:STDOUT: symbolic_constant7000000F: {inst: inst7000002F, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000010: {inst: inst7000002F, kind: template, attached: {generic: generic70000000, index: generic_inst_in_decl8}}
|
||||
// CHECK:STDOUT: symbolic_constant70000011: {inst: inst70000033, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000012: {inst: inst70000034, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000013: {inst: inst70000035, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000014: {inst: inst70000036, kind: template, attached: null}
|
||||
// CHECK:STDOUT: symbolic_constant70000015: {inst: inst70000037, kind: template, attached: null}
|
||||
// CHECK:STDOUT: inst_blocks:
|
||||
// CHECK:STDOUT: inst_block_empty: {}
|
||||
// CHECK:STDOUT: exports:
|
||||
// CHECK:STDOUT: 0: inst70000033
|
||||
// CHECK:STDOUT: 0: inst70000032
|
||||
// CHECK:STDOUT: generated: {}
|
||||
// CHECK:STDOUT: imports:
|
||||
// CHECK:STDOUT: 0: inst70000012
|
||||
// CHECK:STDOUT: 1: inst70000017
|
||||
// CHECK:STDOUT: 1: inst70000016
|
||||
// CHECK:STDOUT: global_init: {}
|
||||
// CHECK:STDOUT: inst_block70000005:
|
||||
// CHECK:STDOUT: 0: inst70000014
|
||||
// CHECK:STDOUT: 1: inst70000016
|
||||
// CHECK:STDOUT: 2: inst70000018
|
||||
// CHECK:STDOUT: 0: inst70000013
|
||||
// CHECK:STDOUT: 1: inst70000015
|
||||
// CHECK:STDOUT: 2: inst70000017
|
||||
// CHECK:STDOUT: inst_block70000006:
|
||||
// CHECK:STDOUT: 0: inst7000001A
|
||||
// CHECK:STDOUT: 0: inst70000019
|
||||
// CHECK:STDOUT: inst_block70000007:
|
||||
// CHECK:STDOUT: 0: inst70000026
|
||||
// CHECK:STDOUT: 0: inst70000025
|
||||
// CHECK:STDOUT: inst_block70000008:
|
||||
// CHECK:STDOUT: 0: inst7000002F
|
||||
// CHECK:STDOUT: 0: inst7000002E
|
||||
// CHECK:STDOUT: inst_block70000009:
|
||||
// CHECK:STDOUT: 0: inst7000001A
|
||||
// CHECK:STDOUT: 1: inst70000026
|
||||
// CHECK:STDOUT: 2: inst7000002A
|
||||
// CHECK:STDOUT: 0: inst70000019
|
||||
// CHECK:STDOUT: 1: inst70000025
|
||||
// CHECK:STDOUT: 2: inst70000029
|
||||
// CHECK:STDOUT: inst_block7000000A:
|
||||
// CHECK:STDOUT: 0: inst70000020
|
||||
// CHECK:STDOUT: 1: inst70000021
|
||||
// CHECK:STDOUT: 2: inst7000002D
|
||||
// CHECK:STDOUT: 3: inst7000001D
|
||||
// CHECK:STDOUT: 4: inst7000002F
|
||||
// CHECK:STDOUT: 5: inst70000032
|
||||
// CHECK:STDOUT: 0: inst7000001F
|
||||
// CHECK:STDOUT: 1: inst70000020
|
||||
// CHECK:STDOUT: 2: inst7000002C
|
||||
// CHECK:STDOUT: 3: inst7000001C
|
||||
// CHECK:STDOUT: 4: inst7000002E
|
||||
// CHECK:STDOUT: 5: inst70000031
|
||||
// CHECK:STDOUT: inst_block7000000B:
|
||||
// CHECK:STDOUT: 0: inst7000001D
|
||||
// CHECK:STDOUT: inst_block7000000C:
|
||||
// CHECK:STDOUT: 0: inst7000001E
|
||||
// CHECK:STDOUT: inst_block7000000D:
|
||||
// CHECK:STDOUT: 0: inst7000001C
|
||||
// CHECK:STDOUT: 1: inst7000001F
|
||||
// CHECK:STDOUT: 2: inst70000023
|
||||
// CHECK:STDOUT: 3: inst70000025
|
||||
// CHECK:STDOUT: 4: inst70000028
|
||||
// CHECK:STDOUT: 5: inst70000029
|
||||
// CHECK:STDOUT: 6: inst7000002C
|
||||
// CHECK:STDOUT: 7: inst7000002E
|
||||
// CHECK:STDOUT: 8: inst70000031
|
||||
// CHECK:STDOUT: inst_block7000000E:
|
||||
// CHECK:STDOUT: inst_block7000000C:
|
||||
// CHECK:STDOUT: 0: inst7000001D
|
||||
// CHECK:STDOUT: inst_block7000000D:
|
||||
// CHECK:STDOUT: 0: inst7000001B
|
||||
// CHECK:STDOUT: 1: inst7000001E
|
||||
// CHECK:STDOUT: 2: inst70000022
|
||||
// CHECK:STDOUT: 3: inst70000034
|
||||
// CHECK:STDOUT: 4: inst70000024
|
||||
// CHECK:STDOUT: 5: inst70000035
|
||||
// CHECK:STDOUT: 6: inst70000036
|
||||
// CHECK:STDOUT: 7: inst70000037
|
||||
// CHECK:STDOUT: 8: inst70000038
|
||||
// CHECK:STDOUT: 3: inst70000024
|
||||
// CHECK:STDOUT: 4: inst70000027
|
||||
// CHECK:STDOUT: 5: inst70000028
|
||||
// CHECK:STDOUT: 6: inst7000002B
|
||||
// CHECK:STDOUT: 7: inst7000002D
|
||||
// CHECK:STDOUT: 8: inst70000030
|
||||
// CHECK:STDOUT: inst_block7000000E:
|
||||
// CHECK:STDOUT: 0: inst7000001A
|
||||
// CHECK:STDOUT: 1: inst7000001D
|
||||
// CHECK:STDOUT: 2: inst70000021
|
||||
// CHECK:STDOUT: 3: inst70000033
|
||||
// CHECK:STDOUT: 4: inst70000023
|
||||
// CHECK:STDOUT: 5: inst70000034
|
||||
// CHECK:STDOUT: 6: inst70000035
|
||||
// CHECK:STDOUT: 7: inst70000036
|
||||
// CHECK:STDOUT: 8: inst70000037
|
||||
// CHECK:STDOUT: inst_block7000000F:
|
||||
// CHECK:STDOUT: 0: inst10
|
||||
// CHECK:STDOUT: 0: inst(Package)
|
||||
// CHECK:STDOUT: 1: inst70000011
|
||||
// CHECK:STDOUT: 2: inst70000033
|
||||
// CHECK:STDOUT: 2: inst70000032
|
||||
// CHECK:STDOUT: value_stores:
|
||||
// CHECK:STDOUT: shared_values:
|
||||
// CHECK:STDOUT: ints: {}
|
||||
|
||||
@@ -53,7 +53,7 @@ fn G(x: Cpp.X) {
|
||||
// CHECK:STDOUT: import_ir_inst3: {ir_id: import_ir(Cpp), clang_source_loc_id: clang_source_loc50000003}
|
||||
// CHECK:STDOUT: import_ir_inst4: {ir_id: import_ir(Cpp), clang_source_loc_id: clang_source_loc50000004}
|
||||
// CHECK:STDOUT: clang_decls:
|
||||
// CHECK:STDOUT: clang_decl_id50000000: {key: {decl: "namespace Carbon {\n}"}, inst_id: inst10}
|
||||
// CHECK:STDOUT: clang_decl_id50000000: {key: {decl: "namespace Carbon {\n}"}, inst_id: inst(Package)}
|
||||
// CHECK:STDOUT: clang_decl_id50000001: {key: {decl: "<translation unit>"}, inst_id: inst50000012}
|
||||
// CHECK:STDOUT: clang_decl_id50000002: {key: {decl: "struct X {}"}, inst_id: inst50000014}
|
||||
// CHECK:STDOUT: clang_decl_id50000003: {key: {decl: "X * _Nonnull p"}, inst_id: inst50000025}
|
||||
@@ -67,7 +67,7 @@ fn G(x: Cpp.X) {
|
||||
// CHECK:STDOUT: clang_decl_signature_id50000001: {kind: normal, num_params: 1, modes: [value]}
|
||||
// CHECK:STDOUT: default_values: {}
|
||||
// CHECK:STDOUT: name_scopes:
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst10, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name(Cpp): inst50000012, name0: inst5000001F}}
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst(Package), parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name(Cpp): inst50000012, name0: inst5000001F}}
|
||||
// CHECK:STDOUT: name_scope50000001: {inst: inst50000012, parent_scope: name_scope0, has_error: false, extended_scopes: [], names: {name2: inst50000014, name3: inst5000002D, name4: inst50000055}}
|
||||
// CHECK:STDOUT: name_scope50000002: {inst: inst50000014, parent_scope: name_scope50000001, has_error: false, extended_scopes: [], names: {}}
|
||||
// CHECK:STDOUT: entity_names:
|
||||
@@ -181,9 +181,10 @@ fn G(x: Cpp.X) {
|
||||
// CHECK:STDOUT: object_layout:
|
||||
// CHECK:STDOUT: size: 0
|
||||
// CHECK:STDOUT: alignment: 1
|
||||
// CHECK:STDOUT: declared_facet_types: {}
|
||||
// CHECK:STDOUT: declared_facet_types:
|
||||
// CHECK:STDOUT: 'declared_facet_type(Empty)': {}
|
||||
// CHECK:STDOUT: insts:
|
||||
// CHECK:STDOUT: 'inst(TypeType)': {kind: TypeType, type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(TypeType)': {kind: FacetType, arg0: declared_facet_type(Empty), type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(AutoType)': {kind: AutoType, type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(BoolType)': {kind: BoolType, type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(BoundMethodType)': {kind: BoundMethodType, type: type(TypeType)}
|
||||
@@ -199,7 +200,7 @@ fn G(x: Cpp.X) {
|
||||
// CHECK:STDOUT: 'inst(UnspecifiedValueType)': {kind: UnspecifiedValueType, type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(VtableType)': {kind: VtableType, type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(WitnessType)': {kind: WitnessType, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst10: {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: 'inst(Package)': {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: inst50000011: {kind: ImportCppDecl}
|
||||
// CHECK:STDOUT: inst50000012: {kind: Namespace, arg0: name_scope50000001, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: inst50000013: {kind: NameRef, arg0: name(Cpp), arg1: inst50000012, type: type(inst(NamespaceType))}
|
||||
@@ -296,7 +297,7 @@ fn G(x: Cpp.X) {
|
||||
// CHECK:STDOUT: 'inst(UnspecifiedValueType)': concrete_constant(inst(UnspecifiedValueType))
|
||||
// CHECK:STDOUT: 'inst(VtableType)': concrete_constant(inst(VtableType))
|
||||
// CHECK:STDOUT: 'inst(WitnessType)': concrete_constant(inst(WitnessType))
|
||||
// CHECK:STDOUT: inst10: concrete_constant(inst10)
|
||||
// CHECK:STDOUT: 'inst(Package)': concrete_constant(inst(Package))
|
||||
// CHECK:STDOUT: inst50000012: concrete_constant(inst50000012)
|
||||
// CHECK:STDOUT: inst50000013: concrete_constant(inst50000012)
|
||||
// CHECK:STDOUT: inst50000014: concrete_constant(inst50000015)
|
||||
@@ -450,7 +451,7 @@ fn G(x: Cpp.X) {
|
||||
// CHECK:STDOUT: inst_block5000001D:
|
||||
// CHECK:STDOUT: 0: inst5000005B
|
||||
// CHECK:STDOUT: inst_block5000001E:
|
||||
// CHECK:STDOUT: 0: inst10
|
||||
// CHECK:STDOUT: 0: inst(Package)
|
||||
// CHECK:STDOUT: 1: inst50000011
|
||||
// CHECK:STDOUT: 2: inst5000001F
|
||||
// CHECK:STDOUT: value_stores:
|
||||
|
||||
+16
-10
@@ -40,7 +40,7 @@ fn B() {
|
||||
// CHECK:STDOUT: clang_decl_signatures: {}
|
||||
// CHECK:STDOUT: default_values: {}
|
||||
// CHECK:STDOUT: name_scopes:
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst10, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name0: inst50000011}}
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst(Package), parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name0: inst50000011}}
|
||||
// CHECK:STDOUT: entity_names: {}
|
||||
// CHECK:STDOUT: functions:
|
||||
// CHECK:STDOUT: function50000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty, body: [inst_block50000006]}
|
||||
@@ -89,9 +89,11 @@ fn B() {
|
||||
// CHECK:STDOUT: object_layout:
|
||||
// CHECK:STDOUT: size: 0
|
||||
// CHECK:STDOUT: alignment: 1
|
||||
// CHECK:STDOUT: declared_facet_types: {}
|
||||
// CHECK:STDOUT: declared_facet_types:
|
||||
// CHECK:STDOUT: 'declared_facet_type(Empty)': {}
|
||||
// CHECK:STDOUT: insts:
|
||||
// CHECK:STDOUT: inst10: {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: 'inst(TypeType)': {kind: FacetType, arg0: declared_facet_type(Empty), type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(Package)': {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: inst50000011: {kind: FunctionDecl, arg0: function50000000, arg1: inst_block_empty, type: type(inst50000012)}
|
||||
// CHECK:STDOUT: inst50000012: {kind: FunctionType, arg0: function50000000, arg1: specific<none>, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst50000013: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
|
||||
@@ -100,7 +102,8 @@ fn B() {
|
||||
// CHECK:STDOUT: bundles: {}
|
||||
// CHECK:STDOUT: constant_values:
|
||||
// CHECK:STDOUT: values:
|
||||
// CHECK:STDOUT: inst10: concrete_constant(inst10)
|
||||
// CHECK:STDOUT: 'inst(TypeType)': concrete_constant(inst(TypeType))
|
||||
// CHECK:STDOUT: 'inst(Package)': concrete_constant(inst(Package))
|
||||
// CHECK:STDOUT: inst50000011: concrete_constant(inst50000014)
|
||||
// CHECK:STDOUT: inst50000012: concrete_constant(inst50000012)
|
||||
// CHECK:STDOUT: inst50000013: concrete_constant(inst50000013)
|
||||
@@ -117,7 +120,7 @@ fn B() {
|
||||
// CHECK:STDOUT: inst_block50000006:
|
||||
// CHECK:STDOUT: 0: inst50000015
|
||||
// CHECK:STDOUT: inst_block50000007:
|
||||
// CHECK:STDOUT: 0: inst10
|
||||
// CHECK:STDOUT: 0: inst(Package)
|
||||
// CHECK:STDOUT: 1: inst50000011
|
||||
// CHECK:STDOUT: value_stores:
|
||||
// CHECK:STDOUT: shared_values:
|
||||
@@ -145,7 +148,7 @@ fn B() {
|
||||
// CHECK:STDOUT: clang_decl_signatures: {}
|
||||
// CHECK:STDOUT: default_values: {}
|
||||
// CHECK:STDOUT: name_scopes:
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst10, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name1: inst70000012, name0: inst70000013}}
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst(Package), parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name1: inst70000012, name0: inst70000013}}
|
||||
// CHECK:STDOUT: name_scope70000001: {inst: inst70000012, parent_scope: name_scope0, has_error: false, extended_scopes: [], names: {name1: inst70000018}}
|
||||
// CHECK:STDOUT: entity_names:
|
||||
// CHECK:STDOUT: entity_name70000000: {name: name1, parent_scope: name_scope70000001, index: -1, is_template: 0, is_unused: 0, form: inst<none>, type: inst<none>}
|
||||
@@ -197,9 +200,11 @@ fn B() {
|
||||
// CHECK:STDOUT: object_layout:
|
||||
// CHECK:STDOUT: size: 0
|
||||
// CHECK:STDOUT: alignment: 1
|
||||
// CHECK:STDOUT: declared_facet_types: {}
|
||||
// CHECK:STDOUT: declared_facet_types:
|
||||
// CHECK:STDOUT: 'declared_facet_type(Empty)': {}
|
||||
// CHECK:STDOUT: insts:
|
||||
// CHECK:STDOUT: inst10: {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: 'inst(TypeType)': {kind: FacetType, arg0: declared_facet_type(Empty), type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(Package)': {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: inst70000011: {kind: ImportDecl, arg0: name1}
|
||||
// CHECK:STDOUT: inst70000012: {kind: Namespace, arg0: name_scope70000001, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: inst70000013: {kind: FunctionDecl, arg0: function70000000, arg1: inst_block_empty, type: type(inst70000014)}
|
||||
@@ -217,7 +222,8 @@ fn B() {
|
||||
// CHECK:STDOUT: bundles: {}
|
||||
// CHECK:STDOUT: constant_values:
|
||||
// CHECK:STDOUT: values:
|
||||
// CHECK:STDOUT: inst10: concrete_constant(inst10)
|
||||
// CHECK:STDOUT: 'inst(TypeType)': concrete_constant(inst(TypeType))
|
||||
// CHECK:STDOUT: 'inst(Package)': concrete_constant(inst(Package))
|
||||
// CHECK:STDOUT: inst70000012: concrete_constant(inst70000012)
|
||||
// CHECK:STDOUT: inst70000013: concrete_constant(inst70000016)
|
||||
// CHECK:STDOUT: inst70000014: concrete_constant(inst70000014)
|
||||
@@ -247,7 +253,7 @@ fn B() {
|
||||
// CHECK:STDOUT: 2: inst7000001D
|
||||
// CHECK:STDOUT: 3: inst7000001E
|
||||
// CHECK:STDOUT: inst_block70000007:
|
||||
// CHECK:STDOUT: 0: inst10
|
||||
// CHECK:STDOUT: 0: inst(Package)
|
||||
// CHECK:STDOUT: 1: inst70000011
|
||||
// CHECK:STDOUT: 2: inst70000013
|
||||
// CHECK:STDOUT: value_stores:
|
||||
|
||||
+18
-10
@@ -40,7 +40,7 @@ fn B() {
|
||||
// CHECK:STDOUT: clang_decl_signatures: {}
|
||||
// CHECK:STDOUT: default_values: {}
|
||||
// CHECK:STDOUT: name_scopes:
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst10, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name0: inst50000011}}
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst(Package), parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name0: inst50000011}}
|
||||
// CHECK:STDOUT: entity_names: {}
|
||||
// CHECK:STDOUT: functions:
|
||||
// CHECK:STDOUT: function50000000: {name: name0, parent_scope: name_scope0, call_param_patterns_id: inst_block_empty, call_params_id: inst_block_empty, body: [inst_block50000006]}
|
||||
@@ -89,9 +89,11 @@ fn B() {
|
||||
// CHECK:STDOUT: object_layout:
|
||||
// CHECK:STDOUT: size: 0
|
||||
// CHECK:STDOUT: alignment: 1
|
||||
// CHECK:STDOUT: declared_facet_types: {}
|
||||
// CHECK:STDOUT: declared_facet_types:
|
||||
// CHECK:STDOUT: 'declared_facet_type(Empty)': {}
|
||||
// CHECK:STDOUT: insts:
|
||||
// CHECK:STDOUT: inst10: {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: 'inst(TypeType)': {kind: FacetType, arg0: declared_facet_type(Empty), type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(Package)': {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: inst50000011: {kind: FunctionDecl, arg0: function50000000, arg1: inst_block_empty, type: type(inst50000012)}
|
||||
// CHECK:STDOUT: inst50000012: {kind: FunctionType, arg0: function50000000, arg1: specific<none>, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst50000013: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
|
||||
@@ -100,7 +102,8 @@ fn B() {
|
||||
// CHECK:STDOUT: bundles: {}
|
||||
// CHECK:STDOUT: constant_values:
|
||||
// CHECK:STDOUT: values:
|
||||
// CHECK:STDOUT: inst10: concrete_constant(inst10)
|
||||
// CHECK:STDOUT: 'inst(TypeType)': concrete_constant(inst(TypeType))
|
||||
// CHECK:STDOUT: 'inst(Package)': concrete_constant(inst(Package))
|
||||
// CHECK:STDOUT: inst50000011: concrete_constant(inst50000014)
|
||||
// CHECK:STDOUT: inst50000012: concrete_constant(inst50000012)
|
||||
// CHECK:STDOUT: inst50000013: concrete_constant(inst50000013)
|
||||
@@ -117,7 +120,7 @@ fn B() {
|
||||
// CHECK:STDOUT: inst_block50000006:
|
||||
// CHECK:STDOUT: 0: inst50000015
|
||||
// CHECK:STDOUT: inst_block50000007:
|
||||
// CHECK:STDOUT: 0: inst10
|
||||
// CHECK:STDOUT: 0: inst(Package)
|
||||
// CHECK:STDOUT: 1: inst50000011
|
||||
// CHECK:STDOUT: value_stores:
|
||||
// CHECK:STDOUT: shared_values:
|
||||
@@ -131,6 +134,7 @@ fn B() {
|
||||
// CHECK:STDOUT: --- a.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %A.type: type = fn_type @A [concrete]
|
||||
// CHECK:STDOUT: %A: %A.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: }
|
||||
@@ -164,7 +168,7 @@ fn B() {
|
||||
// CHECK:STDOUT: clang_decl_signatures: {}
|
||||
// CHECK:STDOUT: default_values: {}
|
||||
// CHECK:STDOUT: name_scopes:
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst10, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name1: inst70000012, name0: inst70000013}}
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst(Package), parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name1: inst70000012, name0: inst70000013}}
|
||||
// CHECK:STDOUT: name_scope70000001: {inst: inst70000012, parent_scope: name_scope0, has_error: false, extended_scopes: [], names: {name1: inst70000018}}
|
||||
// CHECK:STDOUT: entity_names:
|
||||
// CHECK:STDOUT: entity_name70000000: {name: name1, parent_scope: name_scope70000001, index: -1, is_template: 0, is_unused: 0, form: inst<none>, type: inst<none>}
|
||||
@@ -216,9 +220,11 @@ fn B() {
|
||||
// CHECK:STDOUT: object_layout:
|
||||
// CHECK:STDOUT: size: 0
|
||||
// CHECK:STDOUT: alignment: 1
|
||||
// CHECK:STDOUT: declared_facet_types: {}
|
||||
// CHECK:STDOUT: declared_facet_types:
|
||||
// CHECK:STDOUT: 'declared_facet_type(Empty)': {}
|
||||
// CHECK:STDOUT: insts:
|
||||
// CHECK:STDOUT: inst10: {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: 'inst(TypeType)': {kind: FacetType, arg0: declared_facet_type(Empty), type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(Package)': {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: inst70000011: {kind: ImportDecl, arg0: name1}
|
||||
// CHECK:STDOUT: inst70000012: {kind: Namespace, arg0: name_scope70000001, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: inst70000013: {kind: FunctionDecl, arg0: function70000000, arg1: inst_block_empty, type: type(inst70000014)}
|
||||
@@ -236,7 +242,8 @@ fn B() {
|
||||
// CHECK:STDOUT: bundles: {}
|
||||
// CHECK:STDOUT: constant_values:
|
||||
// CHECK:STDOUT: values:
|
||||
// CHECK:STDOUT: inst10: concrete_constant(inst10)
|
||||
// CHECK:STDOUT: 'inst(TypeType)': concrete_constant(inst(TypeType))
|
||||
// CHECK:STDOUT: 'inst(Package)': concrete_constant(inst(Package))
|
||||
// CHECK:STDOUT: inst70000012: concrete_constant(inst70000012)
|
||||
// CHECK:STDOUT: inst70000013: concrete_constant(inst70000016)
|
||||
// CHECK:STDOUT: inst70000014: concrete_constant(inst70000014)
|
||||
@@ -266,7 +273,7 @@ fn B() {
|
||||
// CHECK:STDOUT: 2: inst7000001D
|
||||
// CHECK:STDOUT: 3: inst7000001E
|
||||
// CHECK:STDOUT: inst_block70000007:
|
||||
// CHECK:STDOUT: 0: inst10
|
||||
// CHECK:STDOUT: 0: inst(Package)
|
||||
// CHECK:STDOUT: 1: inst70000011
|
||||
// CHECK:STDOUT: 2: inst70000013
|
||||
// CHECK:STDOUT: value_stores:
|
||||
@@ -282,6 +289,7 @@ fn B() {
|
||||
// CHECK:STDOUT: --- b.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %B.type: type = fn_type @B [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %B: %B.type = struct_value () [concrete]
|
||||
|
||||
+511
-508
File diff suppressed because it is too large.
Load diff
+2453
-2453
File diff suppressed because it is too large.
Load diff
@@ -31,7 +31,7 @@ fn Foo(n: ()) -> ((), ()) {
|
||||
// CHECK:STDOUT: clang_decl_signatures: {}
|
||||
// CHECK:STDOUT: default_values: {}
|
||||
// CHECK:STDOUT: name_scopes:
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst10, parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name0: inst5000002F}}
|
||||
// CHECK:STDOUT: name_scope0: {inst: inst(Package), parent_scope: name_scope<none>, has_error: false, extended_scopes: [], names: {name0: inst5000002F}}
|
||||
// CHECK:STDOUT: entity_names:
|
||||
// CHECK:STDOUT: entity_name50000000: {name: name1, parent_scope: name_scope<none>, index: -1, is_template: 0, is_unused: 0, form: inst<none>, type: inst50000014}
|
||||
// CHECK:STDOUT: functions:
|
||||
@@ -91,9 +91,11 @@ fn Foo(n: ()) -> ((), ()) {
|
||||
// CHECK:STDOUT: object_layout:
|
||||
// CHECK:STDOUT: size: 0
|
||||
// CHECK:STDOUT: alignment: 1
|
||||
// CHECK:STDOUT: declared_facet_types: {}
|
||||
// CHECK:STDOUT: declared_facet_types:
|
||||
// CHECK:STDOUT: 'declared_facet_type(Empty)': {}
|
||||
// CHECK:STDOUT: insts:
|
||||
// CHECK:STDOUT: inst10: {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: 'inst(TypeType)': {kind: FacetType, arg0: declared_facet_type(Empty), type: type(TypeType)}
|
||||
// CHECK:STDOUT: 'inst(Package)': {kind: Namespace, arg0: name_scope0, type: type(inst(NamespaceType))}
|
||||
// CHECK:STDOUT: inst50000011: {kind: TupleType, arg0: inst_block_empty, type: type(TypeType)}
|
||||
// CHECK:STDOUT: inst50000012: {kind: TupleLiteral, arg0: inst_block_empty, type: type(inst50000011)}
|
||||
// CHECK:STDOUT: inst50000013: {kind: TupleValue, arg0: inst_block_empty, type: type(inst50000011)}
|
||||
@@ -144,7 +146,8 @@ fn Foo(n: ()) -> ((), ()) {
|
||||
// CHECK:STDOUT: bundles: {}
|
||||
// CHECK:STDOUT: constant_values:
|
||||
// CHECK:STDOUT: values:
|
||||
// CHECK:STDOUT: inst10: concrete_constant(inst10)
|
||||
// CHECK:STDOUT: 'inst(TypeType)': concrete_constant(inst(TypeType))
|
||||
// CHECK:STDOUT: 'inst(Package)': concrete_constant(inst(Package))
|
||||
// CHECK:STDOUT: inst50000011: concrete_constant(inst50000011)
|
||||
// CHECK:STDOUT: inst50000012: concrete_constant(inst50000013)
|
||||
// CHECK:STDOUT: inst50000013: concrete_constant(inst50000013)
|
||||
@@ -254,7 +257,7 @@ fn Foo(n: ()) -> ((), ()) {
|
||||
// CHECK:STDOUT: 0: inst50000038
|
||||
// CHECK:STDOUT: 1: inst5000003C
|
||||
// CHECK:STDOUT: inst_block50000012:
|
||||
// CHECK:STDOUT: 0: inst10
|
||||
// CHECK:STDOUT: 0: inst(Package)
|
||||
// CHECK:STDOUT: 1: inst5000002F
|
||||
// CHECK:STDOUT: value_stores:
|
||||
// CHECK:STDOUT: shared_values:
|
||||
@@ -269,6 +272,7 @@ fn Foo(n: ()) -> ((), ()) {
|
||||
// CHECK:STDOUT: --- one_file_with_textual_ir.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple: %empty_tuple.type = tuple_value () [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.cb1: type = pattern_type %empty_tuple.type [concrete]
|
||||
|
||||
@@ -47,6 +47,7 @@ var d: C(false == false) = True();
|
||||
// CHECK:STDOUT: --- builtin_call.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %Eq.type: type = fn_type @Eq [concrete]
|
||||
// CHECK:STDOUT: %Eq: %Eq.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: %C.type: type = generic_class_type @C [concrete]
|
||||
@@ -91,6 +92,7 @@ var d: C(false == false) = True();
|
||||
// CHECK:STDOUT: --- prelude.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C.type: type = generic_class_type @C [concrete]
|
||||
// CHECK:STDOUT: %C.generic: %C.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: %true: bool = bool_literal true [concrete]
|
||||
|
||||
@@ -29,6 +29,7 @@ let b: Bool() = false;
|
||||
// CHECK:STDOUT: --- use_types.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %Bool.type: type = fn_type @Bool [concrete]
|
||||
// CHECK:STDOUT: %Bool: %Bool.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.831: type = pattern_type bool [concrete]
|
||||
|
||||
@@ -47,6 +47,7 @@ var d: C(false != false) = False();
|
||||
// CHECK:STDOUT: --- builtin_call.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %Neq.type: type = fn_type @Neq [concrete]
|
||||
// CHECK:STDOUT: %Neq: %Neq.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: %C.type: type = generic_class_type @C [concrete]
|
||||
@@ -92,6 +93,7 @@ var d: C(false != false) = False();
|
||||
// CHECK:STDOUT: --- prelude.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %C.type: type = generic_class_type @C [concrete]
|
||||
// CHECK:STDOUT: %C.generic: %C.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: %true: bool = bool_literal true [concrete]
|
||||
|
||||
@@ -75,6 +75,7 @@ let c: CharLiteral = AddCharInt('a', Negate(98));
|
||||
// CHECK:STDOUT: --- success.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.8c6: type = pattern_type Core.CharLiteral [concrete]
|
||||
// CHECK:STDOUT: %AddCharInt.type: type = fn_type @AddCharInt [concrete]
|
||||
// CHECK:STDOUT: %AddCharInt: %AddCharInt.type = struct_value () [concrete]
|
||||
|
||||
@@ -96,6 +96,7 @@ let c: UInt(8) = ToChar('\u{1E15}');
|
||||
// CHECK:STDOUT: --- narrow.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %UInt.type: type = fn_type @UInt [concrete]
|
||||
// CHECK:STDOUT: %UInt: %UInt.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: %int_8: Core.IntLiteral = int_value 8 [concrete]
|
||||
|
||||
@@ -61,6 +61,7 @@ let g: u8 = ConvertToU8('\u{100}');
|
||||
// CHECK:STDOUT: --- success.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.6b6: type = pattern_type %i32 [concrete]
|
||||
|
||||
@@ -25,6 +25,7 @@ let b: bool = Eq('a', 'b');
|
||||
// CHECK:STDOUT: --- eq.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.831: type = pattern_type bool [concrete]
|
||||
// CHECK:STDOUT: %Eq.type: type = fn_type @Eq [concrete]
|
||||
// CHECK:STDOUT: %Eq: %Eq.type = struct_value () [concrete]
|
||||
|
||||
@@ -25,6 +25,7 @@ let b: bool = Greater('a', 'b');
|
||||
// CHECK:STDOUT: --- greater.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.831: type = pattern_type bool [concrete]
|
||||
// CHECK:STDOUT: %Greater.type: type = fn_type @Greater [concrete]
|
||||
// CHECK:STDOUT: %Greater: %Greater.type = struct_value () [concrete]
|
||||
|
||||
@@ -26,6 +26,7 @@ let c: bool = GreaterEq('a', 'b');
|
||||
// CHECK:STDOUT: --- greater_eq.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.831: type = pattern_type bool [concrete]
|
||||
// CHECK:STDOUT: %GreaterEq.type: type = fn_type @GreaterEq [concrete]
|
||||
// CHECK:STDOUT: %GreaterEq: %GreaterEq.type = struct_value () [concrete]
|
||||
|
||||
@@ -25,6 +25,7 @@ let b: bool = Less('b', 'a');
|
||||
// CHECK:STDOUT: --- less.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.831: type = pattern_type bool [concrete]
|
||||
// CHECK:STDOUT: %Less.type: type = fn_type @Less [concrete]
|
||||
// CHECK:STDOUT: %Less: %Less.type = struct_value () [concrete]
|
||||
|
||||
@@ -26,6 +26,7 @@ let c: bool = LessEq('b', 'a');
|
||||
// CHECK:STDOUT: --- less_eq.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.831: type = pattern_type bool [concrete]
|
||||
// CHECK:STDOUT: %LessEq.type: type = fn_type @LessEq [concrete]
|
||||
// CHECK:STDOUT: %LessEq: %LessEq.type = struct_value () [concrete]
|
||||
|
||||
@@ -32,6 +32,7 @@ let not_8_bit: CharLiteral = '\u{1E15}';
|
||||
// CHECK:STDOUT: --- use_types.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type Core.CharLiteral [concrete]
|
||||
// CHECK:STDOUT: %ascii_x.patt: %pattern_type = value_binding_pattern ascii_x [concrete]
|
||||
// CHECK:STDOUT: %.4ac: Core.CharLiteral = char_value U+0078 [concrete]
|
||||
|
||||
@@ -25,6 +25,7 @@ let b: bool = Neq('a', 'a');
|
||||
// CHECK:STDOUT: --- neq.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.831: type = pattern_type bool [concrete]
|
||||
// CHECK:STDOUT: %Neq.type: type = fn_type @Neq [concrete]
|
||||
// CHECK:STDOUT: %Neq: %Neq.type = struct_value () [concrete]
|
||||
|
||||
@@ -32,6 +32,7 @@ let min: i32 = SubCharCharToI32('\u{0}', '\u{10FFFF}');
|
||||
// CHECK:STDOUT: --- sub_char.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.dc0: type = pattern_type Core.IntLiteral [concrete]
|
||||
// CHECK:STDOUT: %SubCharCharToIntLiteral.type: type = fn_type @SubCharCharToIntLiteral [concrete]
|
||||
// CHECK:STDOUT: %SubCharCharToIntLiteral: %SubCharCharToIntLiteral.type = struct_value () [concrete]
|
||||
|
||||
@@ -57,6 +57,7 @@ let b: CharLiteral = SubCharInt('\u{10FFFF}', Negate(1));
|
||||
// CHECK:STDOUT: --- success.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.8c6: type = pattern_type Core.CharLiteral [concrete]
|
||||
// CHECK:STDOUT: %SubCharInt.type: type = fn_type @SubCharInt [concrete]
|
||||
// CHECK:STDOUT: %SubCharInt: %SubCharInt.type = struct_value () [concrete]
|
||||
|
||||
@@ -60,6 +60,7 @@ fn RuntimeCallIsValidBadReturnType(a: f64, b: f64) -> bool {
|
||||
// CHECK:STDOUT: --- float_add.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %Add.type: type = fn_type @Add [concrete]
|
||||
|
||||
@@ -122,6 +122,7 @@ let b: f64 = Float32ToFloat64(1.0e30);
|
||||
// CHECK:STDOUT: --- identity_literal.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type Core.FloatLiteral [concrete]
|
||||
// CHECK:STDOUT: %f.patt: %pattern_type = value_binding_pattern f [concrete]
|
||||
// CHECK:STDOUT: %FloatLiteralToFloatLiteral.type: type = fn_type @FloatLiteralToFloatLiteral [concrete]
|
||||
@@ -155,6 +156,7 @@ let b: f64 = Float32ToFloat64(1.0e30);
|
||||
// CHECK:STDOUT: --- literal_f64.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.fb7: type = pattern_type %f64.dc1 [concrete]
|
||||
@@ -229,6 +231,7 @@ let b: f64 = Float32ToFloat64(1.0e30);
|
||||
// CHECK:STDOUT: --- literal_f32.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %f32.c73: type = class_type @Float, @Float(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.240: type = pattern_type %f32.c73 [concrete]
|
||||
@@ -303,6 +306,7 @@ let b: f64 = Float32ToFloat64(1.0e30);
|
||||
// CHECK:STDOUT: --- identity_f64.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.fb7: type = pattern_type %f64.dc1 [concrete]
|
||||
@@ -404,6 +408,7 @@ let b: f64 = Float32ToFloat64(1.0e30);
|
||||
// CHECK:STDOUT: --- identity_f32.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %f32.c73: type = class_type @Float, @Float(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.240: type = pattern_type %f32.c73 [concrete]
|
||||
@@ -505,6 +510,7 @@ let b: f64 = Float32ToFloat64(1.0e30);
|
||||
// CHECK:STDOUT: --- truncate.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %f32.c73: type = class_type @Float, @Float(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.240: type = pattern_type %f32.c73 [concrete]
|
||||
@@ -588,6 +594,7 @@ let b: f64 = Float32ToFloat64(1.0e30);
|
||||
// CHECK:STDOUT: --- extend.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.fb7: type = pattern_type %f64.dc1 [concrete]
|
||||
|
||||
@@ -158,6 +158,7 @@ let convert_not_constant: f64 = Float64ToFloat64(not_constant_64);
|
||||
// CHECK:STDOUT: --- identity_literal.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type Core.FloatLiteral [concrete]
|
||||
// CHECK:STDOUT: %f.patt: %pattern_type = value_binding_pattern f [concrete]
|
||||
// CHECK:STDOUT: %FloatLiteralToFloatLiteral.type: type = fn_type @FloatLiteralToFloatLiteral [concrete]
|
||||
@@ -191,6 +192,7 @@ let convert_not_constant: f64 = Float64ToFloat64(not_constant_64);
|
||||
// CHECK:STDOUT: --- literal_f64.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.fb7: type = pattern_type %f64.dc1 [concrete]
|
||||
@@ -252,6 +254,7 @@ let convert_not_constant: f64 = Float64ToFloat64(not_constant_64);
|
||||
// CHECK:STDOUT: --- literal_f32.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %f32.c73: type = class_type @Float, @Float(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.240: type = pattern_type %f32.c73 [concrete]
|
||||
@@ -313,6 +316,7 @@ let convert_not_constant: f64 = Float64ToFloat64(not_constant_64);
|
||||
// CHECK:STDOUT: --- identity_f64.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.fb7: type = pattern_type %f64.dc1 [concrete]
|
||||
@@ -414,6 +418,7 @@ let convert_not_constant: f64 = Float64ToFloat64(not_constant_64);
|
||||
// CHECK:STDOUT: --- identity_f32.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %f32.c73: type = class_type @Float, @Float(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.240: type = pattern_type %f32.c73 [concrete]
|
||||
@@ -515,6 +520,7 @@ let convert_not_constant: f64 = Float64ToFloat64(not_constant_64);
|
||||
// CHECK:STDOUT: --- truncate.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %f32.c73: type = class_type @Float, @Float(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.240: type = pattern_type %f32.c73 [concrete]
|
||||
@@ -575,6 +581,7 @@ let convert_not_constant: f64 = Float64ToFloat64(not_constant_64);
|
||||
// CHECK:STDOUT: --- fail_truncate_overflow.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %f32.c73: type = class_type @Float, @Float(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.240: type = pattern_type %f32.c73 [concrete]
|
||||
@@ -665,6 +672,7 @@ let convert_not_constant: f64 = Float64ToFloat64(not_constant_64);
|
||||
// CHECK:STDOUT: --- extend.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.fb7: type = pattern_type %f64.dc1 [concrete]
|
||||
@@ -748,6 +756,7 @@ let convert_not_constant: f64 = Float64ToFloat64(not_constant_64);
|
||||
// CHECK:STDOUT: --- fail_not_constant.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.fb7: type = pattern_type %f64.dc1 [concrete]
|
||||
|
||||
@@ -219,6 +219,7 @@ let inf_val: i32 = ConvertF64ToI32(Div(1.0, 0.0));
|
||||
// CHECK:STDOUT: --- fail_overflow.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %Int.type: type = generic_class_type @Int [concrete]
|
||||
// CHECK:STDOUT: %Int.generic: %Int.type = struct_value () [concrete]
|
||||
@@ -518,6 +519,7 @@ let inf_val: i32 = ConvertF64ToI32(Div(1.0, 0.0));
|
||||
// CHECK:STDOUT: --- fail_nan_inf.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.6b6: type = pattern_type %i32 [concrete]
|
||||
|
||||
@@ -82,6 +82,7 @@ fn DivLiteral(a: Literal(), b: Literal()) -> Literal() = "float.div";
|
||||
// CHECK:STDOUT: --- float_div.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %Div.type: type = fn_type @Div [concrete]
|
||||
|
||||
@@ -51,6 +51,7 @@ fn Eq(a: Core.FloatLiteral, b: Core.FloatLiteral) -> bool = "float.eq";
|
||||
// CHECK:STDOUT: --- float_eq.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %Eq.type: type = fn_type @Eq [concrete]
|
||||
|
||||
@@ -35,6 +35,7 @@ fn RuntimeCallIsValid(a: f64, b: f64) -> bool {
|
||||
// CHECK:STDOUT: --- float_greater.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %Greater.type: type = fn_type @Greater [concrete]
|
||||
|
||||
@@ -35,6 +35,7 @@ fn RuntimeCallIsValid(a: f64, b: f64) -> bool {
|
||||
// CHECK:STDOUT: --- float_greater_eq.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %GreaterEq.type: type = fn_type @GreaterEq [concrete]
|
||||
|
||||
@@ -35,6 +35,7 @@ fn RuntimeCallIsValid(a: f64, b: f64) -> bool {
|
||||
// CHECK:STDOUT: --- float_less.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %Less.type: type = fn_type @Less [concrete]
|
||||
|
||||
@@ -45,6 +45,7 @@ fn LessEq(a: Core.FloatLiteral, b: Core.FloatLiteral) -> bool = "float.less_eq";
|
||||
// CHECK:STDOUT: --- float_less_eq.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %LessEq.type: type = fn_type @LessEq [concrete]
|
||||
|
||||
@@ -61,6 +61,7 @@ var dyn: Float(dyn_size);
|
||||
// CHECK:STDOUT: --- use_types.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %Float.type: type = fn_type @Float [concrete]
|
||||
// CHECK:STDOUT: %Float: %Float.type = struct_value () [concrete]
|
||||
// CHECK:STDOUT: %int_32.be0: Core.IntLiteral = int_value 32 [concrete]
|
||||
|
||||
@@ -80,6 +80,7 @@ fn MulLiteral(a: Literal(), b: Literal()) -> Literal() = "float.mul";
|
||||
// CHECK:STDOUT: --- mul_sub.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %Mul.type: type = fn_type @Mul [concrete]
|
||||
|
||||
@@ -69,6 +69,7 @@ fn RuntimeCallIsValidBadReturnType(a: f64) -> bool {
|
||||
// CHECK:STDOUT: --- float_negate.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %Negate.type: type = fn_type @Negate [concrete]
|
||||
|
||||
@@ -43,6 +43,7 @@ fn WrongResult(a: f64, b: f64) -> f64 = "float.neq";
|
||||
// CHECK:STDOUT: --- float_neq.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %Neq.type: type = fn_type @Neq [concrete]
|
||||
|
||||
@@ -69,6 +69,7 @@ fn RuntimeCallIsValidBadReturnType(a: f64, b: f64) -> bool {
|
||||
// CHECK:STDOUT: --- float_sub.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %Sub.type: type = fn_type @Sub [concrete]
|
||||
|
||||
@@ -52,6 +52,7 @@ fn F(){
|
||||
// CHECK:STDOUT: --- float_literal_add.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.dab: type = pattern_type Core.FloatLiteral [concrete]
|
||||
// CHECK:STDOUT: %Add.type: type = fn_type @Add [concrete]
|
||||
// CHECK:STDOUT: %Add: %Add.type = struct_value () [concrete]
|
||||
|
||||
@@ -30,6 +30,7 @@ let f: FloatLiteral = 1.0;
|
||||
// CHECK:STDOUT: --- use_types.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type Core.FloatLiteral [concrete]
|
||||
// CHECK:STDOUT: %f.patt: %pattern_type = value_binding_pattern f [concrete]
|
||||
// CHECK:STDOUT: %float: Core.FloatLiteral = float_literal_value 10e-1 [concrete]
|
||||
|
||||
@@ -31,6 +31,7 @@ let v6: Core.FloatLiteral = Negate(Negate(0.0));
|
||||
// CHECK:STDOUT: --- negate.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type Core.FloatLiteral [concrete]
|
||||
// CHECK:STDOUT: %Negate.type: type = fn_type @Negate [concrete]
|
||||
// CHECK:STDOUT: %Negate: %Negate.type = struct_value () [concrete]
|
||||
|
||||
@@ -53,6 +53,7 @@ let v1: Core.FloatLiteral = Sub(0x1.0p1024000000000, 0.0000000000000000001);
|
||||
// CHECK:STDOUT: --- float_literal_sub.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.dab: type = pattern_type Core.FloatLiteral [concrete]
|
||||
// CHECK:STDOUT: %Sub.type: type = fn_type @Sub [concrete]
|
||||
// CHECK:STDOUT: %Sub: %Sub.type = struct_value () [concrete]
|
||||
|
||||
@@ -30,6 +30,7 @@ let f: Form = form(var ());
|
||||
// CHECK:STDOUT: --- use_types.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type: type = pattern_type Core.Form [concrete]
|
||||
// CHECK:STDOUT: %f.patt: %pattern_type = value_binding_pattern f [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
|
||||
@@ -75,6 +75,7 @@ let c: CharLiteral = AddIntChar(Negate(98), 'a');
|
||||
// CHECK:STDOUT: --- success.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.8c6: type = pattern_type Core.CharLiteral [concrete]
|
||||
// CHECK:STDOUT: %AddIntChar.type: type = fn_type @AddIntChar [concrete]
|
||||
// CHECK:STDOUT: %AddIntChar: %AddIntChar.type = struct_value () [concrete]
|
||||
|
||||
@@ -126,6 +126,7 @@ fn Test(n: Core.IntLiteral) {
|
||||
// CHECK:STDOUT: --- int_and.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %And.type: type = fn_type @And [concrete]
|
||||
|
||||
@@ -57,6 +57,7 @@ fn MixedTypes(ref a: i32, b: i64) = "int.and_assign";
|
||||
// CHECK:STDOUT: --- call.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
|
||||
@@ -65,6 +65,7 @@ fn F(a: Core.IntLiteral) -> Core.IntLiteral {
|
||||
// CHECK:STDOUT: --- int_complement.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %Complement.type: type = fn_type @Complement [concrete]
|
||||
|
||||
@@ -290,6 +290,7 @@ fn F() {
|
||||
// CHECK:STDOUT: --- runtime_call.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %u32: type = class_type @UInt, @UInt(%int_32) [concrete]
|
||||
|
||||
@@ -61,6 +61,7 @@ let c: CharLiteral = ConvertFromIntLiteral(0x110000);
|
||||
// CHECK:STDOUT: --- success.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.8c6: type = pattern_type Core.CharLiteral [concrete]
|
||||
// CHECK:STDOUT: %ConvertFromIntLiteral.type: type = fn_type @ConvertFromIntLiteral [concrete]
|
||||
// CHECK:STDOUT: %ConvertFromIntLiteral: %ConvertFromIntLiteral.type = struct_value () [concrete]
|
||||
|
||||
@@ -266,6 +266,7 @@ let convert_not_constant_widen: i64 = Int32ToInt64(not_constant);
|
||||
// CHECK:STDOUT: --- runtime_call.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %u32: type = class_type @UInt, @UInt(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.668: type = pattern_type %u32 [concrete]
|
||||
|
||||
@@ -58,6 +58,7 @@ let overflow: f64 = ConvertIntLiteralToF64(1000000000000000000000000000000000000
|
||||
// CHECK:STDOUT: --- fail_overflow.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_64: Core.IntLiteral = int_value 64 [concrete]
|
||||
// CHECK:STDOUT: %f64.dc1: type = class_type @Float, @Float(%int_64) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.fb7: type = pattern_type %f64.dc1 [concrete]
|
||||
|
||||
@@ -46,6 +46,7 @@ let lossy: f32 = ConvertIntLiteralToF32(123456789);
|
||||
// CHECK:STDOUT: --- fail_lossy.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %f32.c73: type = class_type @Float, @Float(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %pattern_type.240: type = pattern_type %f32.c73 [concrete]
|
||||
|
||||
@@ -110,6 +110,7 @@ fn Test(n: Core.IntLiteral) {
|
||||
// CHECK:STDOUT: --- int_eq.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: type: type = facet_type <type> [concrete]
|
||||
// CHECK:STDOUT: %int_32: Core.IntLiteral = int_value 32 [concrete]
|
||||
// CHECK:STDOUT: %i32: type = class_type @Int, @Int(%int_32) [concrete]
|
||||
// CHECK:STDOUT: %Eq.type: type = fn_type @Eq [concrete]
|
||||
|
||||
Loaded 100 of 795 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user