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:
Erik Eckstein
2021-10-06 16:26:01 +02:00
parent daa335c42f
commit 7849f09e52
32 changed files with 9 additions and 477 deletions

View File

@@ -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,