search for: pranav913

Displaying 3 results from an estimated 3 matches for "pranav913".

2015 Feb 08
2
[LLVMdev] Fwd: Improper Function::iterator increment
...the bitcode format of simple code below : int sum_single_loop (int a){ int su = 0, i; for (i=0;i<a;i++) su = su + i; return su; } On Mon, Feb 9, 2015 at 2:32 AM, David Blaikie <dblaikie at gmail.com> wrote: > > > On Sun, Feb 8, 2015 at 11:23 AM, Pranav Kant <pranav913 at gmail.com> wrote: > >> So, you mean to say that the above implementation is correct and should >> work fine. >> > > So far as I can see - but I could be missing something. > > >> I initially thought that the above way is not the correct way anymore >&...
2015 Feb 08
2
[LLVMdev] Fwd: Improper Function::iterator increment
...l-computing/blob/master/waves.cpp#L105 On Sun, Feb 8, 2015 at 10:25 PM, David Blaikie <dblaikie at gmail.com> wrote: > This may be difficult yo reproduce or debug without a more complete > (though preferably minimal) test case. > On Feb 8, 2015 8:31 AM, "Pranav Kant" <pranav913 at gmail.com> wrote: > >> void Wave::init (const Function &F){ >> Function::const_iterator ie = F.end(); >> outs() << ie << "\n\n"; >> for (Function::const_iterator I = F.begin(), IE = F.end(); I != IE; >> I++, K++){ >>...
2015 Feb 08
2
[LLVMdev] Fwd: Improper Function::iterator increment
void Wave::init (const Function &F){ Function::const_iterator ie = F.end(); outs() << ie << "\n\n"; for (Function::const_iterator I = F.begin(), IE = F.end(); I != IE; I++, K++){ outs() << I << "\n"; // some manipulation with I } } I used the above shown function in my pass in LLVM 3.4.2 and it used to work fine but