History log of /llvm-project/llvm/lib/Support/Program.cpp (Results 26 – 38 of 38)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# ec1aacaf 31-May-2014 Peter Collingbourne <peter@pcc.me.uk>

Fix the behavior of ExecuteAndWait with a non-zero timeout.

llvm-svn: 209951


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, llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1
# d88b9832 01-Oct-2013 Tareq A. Siraj <tareq.a.siraj@intel.com>

Add non-blocking Wait() for launched processes

- New ProcessInfo class to encapsulate information about child processes.
- Generalized the Wait() to support non-blocking wait on child processes.
- E

Add non-blocking Wait() for launched processes

- New ProcessInfo class to encapsulate information about child processes.
- Generalized the Wait() to support non-blocking wait on child processes.
- ExecuteNoWait() now returns a ProcessInfo object with information about
the launched child. Users will be able to use this object to
perform non-blocking wait.
- ExecuteNoWait() now accepts an ExecutionFailed param that tells if execution
failed or not.

These changes will allow users to implement basic process parallel
tools.

Differential Revision: http://llvm-reviews.chandlerc.com/D1728

llvm-svn: 191763

show more ...


Revision tags: llvmorg-3.3.1-rc1
# b0a5c963 14-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com>

Replace use of PathV1.h in Program.cpp.

llvm-svn: 183996


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

Avoid using PathV1.h in Program.h.

llvm-svn: 183940


# 6828fe47 13-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com>

Add a version of sys::ExecuteAndWait that takes StringRefs.

llvm-svn: 183934


# 6e6a0f50 13-Jun-2013 Reid Kleckner <reid@kleckner.net>

[Support] Fix handle and memory leak for processes that are not waited for

Execute's Data parameter is now optional, so we won't allocate memory
for it on Windows and we'll close the process handle.

[Support] Fix handle and memory leak for processes that are not waited for

Execute's Data parameter is now optional, so we won't allocate memory
for it on Windows and we'll close the process handle.

The Unix code should probably do something similar to avoid accumulation
of zombie children that haven't been waited on.

Tested on Linux and Windows.

llvm-svn: 183906

show more ...


# 54e9bd22 13-Jun-2013 Aaron Ballman <aaron@aaronballman.com>

Zero-initializing variables; fixes a build breakage introduced in r183864.

llvm-svn: 183904


# cb2eca0f 12-Jun-2013 Rafael Espindola <rafael.espindola@gmail.com>

Remove the program class.

It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just
those two functions and make Execute and Wait implementations details.

llvm-svn: 183864


Revision tags: llvmorg-3.3.0, llvmorg-3.3.0-rc3, llvmorg-3.3.0-rc2, llvmorg-3.3.0-rc1
# 654190a1 26-Mar-2013 Chad Rosier <mcrosier@apple.com>

Add a boolean parameter to the ExecuteAndWait static function to indicated
if execution failed. ExecuteAndWait returns -1 upon an execution failure, but
checking the return value isn't sufficient be

Add a boolean parameter to the ExecuteAndWait static function to indicated
if execution failed. ExecuteAndWait returns -1 upon an execution failure, but
checking the return value isn't sufficient because the wait command may
return -1 as well. This new parameter is to be used by the clang driver in a
subsequent commit.
Part of rdar://13362359

llvm-svn: 178087

show more ...


Revision tags: llvmorg-3.2.0, llvmorg-3.2.0-rc3, llvmorg-3.2.0-rc2, llvmorg-3.2.0-rc1, llvmorg-3.1.0, llvmorg-3.1.0-rc3, llvmorg-3.1.0-rc2, llvmorg-3.1.0-rc1
# a2755f8e 13-Dec-2011 Michael J. Spencer <bigcheesegs@gmail.com>

Support/Program: Make Change<stream>ToBinary return error_code.

llvm-svn: 146522


Revision tags: llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2, llvmorg-3.0.0-rc1
# d5d0764b 21-May-2011 Andrew Trick <atrick@apple.com>

Have Program::Wait return -2 for crashed and timeouts instead of embedding
info in the error message. Per Dan's request.

llvm-svn: 131780


# 55aeb55a 11-May-2011 Andrew Trick <atrick@apple.com>

Bugpoint support for miscompilations that result in a crash.

This change allows bugpoint to pinpoint the "opt" pass and bitcode
segment responsible for a crash caused by miscompilation. At least it

Bugpoint support for miscompilations that result in a crash.

This change allows bugpoint to pinpoint the "opt" pass and bitcode
segment responsible for a crash caused by miscompilation. At least it
works well for me now, without having to create any custom execution
wrappers.

llvm-svn: 131186

show more ...


Revision tags: llvmorg-2.9.0, llvmorg-2.9.0-rc3, llvmorg-2.9.0-rc2, llvmorg-2.9.0-rc1
# 447762da 29-Nov-2010 Michael J. Spencer <bigcheesegs@gmail.com>

Merge System into Support.

llvm-svn: 120298


12