Lines Matching defs:ir_constant
233 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL);
269 * \c ir_constant class over-rides this function to return \c true \b only
273 * \sa ir_constant::has_value, ir_rvalue::is_one, ir_rvalue::is_negative_one
281 * \c ir_constant class over-rides this function to return \c true \b only
285 * \sa ir_constant::has_value, ir_rvalue::is_zero, ir_rvalue::is_negative_one
293 * \c ir_constant class over-rides this function to return \c true \b only
297 * \sa ir_constant::has_value, ir_rvalue::is_zero, ir_rvalue::is_one
305 * \sa ir_constant::is_uint16_constant.
725 * If so, constant_value contains an integer ir_constant representing the
957 ir_constant *constant_value;
967 ir_constant *constant_initializer;
1150 ir_constant *constant_expression_value(exec_list *actual_parameters, struct hash_table *variable_context);
1255 ir_constant **result);
1409 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL);
1508 * The "variable_context" hash table links ir_variable * to ir_constant *
1515 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL);
1593 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL);
1818 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL);
1915 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL);
1981 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL);
2028 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL);
2065 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL);
2088 * Data stored in an ir_constant
2099 class ir_constant : public ir_rvalue {
2101 ir_constant(const struct glsl_type *type, const ir_constant_data *data);
2102 ir_constant(bool b, unsigned vector_elements=1);
2103 ir_constant(unsigned int u, unsigned vector_elements=1);
2104 ir_constant(int i, unsigned vector_elements=1);
2105 ir_constant(float f, unsigned vector_elements=1);
2106 ir_constant(double d, unsigned vector_elements=1);
2109 * Construct an ir_constant from a list of ir_constant values
2111 ir_constant(const struct glsl_type *type, exec_list *values);
2114 * Construct an ir_constant from a scalar component of another ir_constant
2116 * The new \c ir_constant inherits the type of the component from the
2123 ir_constant(const ir_constant *c, unsigned i);
2126 * Return a new ir_constant of the specified type containing all zeros.
2128 static ir_constant *zero(void *mem_ctx, const glsl_type *type);
2130 virtual ir_constant *clone(void *mem_ctx, struct hash_table *) const;
2132 virtual ir_constant *constant_expression_value(struct hash_table *variable_context = NULL);
2159 ir_constant *get_array_element(unsigned i) const;
2161 ir_constant *get_record_field(const char *name);
2173 void copy_offset(ir_constant *src, int offset);
2186 void copy_masked_offset(ir_constant *src, int offset, unsigned int mask);
2191 * \sa ir_constant::is_zero, ir_constant::is_one,
2192 * ir_constant::is_negative_one
2194 bool has_value(const ir_constant *) const;
2197 * Return true if this ir_constant represents the given value.
2224 ir_constant **array_elements;
2233 ir_constant(void);