Change all machine basic block modifier functions in MRegisterInfo to
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Tue, 4 Nov 2003 22:57:09 +0000 (22:57 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Tue, 4 Nov 2003 22:57:09 +0000 (22:57 +0000)
commite668dab5b339df01920b8bff890a70455b7dd27a
tree06b1ea7b9742d92dde98a521457df178f311b59f
parent55766e139a2eae8d44e703c1933d1084c1d5a586
Change all machine basic block modifier functions in MRegisterInfo to
return the number of instructions added to/removed from the basic block
passed as their first argument.

Note: This is only needed because we use a std::vector instead of an
ilist to keep MachineBasicBlock instructions. Inserting an instruction
to a MachineBasicBlock invalidates all iterators to the basic
block. The return value can be used to update an index to the machine
basic block instruction vector and circumvent the iterator elimination
problem but this is really not needed if we move to a better
representation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9704 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/MRegisterInfo.h
lib/Target/X86/X86RegisterInfo.cpp
lib/Target/X86/X86RegisterInfo.h