[ownership] Extract out SILOwnershipKind from ValueOwnershipKind into its own type and rename Invalid -> Any.

This makes it easier to understand conceptually why a ValueOwnershipKind with
Any ownership is invalid and also allowed me to explicitly document the lattice
that relates ownership constraints/value ownership kinds.
This commit is contained in:
Michael Gottesman
2020-11-10 12:51:08 -08:00
parent 1ff9147b2b
commit c026e95cce
81 changed files with 548 additions and 502 deletions

View File

@@ -299,7 +299,7 @@ struct CopyPropagationState {
: func(F), invalidation(SILAnalysis::InvalidationKind::Nothing) {}
bool isValueOwned() const {
return currDef.getOwnershipKind() == ValueOwnershipKind::Owned;
return currDef.getOwnershipKind() == OwnershipKind::Owned;
}
void markInvalid(SILAnalysis::InvalidationKind kind) {