Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 6db2f43

Browse files
author
Sven Verdoolaege
committed
ScopedFootprint.box: use templated isl types
1 parent 292b999 commit 6db2f43

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tc/core/polyhedral/memory_promotion.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ isl::map TensorReferenceGroup::approximateScopedAccesses() const {
136136
return accessed;
137137
}
138138

139-
isl::multi_aff ScopedFootprint::lowerBounds() const {
139+
isl::MultiAff<Scope, Tensor> ScopedFootprint::lowerBounds() const {
140140
if (dim() == 0) {
141141
throw promotion::PromotionNYI("promotion for scalars");
142142
}

tc/core/polyhedral/memory_promotion.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@ struct ScopedFootprint {
4848
isl::val size(size_t pos) const {
4949
return box.get_size().get_val(pos);
5050
}
51-
isl::aff lowerBound(size_t pos) const {
51+
isl::AffOn<Scope> lowerBound(size_t pos) const {
5252
return box.get_offset().get_aff(pos);
5353
}
5454
isl::val stride(size_t pos) const {
5555
return strideValues.get_val(pos);
5656
}
57-
isl::aff strideOffset(size_t pos) const {
57+
isl::AffOn<Scope> strideOffset(size_t pos) const {
5858
return strideOffsets.get_aff(pos);
5959
}
6060

61-
isl::fixed_box box;
61+
isl::FixedBox<Scope, Tensor> box;
6262
isl::MultiVal<Tensor> strideValues;
6363
isl::MultiAff<Scope, Tensor> strideOffsets;
6464

65-
isl::multi_aff lowerBounds() const;
65+
isl::MultiAff<Scope, Tensor> lowerBounds() const;
6666
};
6767

6868
// Descriptor of tensor reference in a Scop.

0 commit comments

Comments
 (0)