Project Stage 3 : Part 2
This part is to cover up for the things that i may have missed in the previous stages. So i extracted both the tar zip files (spo600-gcc-pass-demo and spo600-gcc-pass-demo-2) which extracted 4 files each: The tar file had everything I needed to modify GCC. My professor provided details about which files to change, and I updated four of them: passes.def: Added NEXT_PASS (pass_ctyler); tree-ctyler.cc: Contained the actual pass code. tree-pass.h: Added extern gimple_opt_pass *make_pass_ctyler (gcc::context *ctxt); Makefile.in: Added tree-ctyler.o to the OBJS definition. Both zip files have same files and same code except the execute function in tree-ctyler.cc as shown below; spo600-gcc-pass-demo: unsigned int pass_ctyler :: execute ( function * fun ) { basic_block bb ; int bb_cnt = 0 , stmt_cnt = 0 ; FOR_EACH_BB_FN ( bb , fun ) { bb_cnt ++ ; if ( du...