Skip to content

Commit

Permalink
[mlir] Rename BufferPlacement.h to Bufferize.h
Browse files Browse the repository at this point in the history
  • Loading branch information
silvasean committed Oct 10, 2020
1 parent ea1f497 commit a2b6c75
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
//===- BufferPlacement.h - Buffer Assignment Utilities ---------*- C++ -*-===//
//===- Bufferize.h - Bufferization utilities --------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This header file defines buffer assignment helper methods to compute correct
// and valid positions for placing Alloc and Dealloc operations.
// We use the term "bufferize" to mean conversion from tensor types to
// memref types.
//
// Generally speaking, for each op that operates on tensor types, a conversion
// pattern needs to be written. The infrastructure in this file assists in
// defining these conversion patterns in a composable way.
//
//===----------------------------------------------------------------------===//

#ifndef MLIR_TRANSFORMS_BUFFERPLACEMENT_H
#define MLIR_TRANSFORMS_BUFFERPLACEMENT_H
#ifndef MLIR_TRANSFORMS_BUFFERIZE_H
#define MLIR_TRANSFORMS_BUFFERIZE_H

#include "mlir/Analysis/Liveness.h"
#include "mlir/Dialect/StandardOps/IR/Ops.h"
Expand Down Expand Up @@ -256,4 +260,4 @@ static void populateWithBufferAssignmentOpConversionPatterns(
}
} // end namespace mlir

#endif // MLIR_TRANSFORMS_BUFFERPLACEMENT_H
#endif // MLIR_TRANSFORMS_BUFFERIZE_H
2 changes: 1 addition & 1 deletion mlir/lib/Dialect/Linalg/Transforms/TensorsToBuffers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "mlir/IR/Function.h"
#include "mlir/IR/Operation.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Transforms/BufferPlacement.h"
#include "mlir/Transforms/Bufferize.h"

namespace {

Expand Down
2 changes: 1 addition & 1 deletion mlir/lib/Dialect/Shape/Transforms/ShapeTypeConversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "mlir/IR/Operation.h"
#include "mlir/IR/StandardTypes.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Transforms/BufferPlacement.h"
#include "mlir/Transforms/Bufferize.h"

using namespace mlir;
using namespace mlir::shape;
Expand Down
2 changes: 1 addition & 1 deletion mlir/lib/Transforms/BufferPlacement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
//
//===----------------------------------------------------------------------===//

#include "mlir/Transforms/BufferPlacement.h"
#include "PassDetail.h"
#include "mlir/Dialect/Linalg/IR/LinalgOps.h"
#include "mlir/IR/Operation.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Transforms/Bufferize.h"
#include "mlir/Transforms/Passes.h"
#include "llvm/ADT/SetOperations.h"

Expand Down
2 changes: 1 addition & 1 deletion mlir/test/lib/Transforms/TestBufferPlacement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "mlir/IR/Operation.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Pass/PassManager.h"
#include "mlir/Transforms/BufferPlacement.h"
#include "mlir/Transforms/Bufferize.h"

using namespace mlir;

Expand Down

0 comments on commit a2b6c75

Please sign in to comment.