Files
swift-mirror/stdlib/public/runtime/BytecodeLayouts.cpp
Dario Rexin 658f0ea3c8 [Runtime] Refactor layout string runtime functions to simplify future specialization work (#66105)
rdar://109787818

Templatized and abstracted handling of layout strings to simplify future specializations. E.g. specilizing for a particular number of reference count operations can be done by passing the expected size as a template param:

```
extern "C" void
swift_generic_destroy_2(swift::OpaqueValue *address, const Metadata *metadata) {
  handleRefCounts<2, DestroyHandler>(metadata, (uint8_t *)address);
}
```
2023-05-26 08:30:50 -07:00

15 KiB