Home
last modified time | relevance | path

Searched full:space (Results 1 – 25 of 2938) sorted by relevance

12345678910>>...118

/llvm-project/polly/lib/External/isl/
H A Disl_space.c23 isl_ctx *isl_space_get_ctx(__isl_keep isl_space *space) in isl_space_get_ctx() argument
25 return space ? space->ctx : NULL; in isl_space_get_ctx()
31 isl_space *space; in isl_space_alloc() local
33 space = isl_alloc_type(ctx, struct isl_space); in isl_space_alloc()
34 if (!space) in isl_space_alloc()
37 space->ctx = ctx; in isl_space_alloc()
39 space->ref = 1; in isl_space_alloc()
40 space->nparam = nparam; in isl_space_alloc()
41 space->n_in = n_in; in isl_space_alloc()
42 space->n_out = n_out; in isl_space_alloc()
[all …]
H A Disl_multi_no_domain_templ.c10 #include <isl/space.h>
17 * that do not have any associated space. They are only meant to be used
19 * that do have an associated space.
25 * For a base expression without an associated space, this function
34 /* Return the space of "el".
36 * For a base expression without an associated space,
39 * space anyway, just in case.
49 /* Reset the domain space of "el" to "space".
51 * For a base expression without an associated space, this function
55 __isl_take isl_space *space) in FN()
[all …]
H A Disl_multi_identity_templ.c10 #include <isl/space.h>
15 /* Create a multi expression in the given space that maps each
18 __isl_give MULTI(BASE) *FN(MULTI(BASE),identity)(__isl_take isl_space *space) in MULTI()
25 if (!space) in MULTI()
28 if (isl_space_is_set(space)) in MULTI()
29 isl_die(isl_space_get_ctx(space), isl_error_invalid, in MULTI()
30 "expecting map space", goto error); in MULTI()
32 n_in = isl_space_dim(space, isl_dim_in); in MULTI()
33 n_out = isl_space_dim(space, isl_dim_out); in MULTI()
37 isl_die(isl_space_get_ctx(space), isl_error_invalid, in MULTI()
[all …]
H A Disl_union_single.c17 * "space" describes the parameters.
18 * The entries of "table" are keyed on the domain space of the entry
26 isl_space *space; member
63 return isl_hash_table_foreach(u->space->ctx, &u->table, in FN()
67 /* Is the domain space of "entry" equal to the domain of "space",
74 isl_space *space = (isl_space *) val; in FN() local
76 if (isl_space_is_set(space)) in FN()
80 space, isl_dim_in); in FN()
83 /* Return the entry, if any, in "u" that lives in "space".
89 * First look for the entry (if any) with the same domain space.
[all …]
H A Disl_reordering.c20 * The caller still needs to fill in the space field and
37 exp->space = NULL; in isl_reordering_alloc()
42 /* Set r->dst_len to the total dimensionality of r->space.
52 n = isl_space_dim(r->space, isl_dim_all); in isl_reordering_set_dst_len_from_space()
81 dup->space = isl_reordering_get_space(r); in isl_reordering_dup()
82 if (!dup->space) in isl_reordering_dup()
109 isl_space_free(exp->space); in isl_reordering_free()
121 /* Return the space of "r".
127 return r->space; in isl_reordering_peek_space()
130 /* Return a copy of the space of "r".
[all …]
H A Disl_space_private.h4 #include <isl/space.h>
26 __isl_give isl_space *isl_space_cow(__isl_take isl_space *space);
28 __isl_give isl_space *isl_space_underlying(__isl_take isl_space *space,
31 uint32_t isl_space_get_tuple_hash(__isl_keep isl_space *space);
32 uint32_t isl_space_get_tuple_domain_hash(__isl_keep isl_space *space);
33 uint32_t isl_space_get_full_hash(__isl_keep isl_space *space);
54 isl_size isl_space_wrapped_dim(__isl_keep isl_space *space,
56 unsigned isl_space_offset(__isl_keep isl_space *space, enum isl_dim_type type);
58 isl_stat isl_space_check_range(__isl_keep isl_space *space,
60 isl_stat isl_space_check_is_set(__isl_keep isl_space *space);
[all …]
H A Disl_union_templ.c22 return u ? u->space->ctx : NULL; in FN()
25 /* Return the space of "u".
31 return u->space; in FN()
34 /* Return a copy of the space of "u".
53 return isl_space_dim(u->space, type); in FN()
65 return isl_space_find_dim_by_name(u->space, type, name); in FN()
70 static __isl_give UNION *FN(UNION,alloc)(__isl_take isl_space *space in FN()
75 space = isl_space_params(space); in FN()
76 if (!space) in FN()
79 u = isl_calloc_type(space->ctx, UNION); in FN()
[all …]
H A Disl_multi_templ.c22 return multi ? isl_space_get_ctx(multi->space) : NULL; in FN()
25 /* Return the space of "multi".
29 return multi ? multi->space : NULL; in FN()
40 return multi ? isl_space_domain(isl_space_copy(multi->space)) : NULL; in FN()
43 /* Allocate a multi expression living in "space".
49 __isl_give MULTI(BASE) *FN(MULTI(BASE),alloc)(__isl_take isl_space *space) in MULTI()
55 n = isl_space_dim(space, isl_dim_out); in MULTI()
59 ctx = isl_space_get_ctx(space); in MULTI()
68 multi->space = space; in MULTI()
75 isl_space_free(space); in MULTI()
[all …]
H A Disl_multi_tuple_id_templ.c11 #include <isl/space.h>
18 return multi ? isl_space_get_tuple_name(multi->space, type) : NULL; in FN()
28 return isl_space_has_tuple_id(multi->space, type); in FN()
34 * lives in a set space and isl_dim_out if it lives in a map space.
48 return multi ? isl_space_get_tuple_id(multi->space, type) : NULL; in FN()
54 * lives in a set space and isl_dim_out if it lives in a map space.
68 isl_space *space; in MULTI() local
74 space = FN(MULTI(BASE),get_space)(multi); in MULTI()
75 space = isl_space_set_tuple_name(space, type, s); in MULTI()
77 return FN(MULTI(BASE),reset_space)(multi, space); in MULTI()
[all …]
H A Disl_farkas.c67 /* Add the given prefix to all named isl_dim_set dimensions in "space".
69 static __isl_give isl_space *isl_space_prefix(__isl_take isl_space *space, in isl_space_prefix() argument
77 if (!space) in isl_space_prefix()
80 ctx = isl_space_get_ctx(space); in isl_space_prefix()
81 nvar = isl_space_dim(space, isl_dim_set); in isl_space_prefix()
83 return isl_space_free(space); in isl_space_prefix()
89 name = isl_space_get_dim_name(space, isl_dim_set, i); in isl_space_prefix()
100 space = isl_space_set_dim_name(space, in isl_space_prefix()
105 return space; in isl_space_prefix()
107 isl_space_free(space); in isl_space_prefix()
[all …]
H A Disl_bind_domain_templ.c10 #include <isl/space.h>
17 * Since dimension manipulations destroy spaces, modify the space
25 isl_space *space; in FN() local
28 space = FN(TYPE,get_domain_space)(obj); in FN()
29 id = isl_space_get_dim_id(space, isl_dim_param, param); in FN()
30 aff = isl_aff_param_on_domain_space_id(isl_space_copy(space), id); in FN()
31 space = isl_space_map_from_set(space); in FN()
32 ma = isl_multi_aff_identity(space); in FN()
35 space = FN(TYPE,get_domain_space)(obj); in FN()
38 space = isl_space_drop_dims(space, isl_dim_param, param, 1); in FN()
[all …]
H A Disl_output.c182 static isl_size count_same_name(__isl_keep isl_space *space, in count_same_name() argument
191 s = t == type ? pos : isl_space_dim(space, t); in count_same_name()
195 const char *n = isl_space_get_dim_name(space, t, p); in count_same_name()
204 * in "space" to "p".
206 static __isl_give isl_printer *print_name(__isl_keep isl_space *space, in print_name() argument
215 : isl_space_get_dim_name(space, type, pos); in print_name()
223 else if (isl_space_is_set(space) || type == isl_dim_in) in print_name()
230 primes = count_same_name(space, name == buffer ? isl_dim_div : type, in print_name()
240 static isl_stat pos2type(__isl_keep isl_space *space, in pos2type() argument
243 isl_size n_in = isl_space_dim(space, isl_dim_in); in pos2type()
[all …]
H A Disl_union_map.c110 __isl_take isl_space *space, int size) in isl_union_map_alloc() argument
114 space = isl_space_params(space); in isl_union_map_alloc()
115 if (!space) in isl_union_map_alloc()
118 umap = isl_calloc_type(space->ctx, isl_union_map); in isl_union_map_alloc()
120 isl_space_free(space); in isl_union_map_alloc()
125 umap->dim = space; in isl_union_map_alloc()
126 if (isl_hash_table_init(space->ctx, &umap->table, size) < 0) in isl_union_map_alloc()
139 __isl_give isl_union_map *isl_union_map_empty_space(__isl_take isl_space *space) in isl_union_map_empty_space() argument
141 return isl_union_map_alloc(space, 16); in isl_union_map_empty_space()
146 __isl_give isl_union_map *isl_union_map_empty(__isl_take isl_space *space) in isl_union_map_empty() argument
[all …]
H A Disl_aff.c68 /* Construct an isl_aff from the given domain local space "ls" and
69 * coefficients "v", where the local space is known to be valid
95 /* Construct an isl_aff from the given domain local space "ls" and
98 * First check that "ls" is a valid domain local space
111 isl_die(ctx, isl_error_invalid, "local space has unknown divs", in isl_aff_alloc_vec()
188 /* Return an affine expression that is equal to zero on domain space "space".
190 __isl_give isl_aff *isl_aff_zero_on_domain_space(__isl_take isl_space *space) in isl_aff_zero_on_domain_space() argument
192 return isl_aff_zero_on_domain(isl_local_space_from_space(space)); in isl_aff_zero_on_domain_space()
198 __isl_give isl_aff *isl_space_zero_aff_on_domain(__isl_take isl_space *space) in isl_space_zero_aff_on_domain() argument
200 return isl_aff_zero_on_domain_space(space); in isl_space_zero_aff_on_domain()
[all …]
H A Disl_aff_map.c15 #include <isl/space.h>
26 /* Check that the input living in "space" lives in a map space.
27 * That is, check that "space" is a map space.
29 static isl_stat check_input_is_map(__isl_keep isl_space *space) in check_input_is_map() argument
33 is_set = isl_space_is_set(space); in check_input_is_map()
37 isl_die(isl_space_get_ctx(space), isl_error_invalid, in check_input_is_map()
38 "space of input is not a map", return isl_stat_error); in check_input_is_map()
42 /* Check that the input living in "space" lives in a set space.
43 * That is, check that "space" is a set space.
45 static isl_stat check_input_is_set(__isl_keep isl_space *space) in check_input_is_set() argument
[all …]
/llvm-project/polly/lib/External/isl/include/isl/
H A Dspace.h22 isl_ctx *isl_space_get_ctx(__isl_keep isl_space *space);
30 __isl_give isl_space *isl_space_copy(__isl_keep isl_space *space);
31 __isl_null isl_space *isl_space_free(__isl_take isl_space *space);
33 isl_bool isl_space_is_params(__isl_keep isl_space *space);
34 isl_bool isl_space_is_set(__isl_keep isl_space *space);
35 isl_bool isl_space_is_map(__isl_keep isl_space *space);
38 __isl_give isl_space *isl_space_add_param_id(__isl_take isl_space *space,
41 __isl_give isl_space *isl_space_set_tuple_name(__isl_take isl_space *space,
43 isl_bool isl_space_has_tuple_name(__isl_keep isl_space *space,
45 __isl_keep const char *isl_space_get_tuple_name(__isl_keep isl_space *space,
[all …]
/llvm-project/mlir/unittests/Analysis/Presburger/
H A DPresburgerSpaceTest.cpp17 PresburgerSpace space = PresburgerSpace::getRelationSpace(2, 2, 1); in TEST() local
20 space.insertVar(VarKind::Domain, 0, 2); in TEST()
21 EXPECT_EQ(space.getNumDomainVars(), 4u); in TEST()
24 space.insertVar(VarKind::Range, 0, 1); in TEST()
25 EXPECT_EQ(space.getNumRangeVars(), 3u); in TEST()
29 PresburgerSpace space = PresburgerSpace::getSetSpace(2, 1); in TEST() local
31 // Try inserting 2 dimension ids. The space should have 4 range ids since in TEST()
34 space.insertVar(VarKind::SetDim, 0, 2); in TEST()
35 EXPECT_EQ(space.getNumRangeVars(), 4u); in TEST()
39 PresburgerSpace space = PresburgerSpace::getRelationSpace(2, 1, 3); in TEST() local
[all …]
H A DIntegerRelationTest.cpp173 PresburgerSpace space = PresburgerSpace::getRelationSpace(2, 1, 2, 0); in TEST() local
178 space.setId(VarKind::Domain, 0, Identifier(&identifiers[0])); in TEST()
179 space.setId(VarKind::Domain, 1, Identifier(&identifiers[1])); in TEST()
182 space.setId(VarKind::Range, 0, Identifier(&identifiers[2])); in TEST()
185 space.setId(VarKind::Symbol, 0, Identifier(&identifiers[3])); in TEST()
186 space.setId(VarKind::Symbol, 1, Identifier(&identifiers[4])); in TEST()
192 rel.setSpace(space); in TEST()
201 .isEqual(space.getId(VarKind::Range, 0))); in TEST()
203 .isEqual(space.getId(VarKind::Symbol, 1))); in TEST()
205 .isEqual(space.getId(VarKind::Domain, 0))); in TEST()
[all …]
/llvm-project/llvm/test/tools/llvm-xray/X86/
H A Dstack-multithread.yaml37 # PER-THREAD: lvl function{{[[:space:]]+}}count{{[[:space:]]+}}sum
38 # PER-THREAD: #0 #1{{[[:space:]]+}}1{{[[:space:]]+}}674
39 # PER-THREAD: #1 #2{{[[:space:]]+}}1{{[[:space:]]+}}450
40 # PER-THREAD: #2 #3{{[[:space:]]+}}1{{[[:space:]]+}}100
42 # PER-THREAD: #0 #1{{[[:space:]]+}}1{{[[:space:]]+}}674
43 # PER-THREAD: #1 #2{{[[:space:]]+}}1{{[[:space:]]+}}450
44 # PER-THREAD: #2 #3{{[[:space:]]+}}1{{[[:space:]]+}}100
45 # PER-THREAD: lvl function{{[[:space:]]+}}count{{[[:space:]]+}}sum
51 # AGGREGATE: lvl function{{[[:space:]]+}}count{{[[:space:]]+}}sum
52 # AGGREGATE: #0 #1{{[[:space:]]+}}3{{[[:space:]]+}}1348
[all …]
/llvm-project/clang/test/SemaOpenCL/
H A Daddress-spaces.cl22 …ssigning '__global int *__private' to '__private int *__private' changes address space of pointer}}
23 …-error {{assigning '__local int *' to '__private int *__private' changes address space of pointer}}
24 …ror {{assigning '__constant int *' to '__private int *__private' changes address space of pointer}}
30 …@-2 {{assigning '__constant int *' to '__generic int *__private' changes address space of pointer}}
32 // expected-error@-4 {{assigning '__constant int *' to '__generic int *' changes address space of p…
40 // expected-error@-2 {{casting '__local int *' to type '__global int *' changes address space of po…
46 // expected-error@-2 {{casting '__constant int *' to type '__global int *' changes address space of…
52 …r@-2 {{casting 'const __constant int *' to type '__global int *' changes address space of pointer}}
58 // expected-error@-2 {{casting '__private int *' to type '__global int *' changes address space of …
64 // expected-error@-2 {{casting '__global int *' to type '__local int *' changes address space of po…
[all …]
H A Dstorageclass.cl15 // expected-error@-2 {{program scope variable must reside in constant address space}}
20 // expected-error@-2 {{program scope variable must reside in constant address space}}
25 // expected-error@-2 {{program scope variable must reside in constant address space}}
32 // expected-error@-2 {{program scope variable must reside in constant address space}}
37 // expected-error@-2 {{program scope variable must reside in constant address space}}
39 // expected-error@-4 {{program scope variable must reside in global or constant address space}}
44 // expected-error@-2 {{program scope variable must reside in constant address space}}
46 // expected-error@-4 {{program scope variable must reside in global or constant address space}}
52 // expected-error@-3 {{program scope variable must reside in constant address space}}
62 // expected-error@-13 {{program scope variable must reside in constant address space}}
[all …]
H A Dusm-address-spaces-conversions.cl1 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -cl-std=CL2.0
2 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -cl-std=CL2.0 -DGENE…
3 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -cl-std=CL2.0 -DCONS…
4 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -cl-std=CL2.0 -DLOCAL
8 * space. As ISO/IEC TR 18037 5.1.3 declares - it's possible to implicitly
9 * convert a subset address space to a superset address space, while conversion
36 …g '__generic int *__private' to '__global_device int *__private' changes address space of pointer}}
37 …ing '__generic int *__private' to '__global_host int *__private' changes address space of pointer}}
39 …ng '__global int *__private' to '__global_device int *__private' changes address space of pointer}}
40 …ning '__global int *__private' to '__global_host int *__private' changes address space of pointer}}
[all …]
/llvm-project/clang/docs/
H A DSYCLSupport.rst16 Address space handling
24 section 4.7.7 - `address space classes <https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/…
25 and section 5.9 covers `address space deduction <https://www.khronos.org/registry/SYCL/specs/sycl-2…
26 The SYCL specification allows two modes of address space deduction: "generic as
27 default address space" (see section 5.9.3) and "inferred address space" (see
29 space" mode.
32 the address space qualifier inference as detailed in
35 The default address space is "generic-memory", which is a virtual address space
39 - explicit conversions to/from the default address space from/to the address
40 space-attributed type
[all …]
/llvm-project/mlir/include/mlir/Analysis/Presburger/
H A DPWMAFunction.h43 MultiAffineFunction(const PresburgerSpace &space, const IntMatrix &output) in MultiAffineFunction() argument
44 : space(space), output(output), in MultiAffineFunction()
45 divs(space.getNumVars() - space.getNumRangeVars()) { in MultiAffineFunction()
49 MultiAffineFunction(const PresburgerSpace &space, const IntMatrix &output, in MultiAffineFunction() argument
51 : space(space), output(output), divs(divs) { in MultiAffineFunction()
55 unsigned getNumDomainVars() const { return space.getNumDomainVars(); } in getNumDomainVars()
56 unsigned getNumSymbolVars() const { return space.getNumSymbolVars(); } in getNumSymbolVars()
57 unsigned getNumOutputs() const { return space.getNumRangeVars(); } in getNumOutputs()
58 unsigned getNumDivs() const { return space.getNumLocalVars(); } in getNumDivs()
60 /// Get the space of this function.
[all …]
/llvm-project/llvm/test/CodeGen/SystemZ/
H A Dvec-perm-14.ll50 ; CHECK-NEXT: .space 1
51 ; CHECK-NEXT: .space 1
52 ; CHECK-NEXT: .space 1
53 ; CHECK-NEXT: .space 1
54 ; CHECK-NEXT: .space 1
55 ; CHECK-NEXT: .space 1
56 ; CHECK-NEXT: .space 1
57 ; CHECK-NEXT: .space 1
58 ; CHECK-NEXT: .space 1
59 ; CHECK-NEXT: .space 1
[all …]

12345678910>>...118