mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: remove the unused alloc_value_buffer, project_value_buffer and dealloc_value_buffer instructions.
Those instructions were use for the materializeForSet implementation, which was replaced by modify-coroutines.
This commit is contained in:
@@ -400,26 +400,6 @@ AllocExistentialBoxInst *AllocExistentialBoxInst::create(
|
||||
F);
|
||||
}
|
||||
|
||||
AllocValueBufferInst::AllocValueBufferInst(
|
||||
SILDebugLocation DebugLoc, SILType valueType, SILValue operand,
|
||||
ArrayRef<SILValue> TypeDependentOperands)
|
||||
: UnaryInstructionWithTypeDependentOperandsBase(DebugLoc, operand,
|
||||
TypeDependentOperands,
|
||||
valueType.getAddressType()) {}
|
||||
|
||||
AllocValueBufferInst *
|
||||
AllocValueBufferInst::create(SILDebugLocation DebugLoc, SILType valueType,
|
||||
SILValue operand, SILFunction &F) {
|
||||
SmallVector<SILValue, 8> TypeDependentOperands;
|
||||
collectTypeDependentOperands(TypeDependentOperands, F, valueType.getASTType());
|
||||
void *Buffer = F.getModule().allocateInst(
|
||||
sizeof(AllocValueBufferInst) +
|
||||
sizeof(Operand) * (TypeDependentOperands.size() + 1),
|
||||
alignof(AllocValueBufferInst));
|
||||
return ::new (Buffer) AllocValueBufferInst(DebugLoc, valueType, operand,
|
||||
TypeDependentOperands);
|
||||
}
|
||||
|
||||
BuiltinInst *BuiltinInst::create(SILDebugLocation Loc, Identifier Name,
|
||||
SILType ReturnType,
|
||||
SubstitutionMap Substitutions,
|
||||
|
||||
Reference in New Issue
Block a user