DontBelieveMe / helix

"Compiler Optimisation Techniques" - BSc Computer Science Final Year Project (Sheffield Hallam University)
2 stars 0 forks source link

Make function prologue & epilogue configurable (in machine description files?) #19

Open DontBelieveMe opened 2 years ago

DontBelieveMe commented 2 years ago

Currently function prologue is hardcoded to be emitted before handling any instructions in the function & the function epilogue is emitted by the machine description pattern for ret.

This could be cleaned up a little bit by defining them in the machine description patterns instead & having the final (emitter) pass lookup them up from there instead of having it hardcoded.