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_
|
||||
#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/PatternMatch.h"
|
||||
#include "mlir/Support/LLVM.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
|
||||
namespace mlir {
|
||||
class BlockAndValueMapping;
|
||||
class DominanceInfo;
|
||||
class OpBuilder;
|
||||
|
||||
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.
|
||||
// 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
|
||||
// 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.
|
||||
//
|
||||
// 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.
|
||||
// Generally speaking, for each op that operates on tensor types, the
|
||||
// `BufferizableOpInterface` needs to be implemented. This file contains the
|
||||
// bufferization driver that is responsible for bufferizing the ops in the right
|
||||
// order, etc.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#define MLIR_DIALECT_BUFFERIZATION_TRANSFORMS_ONESHOTANALYSIS_H
|
||||
|
||||
#include "mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h"
|
||||
#include "mlir/IR/BuiltinOps.h"
|
||||
#include "llvm/ADT/EquivalenceClasses.h"
|
||||
|
||||
namespace mlir {
|
||||
|
|
Loading…
Reference in New Issue