ac: unify build_type_name_for_intr functions