Lines Matching refs:decl
2227 get_variable_being_redeclared(ir_variable *var, ast_declaration *decl,
2236 ir_variable *earlier = state->symbols->get_variable(decl->identifier);
2239 !state->symbols->name_declared_this_scope(decl->identifier))) {
2244 YYLTYPE loc = decl->get_location();
2333 _mesa_glsl_error(&loc, state, "`%s' redeclared", decl->identifier);
2343 process_initializer(ir_variable *var, ast_declaration *decl,
2350 YYLTYPE initializer_loc = decl->initializer->get_location();
2378 ir_rvalue *rhs = decl->initializer->hir(initializer_instructions,
2397 decl->identifier);
2496 foreach_list_typed (ast_declaration, decl, link, &this->declarations) {
2497 assert(!decl->is_array);
2498 assert(decl->array_size == NULL);
2499 assert(decl->initializer == NULL);
2502 state->symbols->get_variable(decl->identifier);
2506 "invariant\n", decl->identifier);
2511 "outputs only\n", decl->identifier);
2516 "inputs only\n", decl->identifier);
2571 foreach_list_typed (ast_declaration, decl, link, &this->declarations) {
2583 type_name, decl->identifier);
2587 decl->identifier);
2592 if (decl->is_array) {
2593 var_type = process_array_type(&loc, decl_type, decl->array_size,
2601 var = new(ctx) ir_variable(var_type, decl->identifier, ir_var_auto);
2621 decl->identifier, state->version_string);
2627 decl->identifier, state->version_string);
2887 ir_variable *earlier = get_variable_being_redeclared(var, decl, state);
2889 if (decl->initializer != NULL) {
2891 decl, this->type,
2901 if (this->type->qualifier.flags.q.constant && decl->initializer == NULL) {
2904 decl->identifier);
2918 if (strncmp(decl->identifier, "gl_", 3) == 0)
2921 decl->identifier);
2922 else if (strstr(decl->identifier, "__")) {
2932 decl->identifier);
2950 "current scope", decl->identifier);
3973 foreach_list_typed (ast_declaration, decl, link,
3976 if (decl->is_array) {
3977 YYLTYPE loc = decl->get_location();
3978 field_type = process_array_type(&loc, decl_type, decl->array_size,
3983 fields[i].name = decl->identifier;