added a codegen function to the isa interface