forked from OSchip/llvm-project
[mlir][bufferization] Clean up imports and code comments
Differential Revision: https://reviews.llvm.org/D126427
This commit is contained in:
parent
80ab16d0ed
commit
52698a33d0
|
@ -9,20 +9,13 @@
|
||||||
#ifndef MLIR_DIALECT_BUFFERIZATION_IR_BUFFERIZABLEOPINTERFACE_H_
|
#ifndef MLIR_DIALECT_BUFFERIZATION_IR_BUFFERIZABLEOPINTERFACE_H_
|
||||||
#define MLIR_DIALECT_BUFFERIZATION_IR_BUFFERIZABLEOPINTERFACE_H_
|
#define MLIR_DIALECT_BUFFERIZATION_IR_BUFFERIZABLEOPINTERFACE_H_
|
||||||
|
|
||||||
#include <utility>
|
|
||||||
|
|
||||||
#include "mlir/IR/BlockAndValueMapping.h"
|
|
||||||
#include "mlir/IR/Builders.h"
|
|
||||||
#include "mlir/IR/BuiltinOps.h"
|
|
||||||
#include "mlir/IR/BuiltinTypes.h"
|
|
||||||
#include "mlir/IR/Operation.h"
|
#include "mlir/IR/Operation.h"
|
||||||
#include "mlir/IR/PatternMatch.h"
|
#include "mlir/IR/PatternMatch.h"
|
||||||
#include "mlir/Support/LLVM.h"
|
#include "mlir/Support/LLVM.h"
|
||||||
#include "llvm/ADT/SetVector.h"
|
#include "llvm/ADT/SetVector.h"
|
||||||
|
|
||||||
namespace mlir {
|
namespace mlir {
|
||||||
class BlockAndValueMapping;
|
class OpBuilder;
|
||||||
class DominanceInfo;
|
|
||||||
|
|
||||||
namespace bufferization {
|
namespace bufferization {
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
//===- Bufferize.h - Bufferization utilities --------------------*- C++ -*-===//
|
//===- Bufferize.h - Bufferization Utilities --------------------*- C++ -*-===//
|
||||||
//
|
//
|
||||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||||
// See https://llvm.org/LICENSE.txt for license information.
|
// See https://llvm.org/LICENSE.txt for license information.
|
||||||
|
@ -9,14 +9,10 @@
|
||||||
// We use the term "bufferize" to mean conversion from tensor types to
|
// We use the term "bufferize" to mean conversion from tensor types to
|
||||||
// memref types.
|
// memref types.
|
||||||
//
|
//
|
||||||
// Generally speaking, for each op that operates on tensor types, a conversion
|
// Generally speaking, for each op that operates on tensor types, the
|
||||||
// pattern needs to be written. The infrastructure in this file assists in
|
// `BufferizableOpInterface` needs to be implemented. This file contains the
|
||||||
// defining these conversion patterns in a composable way.
|
// bufferization driver that is responsible for bufferizing the ops in the right
|
||||||
//
|
// order, etc.
|
||||||
// Bufferization conversion patterns should generally use the ordinary
|
|
||||||
// conversion pattern classes (e.g. OpConversionPattern). A TypeConverter
|
|
||||||
// (accessible with getTypeConverter()) is available if needed for converting
|
|
||||||
// types.
|
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
#define MLIR_DIALECT_BUFFERIZATION_TRANSFORMS_ONESHOTANALYSIS_H
|
#define MLIR_DIALECT_BUFFERIZATION_TRANSFORMS_ONESHOTANALYSIS_H
|
||||||
|
|
||||||
#include "mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h"
|
#include "mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h"
|
||||||
#include "mlir/IR/BuiltinOps.h"
|
|
||||||
#include "llvm/ADT/EquivalenceClasses.h"
|
#include "llvm/ADT/EquivalenceClasses.h"
|
||||||
|
|
||||||
namespace mlir {
|
namespace mlir {
|
||||||
|
|
Loading…
Reference in New Issue