![]() |
|||
|
|
ssa 1 transform into SSA form (0=dont,1=do)These values are the default as specified in the file switches in your work directory (do not remove this file since it is a symbolic link to the default switchfile -- copy it to another file and specify that filename with the -f option when running mini_polaris.)
p_ssa 1 print after SSA pass (0=dont, 1=do)
dessa 1 revert from SSA form (0=dont,1=do)
p_dessa 1 print after deSSA pass (0=dont, 1=FORTRAN,2=detailed)
The driver program will only call the routines in these passes if ssa is 1. The print switches will only be examined if the relevant passes are turned on.
void ssa(ProgramUnit & pgm);This is a simple pass which takes one program unit as input, transforms any relevant statements inside, and completes, returning nothing. If you create other source files, you should add them to these two lines so they will be compiled and linked into the final program.
void dessa(ProgramUnit & pgm);
dessa() is given a Program Unit which has already been transformed into SSA, and should remove all SSA forms from the code, i.e. remove all PHI and UPSILON functions, as well as any variable renaming.
The following convention should be used :
phi(A)4~>3,6becomes
A@4 = PHI(A@3, A@6)
If you have not compiled out mini_polaris yet, change to your work directory and do a make from there.
If you make some changes and want to recompile, just type make at the ssa directory. Or, if you want to do it from the top-level makefile, you should do (suppose you are at the ssa directory)
rm libssa_pkg.so.1
cd ~/minipolaris
make
Parasol Home | Research | People | General info | Seminars | Resources Parasol Lab, 301 Harvey R. Bright Bldg, 3112 TAMU, College Station, TX 77843-3112 Contact Webmaster Phone 979.458.0722 Fax 979.458.0718
Department of Computer Science and Engineering | Dwight Look College of Engineering | Texas A&M University Privacy statement: Computer Science and Engineering Engineering TAMU |