Don't allow TargetFlags on MO_Register MachineOperands.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 28 Aug 2012 18:05:48 +0000 (18:05 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 28 Aug 2012 18:05:48 +0000 (18:05 +0000)
commit190e342cbcb1456ebb21b53a35cfefa99435bd65
treefa78bef29a63dfa33b02887b78932fa4f18cc5d0
parent96da080b88472efa098e8a004bd205713c89e513
Don't allow TargetFlags on MO_Register MachineOperands.

Register operands are manipulated by a lot of target-independent code,
and it is not always possible to preserve target flags. That means it is
not safe to use target flags on register operands.

None of the targets in the tree are using register operand target flags.
External targets should be using immediate operands to annotate
instructions with operand modifiers.

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