• Home
  • Raw
  • Download

Lines Matching refs:es

124     EventSet* es;  in eventset_from_mask()  local
132 es = (EventSet*) CLG_MALLOC("cl.events.eventset.1", sizeof(EventSet)); in eventset_from_mask()
133 es->mask = mask; in eventset_from_mask()
138 es->offset[i] = offset; in eventset_from_mask()
145 es->size = offset; in eventset_from_mask()
146 es->count = count; in eventset_from_mask()
148 eventSetTable[mask] = es; in eventset_from_mask()
149 return es; in eventset_from_mask()
165 EventSet* CLG_(add_event_group)(EventSet* es, Int id) in CLG_()
168 if (!es) es = eventset_from_mask(0); in CLG_()
169 return eventset_from_mask(es->mask | (1u << id)); in CLG_()
172 EventSet* CLG_(add_event_group2)(EventSet* es, Int id1, Int id2) in CLG_()
176 if (!es) es = eventset_from_mask(0); in CLG_()
177 return eventset_from_mask(es->mask | (1u << id1) | (1u << id2)); in CLG_()
189 ULong* CLG_(get_eventset_cost)(EventSet* es) in CLG_()
191 return CLG_(get_costarray)(es->size); in CLG_()
195 void CLG_(init_cost)(EventSet* es, ULong* cost) in CLG_()
201 for(i=0; i<es->size; i++) in CLG_()
206 void CLG_(init_cost_lz)(EventSet* es, ULong** cost) in CLG_()
212 *cost = CLG_(get_eventset_cost)(es); in CLG_()
214 for(i=0; i<es->size; i++) in CLG_()
218 void CLG_(zero_cost)(EventSet* es, ULong* cost) in CLG_()
224 for(i=0;i<es->size;i++) in CLG_()
228 Bool CLG_(is_zero_cost)(EventSet* es, ULong* cost) in CLG_()
234 for(i=0; i<es->size; i++) in CLG_()
240 void CLG_(copy_cost)(EventSet* es, ULong* dst, ULong* src) in CLG_()
245 CLG_(zero_cost)(es, dst); in CLG_()
250 for(i=0;i<es->size;i++) in CLG_()
254 void CLG_(copy_cost_lz)(EventSet* es, ULong** pdst, ULong* src) in CLG_()
262 CLG_(zero_cost)(es, *pdst); in CLG_()
267 dst = *pdst = CLG_(get_eventset_cost)(es); in CLG_()
269 for(i=0;i<es->size;i++) in CLG_()
273 void CLG_(add_cost)(EventSet* es, ULong* dst, ULong* src) in CLG_()
280 for(i=0; i<es->size; i++) in CLG_()
284 void CLG_(add_cost_lz)(EventSet* es, ULong** pdst, ULong* src) in CLG_()
294 dst = *pdst = CLG_(get_eventset_cost)(es); in CLG_()
295 CLG_(copy_cost)(es, dst, src); in CLG_()
299 for(i=0; i<es->size; i++) in CLG_()
304 Bool CLG_(add_and_zero_cost)(EventSet* es, ULong* dst, ULong* src) in CLG_()
309 CLG_ASSERT((es != 0) && (dst != 0)); in CLG_()
312 for(i=0; i<es->size; i++) { in CLG_()
359 Bool CLG_(add_diff_cost)(EventSet* es, ULong* dst, ULong* old, ULong* new_cost) in CLG_()
364 CLG_ASSERT((es != 0) && (dst != 0)); in CLG_()
367 for(i=0; i<es->size; i++) { in CLG_()
377 Bool CLG_(add_diff_cost_lz)(EventSet* es, ULong** pdst, ULong* old, ULong* new_cost) in CLG_()
383 CLG_ASSERT((es != 0) && (pdst != 0)); in CLG_()
388 dst = *pdst = CLG_(get_eventset_cost)(es); in CLG_()
389 CLG_(zero_cost)(es, dst); in CLG_()
392 for(i=0; i<es->size; i++) { in CLG_()
404 EventMapping* CLG_(get_eventmapping)(EventSet* es) in CLG_()
408 CLG_ASSERT(es != 0); in CLG_()
413 es->size); in CLG_()
414 em->capacity = es->size; in CLG_()
416 em->es = es; in CLG_()
429 if ((em->es->mask & mask)==0) continue; in CLG_()