Swift SIL: add Builder.createUncheckedOwnershipConversion

This commit is contained in:
Erik Eckstein
2025-05-02 18:07:57 +02:00
parent bb9829c89c
commit 2f34dae56f
3 changed files with 16 additions and 0 deletions

View File

@@ -1172,6 +1172,8 @@ struct BridgedBuilder{
BridgedInstruction::CastingIsolatedConformances isolatedConformances,
BridgedValue source, BridgedCanType sourceFormalType,
BridgedValue destination, BridgedCanType targetFormalType) const;
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createUncheckedOwnershipConversion(
BridgedValue op, BridgedValue::Ownership ownership) const;
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createLoad(BridgedValue op, SwiftInt ownership) const;
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createLoadBorrow(BridgedValue op) const;
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createBeginDeallocRef(BridgedValue reference,