From: Michael Beck Date: Mon, 14 Jul 2008 21:14:43 +0000 (+0000) Subject: - add tarval_top and tarval_bottom as alias for tarval_undefined and tarval_bad X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=b9ec2cadfd303d44c13afcb2d1bd57cc1b18f738;p=libfirm - add tarval_top and tarval_bottom as alias for tarval_undefined and tarval_bad [r20459] --- diff --git a/include/libfirm/tv.h b/include/libfirm/tv.h index 0a4e318b8..4538e392d 100644 --- a/include/libfirm/tv.h +++ b/include/libfirm/tv.h @@ -274,7 +274,7 @@ int tarval_is_all_one(tarval *tv); /** The 'bad' tarval. */ extern tarval *tarval_bad; -/** Returns the 'bad tarval. */ +/** Returns the 'bad' tarval. */ tarval *get_tarval_bad(void); /** The 'undefined' tarval. */ @@ -293,6 +293,16 @@ extern tarval *tarval_b_true; /** Returns the mode_b tarval 'true'. */ tarval *get_tarval_b_true(void); +/** The 'top' tarval. This is just another name for the 'undefined' tarval. */ +#define tarval_top tarval_undefined +/** Returns the 'top' tarval. */ +#define get_tarval_top() get_tarval_undefined() + +/** The 'bottom' tarval. This is just another name for the 'bad' tarval. */ +#define tarval_bottom tarval_bad +/** Returns the 'bottom' tarval. */ +#define get_tarval_bottom() get_tarval_bad() + /* These functions calculate and return a tarval representing the requested * value. * The functions get_mode_{Max,Min,...} return tarvals retrieved from these