CodeGen: Split bundle_iterator into a separate file, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 21 Feb 2016 22:05:50 +0000 (22:05 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 21 Feb 2016 22:05:50 +0000 (22:05 +0000)
commitf65e407c6e7248b54074610b5faabd2a4f176246
treeca62092c27a6fe64b893c95001af6442947a7a9f
parent85c06c80d19ab9fff861aad4fe000d7df1e56356
CodeGen: Split bundle_iterator into a separate file, NFC

Split MachineBasicBlock::bundle_iterator into a separate file, and
rename the class to MachineBundleIterator.

This is a precursor to adding a `MachineInstr::getBundleIterator()`
accessor, which will eventually let us delete the final call to
getNodePtrUnchecked(), and then remove the UB from ilist_iterator.

As a drive-by, I removed an unnecessary second template parameter.

llvm-svn: 261502
llvm/include/llvm/CodeGen/MachineBasicBlock.h
llvm/include/llvm/CodeGen/MachineInstrBundleIterator.h [new file with mode: 0644]