Displaying 2 results from an estimated 2 matches for "2649e6ca".
2018 Apr 09
0
InstIterator
Within a basic block this is just normal iterator usage/manipulation:
for (instr : llvm::make_range(FromInstruction.getIterator(), ToInstruction.getIterator())) { ... }
Use std::next() on ToInstruction.getIterator() if you want it included.
- Matthias
> On Apr 9, 2018, at 10:04 AM, Alexandre Isoard via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hello,
>
> Is there
2018 Apr 09
2
InstIterator
Hello,
Is there an iterator to iterate over a "range" of instructions in a
Function?
"range" meaning from an instruction::iterator up to an other
instruction::iterator which either:
- point to instructions in the same basic block (the first one first,
second one second)
- point to instructions in different basic block (the BB of the first
dominate the BB of the second, and