@@ -1972,7 +1972,7 @@ IndexStmt IndexStmt::pos(IndexVar i, IndexVar ipos, Access access) const {
19721972
19731973 // Replace all occurrences of i with ipos
19741974 transformed = Transformation (ForAllReplace ({i}, {ipos})).apply (transformed, &reason);
1975- if (!transformed.defined ()) {
1975+ if (!transformed.defined ()) {
19761976 taco_uerror << reason;
19771977 }
19781978
@@ -2048,9 +2048,9 @@ IndexStmt IndexStmt::assemble(TensorVar result, AssembleStrategy strategy,
20482048 return transformed;
20492049}
20502050
2051- IndexStmt IndexStmt::wsaccel (TensorVar& ws, bool Acc , const std::vector<IndexVar>& accels ) {
2052- if (accels .size () == 0 ) {
2053- ws.setAccels (accels, Acc );
2051+ IndexStmt IndexStmt::wsaccel (TensorVar& ws, bool shouldAccel , const std::vector<IndexVar>& accelIndexVars ) {
2052+ if (accelIndexVars .size () == 0 ) {
2053+ ws.setaccelIndexVars (accelIndexVars, shouldAccel );
20542054 return *this ;
20552055 }
20562056 set<IndexVar> TempVars;
@@ -2065,12 +2065,12 @@ IndexStmt IndexStmt::wsaccel(TensorVar& ws, bool Acc, const std::vector<IndexVar
20652065 ctx->match (where->producer );
20662066 ctx->match (where->consumer );
20672067 }));
2068- for (auto i : accels ) {
2068+ for (auto i : accelIndexVars ) {
20692069 if (TempVars.find (i) == TempVars.end ()) {
20702070 taco_uerror << " No matching indexVars in the Accel" ;
20712071 }
20722072 }
2073- ws.setAccels (accels, Acc );
2073+ ws.setaccelIndexVars (accelIndexVars, shouldAccel );
20742074 return *this ;
20752075}
20762076
@@ -2546,8 +2546,8 @@ struct TensorVar::Content {
25462546 Format format;
25472547 Schedule schedule;
25482548 Literal fill;
2549- std::vector<IndexVar> accels ;
2550- bool Acc ;
2549+ std::vector<IndexVar> accelIndexVars ;
2550+ bool shouldAccel ;
25512551};
25522552
25532553TensorVar::TensorVar () : content(nullptr ) {
@@ -2580,8 +2580,8 @@ TensorVar::TensorVar(const int& id, const string& name, const Type& type, const
25802580 content->type = type;
25812581 content->format = format;
25822582 content->fill = fill.defined ()? fill : Literal::zero (type.getDataType ());
2583- content->accels = std::vector<IndexVar> {};
2584- content->Acc = true ;
2583+ content->accelIndexVars = std::vector<IndexVar> {};
2584+ content->shouldAccel = true ;
25852585}
25862586
25872587int TensorVar::getId () const {
@@ -2625,17 +2625,17 @@ const Literal& TensorVar::getFill() const {
26252625 return content->fill ;
26262626}
26272627
2628- const std::vector<IndexVar>& TensorVar::getAccels () const {
2629- return content->accels ;
2628+ const std::vector<IndexVar>& TensorVar::getaccelIndexVars () const {
2629+ return content->accelIndexVars ;
26302630}
26312631
2632- bool TensorVar::getAcc () const {
2633- return content->Acc ;
2632+ bool TensorVar::getshouldAccel () const {
2633+ return content->shouldAccel ;
26342634}
26352635
2636- void TensorVar::setAccels (const std::vector<IndexVar>& accels , bool Acc ) {
2637- content->Acc = Acc ;
2638- content->accels = accels ;
2636+ void TensorVar::setaccelIndexVars (const std::vector<IndexVar>& accelIndexVars , bool shouldAccel ) {
2637+ content->shouldAccel = shouldAccel ;
2638+ content->accelIndexVars = accelIndexVars ;
26392639}
26402640
26412641void TensorVar::setFill (const Literal &fill) {
0 commit comments