X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firmode.h;h=f24ac64bbb1a790ed852adc084060b72c51b02e4;hb=9ec98298a0bf99ccb9533365dd7245e0a380f3df;hp=898bf9efe276b3b5fc0f77a8e064fa915e27f938;hpb=9ddb36f92632e83371a2bb973cb64a9ab0802f6d;p=libfirm diff --git a/include/libfirm/irmode.h b/include/libfirm/irmode.h index 898bf9efe..f24ac64bb 100644 --- a/include/libfirm/irmode.h +++ b/include/libfirm/irmode.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -183,11 +183,11 @@ const char *get_mode_name(const ir_mode *mode); mode_sort get_mode_sort(const ir_mode *mode); /** Returns the size of values of the mode in bits. */ -int get_mode_size_bits(const ir_mode *mode); +unsigned get_mode_size_bits(const ir_mode *mode); /** Returns the size of values of the mode in bytes. * If the size is not dividable by 8 returns -1. */ -int get_mode_size_bytes(const ir_mode *mode); +unsigned get_mode_size_bytes(const ir_mode *mode); /** Returns the signess of a mode. * @@ -195,7 +195,7 @@ int get_mode_size_bytes(const ir_mode *mode); int get_mode_sign(const ir_mode *mode); /** Returns the arithmetic of a mode */ -int get_mode_arithmetic(const ir_mode *mode); +mode_arithmetic get_mode_arithmetic(const ir_mode *mode); /** Get the modulo shift attribute. * @@ -262,6 +262,13 @@ tarval *get_mode_one(ir_mode *mode); */ tarval *get_mode_minus_one(ir_mode *mode); +/** + * Returns the value where all bits are One, represented in this mode. + * + * All One is defined only for modes integer, reference and boolean modes + */ +tarval *get_mode_all_one(ir_mode *mode); + /** * Returns the positive infinite value of a mode. *