Lines Matching full:solutions
48 /* Before solving, forced registers; after solving, solutions. */
49 unsigned *solutions; member
69 l->solutions = calloc(sizeof(l->solutions[0]), node_count); in lcra_alloc_equations()
72 memset(l->solutions, ~0, sizeof(l->solutions[0]) * node_count); in lcra_alloc_equations()
85 free(l->solutions); in lcra_free()
121 lcra_test_linear(struct lcra_state *l, unsigned *solutions, unsigned i) in lcra_test_linear() argument
123 signed constant = solutions[i]; in lcra_test_linear()
130 if (solutions[j] == ~0) in lcra_test_linear()
133 signed lhs = constant - solutions[j]; in lcra_test_linear()
148 if (solutions[j] == ~0) in lcra_test_linear()
151 signed lhs = constant - solutions[j]; in lcra_test_linear()
167 if (l->solutions[step] != ~0) in lcra_solve()
175 l->solutions[step] = r; in lcra_solve()
177 if (lcra_test_linear(l, l->solutions, step)) { in lcra_solve()
467 l->solutions[ins->src[0].value] = 0; in bi_allocate_registers()
471 l->solutions[ins->src[4].value] = 4; in bi_allocate_registers()
475 l->solutions[ins->dest[0].value] = 48; in bi_allocate_registers()
481 l->solutions[ins->dest[0].value] = 60; in bi_allocate_registers()
493 l->solutions[ins->src[0].value] = 60; in bi_allocate_registers()
511 if (l->solutions[node] != ~0) in bi_allocate_registers()
524 l->solutions[node] = reg; in bi_allocate_registers()
526 if (!lcra_test_linear(l, l->solutions, node)) in bi_allocate_registers()
527 l->solutions[node] = ~0; in bi_allocate_registers()
551 signed solution = l->solutions[index.value]; in bi_reg_from_index()