forked from Xilinx/mlir-aie
-
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.
- Loading branch information
Showing
10 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
include/aie/Conversion/AIEToTransaction/AIEToTransaction.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,28 @@ | ||
//===- AIEToTransaction.h ---------------------------------------*- C++ -*-===// | ||
// | ||
// This file is licensed 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 | ||
// | ||
// Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef AIE_CONVERSION_AIETOTRANSACTION_AIETOTRANSACTION_H | ||
#define AIE_CONVERSION_AIETOTRANSACTION_AIETOTRANSACTION_H | ||
|
||
#include "aie/Dialect/AIE/IR/AIEDialect.h" | ||
#include "aie/Dialect/AIEX/IR/AIEXDialect.h" | ||
|
||
#include "mlir/Pass/Pass.h" | ||
|
||
#include <memory> | ||
|
||
namespace xilinx::AIE { | ||
|
||
std::unique_ptr<mlir::OperationPass<xilinx::AIE::DeviceOp>> | ||
createConvertAIEToTransactionPass(); | ||
|
||
} // namespace xilinx::AIE | ||
|
||
#endif // AIE_CONVERSION_AIETOTRANSACTION_AIETOTRANSACTION_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
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,23 @@ | ||
|
||
#include "../PassDetail.h" | ||
|
||
#include "aie/Conversion/AIEToTransaction/AIEToTransaction.h" | ||
|
||
using namespace mlir; | ||
|
||
namespace { | ||
|
||
struct ConvertAIEToTransactionPass | ||
: ConvertAIEToTransactionBase<ConvertAIEToTransactionPass> { | ||
void runOnOperation() override { | ||
auto device = getOperation(); | ||
device.dump(); | ||
} | ||
}; | ||
|
||
} // end anonymous namespace | ||
|
||
std::unique_ptr<mlir::OperationPass<xilinx::AIE::DeviceOp>> | ||
xilinx::AIE::createConvertAIEToTransactionPass() { | ||
return std::make_unique<ConvertAIEToTransactionPass>(); | ||
} |
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,15 @@ | ||
add_mlir_conversion_library(MLIRAIEToTransaction | ||
AIEToTransaction.cpp | ||
|
||
ADDITIONAL_HEADER_DIRS | ||
$(CMAKE_CURRENT_SRC_DIR)/../../../../include/aie/Conversion/AIEToTransaction | ||
|
||
DEPENDS | ||
MLIRAIEConversionPassIncGen | ||
|
||
LINK_COMPONENTS | ||
Core | ||
|
||
LINK_LIBS PUBLIC | ||
AIERTX | ||
) |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
add_subdirectory(AIEVecToLLVM) | ||
add_subdirectory(AIEToTransaction) | ||
add_subdirectory(AIEVecToLLVM) |
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