summary refs log tree commit diff
path: root/all.h
diff options
context:
space:
mode:
Diffstat (limited to 'all.h')
-rw-r--r--all.h6
1 files changed, 1 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);