Skip to content

Commit 9700b18

Browse files
committed
Update comments for workspace changes
1 parent 1d028bb commit 9700b18

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

include/taco/ir/workspace_rewriter.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ class Stmt;
1313
class Expr;
1414
}
1515

16-
/// Simplifies a statement (e.g. by applying constant copy propagation).
16+
/// Rewrite a post-lowered IR statement to take into account multidimensional temporaries.
17+
/// Replaces Dimension GetProperty nodes that correspond to temporary workspaces with
18+
/// their corresponding dimension found in the temporarySizeMap.
1719
ir::Stmt rewriteTemporaryGP(const ir::Stmt& stmt, std::vector<TensorVar> whereTemps,
1820
std::map<TensorVar, std::vector<ir::Expr>> temporarySizeMap);
1921

include/taco/lower/lowerer_impl_imperative.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,10 @@ class LowererImplImperative : public LowererImpl {
494494
std::vector<TensorVar> whereTemps;
495495
std::map<TensorVar, const AccessNode *> whereTempsToResult;
496496

497+
// Map temporary tensorVars to a list of size expressions for each mode
497498
std::map<TensorVar, std::vector<ir::Expr>> temporarySizeMap;
499+
500+
// List that contains all temporary tensorVars
498501
std::vector<TensorVar> temporaries;
499502

500503
bool captureNextLocatePos = false;

0 commit comments

Comments
 (0)