diff options
| author | Roland Paterson-Jones <[email protected]> | 2024-05-23 20:21:56 +0200 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2024-06-09 22:33:38 +0200 |
| commit | cf9f95f5212db901bdf09e95dae4647f17bfb1e5 (patch) | |
| tree | c464064b84ee8742499e4eef084b29a5c621a293 /parse.c | |
| parent | 2c2051542b7671fd060560edf09516ecf56bf6fa (diff) | |
Optab-driven copy detection
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 { |
