The SUIF Cookbook
A guide to creating SUIF passes - a series of examples
SUIF Compiler Group
Preface
Example 1 - Print Procedure Names
prog1.cc
Makefile
Compiling the program
Testing the pass
input1.c
Test session
Example 2 - Print All Array Instructions
prog2.cc
Makefile
Testing the pass
input2.c
Test session
Example 3 - Print Array Accesses
prog3.cc
Makefile
Testing the pass
input3.c
Test session
Example 4 - Print Dependence Vectors
prog4.cc
Testing the pass
input4.c
Test session
Example 5 - Rename Loop Indexes
rename.h
rename.cc
Makefile
Testing the pass
input5.c
Test session
Example 6 - Expand Code for Dependence Testing
predep.h
main.cc
find.cc
breakup.cc
Makefile
Testing the pass
input6.c
Test session
test.sfo.txt
Index