[TOOLS] Enable per-pass IR printing in triton-translate (#2449)

Enabling per-pass IR printing such as `--mlir-print-ir-after-all`
This commit is contained in:
Hongtao Yu
2023-10-05 13:23:46 -07:00
committed by GitHub
parent 38f184b7cf
commit eed4559df2
2 changed files with 32 additions and 0 deletions

View File

@@ -106,6 +106,7 @@ LogicalResult tritonTranslateMain(int argc, char **argv,
registerAsmPrinterCLOptions();
registerMLIRContextCLOptions();
registerPassManagerCLOptions();
llvm::cl::ParseCommandLineOptions(argc, argv, toolName);
mlir::MLIRContext context;