-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eltwise interface and builders (#214)
Fixes #110
- Loading branch information
1 parent
f2c8b0b
commit 2574010
Showing
6 changed files
with
80 additions
and
9 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,22 @@ | ||
// SPDX-FileCopyrightText: (c) 2024 Tenstorrent AI ULC | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#ifndef TTMLIR_DIALECT_TTIR_IR_TTIROPSINTERFACES_H | ||
#define TTMLIR_DIALECT_TTIR_IR_TTIROPSINTERFACES_H | ||
|
||
#include "ttmlir/Dialect/TTIR/IR/TTIR.h" | ||
|
||
namespace mlir { | ||
namespace tt { | ||
namespace ttir { | ||
namespace detail { | ||
mlir::LogicalResult verifyElementwiseOp(mlir::Operation *op); | ||
} // namespace detail | ||
} // namespace ttir | ||
} // namespace tt | ||
} // namespace mlir | ||
|
||
#include "ttmlir/Dialect/TTIR/IR/TTIROpsInterfaces.h.inc" | ||
|
||
#endif |
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,16 @@ | ||
// SPDX-FileCopyrightText: (c) 2024 Tenstorrent AI ULC | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#include "ttmlir/Dialect/TTIR/IR/TTIROpsInterfaces.h" | ||
#include "ttmlir/Dialect/TTIR/IR/TTIR.h" | ||
|
||
#include <mlir/Support/LogicalResult.h> | ||
|
||
mlir::LogicalResult | ||
mlir::tt::ttir::detail::verifyElementwiseOp(mlir::Operation *op) { | ||
// Currently, elementwise trait already performs the basic verification. | ||
// Let this be a placeholder for future extensions. | ||
|
||
return success(); | ||
} |