This is an archive of the discontinued LLVM Phabricator instance.

[Support] On Windows, generate PDF files for graphs and open with associated viewer
ClosedPublic

Authored by Meinersbur on Aug 8 2015, 12:55 PM.

Details

Summary

Windows system rarely have good PostScript viewers installed, but PDF viewers are common. So for viewing graphs, generate PDF files and open with the associated PDF viewer using cmd.exe's start command.

Diff Detail

Event Timeline

Meinersbur updated this revision to Diff 31598.Aug 8 2015, 12:55 PM
Meinersbur retitled this revision from to [Support] On Windows, generate PDF files for graphs and open with associated viewer,.
Meinersbur updated this object.
Meinersbur added a reviewer: Bigcheese.
Meinersbur set the repository for this revision to rL LLVM.
Meinersbur added a subscriber: llvm-commits.
dwiberg added a subscriber: dwiberg.Aug 9 2015, 7:40 AM

I agree that my PDF viewer is better than my PS viewer so I like direction of the patch. Many variable- and type names however still refers to PostScript which I think should be fixed.

Meinersbur updated this revision to Diff 31621.Aug 9 2015, 9:08 AM
Meinersbur retitled this revision from [Support] On Windows, generate PDF files for graphs and open with associated viewer, to [Support] On Windows, generate PDF files for graphs and open with associated viewer.

Removed "PS" from identifiers
make start wait if wait==true

JakeVanAdrighem added inline comments.
lib/Support/GraphWriter.cpp
202

Shouldn't all PSViewer references be changed here?

Meinersbur updated this revision to Diff 31651.Aug 10 2015, 4:48 AM

Refactoring tool's rename did not rename within conditional compilation block of other system. Renamed manually.

Meinersbur marked an inline comment as done.Aug 10 2015, 4:50 AM

Change the prefix of the ViewerKind enum

aaron.ballman requested changes to this revision.Aug 17 2015, 11:13 AM
aaron.ballman added a reviewer: aaron.ballman.
aaron.ballman added a subscriber: aaron.ballman.

I think it's close to being ready; one minor nit still (sorry for not bringing it up sooner).

lib/Support/GraphWriter.cpp
241

I think this code block should be moved into the case VK_CmdStart block below.

This revision now requires changes to proceed.Aug 17 2015, 11:13 AM
Meinersbur edited edge metadata.

Move VK_CmdStart-specific case into switch

Note that this doesn't work properly without D11876.

Meinersbur marked an inline comment as done.Aug 17 2015, 11:42 AM
aaron.ballman accepted this revision.Aug 17 2015, 12:38 PM
aaron.ballman edited edge metadata.

LGTM!

This revision is now accepted and ready to land.Aug 17 2015, 12:38 PM

Thank you for reviewing. I'll wait for D11876 before committing.

Meinersbur closed this revision.Aug 18 2015, 5:18 AM