aboutsummaryrefslogtreecommitdiff
path: root/all.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2024-04-08 15:30:07 +0200
committerQuentin Carbonneaux <[email protected]>2024-04-09 21:47:16 +0200
commit2d046a0ac61e5e3b6a43ce0faf54cc0994bfe5af (patch)
tree05a1b9d6119e9cf250aba21f8fdf402d183992e4 /all.h
parenta609527752b5c96d28b492eac3165a14c9794104 (diff)
use mgen in amd64/isel.c
Diffstat (limited to 'all.h')
-rw-r--r--all.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/all.h b/all.h
index 472980d..8ce0728 100644
--- a/all.h
+++ b/all.h
@@ -21,6 +21,7 @@ typedef struct Phi Phi;
typedef struct Blk Blk;
typedef struct Use Use;
typedef struct Sym Sym;
+typedef struct Num Num;
typedef struct Alias Alias;
typedef struct Tmp Tmp;
typedef struct Con Con;
@@ -281,6 +282,12 @@ struct Sym {
uint32_t id;
};
+struct Num {
+ uchar n;
+ uchar nl, nr;
+ Ref l, r;
+};
+
enum {
NoAlias,
MayAlias,
@@ -480,6 +487,7 @@ Ref getcon(int64_t, Fn *);
int addcon(Con *, Con *);
void salloc(Ref, Ref, Fn *);
void dumpts(BSet *, Tmp *, FILE *);
+void runmatch(uchar *, Num *, Ref, Ref *);
void bsinit(BSet *, uint);
void bszero(BSet *);