From: Till Riedel Date: Wed, 9 Jul 2003 14:17:53 +0000 (+0000) Subject: Added new global var that represents the X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=689b2b41ce671c239209d71e2da3fa85ae5471bc;p=libfirm Added new global var that represents the pointer mode of the machine [r1445] --- diff --git a/ir/ir/irmode.h b/ir/ir/irmode.h index 7215a52ab..33f3ddeaf 100644 --- a/ir/ir/irmode.h +++ b/ir/ir/irmode.h @@ -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.