Changeset View
Changeset View
Standalone View
Standalone View
mlir/test/lib/Transforms/TestBufferPlacement.cpp
Show All 12 Lines | |||||
#include "TestDialect.h" | #include "TestDialect.h" | ||||
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h" | #include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h" | ||||
#include "mlir/Dialect/Linalg/IR/LinalgOps.h" | #include "mlir/Dialect/Linalg/IR/LinalgOps.h" | ||||
#include "mlir/IR/Function.h" | #include "mlir/IR/Function.h" | ||||
#include "mlir/IR/Operation.h" | #include "mlir/IR/Operation.h" | ||||
#include "mlir/Pass/Pass.h" | #include "mlir/Pass/Pass.h" | ||||
#include "mlir/Pass/PassManager.h" | #include "mlir/Pass/PassManager.h" | ||||
#include "mlir/Transforms/BufferPlacement.h" | #include "mlir/Transforms/Bufferize.h" | ||||
using namespace mlir; | using namespace mlir; | ||||
namespace { | namespace { | ||||
/// This pass tests the computeAllocPosition helper method and buffer assignment | /// This pass tests the computeAllocPosition helper method and buffer assignment | ||||
/// operation converters. Furthermore, this pass converts linalg operations on | /// operation converters. Furthermore, this pass converts linalg operations on | ||||
/// tensors to linalg operations on buffers to prepare them for the | /// tensors to linalg operations on buffers to prepare them for the | ||||
/// BufferPlacement pass that can be applied afterwards. | /// BufferPlacement pass that can be applied afterwards. | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |