[PATCH] Mention IRBuilder in Programmer's manual

Dan Liew dan at su-root.co.uk
Fri Jun 6 10:41:23 PDT 2014


On 6 June 2014 18:16, Reid Kleckner <rnk at google.com> wrote:
> lgtm

Thanks. Committed in r210354
>
> We should update the iteration examples to use range based for loops.

Agreed. I'm not sure I'm the best person for this though. For example
I'm not sure if there is range based for equivalent of [1] which is
the Iterating over the Instructions in a Function.


// F is a pointer to a Function instance
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I)
  errs() << *I << "\n";

Is there?

[1] http://llvm.org/docs/ProgrammersManual.html#iterating-over-the-instruction-in-a-function

Thanks,
Dan.



More information about the llvm-commits mailing list