move extra code-gen codes to codegen.jl