mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SilOpt] Add new layout type _TrivialStride and add pre-specialization suppport for it (#70308)
rdar://119329771 This layout allows adding pre-specializations for trivial types that have a different size, but the same stride. This is especially useful for collections, where the stride is the important factor.
This commit is contained in:
@@ -2239,6 +2239,7 @@ public:
|
||||
case LayoutConstraintKind::RefCountedObject:
|
||||
case LayoutConstraintKind::TrivialOfAtMostSize:
|
||||
case LayoutConstraintKind::BridgeObject:
|
||||
case LayoutConstraintKind::TrivialStride:
|
||||
break;
|
||||
|
||||
case LayoutConstraintKind::UnknownLayout:
|
||||
|
||||
Reference in New Issue
Block a user