File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -907,6 +907,8 @@ SWIFT_RUNTIME_EXPORT
907907const ValueWitnessTable VALUE_WITNESS_SYM (Bi128_); // Builtin.Int128
908908SWIFT_RUNTIME_EXPORT
909909const ValueWitnessTable VALUE_WITNESS_SYM (Bi256_); // Builtin.Int256
910+ SWIFT_RUNTIME_EXPORT
911+ const ValueWitnessTable VALUE_WITNESS_SYM (Bi512_); // Builtin.Int512
910912
911913// The object-pointer table can be used for arbitrary Swift refcounted
912914// pointer types.
@@ -1337,6 +1339,8 @@ const FullOpaqueMetadata METADATA_SYM(Bi128_); // Builtin.Int128
13371339SWIFT_RUNTIME_EXPORT
13381340const FullOpaqueMetadata METADATA_SYM (Bi256_); // Builtin.Int256
13391341SWIFT_RUNTIME_EXPORT
1342+ const FullOpaqueMetadata METADATA_SYM (Bi512_); // Builtin.Int512
1343+ SWIFT_RUNTIME_EXPORT
13401344const FullOpaqueMetadata METADATA_SYM (Bo); // Builtin.NativeObject
13411345SWIFT_RUNTIME_EXPORT
13421346const FullOpaqueMetadata METADATA_SYM (Bb); // Builtin.BridgeObject
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ namespace {
4141 struct alignas (32 ) int256_like {
4242 char data[32 ];
4343 };
44+ struct alignas (64 ) int512_like {
45+ char data[64 ];
46+ };
4447} // end anonymous namespace
4548
4649// We use explicit sizes and alignments here just in case the C ABI
@@ -57,6 +60,8 @@ const ValueWitnessTable swift::VALUE_WITNESS_SYM(Bi128_) =
5760 ValueWitnessTableForBox<NativeBox<int128_like, 16>>::table;
5861const ValueWitnessTable swift::VALUE_WITNESS_SYM (Bi256_) =
5962 ValueWitnessTableForBox<NativeBox<int256_like, 32>>::table;
63+ const ValueWitnessTable swift::VALUE_WITNESS_SYM (Bi512_) =
64+ ValueWitnessTableForBox<NativeBox<int512_like, 64>>::table;
6065
6166// / The basic value-witness table for Swift object pointers.
6267const ExtraInhabitantsValueWitnessTable swift::VALUE_WITNESS_SYM (Bo) =
@@ -157,6 +162,7 @@ OPAQUE_METADATA(Bi32_)
157162OPAQUE_METADATA(Bi64_)
158163OPAQUE_METADATA(Bi128_)
159164OPAQUE_METADATA(Bi256_)
165+ OPAQUE_METADATA(Bi512_)
160166OPAQUE_METADATA(Bo)
161167OPAQUE_METADATA(Bb)
162168OPAQUE_METADATA(Bp)
Original file line number Diff line number Diff line change @@ -1381,6 +1381,9 @@ void swift::installCommonValueWitnesses(ValueWitnessTable *vwtable) {
13811381 case sizeWithAlignmentMask (32 , 31 ):
13821382 commonVWT = &VALUE_WITNESS_SYM (Bi256_);
13831383 break ;
1384+ case sizeWithAlignmentMask (64 , 63 ):
1385+ commonVWT = &VALUE_WITNESS_SYM (Bi512_);
1386+ break ;
13841387 }
13851388
13861389 #define INSTALL_POD_COMMON_WITNESS (NAME ) vwtable->NAME = commonVWT->NAME;
You can’t perform that action at this time.
0 commit comments