Displaying 5 results from an estimated 5 matches for "bbitr".
2011 Nov 20
1
[LLVMdev] Order of Basic Blocks
...<ryta1203 at gmail.com> wrote:
> Cameron,
>
> To make it less vague, I would ideally like to traverse top down. I
> believe what you suggested is what I want, I will have a look at it.
>
> Currently, I am iterating over the BBs in a Function, so
> Function::iterator BBitr=F->begin(), BBitrE=F->end();
> BBitr!=BBitrE;++BBitr, does that help clarify what I'm looking for? With
> this current iteration method, I seem to sometimes get top down but other
> times get bottom up and sometimes it starts top down then jumps to the
> bottom and goes bottom...
2011 Nov 21
0
[LLVMdev] Order of Basic Blocks
...rote:
>
>> Cameron,
>>
>> To make it less vague, I would ideally like to traverse top down. I
>> believe what you suggested is what I want, I will have a look at it.
>>
>> Currently, I am iterating over the BBs in a Function, so
>> Function::iterator BBitr=F->begin(), BBitrE=F->end();
>> BBitr!=BBitrE;++BBitr, does that help clarify what I'm looking for? With
>> this current iteration method, I seem to sometimes get top down but other
>> times get bottom up and sometimes it starts top down then jumps to the
>> bottom...
2011 Nov 20
3
[LLVMdev] Order of Basic Blocks
LLVMers,
Is there any way to guarantee iteration of the basic blocks from top down
or path to path? Currently it looks sort of semi-random, sometimes visiting
loop heads first and other times loop tails, is there a way I can visit the
BBs top down or path to path?
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Nov 21
1
[LLVMdev] Fwd: Order of Basic Blocks
...om> wrote:
> > Cameron,
> >
> > To make it less vague, I would ideally like to traverse top down. I
> believe what you suggested is what I want, I will have a look at it.
> >
> > Currently, I am iterating over the BBs in a Function, so
> Function::iterator BBitr=F->begin(), BBitrE=F->end();
> BBitr!=BBitrE;++BBitr, does that help clarify what I'm looking for? With
> this current iteration method, I seem to sometimes get top down but other
> times get bottom up and sometimes it starts top down then jumps to the
> bottom and goes bottom...
2011 Oct 19
1
[LLVMdev] CallGraphSCCPass
...errs()<<"function is empty"<<"\n"; }
else {
errs()<<"basic blocks in function"<<"\n";
size_t F_size = F->size(); }
for(Function::iterator BBitr=F->begin(); BBitr!=F->end();
++BBitr)
{
errs()<<"basic block begin"<<"\n";
const BasicBlock* BB = cast<BasicBlock>(&*BBitr);
errs()<<"basic block end&qu...