MLIR 22.0.0git
BubbleDownMemorySpaceCasts.h
Go to the documentation of this file.
1//===-- BubbleDownMemorySpaceCasts.h - Bubble down cast patterns ---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_TRANSFORMS_BUBBLEDOWNMEMORYSPACECASTS_H
10#define MLIR_TRANSFORMS_BUBBLEDOWNMEMORYSPACECASTS_H
11
12namespace mlir {
13class PatternBenefit;
15/// Collect a set of patterns to bubble-down memory-space cast operations.
17 PatternBenefit benefit);
18} // namespace mlir
19
20#endif // MLIR_TRANSFORMS_BUBBLEDOWNMEMORYSPACECASTS_H
This class represents the benefit of a pattern match in a unitless scheme that ranges from 0 (very li...
Include the generated interface declarations.
const FrozenRewritePatternSet & patterns
void populateBubbleDownMemorySpaceCastPatterns(RewritePatternSet &patterns, PatternBenefit benefit)
Collect a set of patterns to bubble-down memory-space cast operations.