Added new global var that represents the
authorTill Riedel <till@ipd.info.uni-karlsruhe.de>
Wed, 9 Jul 2003 14:17:53 +0000 (14:17 +0000)
committerTill Riedel <till@ipd.info.uni-karlsruhe.de>
Wed, 9 Jul 2003 14:17:53 +0000 (14:17 +0000)
pointer mode of the machine

[r1445]

ir/ir/irmode.h

index 7215a52..33f3dde 100644 (file)
@@ -266,6 +266,9 @@ extern ir_mode *mode_C;  /**< 8 bit char */
 extern ir_mode *mode_U;  /**< 16 bit unicode char */
 
 extern ir_mode *mode_P;  /**< pointer */
+extern ir_mode *mode_P_mach; /**< A pointer mode that is set by the client of libfirm.  This mode
+                              represents the pointer size of the target machine. Is initialized
+                              to mode_P. */
 
 /* -- Auxiliary modes necessary for the Firm representation -- */
 extern ir_mode *mode_b;  /**< internal boolean */
@@ -301,6 +304,9 @@ ir_mode *get_modeT(void);
 ir_mode *get_modeANY(void);
 ir_mode *get_modeBAD(void);
 
+ir_mode *get_modeP_mach(void);
+ir_mode *set_modeP_mach(ir_mode *p);
+
 /**
    Functions to check, whether a modecode is signed, float, int, num, data,
    datab or dataM.