Lines Matching defs:ir_constant
545 ir_constant::ir_constant()
551 ir_constant::ir_constant(const struct glsl_type *type,
564 ir_constant::ir_constant(float f, unsigned vector_elements)
577 ir_constant::ir_constant(double d, unsigned vector_elements)
590 ir_constant::ir_constant(unsigned int u, unsigned vector_elements)
603 ir_constant::ir_constant(int integer, unsigned vector_elements)
616 ir_constant::ir_constant(bool b, unsigned vector_elements)
629 ir_constant::ir_constant(const ir_constant *c, unsigned i)
645 ir_constant::ir_constant(const struct glsl_type *type, exec_list *value_list)
655 this->array_elements = ralloc_array(this, ir_constant *, type->length);
657 foreach_in_list(ir_constant, value, value_list) {
668 * to the list in the ir_constant.
683 ir_constant *value = (ir_constant *) (value_list->get_head_raw());
794 value = (ir_constant *) value->next;
798 ir_constant *
799 ir_constant::zero(void *mem_ctx, const glsl_type *type)
804 ir_constant *c = new(mem_ctx) ir_constant;
809 c->array_elements = ralloc_array(c, ir_constant *, type->length);
812 c->array_elements[i] = ir_constant::zero(c, type->fields.array);
817 ir_constant *comp = ir_constant::zero(mem_ctx, type->fields.structure[i].type);
826 ir_constant::get_bool_component(unsigned i) const
844 ir_constant::get_float_component(unsigned i) const
862 ir_constant::get_double_component(unsigned i) const
880 ir_constant::get_int_component(unsigned i) const
898 ir_constant::get_uint_component(unsigned i) const
915 ir_constant *
916 ir_constant::get_array_element(unsigned i) const
938 ir_constant *
939 ir_constant::get_record_field(const char *name)
960 return (ir_constant *) node;
964 ir_constant::copy_offset(ir_constant *src, int offset)
1001 foreach_in_list(ir_constant, orig, &src->components) {
1022 ir_constant::copy_masked_offset(ir_constant *src, int offset, unsigned int mask)
1059 ir_constant::has_value(const ir_constant *c) const
1079 const ir_constant *const a_field = (ir_constant *) a_node;
1080 const ir_constant *const b_field = (ir_constant *) b_node;
1124 ir_constant::is_value(float f, int i) const
1169 ir_constant::is_zero() const
1175 ir_constant::is_one() const
1181 ir_constant::is_negative_one() const
1187 ir_constant::is_uint16_constant() const
1752 ir_constant *constant = ir->as_constant();
1767 foreach_in_list(ir_constant, field, &constant->components) {