Rename Slab to InlineArray

This commit is contained in:
Alejandro Alonso
2025-02-11 10:26:44 -08:00
parent a86743e77e
commit e4fb1f6761
24 changed files with 136 additions and 130 deletions

View File

@@ -5,14 +5,14 @@
// REQUIRES: swift_feature_Embedded
// REQUIRES: swift_feature_ValueGenerics
// CHECK-DAG: !DICompositeType({{.*}}templateParams: ![[SLAB_PARAMS:.*]], {{.*}}identifier: "$es4SlabVy$0_4main8MySpriteVGD"
// CHECK-DAG: !DICompositeType({{.*}}templateParams: ![[SLAB_PARAMS:.*]], {{.*}}identifier: "$es11InlineArrayVy$0_4main8MySpriteVGD"
// CHECK-DAG: ![[SLAB_PARAMS]] = !{![[COUNT_PARAM:.*]], ![[ELEMENT_PARAM:.*]]}
// CHECK-DAG: ![[COUNT_PARAM]] = !DITemplateTypeParameter(type: ![[COUNT_TYPE:.*]])
// CHECK-DAG: ![[COUNT_TYPE]] = !DICompositeType({{.*}}name: "$e$0_D"
// CHECK-DAG: ![[ELEMENT_PARAM]] = !DITemplateTypeParameter(type: ![[ELEMENT_TYPE:.*]])
// CHECK-DAG: ![[ELEMENT_TYPE]] = !DICompositeType({{.*}}name: "MySprite", {{.*}}identifier: "$e4main8MySpriteVD"
struct MySprites {
var bricks: Slab<1, MySprite>
var bricks: InlineArray<1, MySprite>
}
struct MySprite {
@@ -22,6 +22,6 @@ struct MySprite {
nonisolated(unsafe)
var sprites: MySprites? = nil
public func foo() {
let bricks: Slab<1, MySprite> = [MySprite()]
let bricks: InlineArray<1, MySprite> = [MySprite()]
sprites = .init(bricks: bricks)
}