projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use tv_t.h instead of tv.h
[libfirm]
/
ir
/
ir
/
irreflect.h
diff --git
a/ir/ir/irreflect.h
b/ir/ir/irreflect.h
index
0cc2995
..
2f15ace
100644
(file)
--- a/
ir/ir/irreflect.h
+++ b/
ir/ir/irreflect.h
@@
-93,7
+93,7
@@
int rflct_get_signature_count(opcode opc);
* @param irn The node.
* @return The first matching signature or -1, if no signature matches.
*/
* @param irn The node.
* @return The first matching signature or -1, if no signature matches.
*/
-int rflct_get_signature(ir_node *irn);
+int rflct_get_signature(
const
ir_node *irn);
/**
* Get the number of in arguments.
/**
* Get the number of in arguments.
@@
-113,6
+113,9
@@
int rflct_get_in_args_count(opcode opc, int sig);
*/
int rflct_get_out_args_count(opcode opc, int sig);
*/
int rflct_get_out_args_count(opcode opc, int sig);
+#define rflct_get_args_count(opc, sig, use) \
+ ((use) ? rflct_get_in_args_count(opc, sig) : rflct_get_out_args_count(opc, sig))
+
/**
* Get the array of use args.
* The array is terminated with an entry for which
/**
* Get the array of use args.
* The array is terminated with an entry for which
@@
-135,6
+138,9
@@
const rflct_arg_t *rflct_get_in_args(opcode opc, int sig);
*/
const rflct_arg_t *rflct_get_out_args(opcode opc, int sig);
*/
const rflct_arg_t *rflct_get_out_args(opcode opc, int sig);
+#define rflct_get_args(opc, sig, use) \
+ ((use) ? rflct_get_in_args(opc, sig) : rflct_get_out_args(opc, sig))
+
/**
* Make a string representation of a signature of an opcode.
* @param buf The buffer to put the string to.
/**
* Make a string representation of a signature of an opcode.
* @param buf The buffer to put the string to.