libFirm 1.20
|
00001 /* 00002 * Copyright (C) 1995-2010 University of Karlsruhe. All right reserved. 00003 * 00004 * This file is part of libFirm. 00005 * 00006 * This file may be distributed and/or modified under the terms of the 00007 * GNU General Public License version 2 as published by the Free Software 00008 * Foundation and appearing in the file LICENSE.GPL included in the 00009 * packaging of this file. 00010 * 00011 * Licensees holding valid libFirm Professional Edition licenses may use 00012 * this file in accordance with the libFirm Commercial License. 00013 * Agreement provided with the Software. 00014 * 00015 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00016 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00017 * PURPOSE. 00018 */ 00019 00025 #ifndef VRP_H 00026 #define VRP_H 00027 00028 #include "firm_types.h" 00029 #include "begin.h" 00030 00039 enum range_types { 00040 VRP_UNDEFINED, 00041 VRP_RANGE, 00042 VRP_ANTIRANGE, 00044 VRP_VARYING 00045 }; 00046 00048 typedef struct { 00049 ir_tarval *bits_set; 00052 ir_tarval *bits_not_set; 00055 enum range_types range_type; 00056 ir_tarval *range_bottom; 00057 ir_tarval *range_top; 00058 } vrp_attr; 00059 00064 FIRM_API void set_vrp_data(ir_graph *irg); 00065 00069 FIRM_API void free_vrp_data(ir_graph *irg); 00070 00078 FIRM_API ir_relation vrp_cmp(const ir_node *left, const ir_node *right); 00079 00087 FIRM_API vrp_attr *vrp_get_info(const ir_node *n); 00088 00091 #include "end.h" 00092 00093 #endif