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.
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.