Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aie.device to transaction ops as mlir pass #4

Closed
wants to merge 9 commits into from
Closed

Conversation

fifield
Copy link
Owner

@fifield fifield commented Sep 9, 2024

No description provided.

Copy link

github-actions bot commented Sep 9, 2024

Coverage Report

Created: 2024-09-11 04:42

Click here for information about interpreting this report.

FilenameFunction CoverageLine CoverageRegion CoverageBranch Coverage
include/aie/Targets/AIERT.h 0.00% 0.00% 0.00% -
lib/Conversion/AIEToConfiguration/AIEToConfiguration.cpp 16.67% 1.28% 0.33% 0.00%
lib/Dialect/AIEX/IR/AIEXDialect.cpp 100.00% 86.00% 88.57% 79.57%
lib/Targets/AIERT.cpp 78.95% 50.70% 36.92% 20.78%
Totals 81.36% 53.93% 38.64% 27.39%
Generated by llvm-cov -- llvm version 14.0.0

@fifield fifield force-pushed the aiertx branch 2 times, most recently from 208ce00 to 3135638 Compare September 10, 2024 19:33
Comment on lines +43 to +44
AIETranslateControlPacketsToUI32Vec(mlir::ModuleOp module, llvm::raw_ostream &output,
llvm::StringRef sequenceName = "");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
AIETranslateControlPacketsToUI32Vec(mlir::ModuleOp module, llvm::raw_ostream &output,
llvm::StringRef sequenceName = "");
AIETranslateControlPacketsToUI32Vec(mlir::ModuleOp module,
llvm::raw_ostream &output,
llvm::StringRef sequenceName = "");

mlir::LogicalResult
AIETranslateControlPacketsToUI32Vec(mlir::ModuleOp, std::vector<uint32_t> &);
AIETranslateControlPacketsToUI32Vec(mlir::ModuleOp, std::vector<uint32_t> &,
llvm::StringRef sequenceName = "");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
llvm::StringRef sequenceName = "");
llvm::StringRef sequenceName = "");

Comment on lines +257 to +260
LogicalResult
xilinx::AIE::AIETranslateControlPacketsToUI32Vec(ModuleOp module,
std::vector<uint32_t> &instructions,
StringRef sequenceName) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
LogicalResult
xilinx::AIE::AIETranslateControlPacketsToUI32Vec(ModuleOp module,
std::vector<uint32_t> &instructions,
StringRef sequenceName) {
LogicalResult xilinx::AIE::AIETranslateControlPacketsToUI32Vec(
ModuleOp module, std::vector<uint32_t> &instructions,
StringRef sequenceName) {

Comment on lines 300 to +302
LogicalResult
xilinx::AIE::AIETranslateControlPacketsToUI32Vec(ModuleOp module,
raw_ostream &output) {
xilinx::AIE::AIETranslateControlPacketsToUI32Vec(ModuleOp module, raw_ostream &output,
StringRef sequenceName) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
LogicalResult
xilinx::AIE::AIETranslateControlPacketsToUI32Vec(ModuleOp module,
raw_ostream &output) {
xilinx::AIE::AIETranslateControlPacketsToUI32Vec(ModuleOp module, raw_ostream &output,
StringRef sequenceName) {
LogicalResult xilinx::AIE::AIETranslateControlPacketsToUI32Vec(
ModuleOp module, raw_ostream &output, StringRef sequenceName) {

std::vector<uint32_t> instructions;
auto r = AIETranslateControlPacketsToUI32Vec(module, instructions);
auto r = AIETranslateControlPacketsToUI32Vec(module, instructions, sequenceName);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
auto r = AIETranslateControlPacketsToUI32Vec(module, instructions, sequenceName);
auto r =
AIETranslateControlPacketsToUI32Vec(module, instructions, sequenceName);

},
registerDialects);
TranslateFromMLIRRegistration registrationCtrlPkt(
"aie-ctrlpkt-to-bin", "Translate aiex.control_packet ops to binary",
[](ModuleOp module, raw_ostream &output) {
if (outputBinary == true) {
std::vector<uint32_t> instructions;
auto r = AIETranslateControlPacketsToUI32Vec(module, instructions);
auto r = AIETranslateControlPacketsToUI32Vec(module, instructions, sequenceName);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
auto r = AIETranslateControlPacketsToUI32Vec(module, instructions, sequenceName);
auto r = AIETranslateControlPacketsToUI32Vec(module, instructions,
sequenceName);

Comment on lines +188 to +190
static LogicalResult
generateTxn(AIERTControl &ctl, const StringRef workDirPath, DeviceOp &targetOp,
bool aieSim, bool enableElfs, bool enableInit, bool enableCores) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
static LogicalResult
generateTxn(AIERTControl &ctl, const StringRef workDirPath, DeviceOp &targetOp,
bool aieSim, bool enableElfs, bool enableInit, bool enableCores) {
static LogicalResult generateTxn(AIERTControl &ctl, const StringRef workDirPath,
DeviceOp &targetOp, bool aieSim,
bool enableElfs, bool enableInit,
bool enableCores) {

Comment on lines +226 to +227
auto result =
generateTxn(ctl, clElfDir, device, aieSim, true, true, true);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[clang-format] reported by reviewdog 🐶

Suggested change
auto result =
generateTxn(ctl, clElfDir, device, aieSim, true, true, true);
auto result = generateTxn(ctl, clElfDir, device, aieSim, true, true, true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants