diff options
author | Quentin Carbonneaux <quentin@c9x.me> | 2017-06-06 13:46:33 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2017-06-06 13:46:33 -0400 |
commit | 9908ae067af59cb6e43997552cb0e03e8f082f31 (patch) | |
tree | dfbeea9a9f617850768dc489232c92a53ea70476 | |
parent | 5dcf8c14cbefb3f96262e5fbe5168cfe48e6fd3a (diff) | |
download | roux-9908ae067af59cb6e43997552cb0e03e8f082f31.tar.gz |
isreg() does not need to be inlined
-rw-r--r-- | all.h | 6 | ||||
-rw-r--r-- | util.c | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/all.h b/all.h index b9ac9b2..1abd23c 100644 --- a/all.h +++ b/all.h @@ -103,11 +103,6 @@ static inline int rtype(Ref r) return r.type; } -static inline int isreg(Ref r) -{ - return rtype(r) == RTmp && r.val < Tmp0; -} - enum CmpI { Cieq, Cine, @@ -422,6 +417,7 @@ void vgrow(void *, ulong); uint32_t intern(char *); char *str(uint32_t); int argcls(Ins *, int); +int isreg(Ref); int iscmp(int, int *, int *); void emit(int, int, Ref, Ref, Ref); void emiti(Ins); diff --git a/util.c b/util.c index 8527931..f1a5383 100644 --- a/util.c +++ b/util.c @@ -190,6 +190,12 @@ str(uint32_t id) } int +isreg(Ref r) +{ + return rtype(r) == RTmp && r.val < Tmp0; +} + +int iscmp(int op, int *pk, int *pc) { if (Ocmpw <= op && op <= Ocmpw1) { |