Remove experimental continuation support (#2776)

Removes `__continuation`, `__await`, and `__run`.

In part here, the discussion was that while the feature had been useful for validating the early explorer design, it's no longer needed for that role as the explorer is now quite robust. Continuations have been experimental and, at this point, don't have an owner pushing to a proposal.

The triggering factor is that, as we push to address fuzzer issues, I ran into a crash bug in this code; basically, `fn Main() -> i32 { __await; return 0; }`. When I mentioned this, the reaction seemed to trend towards removal of the feature.
This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2023-04-19 14:22:43 -07:00
1 parent 60059ff726
commit 39155d34ae
49 files changed
+13 -2665

No files matched your search

-11
View File
@@ -494,9 +494,6 @@ void Value::Print(llvm::raw_ostream& out) const {
case Value::Kind::AutoType:
out << "auto";
break;
case Value::Kind::ContinuationType:
out << "Continuation";
break;
case Value::Kind::PointerType:
out << cast<PointerType>(*this).pointee_type() << "*";
break;
@@ -672,10 +669,6 @@ void Value::Print(llvm::raw_ostream& out) const {
out << "." << *GetName(assoc.constant()) << ")";
break;
}
case Value::Kind::ContinuationValue: {
out << cast<ContinuationValue>(*this).representation();
break;
}
case Value::Kind::StringType:
out << "String";
break;
@@ -870,7 +863,6 @@ auto TypeEqual(Nonnull<const Value*> t1, Nonnull<const Value*> t2,
}
case Value::Kind::IntType:
case Value::Kind::BoolType:
case Value::Kind::ContinuationType:
case Value::Kind::TypeType:
case Value::Kind::StringType:
return true;
@@ -898,7 +890,6 @@ auto TypeEqual(Nonnull<const Value*> t1, Nonnull<const Value*> t2,
case Value::Kind::LocationValue:
case Value::Kind::BindingPlaceholderValue:
case Value::Kind::AddrValue:
case Value::Kind::ContinuationValue:
case Value::Kind::UninitializedValue:
case Value::Kind::ParameterizedEntityName:
case Value::Kind::MemberName:
@@ -1034,7 +1025,6 @@ auto ValueStructurallyEqual(
case Value::Kind::ConstraintWitness:
case Value::Kind::ConstraintImplWitness:
case Value::Kind::ChoiceType:
case Value::Kind::ContinuationType:
case Value::Kind::VariableType:
case Value::Kind::StringType:
case Value::Kind::TypeOfMixinPseudoType:
@@ -1047,7 +1037,6 @@ auto ValueStructurallyEqual(
case Value::Kind::BindingPlaceholderValue:
case Value::Kind::AddrValue:
case Value::Kind::AlternativeConstructorValue:
case Value::Kind::ContinuationValue:
case Value::Kind::PointerValue:
case Value::Kind::LocationValue:
case Value::Kind::UninitializedValue: