this patch uses reg_names array to emit register names, rather than have knowledge scattered throughout the PTX backend. Also, converted write_fn_proto_from_insn to use (renamed) write_arg_mode and (new) write_return_mode. I also noticed we can use liveness information to determine whether an outgoing static chain needs declaring. nathan