Home | History | Annotate | Download | only in glsl

Lines Matching defs:function

33  * 4. Replace all "return"s with a single return at the end of the function,
34 * for the main function and/or other functions
51 * until the end of the function.
89 * jump back to the top, or return from the function).
102 * of it, or return from the function.
110 * of it, or return from the function.
117 * of it, or return from the function.
124 * it or return from the function.
131 * only return from the function.
188 /* also supported for the "function loop" */
250 /* Postconditions: on exit of any visit() function:
267 * responsibility of the statement (or function signature) that
273 struct function_record function;
320 ir_variable* return_flag = this->function.get_return_flag();
321 if(!this->function.signature->return_type->is_void()) {
322 ir_variable* return_value = this->function.get_return_value();
340 * It is safe to pass NULL to this function.
356 void *ctx = this->function.signature;
368 * It is safe to pass NULL to this function.
488 /* never lower return at the end of a this->function */
489 if(this->function.nesting_depth == 0 && ir->get_next()->is_tail_sentinel())
492 lower = this->function.lower_return;
524 ++this->function.nesting_depth;
581 else if(jump_strengths[0] == strength_return && this->function.signature->return_type->is_void())
631 * function doesn't have one already) and add instructions
632 * that: 1. store the return value (if this function has a
653 * false to prevent the rest of the function from
668 * The visit() function for the loop will ensure that the
832 --this->function.nesting_depth;
854 ++this->function.nesting_depth;
856 this->loop = loop_record(this->function
877 if (this->function.lower_return)
919 assert(this->function.return_flag);
921 ir_if* return_if = new(ir) ir_if(new(ir) ir_dereference_variable(this->function.return_flag));
946 if (this->function.signature->return_type->is_void())
954 --this->function.nesting_depth;
960 assert(!this->function.signature);
969 function_record saved_function = this->function;
971 this->function = function_record(ir, lower_return);
976 /* Visit the body of the function to lower any jumps that occur
996 if(this->function.return_value)
997 ir->body.push_tail(new(ir) ir_return(new (ir) ir_dereference_variable(this->function.return_value)));
1000 this->function = saved_function;