diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-19 11:52:51 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-19 11:52:51 -0600 |
commit | 372c92e7c1901dd7bdd1d2fd48bff205c31dca2d (patch) | |
tree | 439073a6481f50b26e2e881999cc568619628987 /omegalib/examples/code_gen | |
parent | 62f7acd88465f4f20b9b25c3f7edd4e3b7ce453b (diff) | |
download | chill-372c92e7c1901dd7bdd1d2fd48bff205c31dca2d.tar.gz chill-372c92e7c1901dd7bdd1d2fd48bff205c31dca2d.tar.bz2 chill-372c92e7c1901dd7bdd1d2fd48bff205c31dca2d.zip |
remove omegacalc as subproject
Diffstat (limited to 'omegalib/examples/code_gen')
-rw-r--r-- | omegalib/examples/code_gen | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/omegalib/examples/code_gen b/omegalib/examples/code_gen deleted file mode 100644 index b3a0b4e..0000000 --- a/omegalib/examples/code_gen +++ /dev/null @@ -1,60 +0,0 @@ -# Example taken from http://www.cloog.org -# - -r0:={[i,j]:i>=1 && j<=7 && j>=i-1}; -r1:={[i,j]:2<=i<=6 && 0<=j<=4}; - -# CLooG optimized for size -## -## for (i=1;i<=8;i++) { -## for (j=i-1;j<=7;j++) { -## S0(i,j); -## } -## if ((i>=2)&&(i<=6)) { -## for (j=0;j<=4;j++) { -## S1(i,j); -## } -## } -## } -## -## Since CLooG might not preserve the lexcicographical order other than -## the default code generation strategy (custom -f or -l values). Its -## generated code might not be correct should there exist reorder-preventing -## dependence among statements. -## - -# no overhead removal, minimal code size -codegen 0 r0,r1; - -# remove one-deep loop nest (innermost loop) overhead -codegen 1 r0,r1; - -# CLooG optimized for control -## -## for (t2=0;t2<=7;t2++) { -## S0(1,t2); -## } -## for (t1=2;t1<=6;t1++) { -## for (t2=0;t2<=t1-2;t2++) { -## S1(t1,t2); -## } -## for (t2=t1-1;t2<=4;t2++) { -## S0(t1,t2); -## S1(t1,t2); -## } -## for (t2=5;t2<=7;t2++) { -## S0(t1,t2); -## } -## } -## for (t1=7;t1<=8;t1++) { -## for (t2=t1-1;t2<=7;t2++) { -## S0(t1,t2); -## } -## } -## -## This is CLooG's default code generation strategy. It guarantees -## the lexicographical order as shown in input iteration spaces. -## - -# minimal control overhead, removing overhead from 2-deep loop nest -codegen 2 r0,r1; |