We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d297987 commit 379ff4aCopy full SHA for 379ff4a
llvm/include/llvm/CodeGen/MachineBasicBlock.h
@@ -369,6 +369,10 @@ class MachineBasicBlock
369
370
using instr_range = iterator_range<instr_iterator>;
371
using const_instr_range = iterator_range<const_instr_iterator>;
372
+
373
+ /// Range that iterates over all instructions in the basic block.
374
+ ///
375
+ /// Unlike begin/end methods the range contains bundled instructions.
376
instr_range instrs() { return instr_range(instr_begin(), instr_end()); }
377
const_instr_range instrs() const {
378
return const_instr_range(instr_begin(), instr_end());
0 commit comments