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

Rm txn xlate #6

Closed
wants to merge 7 commits into from
Closed

Rm txn xlate #6

wants to merge 7 commits into from

Conversation

fifield
Copy link
Owner

@fifield fifield commented Sep 11, 2024

No description provided.

@fifield fifield closed this Sep 11, 2024
createConvertAIEToTransactionPass();

std::optional<mlir::ModuleOp>
convertTransactionBinaryToMLIR(mlir::MLIRContext *ctx, std::vector<uint8_t> &binary);

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
convertTransactionBinaryToMLIR(mlir::MLIRContext *ctx, std::vector<uint8_t> &binary);
convertTransactionBinaryToMLIR(mlir::MLIRContext *ctx,
std::vector<uint8_t> &binary);

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 +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 +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);

Copy link

Coverage Report

Created: 2024-09-11 06:06

Click here for information about interpreting this report.

FilenameFunction CoverageLine CoverageRegion CoverageBranch Coverage
Conversion/AIEToConfiguration/AIEToConfiguration.cpp 75.00% 60.23% 47.77% 26.34%
Dialect/AIEX/IR/AIEXDialect.cpp 100.00% 86.00% 88.57% 79.57%
Targets/AIERT.cpp 78.95% 50.80% 36.92% 20.78%
Totals 89.83% 65.90% 46.21% 31.72%
Generated by llvm-cov -- llvm version 14.0.0

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.

1 participant