aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineInstrBundle.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2012-01-19 06:13:10 +0000
committerEvan Cheng <evan.cheng@apple.com>2012-01-19 06:13:10 +0000
commita2e435cd23427eef7d8e86c72bb94c756e60e473 (patch)
tree233c30cae162ea7fa4305e63816d96948c64057d /include/llvm/CodeGen/MachineInstrBundle.h
parentae69f703d59410fc96f04be3c1afeaa1c17a45ce (diff)
downloadexternal_llvm-a2e435cd23427eef7d8e86c72bb94c756e60e473.zip
external_llvm-a2e435cd23427eef7d8e86c72bb94c756e60e473.tar.gz
external_llvm-a2e435cd23427eef7d8e86c72bb94c756e60e473.tar.bz2
Enhance finalizeBundle to return end of bundle iterator because it makes sense.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148462 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBundle.h')
-rw-r--r--include/llvm/CodeGen/MachineInstrBundle.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBundle.h b/include/llvm/CodeGen/MachineInstrBundle.h
index 8189507..2beddc1 100644
--- a/include/llvm/CodeGen/MachineInstrBundle.h
+++ b/include/llvm/CodeGen/MachineInstrBundle.h
@@ -32,8 +32,9 @@ void finalizeBundle(MachineBasicBlock &MBB,
/// finalizeBundle - Same functionality as the previous finalizeBundle except
/// the last instruction in the bundle is not provided as an input. This is
/// used in cases where bundles are pre-determined by marking instructions
-/// with 'InsideBundle' marker.
-void finalizeBundle(MachineBasicBlock &MBB,
+/// with 'InsideBundle' marker. It returns the MBB instruction iterator that
+/// points to the end of the bundle.
+MachineBasicBlock::instr_iterator finalizeBundle(MachineBasicBlock &MBB,
MachineBasicBlock::instr_iterator FirstMI);
} // End llvm namespace