Lines Matching refs:CLG_
39 fn_stack CLG_(current_fn_stack);
41 void CLG_(init_fn_stack)(fn_stack* s)
52 void CLG_(copy_current_fn_stack)(fn_stack* dst)
56 dst->size = CLG_(current_fn_stack).size;
57 dst->bottom = CLG_(current_fn_stack).bottom;
58 dst->top = CLG_(current_fn_stack).top;
61 void CLG_(set_current_fn_stack)(fn_stack* s)
65 CLG_(current_fn_stack).size = s->size;
66 CLG_(current_fn_stack).bottom = s->bottom;
67 CLG_(current_fn_stack).top = s->top;
72 void CLG_(init_cxt_table)()
129 CLG_(stat).cxt_hash_resizes++;
206 cxt->base_number = CLG_(stat).context_counter;
209 CLG_(stat).context_counter += recs;
210 CLG_(stat).distinct_contexts++;
220 CLG_(print_cxt)(12, cxt, 0);
228 Context* CLG_(get_cxt)(fn_node** fn)
249 CLG_(stat).cxt_lru_misses++;
274 void CLG_(push_cxt)(fn_node* fn)
276 call_stack* cs = &CLG_(current_call_stack);
281 CLG_(current_state).cxt ?
282 (Int)CLG_(current_state).cxt->base_number : -1);
287 cs->entry[cs->sp].cxt = CLG_(current_state).cxt;
288 cs->entry[cs->sp].fn_sp = CLG_(current_fn_stack).top - CLG_(current_fn_stack).bottom;
290 if (fn && (*(CLG_(current_fn_stack).top) == fn)) return;
292 ((*(CLG_(current_fn_stack).top))->group == fn->group)) return;
295 fn_entries = CLG_(current_fn_stack).top - CLG_(current_fn_stack).bottom;
296 if (fn_entries == CLG_(current_fn_stack).size-1) {
297 UInt new_size = CLG_(current_fn_stack).size *2;
301 for(i=0;i<CLG_(current_fn_stack).size;i++)
302 new_array[i] = CLG_(current_fn_stack).bottom[i];
303 VG_(free)(CLG_(current_fn_stack).bottom);
304 CLG_(current_fn_stack).top = new_array + fn_entries;
305 CLG_(current_fn_stack).bottom = new_array;
308 CLG_(current_fn_stack).size, new_size,
311 CLG_(current_fn_stack).size = new_size;
314 if (fn && (*(CLG_(current_fn_stack).top) == 0)) {
318 pactive = CLG_(get_fn_entry)(fn->number);
322 CLG_(current_fn_stack).top++;
323 *(CLG_(current_fn_stack).top) = fn;
324 CLG_(current_state).cxt = CLG_(get_cxt)(CLG_(current_fn_stack).top);
328 CLG_(current_state).cxt ?
329 (Int)CLG_(current_state).cxt->base_number : -1,
330 CLG_(current_fn_stack).top - CLG_(current_fn_stack).bottom + 0L);