aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorRoland Paterson-Jones <[email protected]>2024-05-23 20:21:56 +0200
committerQuentin Carbonneaux <[email protected]>2024-06-09 22:33:38 +0200
commitcf9f95f5212db901bdf09e95dae4647f17bfb1e5 (patch)
treec464064b84ee8742499e4eef084b29a5c621a293 /parse.c
parent2c2051542b7671fd060560edf09516ecf56bf6fa (diff)
Optab-driven copy detection
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 6dee38f..a745779 100644
--- a/parse.c
+++ b/parse.c
@@ -15,8 +15,11 @@ enum {
};
Op optab[NOp] = {
-#define O(op, t, cf) [O##op]={#op, t, cf},
+#undef P
+#define P(cf, hi, id) .canfold = cf, .hasid = hi, .idval = id
+#define O(op, t, p) [O##op]={.name = #op, .argcls = t, p},
#include "ops.h"
+#undef P
};
typedef enum {