Home | History | Annotate | Download | only in glsl

Lines Matching defs:lv

301    loop_variable *lv = rzalloc(mem_ctx, loop_variable);
303 lv->var = var;
305 _mesa_hash_table_insert(this->var_hash, lv->var, lv);
306 this->variables.push_tail(lv);
308 return lv;
342 loop_variable *lv = this->get(var);
344 if (lv == NULL) {
345 lv = this->insert(var);
346 lv->read_before_write = !in_assignee;
349 return lv;
431 loop_variable *lv = ls->get_or_insert(var, this->in_assignee);
433 lv->record_reference(this->in_assignee,
482 foreach_in_list_safe(loop_variable, lv, &ls->variables) {
486 if (lv->is_loop_constant()) {
487 lv->remove();
488 ls->constants.push_tail(lv);
510 foreach_in_list_safe(loop_variable, lv, &ls->variables) {
511 if (lv->conditional_or_nested_assignment || (lv->num_assignments > 1))
517 ir_rvalue *const rhs = lv->first_assignment->rhs;
519 lv->rhs_clean = true;
521 if (lv->is_loop_constant()) {
524 lv->remove();
525 ls->constants.push_tail(lv);
534 foreach_in_list_safe(loop_variable, lv, &ls->variables) {
540 if (lv->num_assignments > 1)
546 assert(lv->num_assignments == 1);
547 assert(lv->first_assignment != NULL);
552 if (lv->conditional_or_nested_assignment)
560 get_basic_induction_increment(lv->first_assignment, ls->var_hash);
562 lv->increment = inc;
564 lv->remove();
565 lv);
610 loop_variable *lv = ls->get(var);
611 if (lv != NULL && lv->is_induction_var()) {
612 t->iterations = calculate_iterations(init, limit, lv->increment,
699 loop_variable *lv = entry ? (loop_variable *) entry->data : NULL;
701 assert(lv != NULL);
703 if (lv->is_loop_constant()) {
757 loop_variable *lv = entry ? (loop_variable *) entry->data : NULL;
759 if (lv == NULL || !lv->is_loop_constant()) {
760 assert(lv != NULL);