Lines Matching full:clone
31 ir_rvalue::clone(void *mem_ctx, struct hash_table *ht) const
45 ir_variable::clone(void *mem_ctx, struct hash_table *ht) const
78 var->constant_value = this->constant_value->clone(mem_ctx, ht);
82 this->constant_initializer->clone(mem_ctx, ht);
92 ir_swizzle::clone(void *mem_ctx, struct hash_table *ht) const
94 return new(mem_ctx) ir_swizzle(this->val->clone(mem_ctx, ht), this->mask);
98 ir_return::clone(void *mem_ctx, struct hash_table *ht) const
103 new_value = this->value->clone(mem_ctx, ht);
109 ir_discard::clone(void *mem_ctx, struct hash_table *ht) const
114 new_condition = this->condition->clone(mem_ctx, ht);
120 ir_loop_jump::clone(void *mem_ctx, struct hash_table *ht) const
128 ir_if::clone(void *mem_ctx, struct hash_table *ht) const
130 ir_if *new_if = new(mem_ctx) ir_if(this->condition->clone(mem_ctx, ht));
134 new_if->then_instructions.push_tail(ir->clone(mem_ctx, ht));
139 new_if->else_instructions.push_tail(ir->clone(mem_ctx, ht));
146 ir_loop::clone(void *mem_ctx, struct hash_table *ht) const
151 new_loop->from = this->from->clone(mem_ctx, ht);
153 new_loop->to = this->to->clone(mem_ctx, ht);
155 new_loop->increment = this->increment->clone(mem_ctx, ht);
160 new_loop->body_instructions.push_tail(ir->clone(mem_ctx, ht));
168 ir_call::clone(void *mem_ctx, struct hash_table *ht) const
172 new_return_ref = this->return_deref->clone(mem_ctx, ht);
178 new_parameters.push_tail(ir->clone(mem_ctx, ht));
185 ir_expression::clone(void *mem_ctx, struct hash_table *ht) const
191 op[i] = this->operands[i]->clone(mem_ctx, ht);
199 ir_dereference_variable::clone(void *mem_ctx, struct hash_table *ht) const
215 ir_dereference_array::clone(void *mem_ctx, struct hash_table *ht) const
217 return new(mem_ctx) ir_dereference_array(this->array->clone(mem_ctx, ht),
218 this->array_index->clone(mem_ctx,
223 ir_dereference_record::clone(void *mem_ctx, struct hash_table *ht) const
225 return new(mem_ctx) ir_dereference_record(this->record->clone(mem_ctx, ht),
230 ir_texture::clone(void *mem_ctx, struct hash_table *ht) const
235 new_tex->sampler = this->sampler->clone(mem_ctx, ht);
237 new_tex->coordinate = this->coordinate->clone(mem_ctx, ht);
239 new_tex->projector = this->projector->clone(mem_ctx, ht);
241 new_tex->shadow_comparitor = this->shadow_comparitor->clone(mem_ctx, ht);
245 new_tex->offset = this->offset->clone(mem_ctx, ht);
251 new_tex->lod_info.bias = this->lod_info.bias->clone(mem_ctx, ht);
256 new_tex->lod_info.lod = this->lod_info.lod->clone(mem_ctx, ht);
259 new_tex->lod_info.grad.dPdx = this->lod_info.grad.dPdx->clone(mem_ctx, ht);
260 new_tex->lod_info.grad.dPdy = this->lod_info.grad.dPdy->clone(mem_ctx, ht);
268 ir_assignment::clone(void *mem_ctx, struct hash_table *ht) const
273 new_condition = this->condition->clone(mem_ctx, ht);
275 return new(mem_ctx) ir_assignment(this->lhs->clone(mem_ctx, ht),
276 this->rhs->clone(mem_ctx, ht),
282 ir_function::clone(void *mem_ctx, struct hash_table *ht) const
290 ir_function_signature *sig_copy = sig->clone(mem_ctx, ht);
302 ir_function_signature::clone(void *mem_ctx, struct hash_table *ht) const
308 /* Clone the instruction list.
313 ir_instruction *const inst_copy = inst->clone(mem_ctx, ht);
330 /* Clone the parameter list, but NOT the body.
337 ir_variable *const param_copy = param->clone(mem_ctx, ht);
345 ir_constant::clone(void *mem_ctx, struct hash_table *ht) const
365 c->components.push_tail(orig->clone(mem_ctx, NULL));
377 c->array_elements[i] = this->array_elements[i]->clone(mem_ctx, NULL);
433 ir_instruction *copy = original->clone(mem_ctx, ht);