-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
96 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#ifndef TRITON_OP_INTERFACES | ||
#define TRITON_OP_INTERFACES | ||
|
||
include "mlir/IR/OpBase.td" | ||
|
||
|
||
def TransposeOpInterface : OpInterface<"TransposeOpInterface"> { | ||
let description = [{ | ||
This interface is implemented by operations that perform a transpose. | ||
It provides methods to access common properties such as the order attribute and the source operand. | ||
}]; | ||
|
||
let cppNamespace = "::mlir"; | ||
|
||
let methods = [ | ||
InterfaceMethod< | ||
/*desc=*/[{ | ||
Get the source operand of the transposition. | ||
}], | ||
/*retType=*/"::mlir::Value", | ||
/*methodName=*/"getSrc", | ||
/*args=*/(ins)>, | ||
InterfaceMethod< | ||
/*desc=*/[{ | ||
Get the order of the transposition. | ||
}], | ||
/*retType=*/"::mlir::ArrayRef<int32_t>", | ||
/*methodName=*/"getOrder", | ||
/*args=*/(ins)> | ||
]; | ||
} | ||
|
||
|
||
#endif // TRITON_OP_INTERFACES |
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
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