Add a new select_value instruction. This instruction should be the equivalent of select_enum, just for builtin int types. Such an instruction is needed e.g. to efficiently implement conversions of Int raw values to C-like enums.

rdar://18812325

Swift SVN r23036
This commit is contained in:
Roman Levenstein
2014-10-31 20:44:11 +00:00
parent 43707235f2
commit f016754ef9
18 changed files with 574 additions and 39 deletions

View File

@@ -129,6 +129,7 @@ static bool isTransitiveEscapeInst(SILInstruction *Inst) {
case ValueKind::RefToUnownedInst:
case ValueKind::SelectEnumInst:
case ValueKind::SelectEnumAddrInst:
case ValueKind::SelectValueInst:
case ValueKind::StructElementAddrInst:
case ValueKind::StructExtractInst:
case ValueKind::StructInst: