Skip to content

Commit 3e1283e

Browse files
committed
fix name
1 parent 2a28069 commit 3e1283e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/transform/legalize_safe_memory_access.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ class LeafForFinder : public StmtVisitor {
5858
// log a warning or handle accordingly.
5959
struct GlobalMemChecker : public StmtExprVisitor {
6060

61-
GlobalMemChecker(arith::Analyzer *analyzer, bool recursive_collect_conds) : analyzer_(analyzer), recursive_collect_conds_(recursive_collect_conds) {}
61+
GlobalMemChecker(arith::Analyzer *analyzer, bool recursively_collect_conds) : analyzer_(analyzer), recursively_collect_conds_(recursively_collect_conds) {}
6262
void VisitExpr_(const BufferLoadNode *op) final {
6363
// Check if the buffer is in global scope
6464
if (IsGlobalBuffer(op->buffer)) {
6565
CheckBufferIndices(op->buffer, op->indices, /*is_load=*/true);
6666
}
67-
if (recursive_collect_conds_) {
67+
if (recursively_collect_conds_) {
6868
StmtExprVisitor::VisitExpr_(op);
6969
}
7070
}
@@ -74,7 +74,7 @@ struct GlobalMemChecker : public StmtExprVisitor {
7474
if (IsGlobalBuffer(op->buffer)) {
7575
CheckBufferIndices(op->buffer, op->indices, /*is_load=*/false);
7676
}
77-
if (recursive_collect_conds_) {
77+
if (recursively_collect_conds_) {
7878
StmtExprVisitor::VisitStmt_(op);
7979
}
8080
}
@@ -138,7 +138,7 @@ struct GlobalMemChecker : public StmtExprVisitor {
138138
private:
139139
Array<PrimExpr> _conditions;
140140
arith::Analyzer *analyzer_;
141-
bool recursive_collect_conds_;
141+
bool recursively_collect_conds_;
142142
};
143143

144144
class SafeMemorysRewriter : public StmtExprMutator {
@@ -156,7 +156,7 @@ class SafeMemorysRewriter : public StmtExprMutator {
156156

157157
// For Load/Store, we only check the current node, not its children.
158158
// Since rewriter will recursively visit children.
159-
GlobalMemChecker checker(analyzer_, /*recursive_collect_conds=*/false);
159+
GlobalMemChecker checker(analyzer_, /*recursively_collect_conds=*/false);
160160
checker(load);
161161
Array<PrimExpr> conditions = checker.GetConditions();
162162

@@ -178,7 +178,7 @@ class SafeMemorysRewriter : public StmtExprMutator {
178178
// Check if the buffer is in global scope
179179
auto store = Downcast<BufferStore>(StmtExprMutator::VisitStmt_(op));
180180

181-
GlobalMemChecker checker(analyzer_, /*recursive_collect_conds=*/false);
181+
GlobalMemChecker checker(analyzer_, /*recursively_collect_conds=*/false);
182182
checker(store);
183183
Array<PrimExpr> conditions = checker.GetConditions();
184184

@@ -254,7 +254,7 @@ class SafeMemorysRewriter : public StmtExprMutator {
254254
// For CallExtern, we recursively collect conditions from all children.
255255
// Since we cannot rewrite any BufferLoad in its children (Rewrite will cause potential Nullptr
256256
// exception).
257-
GlobalMemChecker checker(analyzer_, /*recursive_collect_conds=*/true);
257+
GlobalMemChecker checker(analyzer_, /*recursively_collect_conds=*/true);
258258
checker(call);
259259
Array<PrimExpr> conditions = checker.GetConditions();
260260

0 commit comments

Comments
 (0)