OSDN Git Service

Add the MachineInstrSpan class.
authorMark Lacey <mark.lacey@apple.com>
Wed, 14 Aug 2013 23:50:11 +0000 (23:50 +0000)
committerMark Lacey <mark.lacey@apple.com>
Wed, 14 Aug 2013 23:50:11 +0000 (23:50 +0000)
commit3bbd96e90be56c39a0b527fc6d5ccd8af4426a03
tree78fe6f719f813d58a3ddf17e0c552a5f041e1714
parent03fe68e0a9c0fdd196f62899cb44b6f9a56dd7c8
Add the MachineInstrSpan class.

MachineInstrSpan is initialized with a MachineBasicBlock::iterator,
and is intended to track which instructions are inserted before/after
that instruction from the time the MachineInstrSpan is created.

It provides a begin()/end() interface to walk the range of
instructions inserted around the initial instruction (including that
initial instruction).

It also provides a getInitial() interface to return the initial
iterator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188436 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineBasicBlock.h