Lines Matching defs:ht
40 ir_variable::clone(void *mem_ctx, struct hash_table *ht) const
60 var->constant_value = this->constant_value->clone(mem_ctx, ht);
62 if (ht) {
63 hash_table_insert(ht, var, (void *)const_cast<ir_variable *>(this));
70 ir_swizzle::clone(void *mem_ctx, struct hash_table *ht) const
72 return new(mem_ctx) ir_swizzle(this->val->clone(mem_ctx, ht), this->mask);
76 ir_return::clone(void *mem_ctx, struct hash_table *ht) const
81 new_value = this->value->clone(mem_ctx, ht);
87 ir_discard::clone(void *mem_ctx, struct hash_table *ht) const
92 new_condition = this->condition->clone(mem_ctx, ht);
98 ir_loop_jump::clone(void *mem_ctx, struct hash_table *ht) const
100 (void)ht;
106 ir_if::clone(void *mem_ctx, struct hash_table *ht) const
108 ir_if *new_if = new(mem_ctx) ir_if(this->condition->clone(mem_ctx, ht));
112 new_if->then_instructions.push_tail(ir->clone(mem_ctx, ht));
117 new_if->else_instructions.push_tail(ir->clone(mem_ctx, ht));
124 ir_loop::clone(void *mem_ctx, struct hash_table *ht) const
129 new_loop->from = this->from->clone(mem_ctx, ht);
131 new_loop->to = this->to->clone(mem_ctx, ht);
133 new_loop->increment = this->increment->clone(mem_ctx, ht);
138 new_loop->body_instructions.push_tail(ir->clone(mem_ctx, ht));
146 ir_call::clone(void *mem_ctx, struct hash_table *ht) const
155 new_parameters.push_tail(ir->clone(mem_ctx, ht));
162 ir_expression::clone(void *mem_ctx, struct hash_table *ht) const
168 op[i] = this->operands[i]->clone(mem_ctx, ht);
176 ir_dereference_variable::clone(void *mem_ctx, struct hash_table *ht) const
180 if (ht) {
181 new_var = (ir_variable *)hash_table_find(ht, this->var);
192 ir_dereference_array::clone(void *mem_ctx, struct hash_table *ht) const
194 return new(mem_ctx) ir_dereference_array(this->array->clone(mem_ctx, ht),
196 ht));
200 ir_dereference_record::clone(void *mem_ctx, struct hash_table *ht) const
202 return new(mem_ctx) ir_dereference_record(this->record->clone(mem_ctx, ht),
207 ir_texture::clone(void *mem_ctx, struct hash_table *ht) const
212 new_tex->sampler = this->sampler->clone(mem_ctx, ht);
213 new_tex->coordinate = this->coordinate->clone(mem_ctx, ht);
215 new_tex->projector = this->projector->clone(mem_ctx, ht);
217 new_tex->shadow_comparitor = this->shadow_comparitor->clone(mem_ctx, ht);
227 new_tex->lod_info.bias = this->lod_info.bias->clone(mem_ctx, ht);
231 new_tex->lod_info.lod = this->lod_info.lod->clone(mem_ctx, ht);
234 new_tex->lod_info.grad.dPdx = this->lod_info.grad.dPdx->clone(mem_ctx, ht);
235 new_tex->lod_info.grad.dPdy = this->lod_info.grad.dPdy->clone(mem_ctx, ht);
243 ir_assignment::clone(void *mem_ctx, struct hash_table *ht) const
248 new_condition = this->condition->clone(mem_ctx, ht);
250 return new(mem_ctx) ir_assignment(this->lhs->clone(mem_ctx, ht),
251 this->rhs->clone(mem_ctx, ht),
257 ir_function::clone(void *mem_ctx, struct hash_table *ht) const
265 ir_function_signature *sig_copy = sig->clone(mem_ctx, ht);
268 if (ht != NULL)
269 hash_table_insert(ht, sig_copy,
277 ir_function_signature::clone(void *mem_ctx, struct hash_table *ht) const
279 ir_function_signature *copy = this->clone_prototype(mem_ctx, ht);
288 ir_instruction *const inst_copy = inst->clone(mem_ctx, ht);
296 ir_function_signature::clone_prototype(void *mem_ctx, struct hash_table *ht) const
311 ir_variable *const param_copy = param->clone(mem_ctx, ht);
319 ir_constant::clone(void *mem_ctx, struct hash_table *ht) const
321 (void)ht;
365 fixup_ir_call_visitor(struct hash_table *ht)
367 this->ht = ht;
376 (ir_function_signature *) hash_table_find(this->ht, ir->get_callee());
387 struct hash_table *ht;
392 fixup_function_calls(struct hash_table *ht, exec_list *instructions)
394 fixup_ir_call_visitor v(ht);
402 struct hash_table *ht =
407 ir_instruction *copy = original->clone(mem_ctx, ht);
417 fixup_function_calls(ht, out);
419 hash_table_dtor(ht);