forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mlir][linalg] Create a dedicated target for LinalgRelayoutInterface
For context and rationale, see: * llvm#127533
- Loading branch information
1 parent
0d2722c
commit ead6574
Showing
6 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
mlir/include/mlir/Dialect/Linalg/IR/LinalgRelayoutInterface.td
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,25 @@ | ||
//===- LinalgInterfaces.td - Linalg Interfaces Declaration -*- tablegen -*-===// | ||
// | ||
// 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 LINALG_IR_LINALGRELAYOUTINTERFACE | ||
#define LINALG_IR_LINALGRELAYOUTINTERFACE | ||
|
||
include "mlir/Interfaces/DestinationStyleOpInterface.td" | ||
include "mlir/IR/OpBase.td" | ||
|
||
def LinalgRelayoutOpInterface : OpInterface<"RelayoutOpInterface"> { | ||
let description = [{ | ||
A Linalg relayout-op is either linalg.pack or linalg.unpack. | ||
|
||
While we could extend this interface with methods from Linalg_RelayoutOp, | ||
this is currently not needed and left as a TODO. | ||
}]; | ||
let cppNamespace = "::mlir::linalg"; | ||
} | ||
|
||
#endif // LINALG_IR_LINALGRELAYOUTINTERFACE |
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