forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[mlir][Func] Delete
DecomposeCallGraphTypes.cpp
(llvm#117424)"
This reverts commit 7267c85. Signed-off-by: nithinsubbiah <[email protected]>
- Loading branch information
1 parent
f82c4b1
commit 6038573
Showing
5 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
mlir/include/mlir/Dialect/Func/Transforms/DecomposeCallGraphTypes.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
//===- DecomposeCallGraphTypes.h - CG type decompositions -------*- C++ -*-===// | ||
// | ||
// 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 | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Conversion patterns for decomposing types along call graph edges. That is, | ||
// decomposing types for calls, returns, and function args. | ||
// | ||
// TODO: Make this handle dialect-defined functions, calls, and returns. | ||
// Currently, the generic interfaces aren't sophisticated enough for the | ||
// types of mutations that we are doing here. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef MLIR_DIALECT_FUNC_TRANSFORMS_DECOMPOSECALLGRAPHTYPES_H | ||
#define MLIR_DIALECT_FUNC_TRANSFORMS_DECOMPOSECALLGRAPHTYPES_H | ||
|
||
#include "mlir/Transforms/DialectConversion.h" | ||
#include <optional> | ||
|
||
namespace mlir { | ||
|
||
/// Populates the patterns needed to drive the conversion process for | ||
/// decomposing call graph types with the given `TypeConverter`. | ||
void populateDecomposeCallGraphTypesPatterns(MLIRContext *context, | ||
const TypeConverter &typeConverter, | ||
RewritePatternSet &patterns); | ||
|
||
} // namespace mlir | ||
|
||
#endif // MLIR_DIALECT_FUNC_TRANSFORMS_DECOMPOSECALLGRAPHTYPES_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters