Coverage Report

Created: 2017-11-21 16:49

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/polly/lib/External/isl/isl_union_eval.c
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright 2010      INRIA Saclay
3
 *
4
 * Use of this software is governed by the MIT license
5
 *
6
 * Written by Sven Verdoolaege, INRIA Saclay - Ile-de-France,
7
 * Parc Club Orsay Universite, ZAC des vignes, 4 rue Jacques Monod,
8
 * 91893 Orsay, France
9
 */
10
11
#include <isl_union_macro.h>
12
13
/* Is the domain space of "entry" equal to "space"?
14
 */
15
static int FN(UNION,has_domain_space)(const void *entry, const void *val)
16
0
{
17
0
  PART *part = (PART *)entry;
18
0
  isl_space *space = (isl_space *) val;
19
0
20
0
  if (isl_space_is_params(space))
21
0
    return isl_space_is_set(part->dim);
22
0
23
0
  return isl_space_tuple_is_equal(part->dim, isl_dim_in,
24
0
          space, isl_dim_set);
25
0
}
Unexecuted instantiation: isl_fold.c:isl_union_pw_qpolynomial_fold_has_domain_space
Unexecuted instantiation: isl_polynomial.c:isl_union_pw_qpolynomial_has_domain_space
26
27
__isl_give isl_val *FN(UNION,eval)(__isl_take UNION *u,
28
  __isl_take isl_point *pnt)
29
0
{
30
0
  uint32_t hash;
31
0
  struct isl_hash_table_entry *entry;
32
0
  isl_space *space;
33
0
  isl_val *v;
34
0
35
0
  if (!u || !pnt)
36
0
    goto error;
37
0
38
0
  space = isl_space_copy(pnt->dim);
39
0
  if (!space)
40
0
    goto error;
41
0
  hash = isl_space_get_hash(space);
42
0
  entry = isl_hash_table_find(u->space->ctx, &u->table,
43
0
            hash, &FN(UNION,has_domain_space),
44
0
            space, 0);
45
0
  isl_space_free(space);
46
0
  if (!entry) {
47
0
    v = isl_val_zero(isl_point_get_ctx(pnt));
48
0
    isl_point_free(pnt);
49
0
  } else {
50
0
    v = FN(PART,eval)(FN(PART,copy)(entry->data), pnt);
51
0
  }
52
0
  FN(UNION,free)(u);
53
0
  return v;
54
0
error:
55
0
  FN(UNION,free)(u);
56
0
  isl_point_free(pnt);
57
0
  return NULL;
58
0
}
Unexecuted instantiation: isl_union_pw_qpolynomial_fold_eval
Unexecuted instantiation: isl_union_pw_qpolynomial_eval