Displaying 2 results from an estimated 2 matches for "stmt_for_body4".
Did you mean:
stmt_for_body6
2016 Aug 03
3
Extracting the names of the variables that creates loop-carried dependencies
Hi,
I would like to know if it is possible to extract the source level names
of variables that create loop-carried dependencies.
For example, for the following code:
for (int i = 0; i < A_ROW; i++)
{
for (int j = 1; j < B_COL; j++)
{
a_matrix[i][j] = a_matrix[i][j - 1];
}
}
I get the following AST:
#pragma omp parallel for
2016 Aug 05
0
Extracting the names of the variables that creates loop-carried dependencies
...:25 GMT+02:00 Michael Kruse <llvmdev at meinersbur.de>:
>> Hi Miguel,
>>
>> Polly's DependenceInfo will give you the required information. For
>> your example the result is
>>
>> RAW dependences:
>> [A_ROW, B_COL] -> { Stmt_for_body4[i0, i1] ->
>> Stmt_for_body4[i0, 1 + i1] : 0 <= i0 < A_ROW and 0 <= i1 <= -3 + B_COL
>> }
>> WAR dependences:
>> [A_ROW, B_COL] -> { }
>> WAW dependences:
>> [A_ROW, B_COL] -> { }
>>...