I want to make Z80 codegen backend to the LLVM. CLang+LLVM looks perfect, while quick playing around. Some questions available:<br><br>1) Does LLVM support to generate "mixed" code ? For example: in microcontrollers world the subroutine call with const arguments may be decorated like this:<br>
<br>call subroutine<br>defw wArg1<br>defw wArg2<br><br>; ordinary code continues here<br><br>subroutine pop return address from the stack, read arguments, do some work, and returns via jump to addess after readed arguments. This is much more faster than pushing arguments to the stack/<br>
<br><br>2) Does LLVM support to generate self-modifying code ? For example: save register value direct to the opcode. Because constant loading faster than indirect addressing. Example:<br><br>ld (hl_restore+1), hl<br><br>
; some code modifying hl<br><br>hl_restore:<br>ld hl, 0      ; load stored value as constant<br><br><br>3) There are possible to commit new backend in the main LLVM repository ?<br><br>Thank in advance, Dmitry.<br>