search for: bsloop

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

Did you mean: sloop
2007 Aug 25
2
[LLVMdev] constructing 'for' statement from LLVM bitcode
...bitcode(ver 1.9). It's partly successful thanks to David A. Greene's advice suggested to use Control Dependence Graph(CDG). I could find which BB contributes to form which loop with CDG. For example, for this simple function: ----------------------------------------------------------- void bsloop(int n, int pM, Params* ps) { int i, sim; for (sim=0; sim < pM; sim++) { for (i = 0; i < n; i++) { Params* p = ps + i; double eps = norm(0,1); } } } ----------------------------------------------------------- LLVM bitcode is emitted like this: --------...
2007 Sep 17
0
[LLVMdev] constructing 'for' statement from LLVM bitcode
...mehow similar to >yours. I was trying to reconstruct simple 'for' loops and check if it's >possible to automatically parallelize their execution. > >> For example, for this simple function: >> ----------------------------------------------------------- >> void bsloop(int n, int pM, Params* ps) { >> int i, sim; >> for (sim=0; sim < pM; sim++) { >> for (i = 0; i < n; i++) { >> Params* p = ps + i; >> double eps = norm(0,1); >> } >> } >> } > >I think it would be po...
2007 Sep 19
1
[LLVMdev] constructing 'for' statement from LLVM bitcode
Dear Wojciech Matyjewicz: Thank you for your advice. I could follow what you had suggested upto opt -analyze -loops bsloop-opt.bc Therefore, I could get the prints you had showed me as follows: -------------------------------------------------------- Printing analysis 'Natural Loop Construction' for function 'bsloop': Loop Containing: %bb16, %bb13, %bb8, %bb1 Loop Containing: %bb8, %bb1 ---------...