Update wasm backend

This commit is contained in:
Ayaz Hafiz 2023-01-03 21:22:47 -06:00
parent 6859c2e15c
commit 9d70c45781
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
6 changed files with 303 additions and 261 deletions

View file

@ -2730,6 +2730,16 @@ impl<'a> Layout<'a> {
other => *other,
}
}
pub fn runtime_representation_in<I>(layout: InLayout<'a>, interner: &I) -> InLayout<'a>
where
I: LayoutInterner<'a>,
{
match interner.get(layout) {
Layout::LambdaSet(lambda_set) => lambda_set.runtime_representation(),
_ => layout,
}
}
}
impl<'a> Layout<'a> {