Allow tied uses and defs in different orders.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 4 Sep 2012 18:36:28 +0000 (18:36 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 4 Sep 2012 18:36:28 +0000 (18:36 +0000)
commit9c130672761e006c47ea23b34a7bd414f2cd8368
tree4ae92ec738722467f3ba792d4a957a89b81647df
parent2e2efd960056bbb7e4bbd843c8de55116d52aa7d
Allow tied uses and defs in different orders.

After much agonizing, use a full 4 bits of precious MachineOperand space
to encode this. This uses existing padding, and doesn't grow
MachineOperand beyond its current 32 bytes.

This allows tied defs among the first 15 operands on a normal
instruction, just like the current MCInstrDesc constraint encoding.
Inline assembly needs to be able to tie more than the first 15 operands,
and gets special treatment.

Tied uses can appear beyond 15 operands, as long as they are tied to a
def that's in range.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163151 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
include/llvm/CodeGen/MachineOperand.h
lib/CodeGen/MachineInstr.cpp