Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clang-tidy findings #1766

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions enzyme/Enzyme/MLIR/Passes/AddToOpToIndexAndLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ struct AddToOpToIndexAndLoadPass
// auto load = cacheBuilder.create<AffineLoadOp>(loc, inputs[i], map[i],
// indices); auto store = cacheBuilder.create<AffineStoreOp>(loc, load,
// inputs[i], map[i], indices);
ValueRange mapAppliedIndices =
SmallVector<Value> mapAppliedIndices =
applyAffineMap(map[num_ins + i], indices, cacheBuilder, loc);
auto load = cacheBuilder.create<memref::LoadOp>(loc, outs[i],
mapAppliedIndices);
Expand All @@ -96,7 +96,7 @@ struct AddToOpToIndexAndLoadPass
}

for (int i = 0; i < retargs.size(); i++) {
ValueRange mapAppliedIndices =
SmallVector<Value> mapAppliedIndices =
applyAffineMap(map[num_ins + i], indices, cacheBuilder, loc);
auto load = cacheBuilder.create<memref::LoadOp>(loc, outs[i],
mapAppliedIndices);
Expand Down
7 changes: 5 additions & 2 deletions enzyme/Enzyme/MLIR/Passes/Passes.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,15 @@ class MemRefDialect;

namespace func {
class FuncDialect;
}
} // end namespace func

namespace affine {
class AffineDialect;
} // end namespace affine

namespace LLVM {
class LLVMDialect;
}
} // end namespace LLVM

#define GEN_PASS_REGISTRATION
#include "Passes/Passes.h.inc"
Expand Down
Loading