summaryrefslogtreecommitdiffstats
path: root/ir.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-04-28 12:04:23 -0700
committerIan Romanick <[email protected]>2010-04-28 15:34:52 -0700
commit0d605cb97c9cd2f9a170e3aa15bdf4021a75fc14 (patch)
treec4abee1f1d1c90d18e9c5f7e0916d5769c83b696 /ir.h
parentabd40b15210c17b2a3ba8fcffc868fda203efa01 (diff)
Factor out parameter list matching from ast_function::hir for later reuse.
Unfortunately, we still have two kinds of matching - one, with implicit conversions (for use in calls) and another without them (for finding a prototype to overwrite when processing a function body). This commit does not attempt to coalesce the two.
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ir.h b/ir.h
index b9ab25b6453..118d97ffa3c 100644
--- a/ir.h
+++ b/ir.h
@@ -276,11 +276,18 @@ public:
}
/**
- * Find a signature that matches a set of actual parameters.
+ * Find a signature that matches a set of actual parameters, taking implicit
+ * conversions into account.
*/
const ir_function_signature *matching_signature(exec_list *actual_param);
/**
+ * Find a signature that exactly matches a set of actual parameters without
+ * any implicit type conversions.
+ */
+ ir_function_signature *exact_matching_signature(exec_list *actual_ps);
+
+ /**
* Name of the function.
*/
const char *name;