[SIL] Added unowned_copy_value.

This commit is contained in:
Nate Chandler
2023-08-03 06:33:21 -07:00
parent 0cb3ce5f3c
commit f938287710
21 changed files with 172 additions and 6 deletions

View File

@@ -1407,6 +1407,15 @@ SILCloner<ImplClass>::visitDebugStepInst(DebugStepInst *Inst) {
recordClonedInstruction(Inst, getBuilder().createDebugStep(Inst->getLoc()));
}
template <typename ImplClass>
void SILCloner<ImplClass>::visitUnownedCopyValueInst(
UnownedCopyValueInst *Inst) {
getBuilder().setCurrentDebugScope(getOpScope(Inst->getDebugScope()));
recordClonedInstruction(
Inst, getBuilder().createUnownedCopyValue(
getOpLocation(Inst->getLoc()), getOpValue(Inst->getOperand())));
}
template <typename ImplClass>
void SILCloner<ImplClass>::visitWeakCopyValueInst(WeakCopyValueInst *Inst) {
getBuilder().setCurrentDebugScope(getOpScope(Inst->getDebugScope()));