search for: loop_2

Displaying 4 results from an estimated 4 matches for "loop_2".

Did you mean: loop2
2012 Nov 30
2
[LLVMdev] [polly] scev codegen (first step to remove the dependence on ivcanon pass)
...nerated by either CLooG or ISL-codegen like this: Stmt_1(c1, c1+4, c1+c2); we will construct a map that maps the old iteration domain with 3 dimensions (there are 3 arguments in Stmt_1 representing the original loop nest in which Stmt_1 was located, let's call the original loop nest loop_1, loop_2, loop_3) to the new expressions generated by cloog that are function of the new iteration domain with 2 dimensions (c1 and c2 are the new induction variables of the code generated by cloog). So the content of that map is: loop_1 -> c1 loop_2 -> c1+7 loop_3 -> c1+c2 Given an access funct...
2012 Dec 01
0
[LLVMdev] [polly] scev codegen (first step to remove the dependence on ivcanon pass)
...ike this: > > Stmt_1(c1, c1+4, c1+c2); > > we will construct a map that maps the old iteration domain with 3 > dimensions > (there are 3 arguments in Stmt_1 representing the original loop nest in > which > Stmt_1 was located, let's call the original loop nest loop_1, loop_2, > loop_3) to > the new expressions generated by cloog that are function of the new > iteration > domain with 2 dimensions (c1 and c2 are the new induction variables of > the code > generated by cloog). So the content of that map is: > > loop_1 -> c1 > loop_2 -> c...
2008 Jun 13
4
Sweave: looping over mixed R/LaTeX code
...############# Right now, I do have a working but painful solution. I put the loop contents in a separate loop.Rnw file, then: 1. run everything before the loop through R for initialization 2. Sweave loop.Rnw; shell("move loop.tex loop_1.tex") Sweave loop.Rnw; shell("move loop.tex loop_2.tex") ... Sweave loop.Rnw; shell("move loop.tex loop_n.tex") 3. \input all loop_i.tex files into master.Rnw and Sweave master.Rnw This does what I need, however, it is a major pain code-wise, e.g., there appears to be no way to control the loop during execution (n must be know...
2007 Sep 11
2
[LLVMdev] volatiles
...id) { volatile t not_zero = ~0; t sink = x & not_zero; x = sink; } void and_6 (void) { t not_zero = ~0; volatile t sink = x & not_zero; x = sink; } volatile t y; void loop_1 (void) { t i; t result = y; for (i=0; i<10; i++) { result += x; } y = result; } void loop_2 (void) { t i; for (i=0; i<10; i++) { x += 3; } } void loop_3 (void) { t i; volatile t z; for (i=0; i<10; i++) { z += 3; } } void loop_4 (t n) { t b; t res = 0; for (b=0; b<n; b++) { res += x; } } void loop_5 (t n) { t b; t res = n; for (b=0; b<...