Skip to content

Commit 113f780

Browse files
committed
consistent naming
1 parent 36cad7e commit 113f780

File tree

6 files changed

+8
-13
lines changed

6 files changed

+8
-13
lines changed

mlir/include/mlir/Conversion/AffineToStandard/AffineToStandard.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace affine {
2424
class AffineForOp;
2525
} // namespace affine
2626

27-
#define GEN_PASS_DECL_LOWERAFFINE
27+
#define GEN_PASS_DECL_LOWERAFFINEPASS
2828
#include "mlir/Conversion/Passes.h.inc"
2929

3030
/// Collect a set of patterns to convert from the Affine dialect to the Standard
@@ -44,11 +44,6 @@ Value lowerAffineLowerBound(affine::AffineForOp op, OpBuilder &builder);
4444
/// standard arithmetic operations.
4545
Value lowerAffineUpperBound(affine::AffineForOp op, OpBuilder &builder);
4646

47-
/// Lowers affine control flow operations (ForStmt, IfStmt and AffineApplyOp)
48-
/// to equivalent lower-level constructs (flow of basic blocks and arithmetic
49-
/// primitives).
50-
std::unique_ptr<Pass> createLowerAffinePass();
51-
5247
} // namespace mlir
5348

5449
#endif // MLIR_CONVERSION_AFFINETOSTANDARD_AFFINETOSTANDARD_H

mlir/include/mlir/Conversion/Passes.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def ConvertToLLVMPass : Pass<"convert-to-llvm"> {
4242
// LowerAffine
4343
//===----------------------------------------------------------------------===//
4444

45-
def LowerAffine : Pass<"lower-affine"> {
45+
def LowerAffinePass : Pass<"lower-affine"> {
4646
let summary = "Lower Affine operations to a combination of Arith and SCF "
4747
"operations";
4848
let description = [{

mlir/lib/Conversion/AffineToStandard/AffineToStandard.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "mlir/Transforms/Passes.h"
2727

2828
namespace mlir {
29-
#define GEN_PASS_DEF_LOWERAFFINE
29+
#define GEN_PASS_DEF_LOWERAFFINEPASS
3030
#include "mlir/Conversion/Passes.h.inc"
3131
} // namespace mlir
3232

@@ -553,7 +553,7 @@ void mlir::populateAffineToVectorConversionPatterns(
553553
}
554554

555555
namespace {
556-
class LowerAffine : public impl::LowerAffineBase<LowerAffine> {
556+
class LowerAffine : public impl::LowerAffinePassBase<LowerAffine> {
557557
void runOnOperation() override {
558558
RewritePatternSet patterns(&getContext());
559559
populateAffineToStdConversionPatterns(patterns);

mlir/lib/Dialect/GPU/Pipelines/GPUToNVVMPipeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void buildCommonPassPipeline(
5959
nvvmTargetOptions.features = options.cubinFeatures;
6060
nvvmTargetOptions.optLevel = options.optLevel;
6161
pm.addPass(createGpuNVVMAttachTarget(nvvmTargetOptions));
62-
pm.addPass(createLowerAffine());
62+
pm.addPass(createLowerAffinePass());
6363
pm.addPass(createArithToLLVMConversionPass());
6464
ConvertIndexToLLVMPassOptions convertIndexToLLVMPassOpt;
6565
convertIndexToLLVMPassOpt.indexBitwidth = options.indexBitWidth;

mlir/lib/Dialect/SparseTensor/Pipelines/SparseTensorPipelines.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void mlir::sparse_tensor::buildSparsifier(OpPassManager &pm,
6868
pm.addNestedPass<func::FuncOp>(memref::createExpandReallocPass());
6969
pm.addNestedPass<func::FuncOp>(createSCFToControlFlowPass());
7070
pm.addPass(memref::createExpandStridedMetadataPass());
71-
pm.addPass(createLowerAffine());
71+
pm.addPass(createLowerAffinePass());
7272
pm.addPass(
7373
createConvertVectorToLLVMPass(options.convertVectorToLLVMOptions()));
7474
pm.addPass(createFinalizeMemRefToLLVMConversionPass());

mlir/test/lib/Dialect/LLVM/TestLowerToLLVM.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void buildTestLowerToLLVM(OpPassManager &pm,
5353
// Blanket-convert any remaining linalg ops to loops if any remain.
5454
pm.addNestedPass<func::FuncOp>(createConvertLinalgToLoopsPass());
5555
// Blanket-convert any remaining affine ops if any remain.
56-
pm.addPass(createLowerAffine());
56+
pm.addPass(createLowerAffinePass());
5757
// Convert SCF to CF (always needed).
5858
pm.addPass(createSCFToControlFlowPass());
5959
// Sprinkle some cleanups.
@@ -68,7 +68,7 @@ void buildTestLowerToLLVM(OpPassManager &pm,
6868
// Expand complicated MemRef operations before lowering them.
6969
pm.addPass(memref::createExpandStridedMetadataPass());
7070
// The expansion may create affine expressions. Get rid of them.
71-
pm.addPass(createLowerAffine());
71+
pm.addPass(createLowerAffinePass());
7272
// Convert MemRef to LLVM (always needed).
7373
pm.addPass(createFinalizeMemRefToLLVMConversionPass());
7474
// Convert Func to LLVM (always needed).

0 commit comments

Comments
 (0)