History log of /llvm-project/llvm/lib/Support/GraphWriter.cpp (Results 26 – 50 of 84)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-3.7.0, llvmorg-3.7.0-rc4, llvmorg-3.7.0-rc3
# c1c9f8a0 18-Aug-2015 Michael Kruse <llvm@meinersbur.de>

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

Summary: Windows system rarely have good PostScript viewers installed, but PDF viewers are common. So for viewing

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

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.

Reviewers: Bigcheese, aaron.ballman

Subscribers: aaron.ballman, JakeVanAdrighem, dwiberg, llvm-commits

Differential Revision: http://reviews.llvm.org/D11877

llvm-svn: 245290

show more ...


# c0a8414c 18-Aug-2015 Michael Kruse <llvm@meinersbur.de>

[Support] Always wait for GraphViz before opening the viewer

Summary:
When calling DisplayGraph and a PS viewer is chosen, two programs are executed: The GraphViz generator and the PostScript viewer

[Support] Always wait for GraphViz before opening the viewer

Summary:
When calling DisplayGraph and a PS viewer is chosen, two programs are executed: The GraphViz generator and the PostScript viewer. Always for the generator to finish to ensure that the .ps file is written before opening the viewer for that file. DisplayGraph's wait parameter refers to whether to wait until the user closes the viewer.

This happened on Windows and if none of the options to open the .dot file directly applies, also on Linux.

Reviewers: Bigcheese, chandlerc, aaron.ballman

Subscribers: dwiberg, aaron.ballman, llvm-commits

Differential Revision: http://reviews.llvm.org/D11876

llvm-svn: 245289

show more ...


Revision tags: studio-1.4, llvmorg-3.7.0-rc2, llvmorg-3.7.0-rc1
# 0912de32 02-Jul-2015 Charlie Turner <charlie.turner@arm.com>

[GraphWriter] Don't wait on xdg-open when not on Apple.

By default, the GraphWriter code assumes that the generic file open
program (`open` on Apple, `xdg-open` on other systems) can wait on the
for

[GraphWriter] Don't wait on xdg-open when not on Apple.

By default, the GraphWriter code assumes that the generic file open
program (`open` on Apple, `xdg-open` on other systems) can wait on the
forked proces to complete. When the fork ends, the code would delete
the temporary dot files created, and return.

On GNU/Linux, the xdg-open program does not have a "wait for your fork
to complete before dying" option. So the behaviour was that xdg-open
would launch a process, quickly die itself, and then the GraphWriter
code would think its OK to quickly delete all the temporary files.
Once the temporary files were deleted, the dot viewers would get very
upset, and often give you weird errors.

This change only waits on the generic open program on Apple platforms.
Elsewhere, we don't wait on the process, and hence we don't try and
clean up the temporary files.

llvm-svn: 241250

show more ...


Revision tags: llvmorg-3.6.2, llvmorg-3.6.2-rc1, llvmorg-3.6.1, llvmorg-3.6.1-rc1
# e376d16f 03-Apr-2015 Matthias Braun <matze@braunis.de>

[GraphWriter] Attempt to open .dot files with xdg-open/open first

Most desktop environments let the users specify his preferred application per
file type. On mac/linux we can use open/xdg-open for t

[GraphWriter] Attempt to open .dot files with xdg-open/open first

Most desktop environments let the users specify his preferred application per
file type. On mac/linux we can use open/xdg-open for that and should try this
first before starting a heuristic search for various programs.

Differential Revision: http://reviews.llvm.org/D6534

llvm-svn: 234031

show more ...


# 075759aa 30-Mar-2015 Yaron Keren <yaron.keren@gmail.com>

Remove more superfluous .str() and replace std::string concatenation with Twine.

Following r233392, http://llvm.org/viewvc/llvm-project?rev=233392&view=rev.

llvm-svn: 233555


# 16132e6f 23-Mar-2015 Benjamin Kramer <benny.kra@googlemail.com>

Purge unused includes throughout libSupport.

NFC.

llvm-svn: 232976


# 51f6096c 23-Mar-2015 Benjamin Kramer <benny.kra@googlemail.com>

Move private classes into anonymous namespaces

NFC.

llvm-svn: 232944


Revision tags: llvmorg-3.5.2, llvmorg-3.5.2-rc1, llvmorg-3.6.0, llvmorg-3.6.0-rc4, llvmorg-3.6.0-rc3, llvmorg-3.6.0-rc2, llvmorg-3.6.0-rc1, llvmorg-3.5.1, llvmorg-3.5.1-rc2, llvmorg-3.5.1-rc1
# d48829b9 07-Nov-2014 Michael J. Spencer <bigcheesegs@gmail.com>

Fix style.

llvm-svn: 221547


# f9074b5a 04-Nov-2014 Michael J. Spencer <bigcheesegs@gmail.com>

Use findProgramByName.

llvm-svn: 221221


Revision tags: llvmorg-3.5.0, llvmorg-3.5.0-rc4, llvmorg-3.5.0-rc3, llvmorg-3.5.0-rc2, llvmorg-3.5.0-rc1
# 3acea398 12-Jun-2014 Rafael Espindola <rafael.espindola@gmail.com>

Don't use 'using std::error_code' in include/llvm.

This should make sure that most new uses use the std prefix.

llvm-svn: 210835


# 74592724 04-Jun-2014 Alp Toker <alp@nuanti.com>

GraphWriter: try gv before xdg-open

Avoid changing behaviour for everyone who's used to the traditional ghostview
UI, especially since it knows how to stay in the foreground unlike xdg-open.

Amendm

GraphWriter: try gv before xdg-open

Avoid changing behaviour for everyone who's used to the traditional ghostview
UI, especially since it knows how to stay in the foreground unlike xdg-open.

Amendment to r210147.

llvm-svn: 210148

show more ...


# e3fbe2c7 04-Jun-2014 Alp Toker <alp@nuanti.com>

GraphWriter: support the XDG open utility

This runs a suitable viewer on Unix desktop environments specified by
Freedesktop.org (GNOME, KDE, Linux distributions etc.)

llvm-svn: 210147


# 1feec4b8 02-Jun-2014 Alp Toker <alp@nuanti.com>

Silence -Wreturn-type warning

llvm-svn: 210005


# 54b6ab0e 02-Jun-2014 Alp Toker <alp@nuanti.com>

GraphWriter: tweak the program fallback order

Amend r210001 to use the classic fallback order behaviour if the requested
graphing program isn't found.

llvm-svn: 210003


# 125be846 02-Jun-2014 Alp Toker <alp@nuanti.com>

GraphWriter: detect graph viewer programs at runtime

Replace the crufty build-time configure checks for program paths with
equivalent runtime logic.

This lets users install graphing tools as needed

GraphWriter: detect graph viewer programs at runtime

Replace the crufty build-time configure checks for program paths with
equivalent runtime logic.

This lets users install graphing tools as needed without having to reconfigure
and rebuild LLVM, while eliminating a long chain of inappropriate compile
dependencies that included GUI programs and the windowing system.

Additional features:

* Support the OS X 'open' command to view graphs generated by any of the
Graphviz utilities. This is an alternative to the Graphviz OS X UI which is
no longer available on Mountain Lion.

* Produce informative log output upon failure to indicate which programs can
be installed to view graphs.

Ping me if this doesn't work for your particular environment.

llvm-svn: 210001

show more ...


Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1, llvmorg-3.4.1, llvmorg-3.4.1-rc2, llvmorg-3.4.1-rc1
# c10719f5 07-Apr-2014 Craig Topper <craig.topper@gmail.com>

[C++11] Make use of 'nullptr' in the Support library.

llvm-svn: 205697


# 81e7fd01 10-Jan-2014 Rafael Espindola <rafael.espindola@gmail.com>

Use the simpler version of sys::fs::remove when possible.

llvm-svn: 198958


Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1
# 44fee4e0 01-Oct-2013 Rafael Espindola <rafael.espindola@gmail.com>

Remove several unused variables.

Patch by Alp Toker.

llvm-svn: 191757


Revision tags: llvmorg-3.3.1-rc1
# fe56cc67 08-Jul-2013 Matt Arsenault <Matthew.Arsenault@amd.com>

Find xdot or xdot.py.

Ubuntu installs this as xdot, so finding xdot.py would fail.

llvm-svn: 185860


# 155cf0f3 05-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com>

Use sys::fs::createTemporaryFile.

llvm-svn: 185719


# 3e3e0405 14-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com>

Don't use PathV1.h in GraphWriter.cpp.

llvm-svn: 183988


# 6a6f04a3 14-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com>

Convert a use of sys::Path::GetTemporaryDirectory.

llvm-svn: 183987


# 7c1023ad 13-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com>

Avoid using PathV1.h in Program.h.

llvm-svn: 183940


# 04fa5c17 13-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com>

Covert remaining graph viewers from sys::Path to std::string.

llvm-svn: 183921


# 48944e7a 13-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com>

Update code for other graph viewing programs too.

llvm-svn: 183920


1234