Skip to content

IRGen: Use maximal resilience expansion to lower SIL types #23288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions lib/IRGen/GenType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1434,29 +1434,25 @@ const TypeInfo &IRGenFunction::getTypeInfo(SILType T) {

/// Return the SIL-lowering of the given type.
SILType IRGenModule::getLoweredType(AbstractionPattern orig, Type subst) const {
// FIXME: Expansion
return getSILTypes().getLoweredType(orig, subst,
ResilienceExpansion::Minimal);
ResilienceExpansion::Maximal);
}

/// Return the SIL-lowering of the given type.
SILType IRGenModule::getLoweredType(Type subst) const {
// FIXME: Expansion
return getSILTypes().getLoweredType(subst,
ResilienceExpansion::Minimal);
ResilienceExpansion::Maximal);
}

/// Return the SIL-lowering of the given type.
const Lowering::TypeLowering &IRGenModule::getTypeLowering(SILType type) const {
// FIXME: Expansion
return getSILTypes().getTypeLowering(type,
ResilienceExpansion::Minimal);
ResilienceExpansion::Maximal);
}

bool IRGenModule::isTypeABIAccessible(SILType type) const {
// FIXME: Expansion
return getSILModule().isTypeABIAccessible(type,
ResilienceExpansion::Minimal);
ResilienceExpansion::Maximal);
}

/// Get a pointer to the storage type for the given type. Note that,
Expand Down