aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fixes the Atomic implementation if compiled by MSVC compiler.Oscar Fuentes2009-12-071-0/+4
| | | | | | | | | | | | | | | | | | | | sys::cas_flag should be long on this platform, InterlockedAdd() is defined only for the Itanium architecture (according to MSDN). Patch by Michael Beck! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90748 91177308-0d34-0410-b5e6-96231b3b80d8
| * Adjust comments to new semantics.Edward O'Callaghan2009-11-251-3/+3
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89862 91177308-0d34-0410-b5e6-96231b3b80d8
| * API change Path::isSpecialFile to Path::isRegularFile, improve semantics in ↵Edward O'Callaghan2009-11-251-3/+5
| | | | | | | | | | | | regards to comments from 89765 post review. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89848 91177308-0d34-0410-b5e6-96231b3b80d8
| * Fix comments as pre-post review for rev.89765.Edward O'Callaghan2009-11-241-2/+2
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89770 91177308-0d34-0410-b5e6-96231b3b80d8
| * Provide Path::isSpecialFile interface for PR5568.Edward O'Callaghan2009-11-241-0/+5
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89765 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add llvm::sys::getHostCPUName, for detecting the LLVM name for the host CPU.Daniel Dunbar2009-11-141-0/+6
| | | | | | | | | | | | | | | | | | - This is an initial step towards -march=native support in Clang, and towards eliminating host dependencies in the targets. See PR5389. - Patch by Roman Divacky! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88768 91177308-0d34-0410-b5e6-96231b3b80d8
| * 80-col violation.Mikhail Glushenkov2009-11-071-2/+2
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86346 91177308-0d34-0410-b5e6-96231b3b80d8
| * Move DataTypes.h to include/llvm/System, update all users. This breaks the lastChandler Carruth2009-10-267-4/+328
| | | | | | | | | | | | | | direct inclusion edge from System to Support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85086 91177308-0d34-0410-b5e6-96231b3b80d8
| * Fix typo.Nick Lewycky2009-10-111-1/+1
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83780 91177308-0d34-0410-b5e6-96231b3b80d8
| * Fix typo.Nick Lewycky2009-10-111-1/+1
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83779 91177308-0d34-0410-b5e6-96231b3b80d8
| * Revert "Get rid of GetProcessId in Win32/Program.inc.", this breaksDaniel Dunbar2009-09-221-4/+8
| | | | | | | | | | | | ExecuteAndWait. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82522 91177308-0d34-0410-b5e6-96231b3b80d8
| * Get rid of GetProcessId in Win32/Program.inc.Mikhail Glushenkov2009-09-151-8/+4
| | | | | | | | | | | | | | GetProcessId was introduced only in XP. As a bonus, this change makes Program objects copyable, since Program is now basically a PID. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81826 91177308-0d34-0410-b5e6-96231b3b80d8
| * Fix llvm-extract's "writing bitcode to a terminal" warning, which wasn'tDan Gohman2009-09-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | working. To support this, add an is_displayed() function to raw_ostream, and generalize Process::StandardOutIsDisplayed and friends in order to support it. Also, call RemoveFileOnSignal before creating a file instead of after, so that the file isn't left behind if the program is interrupted between when the file is created and RemoveFileOnSignal is called. While here, add a -S to llvm-extract and port it to IRReader so that it supports assembly input. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81568 91177308-0d34-0410-b5e6-96231b3b80d8
| * Copy-pasto.Mikhail Glushenkov2009-09-091-3/+2
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81331 91177308-0d34-0410-b5e6-96231b3b80d8
| * Revert 81248 for now.Mikhail Glushenkov2009-09-091-0/+4
| | | | | | | | | | | | Program objects have ownership semantics on Windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81329 91177308-0d34-0410-b5e6-96231b3b80d8
| * Const-correctness.Mikhail Glushenkov2009-09-081-1/+1
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81249 91177308-0d34-0410-b5e6-96231b3b80d8
| * Since Program is basically a PID, it should be copyable.Mikhail Glushenkov2009-09-081-4/+0
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81248 91177308-0d34-0410-b5e6-96231b3b80d8
| * Get rid of the Pid_ member in the Program class.Mikhail Glushenkov2009-09-081-4/+2
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81247 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add a Kill() function to the Program class.Mikhail Glushenkov2009-09-081-3/+14
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81246 91177308-0d34-0410-b5e6-96231b3b80d8
| * Tweak code into an equivalent form for which iccDuncan Sands2009-09-061-16/+20
| | | | | | | | | | | | | | | | doesn't warn about unreachable instructions. Patch by Erick Tryzelaar (#111). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81110 91177308-0d34-0410-b5e6-96231b3b80d8
| * Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-232-29/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79869 91177308-0d34-0410-b5e6-96231b3b80d8
| * This void is implicit in C++.Dan Gohman2009-08-121-1/+1
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78848 91177308-0d34-0410-b5e6-96231b3b80d8
| * Revert 78662 to fix broken windows build. Add a comment which explains the ↵Benjamin Kramer2009-08-111-1/+2
| | | | | | | | | | | | problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78679 91177308-0d34-0410-b5e6-96231b3b80d8
| * Remove an unnecessary mutable.Dan Gohman2009-08-111-1/+1
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78662 91177308-0d34-0410-b5e6-96231b3b80d8
| * Fix a race condition in getting the process exit code on Win32.Daniel Dunbar2009-08-031-3/+6
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77953 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add a warning.Mikhail Glushenkov2009-07-311-1/+2
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77746 91177308-0d34-0410-b5e6-96231b3b80d8
| * Re-committing r76828 with the JIT memory manager changes now that the buildReid Kleckner2009-07-231-3/+6
| | | | | | | | | | | | | | bots like the BumpPtrAllocator changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76902 91177308-0d34-0410-b5e6-96231b3b80d8
| * Reverting r76825 and r76828, since they caused clang runtime errors and some ↵Reid Kleckner2009-07-231-6/+3
| | | | | | | | | | | | build failure involving memset. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76838 91177308-0d34-0410-b5e6-96231b3b80d8
| * Make the JIT code emitter properly retry and ask for more memory when it runsReid Kleckner2009-07-231-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | out of memory, and also make the default memory manager allocate more memory when it runs out. Also, switch function stubs and global data over to using the BumpPtrAllocator. This makes it so the JIT no longer mmaps (or the equivalent on Windows) 16 MB of memory, and instead allocates in 512K slabs. I suspect this size could go lower, especially on embedded platforms, now that more slabs can be allocated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76828 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add a Program::GetPid() method.Mikhail Glushenkov2009-07-181-0/+3
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76341 91177308-0d34-0410-b5e6-96231b3b80d8
| * Remove duplication in Program::Execute{And,No}Wait.Mikhail Glushenkov2009-07-181-93/+104
| | | | | | | | | | | | | | Implemented by moving the code out of static functions into methods of Program class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76340 91177308-0d34-0410-b5e6-96231b3b80d8
| * Trailing whitespace.Mikhail Glushenkov2009-07-171-4/+4
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76229 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add a raw_ostream operator<< to sys::Path.Dan Gohman2009-07-151-0/+12
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75790 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add an ExecuteNoWait interface to support asynchronous process spawning.David Greene2009-07-081-0/+37
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75055 91177308-0d34-0410-b5e6-96231b3b80d8
| * Have scoped mutexes take referenes instead of pointers.Owen Anderson2009-07-072-14/+12
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74931 91177308-0d34-0410-b5e6-96231b3b80d8
| * Eliminate the static constructors and locks from DynamicLibrary.cpp.Chris Lattner2009-07-071-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes PR4512 and eliminating static ctors is always good. Losing thread safety is unfortunate, but the code is just incredibly poorly designed. If someone is interested, the "right" solution is to split DynamicLibrary.cpp into two separate pieces: a stateless piece in libsystem, and a simple support file in libsupport that has the "state" (e.g. AddSymbol) in managed static objects. Doing this would both fix memory leaks we already have, as well as make the code thread safe again. it would also make sense to move all the unix specific code in System/DynamicLibrary.cpp into System/Unix/DynamicLibrary.inc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74927 91177308-0d34-0410-b5e6-96231b3b80d8
| * remove dead code, noone creates instances of "DynamicLibrary", so the ctor ↵Chris Lattner2009-07-071-57/+30
| | | | | | | | | | | | and dtor are dead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74926 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add a portable strerror*() wrapper, llvm::sys::StrError(). This includes theJeffrey Yasskin2009-07-011-0/+34
| | | | | | | | | | | | | | | | | | Windows variant, strerror_s, but I couldn't test that. I'll update configure and config.h.in in a subsequent patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74621 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add support for const thread locals.Owen Anderson2009-06-251-2/+2
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74226 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add a class for supporting platform independent thread-local storage.Owen Anderson2009-06-251-0/+41
| | | | | | | | | | | | | | Windows people, please double-check/patch this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74209 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add atomic multiply and divide operations, built on top of CompareAndSwap.Owen Anderson2009-06-231-0/+2
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74004 91177308-0d34-0410-b5e6-96231b3b80d8
| * Revert my last series of commits related to Timer and 64-bit atomics. Not ↵Owen Anderson2009-06-231-8/+7
| | | | | | | | | | | | | | | | | | all the targets we care about are capable of supporting it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73993 91177308-0d34-0410-b5e6-96231b3b80d8
| * Atomic ops that do arithmetic use signed arithmetic.Owen Anderson2009-06-231-4/+4
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73980 91177308-0d34-0410-b5e6-96231b3b80d8
| * Label the existing atomic functions as 32-bit specific, and add a 64-bit one ↵Owen Anderson2009-06-231-7/+8
| | | | | | | | | | | | | | | | | | that will be useful in the near future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73971 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add an atomic add operation.Owen Anderson2009-06-231-0/+1
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73964 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add debugging code to test for various locking faux-pas's, when running in ↵Owen Anderson2009-06-202-2/+38
| | | | | | | | | | | | | | | | | | single threaded mode. This should help improve testing coverage for threading support, without having extensive actually concurrent clients yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73803 91177308-0d34-0410-b5e6-96231b3b80d8
| * Fix a major typo.Owen Anderson2009-06-191-1/+1
| | | | | | | | | | | | | | Nicolas, this is probably the cause of the failures you were seeing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73770 91177308-0d34-0410-b5e6-96231b3b80d8
| * Fix weird class-size-being-different problems. At some level this is being ↵Owen Anderson2009-06-192-6/+2
| | | | | | | | | | | | | | | | | | caused by config.h not being included everywhere. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73745 91177308-0d34-0410-b5e6-96231b3b80d8
| * Add a SmartScopedLock, and use it to simplify code.Owen Anderson2009-06-181-0/+16
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73722 91177308-0d34-0410-b5e6-96231b3b80d8
| * Simplify the SmartMutex implementation a bit.Owen Anderson2009-06-181-10/+9
| | | | | | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73711 91177308-0d34-0410-b5e6-96231b3b80d8