Added post increment optimization for msc51 &
[fw/sdcc] / src / izt / izt.h
index 968d278e558010f2eb63579031a4697c1f5d26af..cb5ab9085ad6bcaaf7adddb4c66b2f2ce15e2566 100644 (file)
@@ -1,7 +1,8 @@
 #include <common.h>
 #include "gen.h"
 
-typedef enum {
+typedef enum
+  {
     REG_ID_NONE,
     // Z80
     REG_ID_A,
@@ -28,37 +29,45 @@ typedef enum {
     REG_ID_DH,
     REG_ID_DX,
     REG_ID_MAX
-} REG_ID;
+  }
+REG_ID;
 
-enum {
+enum
+  {
     REG_USED = 1,
     REG_USED_HIDDEN = 2
-};
+  };
 
-enum {
+enum
+  {
     REG_TYPE_CND = 1,
     REG_TYPE_GPR = 2
-} REG_TYPE;
+  }
+REG_TYPE;
 
-typedef struct regs {
+typedef struct regs
+  {
     int size;
     REG_ID id;
     const char *name;
     int used;
     REG_ID hides[3];
-} REG;
+  }
+REG;
 
 #define TEST(_d, _a) \
        (_a) ? (void)0 : (failures++, printf("Test %s \"%s\" failed.\n", #_a, _d), _dumpRegs())
 
 #define NUM_OF(_a)     (sizeof(_a)/sizeof(*(_a)))
 
-typedef struct {
+typedef struct
+  {
     REG *regs;
-} IZT_PORT;
+  }
+IZT_PORT;
 
 IZT_PORT *izt_port;
 
-void izt_init(IZT_PORT *port);
-void izt_assignRegisters (eBBlock **ebbs, int count);
-void izt_gen(iCode *ic);
+void izt_init (IZT_PORT * port);
+void izt_assignRegisters (eBBlock ** ebbs, int count);
+void izt_gen (iCode * ic);