From 470810f30795fa40efc7d251f2ad83ed892978e1 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux <quentin.carbonneaux@yale.edu> Date: Wed, 3 Feb 2016 16:00:45 -0500 Subject: [PATCH] add more spaces --- lisc/lisc.h | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/lisc/lisc.h b/lisc/lisc.h index 20ef338..8ec1afd 100644 --- a/lisc/lisc.h +++ b/lisc/lisc.h @@ -132,7 +132,10 @@ enum { (Ref){RAlt, (x)|(AMem<<AShift)}) static inline int req(Ref a, Ref b) -{ return a.type == b.type && a.val == b.val; } +{ + return a.type == b.type && a.val == b.val; +} + static inline int rtype(Ref r) { if (req(r, R)) @@ -141,18 +144,30 @@ static inline int rtype(Ref r) return RAlt + (r.val >> AShift); return r.type; } + static inline int isreg(Ref r) -{ return rtype(r) == RTmp && r.val < Tmp0; } +{ + return rtype(r) == RTmp && r.val < Tmp0; +} #define CMPS(X) \ - X(eq) X(sle) X(slt) \ - X(sgt) X(sge) X(ne) /* mirror opposite cmps! */ + X(eq) \ + X(sle) \ + X(slt) \ + X(sgt) \ + X(sge) \ + X(ne) /* mirror opposite cmps! */ + #define COP(c) (c==Ceq||c==Cne ? c : NCmp-1 - c) +enum Cmp { #define X(c) C##c, -enum Cmp { CMPS(X) NCmp }; + CMPS(X) #undef X + NCmp +}; + enum Class { Kw, Kl,