summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
Commit message (Collapse)AuthorAgeFilesLines
...
* Make the JIT code emitter properly retry and ask for more memory when it runsReid Kleckner2009-07-232-6/+8
| | | | | | | | | | | | | 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. llvm-svn: 76828
* Remove duplication in Program::Execute{And,No}Wait.Mikhail Glushenkov2009-07-183-276/+91
| | | | | | | Implemented by moving the code out of static functions into methods of Program class. llvm-svn: 76340
* Trailing whitespace.Mikhail Glushenkov2009-07-171-15/+15
| | | | llvm-svn: 76229
* Lexically order files in CMakeLists.txt files.Ted Kremenek2009-07-151-1/+1
| | | | llvm-svn: 75831
* Use llvm_report_error, not llvm_unreachable.Daniel Dunbar2009-07-121-2/+2
| | | | llvm-svn: 75429
* Improve sys::Path::makeAbsolute on Win32.Daniel Dunbar2009-07-123-12/+37
| | | | | | | | - Patch by Viktor Kutuzov! - Minor tweak by me to add llvm_unreachable calls on FIXMEd error paths. llvm-svn: 75424
* "UNIX paths can contain non-ASCII characters, so Path::isValid() should not ↵Chris Lattner2009-07-121-9/+1
| | | | | | | | reject paths with such characters in them. The attached patch removes the check from Path::isValid()." patch by Benjamin Kramer! llvm-svn: 75421
* eraseFromDisk no longer throws.Chris Lattner2009-07-091-4/+1
| | | | llvm-svn: 75139
* Add an ExecuteNoWait interface to support asynchronous process spawning.David Greene2009-07-082-0/+237
| | | | llvm-svn: 75055
* remove two methods that no longer exist.Chris Lattner2009-07-081-24/+0
| | | | llvm-svn: 74982
* more getting windows to build.Chris Lattner2009-07-081-14/+7
| | | | llvm-svn: 74981
* hopefully fix the build on windows.Chris Lattner2009-07-081-0/+1
| | | | llvm-svn: 74977
* Eliminate the static constructors and locks from DynamicLibrary.cpp.Chris Lattner2009-07-071-26/+27
| | | | | | | | | | | | | | | | | | 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. llvm-svn: 74927
* remove dead code, noone creates instances of "DynamicLibrary", so the ctor ↵Chris Lattner2009-07-071-10/+1
| | | | | | and dtor are dead. llvm-svn: 74926
* we don't use libtool anymore, update comments.Chris Lattner2009-07-071-12/+2
| | | | llvm-svn: 74924
* No need to double-include config.hOwen Anderson2009-07-061-1/+1
| | | | llvm-svn: 74854
* We need to include config.h to get the proper setting to LLVM_MULTITHREADED.Owen Anderson2009-07-061-0/+1
| | | | | | Patch by Xerxes Ranby. llvm-svn: 74846
* improve portability to windows, patch by Xerces Ranby!Chris Lattner2009-07-061-1/+1
| | | | llvm-svn: 74835
* Oops, I #included errno.h from inside the llvm::sys namespace.Jeffrey Yasskin2009-07-061-1/+4
| | | | llvm-svn: 74834
* Fix windows build, patch by Howard Su.Duncan Sands2009-07-021-2/+2
| | | | llvm-svn: 74697
* Add a portable strerror*() wrapper, llvm::sys::StrError(). This includes theJeffrey Yasskin2009-07-013-26/+74
| | | | | | | | Windows variant, strerror_s, but I couldn't test that. I'll update configure and config.h.in in a subsequent patch. llvm-svn: 74621
* Try again at making this work on OpenBSD.Owen Anderson2009-07-011-1/+1
| | | | llvm-svn: 74612
* Fix the build on OpenBSD.Owen Anderson2009-07-011-1/+1
| | | | llvm-svn: 74597
* Fixed assert that checks return value of TlsSetValue.Oscar Fuentes2009-06-301-1/+1
| | | | | | | | See http://msdn.microsoft.com/en-us/library/ms686818(VS.85).aspx Patch by Olaf Krzikalla! llvm-svn: 74526
* Fix compilation without pthreads.Owen Anderson2009-06-261-3/+3
| | | | | | Patch by Xerxes Ranby. llvm-svn: 74283
* Fix unused variable warnings.Daniel Dunbar2009-06-261-0/+3
| | | | llvm-svn: 74250
* Fix error in the Win32 implementation pointed out by Howard Su.Owen Anderson2009-06-261-1/+1
| | | | llvm-svn: 74248
* Add support for const thread locals.Owen Anderson2009-06-252-6/+6
| | | | llvm-svn: 74226
* Fix typo in assertion.Owen Anderson2009-06-251-1/+1
| | | | llvm-svn: 74225
* Add a configure test for pthread_getspecific, and use it when building ↵Owen Anderson2009-06-251-1/+1
| | | | | | ThreadLocal. llvm-svn: 74222
* Update cmake build files.Owen Anderson2009-06-251-0/+1
| | | | llvm-svn: 74210
* Add a class for supporting platform independent thread-local storage.Owen Anderson2009-06-253-0/+151
| | | | | | Windows people, please double-check/patch this. llvm-svn: 74209
* Guard dynamic library loading.Owen Anderson2009-06-252-13/+36
| | | | | | | I did my best at implementing this for Win32, but I don't have a way to test it. Can someone with access to a Win32 machine test/fix this? llvm-svn: 74188
* Add atomic multiply and divide operations, built on top of CompareAndSwap.Owen Anderson2009-06-231-0/+18
| | | | llvm-svn: 74004
* Revert my last series of commits related to Timer and 64-bit atomics. Not ↵Owen Anderson2009-06-231-19/+7
| | | | | | | | all the targets we care about are capable of supporting it. llvm-svn: 73993
* Atomic ops that do arithmetic use signed arithmetic.Owen Anderson2009-06-231-4/+4
| | | | llvm-svn: 73980
* Label the existing atomic functions as 32-bit specific, and add a 64-bit one ↵Owen Anderson2009-06-231-7/+19
| | | | | | | | that will be useful in the near future. llvm-svn: 73971
* Add an atomic add operation.Owen Anderson2009-06-231-0/+13
| | | | llvm-svn: 73964
* Workaround for an... interesting bug in Darwin's pthread_rwlock_init.Owen Anderson2009-06-201-0/+7
| | | | llvm-svn: 73806
* Fix bad paste-o in the MSVC atomics.Owen Anderson2009-06-191-2/+2
| | | | | | Patch by Иван Сорокин. llvm-svn: 73779
* Give RWMutex the SmartRWMutex treatment too.Owen Anderson2009-06-183-24/+24
| | | | llvm-svn: 73710
* Insert a SmartMutex templated class into the class hierarchy, which takes a ↵Owen Anderson2009-06-183-20/+20
| | | | | | | | template parameter specifying whether this mutex should become a no-op when not running in multithreaded mode. Make sys::Mutex a typedef of SmartMutex<false>, to preserve source compatibility. llvm-svn: 73709
* Update CMake files to account for new location of Threading.cpp.Ted Kremenek2009-06-181-0/+1
| | | | llvm-svn: 73708
* Move Threading.[h|cpp] from Support to System.Owen Anderson2009-06-181-0/+63
| | | | llvm-svn: 73707
* Fix build when disable thread support.Owen Anderson2009-06-181-1/+1
| | | | | | Patch by Howard Su. llvm-svn: 73680
* Add RWMutex.cpp to the CMake makefilesDouglas Gregor2009-06-171-0/+1
| | | | llvm-svn: 73615
* Improve the Win32 reader-writer lock implementation by making it just a normalOwen Anderson2009-06-171-6/+14
| | | | | | | | | lock. This is obviously bad, but at least it's threadsafe! If you know how to improve this in a pre-Vista friendly well, patches welcome! Patch by Max Burke. llvm-svn: 73607
* Use atomic increment/decrement for reference counting of Type's.Owen Anderson2009-06-171-2/+2
| | | | llvm-svn: 73588
* Add an atomic increment and decrement implementation, which will be used forOwen Anderson2009-06-171-0/+28
| | | | | | thread-safe reference counting. llvm-svn: 73587
* Accidentally broke this file.Owen Anderson2009-06-161-1/+1
| | | | llvm-svn: 73552
OpenPOWER on IntegriCloud