The print visitor needs this, and the only existing user can work with
has_user_signature just as well.
* that the previously seen signature does not have an associated definition.
*/
f = state->symbols->get_function(name);
- if (f != NULL && (state->es_shader || !f->has_builtin_signature())) {
+ if (f != NULL && (state->es_shader || f->has_user_signature())) {
sig = f->exact_matching_signature(&hir_parameters);
if (sig != NULL) {
const char *badvar = sig->qualifiers_match(&hir_parameters);
bool
-ir_function::has_builtin_signature()
+ir_function::has_user_signature()
{
foreach_list(n, &this->signatures) {
ir_function_signature *const sig = (ir_function_signature *) n;
- if (sig->is_builtin)
+ if (!sig->is_builtin)
return true;
}
return false;
*/
const char *name;
- /** Whether or not this function has a signature that is a built-in. */
- bool has_builtin_signature();
+ /** Whether or not this function has a signature that isn't a built-in. */
+ bool has_user_signature();
/**
* List of ir_function_signature for each overloaded function with this name.