From 4d2013dc57776f3d97a74801c3d29eed7ed76a82 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Fri, 28 Mar 2003 09:31:25 +0000 Subject: [PATCH] *** empty log message *** [r1004] --- TODO | 24 ++++++++++++++++++++++++ ir/tv/tv.h | 5 +++++ 2 files changed, 29 insertions(+) diff --git a/TODO b/TODO index 8dade4735..d462dc73a 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,27 @@ + * 24.3.2003 Goetz + tarval requirements: + zu register_mode: + Ich haette ganz gerne + new_ir_mode(ident* name, int size, int alignment, mode_sort sort); + modecode ist der naechste frei int > maxenum. + Und der konstruktor sollte auch nach den zwei inits aufgerufen werden koennen. + was spricht dagegen? (die zwei inits stehen in init_firm(), ein benutzer kann + schwer dazwischen andere methoden aufrufen.) + + * 24.3.2003 Goetz + tarval requirements: + - if overflow either return no tarval or return result of overflow + computation. Offer to output a warning. (configurable) + - Div: configure rounding (up/down) in init_firm, remark in each Div node + rounding sheme, default by initializations, pass rounding sheme + to tarval module + - impelement tarval_bitpattern + - make routine that outputs parts < 32 bits from any tarval + at given position in a C type that is exactly 32 bits. + For this test C types for their size or use int32 in integer.h + (is this standard C??) + - add routine that outputs the position of the largest set bit. + * 29.10.2002 Goetz Representation of value compounds is not good, especially with calls. diff --git a/ir/tv/tv.h b/ir/tv/tv.h index e33bd3c4d..321739bb8 100644 --- a/ir/tv/tv.h +++ b/ir/tv/tv.h @@ -483,6 +483,11 @@ tarval *tarval_rot(tarval *a, tarval *b); /* bitwise rotation */ ******/ char *tarval_bitpattern(tarval *tv); +/** + * returns bitpattern [from, to[ + */ +char *tarval_sub_bitpattern(tarval *tv, int from, int to); + /* Identifying some tarvals ??? */ /* This function is deprecated and its use strongly discouraged */ long tarval_classify(tarval *tv); -- 2.20.1