generate-insn ( insn -- )


Vocabulary
compiler.codegen

Inputs
insnan insn


Outputs
None

Word description
Generates assembler code for one cfg instruction.

See also
generate

Definition


Methods





















































































































































































































































































































































































































































































M:: conditional-branch-insn generate-insn ( insn -- )
basic-block get :> bb bb successors>> first2
:> ( first second ) bb second useless-branch?
[ bb second first ] [ bb first second insn negate-insn-cc ]
if lookup-label insn generate-conditional-insn emit-branch ;