aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
* Signals support has been moved to lib/SystemReid Spencer2004-08-291-138/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16097 91177308-0d34-0410-b5e6-96231b3b80d8
* Move these files (which are dependent on VMCore) into VMCoreMisha Brukman2004-08-162-252/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15825 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow any cl::opt to use the method getPosition() to retrieve the option'sReid Spencer2004-08-131-19/+32
| | | | | | | | | | | | | | absolute position on the command line. Similarly allow any cl::list to use the method getPosition(n) to retrieve the absolute position of the nth option in the list. This provides support for two things: (a) options like -l that are actually positional and their order of occurrence matters when they are intermixed with positional arguments like "a.o"; and (b) options like -x LANG which affect only the positional arguments that come after the option. In both cases, knowing the absolute position of a given option helps. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15725 91177308-0d34-0410-b5e6-96231b3b80d8
* It is not possible to catch SIGKILL, don't bother trying.Chris Lattner2004-08-041-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15496 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a --version option for every tool that prints out:Reid Spencer2004-08-041-1/+18
| | | | | | | Low Level Virtual Machine ($PACKAGE_NAME) $PACKAGE_VERSION git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15454 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove linux/solaris specific stuff.Chris Lattner2004-07-251-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15195 91177308-0d34-0410-b5e6-96231b3b80d8
* Get rid of the printout from the low-level system interfaceChris Lattner2004-07-241-24/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15161 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass timeouts into the low level "execute program with timeout" functionChris Lattner2004-07-241-12/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15160 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for killing the program if it executes for too long.Chris Lattner2004-07-241-12/+42
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15158 91177308-0d34-0410-b5e6-96231b3b80d8
* These files don't need to include <iostream> since they include ↵Brian Gaeke2004-07-211-1/+0
| | | | | | "Support/Debug.h". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15089 91177308-0d34-0410-b5e6-96231b3b80d8
* Solaris hack for isinf()Brian Gaeke2004-07-211-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15058 91177308-0d34-0410-b5e6-96231b3b80d8
* Add platform-independent wrapper function for isinf().Brian Gaeke2004-07-211-0/+31
| | | | | | | Patch contributed by Bill Wendling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15050 91177308-0d34-0410-b5e6-96231b3b80d8
* Err, fix last checkinChris Lattner2004-07-191-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14995 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bugpoint miscompilation support on OS/XChris Lattner2004-07-191-1/+3
| | | | | | | Patch contributed by the fabulous Nate Begeman. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14994 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a workaround for a GCC 3.3.2 bugChris Lattner2004-07-181-1/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14976 91177308-0d34-0410-b5e6-96231b3b80d8
* Correctly build shared objects on MacOS X for debugging code generatorsMisha Brukman2004-07-161-1/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14892 91177308-0d34-0410-b5e6-96231b3b80d8
* Bug fixes for PR341Chris Lattner2004-07-152-5/+19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14838 91177308-0d34-0410-b5e6-96231b3b80d8
* Implicitly getting a new option by linking to support.o instead of support.aChris Lattner2004-07-111-23/+8
| | | | | | | | is a bad idea. Make tools that want the option #include PluginSupport.h explicitly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14738 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not call Type::getUniqueIDChris Lattner2004-07-081-4/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14706 91177308-0d34-0410-b5e6-96231b3b80d8
* Work around apparent Apple compiler bug which was making all mangledBrian Gaeke2004-07-061-2/+2
| | | | | | | names start with l0_. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14651 91177308-0d34-0410-b5e6-96231b3b80d8
* Add #include <iostream> since Value.h does not #include it any more.Reid Spencer2004-07-042-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14622 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix compilation on internixChris Lattner2004-07-031-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14588 91177308-0d34-0410-b5e6-96231b3b80d8
* Wrapper for c99 isnan()Brian Gaeke2004-06-221-0/+31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14338 91177308-0d34-0410-b5e6-96231b3b80d8
* * Fix file header and nameMisha Brukman2004-06-181-8/+8
| | | | | | | * Order #includes alphabetically git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14234 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the machine-independent method of querying the page size.Misha Brukman2004-06-181-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14233 91177308-0d34-0410-b5e6-96231b3b80d8
* Make all of this functionality work directly on win32. Properly conditionalizeChris Lattner2004-06-071-13/+29
| | | | | | | system specific stuff on HAVE_MKSTEMP git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14051 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement getTimeRecord natively in Win32, properly conditionalize theChris Lattner2004-06-071-7/+28
| | | | | | | getrusage implementation on HAVE_GETRUSAGE git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14050 91177308-0d34-0410-b5e6-96231b3b80d8
* Include cerrno.Alkis Evlogimenos2004-06-051-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14041 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the new CopyFile functionChris Lattner2004-06-021-0/+35
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13945 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix spelling, trim empty space, tighten up function header comment.Misha Brukman2004-06-021-10/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13940 91177308-0d34-0410-b5e6-96231b3b80d8
* Moved this file to lib/Bytecode/Writer because its used there only.Reid Spencer2004-05-301-116/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13900 91177308-0d34-0410-b5e6-96231b3b80d8
* Thoroughly rehack the dynamic linking mechanisms on Win32. The Win32Chris Lattner2004-05-281-16/+41
| | | | | | | | | | | | dynamic linker does not automatically search libraries when looking up symbols with GetProcAddress. Because of this we have to emulate it. The only detail is that there doesn't seem to be a way to enumerate the libraries loaded, so we have a gross hack (tm). This make the JIT functional on win32 under cygwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13887 91177308-0d34-0410-b5e6-96231b3b80d8
* Prune #includesChris Lattner2004-05-281-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13886 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for getting executable memory on Windows. This is actuallyChris Lattner2004-05-281-2/+14
| | | | | | | | | | | much easier than on unix. :) The only evil thing is that windows.h defines a macro named FindExecutable, which collides with one of our names. The JIT now runs on windows, but it cannot resolve external functions (like printf) yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13871 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new function for the JIT. libsupport is now the only library thatChris Lattner2004-05-281-1/+53
| | | | | | | includes mman.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13870 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for zero length filesChris Lattner2004-05-281-1/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13866 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a pair of functions to hide system specific details of mapping a file in ↵Chris Lattner2004-05-281-0/+34
| | | | | | for reading. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13863 91177308-0d34-0410-b5e6-96231b3b80d8
* Add DynamicLinker support for systems that provide windows.hChris Lattner2004-05-271-8/+23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13851 91177308-0d34-0410-b5e6-96231b3b80d8
* Signals.h header moved. Eventually this should move into a lib/System library,Chris Lattner2004-05-271-1/+1
| | | | | | | but not right now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13811 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes to make libSupport build on systems that don't have the wait syscall.Chris Lattner2004-05-271-30/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13806 91177308-0d34-0410-b5e6-96231b3b80d8
* Put SlotTable.h inclusion back at front of list to be coding standardsReid Spencer2004-05-251-1/+1
| | | | | | | compliant. Thanks, Chris. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13771 91177308-0d34-0410-b5e6-96231b3b80d8
* Make some improvements suggested by Chris.Reid Spencer2004-05-251-8/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13765 91177308-0d34-0410-b5e6-96231b3b80d8
* Adding the initial implementation of the SlotTable class. This class isReid Spencer2004-05-251-0/+115
| | | | | | | | | | | | | | the Abstract Data Type that holds slot number values and associates them with Type* and Value*. The SlotTable is simply the holder of the slot numbers and provides a controlled interface for building the table. It does not enforce any particular idiom or functionality for manipulating the slot numbers. This is part of bug_122. The SlotCalculator and SlotMachine classes will follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13764 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove this file as well as it is no longer needed nor it compilesAlkis Evlogimenos2004-05-251-25/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13762 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the new cl::PositionalEatsArgs flag, refactor code a bitChris Lattner2004-05-061-52/+65
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13388 91177308-0d34-0410-b5e6-96231b3b80d8
* Apply simplification suggested by Chris: why assign() when operator = will do?Brian Gaeke2004-05-041-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13364 91177308-0d34-0410-b5e6-96231b3b80d8
* Add "Args" optional argument to AbstractInterpreter factory methods, whichBrian Gaeke2004-05-041-31/+71
| | | | | | | | | | | | fills in a ToolArgs vector in the AbstractInterpreter if it is set. This ToolArgs vector is used to pass additional arguments to LLI and/or LLC. This is intended to address Bug 40. Also, make -debug-only=toolrunner work for the LLC and CBE AbstractInterpreters. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13356 91177308-0d34-0410-b5e6-96231b3b80d8
* Bugpoint was not correctly capturing stderr! This caused it to "find" bugsChris Lattner2004-04-161-1/+4
| | | | | | | that didn't exist, missing the ones that do :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12978 91177308-0d34-0410-b5e6-96231b3b80d8
* lli no longer takes the -quiet option!Chris Lattner2004-04-051-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12674 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not mangle intrinsics in any way!Chris Lattner2004-04-051-1/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12673 91177308-0d34-0410-b5e6-96231b3b80d8