MLIR
22.0.0git
lib
Dialect
Shard
Transforms
TransformsDetail.h
Go to the documentation of this file.
1
//===- TransformsDetail.h - -------------------------------------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#ifndef MLIR_DIALECT_SHARD_TRANSFORMS_TRANSFORMSDETAIL_H
10
#define MLIR_DIALECT_SHARD_TRANSFORMS_TRANSFORMSDETAIL_H
11
12
#include "
mlir/IR/PatternMatch.h
"
13
#include "
mlir/IR/SymbolTable.h
"
14
15
namespace
mlir
{
16
namespace
shard
{
17
18
template
<
typename
Op>
19
struct
OpRewritePatternWithSymbolTableCollection
:
OpRewritePattern
<Op> {
20
template
<
typename
... OpRewritePatternArgs>
21
OpRewritePatternWithSymbolTableCollection
(
22
SymbolTableCollection
&
symbolTableCollection
,
23
OpRewritePatternArgs &&...opRewritePatternArgs)
24
:
OpRewritePattern
<
Op
>(
25
std::forward<OpRewritePatternArgs...>(opRewritePatternArgs)...),
26
symbolTableCollection
(
symbolTableCollection
) {}
27
28
protected
:
29
SymbolTableCollection
&
symbolTableCollection
;
30
};
31
32
}
// namespace shard
33
}
// namespace mlir
34
35
#endif
// MLIR_DIALECT_SHARD_TRANSFORMS_TRANSFORMSDETAIL_H
PatternMatch.h
SymbolTable.h
mlir::Op
This provides public APIs that all operations should have.
Definition
OpDefinition.h:1673
mlir::SymbolTableCollection
This class represents a collection of SymbolTables.
Definition
SymbolTable.h:283
mlir::shard
Definition
ShardingInterface.h:23
mlir
Include the generated interface declarations.
Definition
AliasAnalysis.h:19
mlir::OpRewritePattern< Op >::OpRewritePattern
OpRewritePattern(MLIRContext *context, PatternBenefit benefit=1, ArrayRef< StringRef > generatedNames={})
Definition
PatternMatch.h:322
mlir::shard::OpRewritePatternWithSymbolTableCollection::OpRewritePatternWithSymbolTableCollection
OpRewritePatternWithSymbolTableCollection(SymbolTableCollection &symbolTableCollection, OpRewritePatternArgs &&...opRewritePatternArgs)
Definition
TransformsDetail.h:21
mlir::shard::OpRewritePatternWithSymbolTableCollection::symbolTableCollection
SymbolTableCollection & symbolTableCollection
Definition
TransformsDetail.h:29
Generated on
for MLIR by
1.14.0