TC-S Code to Write

Relevant pages:

For the The src/ssa Directory folder you will find more information on this part in the book (Modern Compiler Implementation), in chapter “19. Static Single-Assignment Form”.

src/canon/basic-block.cc

Complete the get_defined_variables and insert_phinode helper methods.

src/ssa/phi-node.cc

Complete the create_move and rename_var helper methods.

src/tree/move.cc

Complete the collect_defs_and_uses helper method.

src/tree/temp.cc

Complete the collect_defs_and_uses helper method.

src/ssa/lifter.cc

Complete SSA and optimization helper methods as well as the ssa and dead_code_elimination methods.