-static reg_out_info_t *get_out_info(const ir_node *node)
-{
- size_t pos = 0;
- const backend_info_t *info;
- assert(get_irn_mode(node) != mode_T);
- if (is_Proj(node)) {
- pos = get_Proj_proj(node);
- node = get_Proj_pred(node);
- }
-
- info = be_get_info(node);
- /* We have a problem with the switch-node where there can be arbitrary
- * Proj-numbers, so we can't easily allocate an array big-enough to hold
- * all of them. So until we rewrite Switch-nodes we need this special case
- */
- if (info->out_infos == NULL)
- return &dummy_info;
- assert(pos < ARR_LEN(info->out_infos));
- return &info->out_infos[pos];
-}
-