We can see three input nodes using the benchmarks/microbench/simple/pre-gen-graph_loop.dot. I assume they are for the base address for the array a, b, and c. How can I tell which input matches which variable?
The simple.c
#include <stdio.h>
// Simple loop with an array
int main() {
int i;
#define N 4
volatile int a[N] = {1,2,3,4};
volatile int b[N] = {5,6,7,8};
volatile int c[N] = {0};
for (i = 0; i < N; i++) {
//DFGLoop: loop
c[i] = a[i] + b[i];
}
int sum = 0;
for (i = 0; i < N; i++) {
printf("c[%d] = %d\n", i, c[i]);
sum += c[i];
}
return sum;
}
We can see three input nodes using the
benchmarks/microbench/simple/pre-gen-graph_loop.dot
. I assume they are for the base address for the arraya
,b
, andc
. How can I tell which input matches which variable?The simple.c
The dataflow graph:![pre-gen-graph_loop](https://github.com/SteveWick/CGRA-ME/assets/67872121/4f09c1f3-bc6b-4239-84bf-d866b149592c)