SIL: add new instructions to support tail-allocated arrays in SIL.

The new instructions are: ref_tail_addr, tail_addr and a new attribute [ tail_elems ] for alloc_ref.
For details see docs/SIL.rst

As these new instructions are not generated so far, this is a NFC.
This commit is contained in:
Erik Eckstein
2016-09-09 11:12:56 -07:00
parent fa861185d4
commit b11b60e658
35 changed files with 973 additions and 93 deletions

View File

@@ -94,6 +94,7 @@ static SILValue skipAddrProjections(SILValue V) {
case ValueKind::StructElementAddrInst:
case ValueKind::TupleElementAddrInst:
case ValueKind::RefElementAddrInst:
case ValueKind::RefTailAddrInst:
case ValueKind::ProjectBoxInst:
case ValueKind::UncheckedTakeEnumDataAddrInst:
case ValueKind::PointerToAddressInst: