Make generate_c also work if astnode does not have member `instruction_set`
generate_c currently only works for KernelFunctions, since member instruction_set
is required.
generate_c can generate code for any astnode if this requirement is dropped.