ir_assignment::ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs,
ir_rvalue *condition)
- : ir_rvalue()
{
this->lhs = lhs;
this->rhs = rhs;
ir_expression::ir_expression(int op, const struct glsl_type *type,
ir_rvalue *op0, ir_rvalue *op1)
- : ir_rvalue()
{
this->type = type;
this->operation = ir_expression_operation(op);
}
ir_label::ir_label(const char *label, ir_function_signature *signature)
- : ir_instruction(), label(label), signature(signature)
+ : label(label), signature(signature)
{
/* empty */
}
ir_constant::ir_constant(const struct glsl_type *type, const void *data)
- : ir_rvalue()
{
unsigned size = 0;
}
ir_constant::ir_constant(float f)
- : ir_rvalue()
{
this->type = glsl_type::float_type;
this->value.f[0] = f;
}
ir_constant::ir_constant(unsigned int u)
- : ir_rvalue()
{
this->type = glsl_type::uint_type;
this->value.u[0] = u;
}
ir_constant::ir_constant(int i)
- : ir_rvalue()
{
this->type = glsl_type::int_type;
this->value.i[0] = i;
}
ir_constant::ir_constant(bool b)
- : ir_rvalue()
{
this->type = glsl_type::bool_type;
this->value.b[0] = b;
ir_dereference::ir_dereference(ir_instruction *var)
- : ir_rvalue()
{
this->mode = ir_reference_variable;
this->var = var;
ir_dereference::ir_dereference(ir_instruction *var,
ir_rvalue *array_index)
- : ir_rvalue(), mode(ir_reference_array),
- var(var)
+ : mode(ir_reference_array), var(var)
{
type = glsl_type::error_type;
ir_function_signature::ir_function_signature(const glsl_type *return_type)
- : ir_instruction(), return_type(return_type), definition(NULL)
+ : return_type(return_type), definition(NULL)
{
/* empty */
}
ir_function::ir_function(const char *name)
- : ir_instruction(), name(name)
+ : name(name)
{
/* empty */
}
}
protected:
- ir_rvalue() : ir_instruction() { }
+ ir_rvalue()
+ {
+ /* empty */
+ }
};
class ir_call : public ir_rvalue {
public:
ir_call(const ir_function_signature *callee, exec_list *actual_parameters)
- : ir_rvalue(), callee(callee)
+ : callee(callee)
{
assert(callee->return_type != NULL);
type = callee->return_type;
private:
ir_call()
- : ir_rvalue(), callee(NULL)
+ : callee(NULL)
{
/* empty */
}
class ir_jump : public ir_instruction {
protected:
ir_jump()
- : ir_instruction()
{
/* empty */
}