search for: myloop

Displaying 2 results from an estimated 2 matches for "myloop".

Did you mean: myloop1
2007 May 17
4
help with executing instruction every i-th run of loop
I am running a very long loop and would like to save intermediate results in case of a system or program crash. Here is the skeleton of what my code would be: for (i in 1:zillion) { results[[i]]<-do.something.function() if (logical.test(i)) {save(results, "results.tmp")} } logical.test would test to see if i/1000 has no remainder. What R function would test that?
2018 May 31
0
RFC: Extending loop metadata
...Regarding the first part, I suggest storing the loop transformations in a metadata node of the parent function, e.g.: define func() !looptransform !3 [...] br i1 %cond, label %loopheader, ... !loop !1 !1 = distinct !{ !4, !2 } ; LoopID !2 = {"llvm.loop.id", "myloop"} ; Loop name Only the loop id remains a property of the loop. The transformations are stored in the !looptransform metadata node: !3 = { !3, !4, ... } ; Ordered list of loop transformations !4 = {"llvm.loop.reverse, !1, "rev"} ; Apply loop reversal on...