This adds a test to check the formatting of the dot file produced when using -view-sched-dags.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/Other/print-dot-dag.ll | ||
---|---|---|
1 | The DDGPrinter uses the llvm::WriteGraph interface directly and passes in a filename. The SelectionDAGPrinter and ScheduleDAGPrinter use the llvm::ViewGraph interface which is meant for opening a pop-up window to display the graph. When using ViewGraph the .dot file is written into a temp file, and you cannot specify the temp file name. Also note that the ScheduleDAG and SelectionDAG printers only work in debug builds. |
llvm/test/Other/print-dot-dag.ll | ||
---|---|---|
1 | Oh, thank you for the clarification. Now I understand why test case is not written for this yet. |
@bmahjour wanted to double-check, do I need to add another cl::opt option that lets me specify the filename? or there is already a way to write the CHECK line (like you did in D93949) in this test case as the filename seems non-deterministic.