Skip to content

Commit

Permalink
add some silly debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
vwellsTT committed Dec 26, 2024
1 parent 6e0fdaa commit ee397ca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/Dialect/TTNN/Transforms/Passes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class TTNNDeallocate : public impl::TTNNDeallocateBase<TTNNDeallocate> {
}

void runOnOperation() final {
llvm::outs() << "s TTNNDeallocate::rOO\n";
ModuleOp module = getOperation();
IRRewriter rewriter(&getContext());

Expand Down Expand Up @@ -115,6 +116,7 @@ class TTNNDeallocate : public impl::TTNNDeallocateBase<TTNNDeallocate> {
}
});
});
llvm::outs() << "e TTNNDeallocate::rOO\n";
}
};

Expand All @@ -126,6 +128,8 @@ class TTNNDecomposeLayouts
TTNNDecomposeLayouts>::TTNNDecomposeLayoutsBase;

void runOnOperation() final {
llvm::outs() << "s TTNNDecomposeLayouts::rOO\n";

ModuleOp module = getOperation();
IRRewriter rewriter(&getContext());
llvm::SmallVector<Operation *> opsToReplace;
Expand All @@ -147,6 +151,7 @@ class TTNNDecomposeLayouts
rewriter);
rewriter.eraseOp(op);
}
llvm::outs() << "e TTNNDecomposeLayouts::rOO\n";
}

private:
Expand Down Expand Up @@ -906,6 +911,8 @@ class TTNNCreateInputGenerators
TTNNCreateInputGenerators>::TTNNCreateInputGeneratorsBase;

void runOnOperation() final {
llvm::outs() << "s TTNNCreateInputGenerators::rOO\n";

ModuleOp module = getOperation();
IRRewriter rewriter(&getContext());

Expand Down Expand Up @@ -1074,6 +1081,8 @@ class TTNNCreateInputGenerators
rewriter.getI32IntegerAttr(0));
rewriter.create<func::ReturnOp>(mainFuncOp->getLoc(), constantZero);
}

llvm::outs() << "e TTNNCreateInputGenerators::rOO\n";
}
};

Expand All @@ -1086,6 +1095,8 @@ class TTNNModifySignaturesForDylib
TTNNModifySignaturesForDylib>::TTNNModifySignaturesForDylibBase;

void runOnOperation() final {
llvm::outs() << "s TTNNModifySignaturesForDylib::rOO\n";

ModuleOp module = getOperation();
IRRewriter rewriter(&getContext());

Expand Down Expand Up @@ -1166,6 +1177,7 @@ class TTNNModifySignaturesForDylib
//
entryBlock.eraseArguments(1, originalFuncType.getInputs().size());
}
llvm::outs() << "e TTNNModifySignaturesForDylib::rOO\n";
}
};

Expand Down
1 change: 1 addition & 0 deletions lib/Dialect/TTNN/Transforms/TTNNLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ class TTNNLayout : public impl::TTNNLayoutBase<TTNNLayout> {
signalPassFailure();
return;
}
llvm::outs() << "e TTNNLayout::rOO\n";
}
}

Expand Down

0 comments on commit ee397ca

Please sign in to comment.