oops - omitted from previous delta. This change is:
[official-gcc.git] / libbanshee / engine / setst-var.h
blob6ef2f84a0059b9c5e4a673e0a8ecc996ca3e8ef8
1 /*
2 * Copyright (c) 2000-2001
3 * The Regents of the University of California. All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of the University nor the names of its contributors
14 * may be used to endorse or promote products derived from this software
15 * without specific prior written permission.
17 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
31 #ifndef SETST_VAR_H
32 #define SETST_VAR_H
34 #include "linkage.h"
35 #include "banshee.h"
36 #include "jcollection.h"
38 EXTERN_C_BEGIN
40 typedef struct setst_var *setst_var;
42 DECLARE_LIST(setst_var_list,setst_var)
44 bool st_eq(setst_var v1, setst_var v2);
45 setst_var st_fresh(region r, const char *name);
46 setst_var st_fresh_large(region r, const char *name);
47 setst_var st_fresh_small(region r, const char *name);
48 stamp st_get_stamp(setst_var v);
49 const char *st_get_name(setst_var v);
50 void st_unify(setst_var v,setst_var_list vars);
51 setst_var_list st_get_lbs(setst_var v);
52 gen_e_list st_get_sources(setst_var v);
53 gen_e_list st_get_sinks(setst_var v);
54 gen_e st_get_ub_proj(setst_var v, get_proj_fn_ptr get_proj);
55 bool st_add_lb(setst_var v, setst_var lb);
56 bool st_add_source(setst_var v, gen_e source, stamp s);
57 bool st_add_sink(setst_var v, gen_e sink, stamp s);
59 void st_set_path_pos(setst_var v, int pos);
60 int st_get_path_pos(setst_var v);
61 void st_set_seen(setst_var v, bool b);
62 bool st_get_seen(setst_var v);
63 void st_set_src_sz(setst_var v, int size);
64 int st_get_src_sz(setst_var v);
65 void st_set_snk_sz(setst_var v, int size);
66 int st_get_snk_sz(setst_var v);
68 jcoll st_get_tlb_cache(setst_var v);
69 void st_set_tlb_cache(setst_var v, jcoll j);
70 void st_clear_tlb_cache(setst_var v);
72 void st_repair_bounds(setst_var v);
74 EXTERN_C_END
76 #endif /* SETST_VAR_H */