swift icon indicating copy to clipboard operation
swift copied to clipboard

[embedded] Add support for ManagedBuffer to Embedded Swift

Open kubamracek opened this issue 5 months ago • 2 comments

This makes ManagedBuffer available and usable in Embedded Swift, by:

  • Removing an internal consistency check from ManagedBuffer that relies on metatypes.
  • Making the .create() API transparent (to hoist the metatype to the callee).
  • Adding a AllocRefDynamicInst simplification to convert alloc_ref_dynamic to alloc_ref, which removes a metatype use.
  • Adding tests for the above.

kubamracek avatar Sep 23 '24 20:09 kubamracek