On June 12, 2020 5:29:40 PM GMT+02:00, "Martin Liška" <mli...@suse.cz> wrote: >On 6/12/20 3:02 PM, Richard Biener wrote: >> For(gimple. *stmt : bb_vinfo->region_stmts()) > >Hm, that will require region_stmts() returning one another object >that will contain the begin/end methods. >Is it what we want or do I miss something?
Yes, you usually need some kind of iterator container. There's also the vector of SLP graph entries we iterate over repeatedly for example. For BBs we want to iterate over PHIs, stmts and incoming and outgoing edges. So I expect these kind of wrappers to be the common case. Richard. >Martin