Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Make the JIT code emitter properly retry and ask for more memory when it runs | Reid Kleckner | 2009-07-23 | 2 | -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 Glushenkov | 2009-07-18 | 3 | -276/+91 | |
| | | | | | | | Implemented by moving the code out of static functions into methods of Program class. llvm-svn: 76340 | |||||
* | Trailing whitespace. | Mikhail Glushenkov | 2009-07-17 | 1 | -15/+15 | |
| | | | | llvm-svn: 76229 | |||||
* | Lexically order files in CMakeLists.txt files. | Ted Kremenek | 2009-07-15 | 1 | -1/+1 | |
| | | | | llvm-svn: 75831 | |||||
* | Use llvm_report_error, not llvm_unreachable. | Daniel Dunbar | 2009-07-12 | 1 | -2/+2 | |
| | | | | llvm-svn: 75429 | |||||
* | Improve sys::Path::makeAbsolute on Win32. | Daniel Dunbar | 2009-07-12 | 3 | -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 Lattner | 2009-07-12 | 1 | -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 Lattner | 2009-07-09 | 1 | -4/+1 | |
| | | | | llvm-svn: 75139 | |||||
* | Add an ExecuteNoWait interface to support asynchronous process spawning. | David Greene | 2009-07-08 | 2 | -0/+237 | |
| | | | | llvm-svn: 75055 | |||||
* | remove two methods that no longer exist. | Chris Lattner | 2009-07-08 | 1 | -24/+0 | |
| | | | | llvm-svn: 74982 | |||||
* | more getting windows to build. | Chris Lattner | 2009-07-08 | 1 | -14/+7 | |
| | | | | llvm-svn: 74981 | |||||
* | hopefully fix the build on windows. | Chris Lattner | 2009-07-08 | 1 | -0/+1 | |
| | | | | llvm-svn: 74977 | |||||
* | Eliminate the static constructors and locks from DynamicLibrary.cpp. | Chris Lattner | 2009-07-07 | 1 | -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 Lattner | 2009-07-07 | 1 | -10/+1 | |
| | | | | | | and dtor are dead. llvm-svn: 74926 | |||||
* | we don't use libtool anymore, update comments. | Chris Lattner | 2009-07-07 | 1 | -12/+2 | |
| | | | | llvm-svn: 74924 | |||||
* | No need to double-include config.h | Owen Anderson | 2009-07-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 74854 | |||||
* | We need to include config.h to get the proper setting to LLVM_MULTITHREADED. | Owen Anderson | 2009-07-06 | 1 | -0/+1 | |
| | | | | | | Patch by Xerxes Ranby. llvm-svn: 74846 | |||||
* | improve portability to windows, patch by Xerces Ranby! | Chris Lattner | 2009-07-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 74835 | |||||
* | Oops, I #included errno.h from inside the llvm::sys namespace. | Jeffrey Yasskin | 2009-07-06 | 1 | -1/+4 | |
| | | | | llvm-svn: 74834 | |||||
* | Fix windows build, patch by Howard Su. | Duncan Sands | 2009-07-02 | 1 | -2/+2 | |
| | | | | llvm-svn: 74697 | |||||
* | Add a portable strerror*() wrapper, llvm::sys::StrError(). This includes the | Jeffrey Yasskin | 2009-07-01 | 3 | -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 Anderson | 2009-07-01 | 1 | -1/+1 | |
| | | | | llvm-svn: 74612 | |||||
* | Fix the build on OpenBSD. | Owen Anderson | 2009-07-01 | 1 | -1/+1 | |
| | | | | llvm-svn: 74597 | |||||
* | Fixed assert that checks return value of TlsSetValue. | Oscar Fuentes | 2009-06-30 | 1 | -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 Anderson | 2009-06-26 | 1 | -3/+3 | |
| | | | | | | Patch by Xerxes Ranby. llvm-svn: 74283 | |||||
* | Fix unused variable warnings. | Daniel Dunbar | 2009-06-26 | 1 | -0/+3 | |
| | | | | llvm-svn: 74250 | |||||
* | Fix error in the Win32 implementation pointed out by Howard Su. | Owen Anderson | 2009-06-26 | 1 | -1/+1 | |
| | | | | llvm-svn: 74248 | |||||
* | Add support for const thread locals. | Owen Anderson | 2009-06-25 | 2 | -6/+6 | |
| | | | | llvm-svn: 74226 | |||||
* | Fix typo in assertion. | Owen Anderson | 2009-06-25 | 1 | -1/+1 | |
| | | | | llvm-svn: 74225 | |||||
* | Add a configure test for pthread_getspecific, and use it when building ↵ | Owen Anderson | 2009-06-25 | 1 | -1/+1 | |
| | | | | | | ThreadLocal. llvm-svn: 74222 | |||||
* | Update cmake build files. | Owen Anderson | 2009-06-25 | 1 | -0/+1 | |
| | | | | llvm-svn: 74210 | |||||
* | Add a class for supporting platform independent thread-local storage. | Owen Anderson | 2009-06-25 | 3 | -0/+151 | |
| | | | | | | Windows people, please double-check/patch this. llvm-svn: 74209 | |||||
* | Guard dynamic library loading. | Owen Anderson | 2009-06-25 | 2 | -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 Anderson | 2009-06-23 | 1 | -0/+18 | |
| | | | | llvm-svn: 74004 | |||||
* | Revert my last series of commits related to Timer and 64-bit atomics. Not ↵ | Owen Anderson | 2009-06-23 | 1 | -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 Anderson | 2009-06-23 | 1 | -4/+4 | |
| | | | | llvm-svn: 73980 | |||||
* | Label the existing atomic functions as 32-bit specific, and add a 64-bit one ↵ | Owen Anderson | 2009-06-23 | 1 | -7/+19 | |
| | | | | | | | | that will be useful in the near future. llvm-svn: 73971 | |||||
* | Add an atomic add operation. | Owen Anderson | 2009-06-23 | 1 | -0/+13 | |
| | | | | llvm-svn: 73964 | |||||
* | Workaround for an... interesting bug in Darwin's pthread_rwlock_init. | Owen Anderson | 2009-06-20 | 1 | -0/+7 | |
| | | | | llvm-svn: 73806 | |||||
* | Fix bad paste-o in the MSVC atomics. | Owen Anderson | 2009-06-19 | 1 | -2/+2 | |
| | | | | | | Patch by Ðван СоÑокин. llvm-svn: 73779 | |||||
* | Give RWMutex the SmartRWMutex treatment too. | Owen Anderson | 2009-06-18 | 3 | -24/+24 | |
| | | | | llvm-svn: 73710 | |||||
* | Insert a SmartMutex templated class into the class hierarchy, which takes a ↵ | Owen Anderson | 2009-06-18 | 3 | -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 Kremenek | 2009-06-18 | 1 | -0/+1 | |
| | | | | llvm-svn: 73708 | |||||
* | Move Threading.[h|cpp] from Support to System. | Owen Anderson | 2009-06-18 | 1 | -0/+63 | |
| | | | | llvm-svn: 73707 | |||||
* | Fix build when disable thread support. | Owen Anderson | 2009-06-18 | 1 | -1/+1 | |
| | | | | | | Patch by Howard Su. llvm-svn: 73680 | |||||
* | Add RWMutex.cpp to the CMake makefiles | Douglas Gregor | 2009-06-17 | 1 | -0/+1 | |
| | | | | llvm-svn: 73615 | |||||
* | Improve the Win32 reader-writer lock implementation by making it just a normal | Owen Anderson | 2009-06-17 | 1 | -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 Anderson | 2009-06-17 | 1 | -2/+2 | |
| | | | | llvm-svn: 73588 | |||||
* | Add an atomic increment and decrement implementation, which will be used for | Owen Anderson | 2009-06-17 | 1 | -0/+28 | |
| | | | | | | thread-safe reference counting. llvm-svn: 73587 | |||||
* | Accidentally broke this file. | Owen Anderson | 2009-06-16 | 1 | -1/+1 | |
| | | | | llvm-svn: 73552 |