mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 12:00:41 +02:00
ir_call: Add method to set the function signature being called
This commit is contained in:
parent
b500981226
commit
792e01c1e2
2 changed files with 13 additions and 0 deletions
|
|
@ -836,6 +836,14 @@ ir_call::get_error_instruction(void *ctx)
|
|||
return call;
|
||||
}
|
||||
|
||||
void
|
||||
ir_call::set_callee(const ir_function_signature *sig)
|
||||
{
|
||||
assert((this->type == NULL) || (this->type == sig->return_type));
|
||||
|
||||
this->callee = sig;
|
||||
}
|
||||
|
||||
void
|
||||
visit_exec_list(exec_list *list, ir_visitor *visitor)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -694,6 +694,11 @@ public:
|
|||
return callee;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the function call target
|
||||
*/
|
||||
void set_callee(const ir_function_signature *sig);
|
||||
|
||||
/**
|
||||
* Generates an inline version of the function before @ir,
|
||||
* returning the return value of the function.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue