search for: work_siz

Displaying 1 result from an estimated 1 matches for "work_siz".

Did you mean: work_size
2009 Sep 29
2
[LLVMdev] Source-to-Source transformations
...lly, I want to apply a source-level transformation is some functions of my input program in order to create work chunks. For example, given the following function: void foo() { /* some work */ } I would like to modify it in the following: void foo() { int i = work_size(); for ( int j = 0; j < i; j++ ) { /* some work */ } } So, the first thing I would like to know is how to create some local variables in a given function while the second is how to insert a for statement in the body of a function. Thanks a lot in advance, Kon...