/
ModuleBufferization.h
43 lines (32 loc) · 1.36 KB
/
ModuleBufferization.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//===- ModuleBufferization.h - Bufferization across Func. Boundaries ------===//
//
// 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
//
//===----------------------------------------------------------------------===//
#ifndef MLIR_DIALECT_LINALG_COMPREHENSIVEBUFFERIZE_MODULEBUFFERIZATION_H
#define MLIR_DIALECT_LINALG_COMPREHENSIVEBUFFERIZE_MODULEBUFFERIZATION_H
#include <memory>
namespace mlir {
class DialectRegistry;
struct LogicalResult;
class ModuleOp;
namespace bufferization {
struct AnalysisBufferizationOptions;
} // namespace bufferization
namespace linalg {
namespace comprehensive_bufferize {
/// Run Module Bufferization on the given module. Performs a simple function
/// call analysis to determine which function arguments are inplaceable. Then
/// analyzes and bufferizes FuncOps one-by-one with One-Shot Bufferize.
LogicalResult
runModuleBufferize(ModuleOp moduleOp,
bufferization::AnalysisBufferizationOptions options);
namespace std_ext {
void registerModuleBufferizationExternalModels(DialectRegistry ®istry);
} // namespace std_ext
} // namespace comprehensive_bufferize
} // namespace linalg
} // namespace mlir
#endif // MLIR_DIALECT_LINALG_COMPREHENSIVEBUFFERIZE_MODULEBUFFERIZATION_H