Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [Support] Fix sys::GetRandomNumber() to always use a high quality seed. | Daniel Dunbar | 2012-05-08 | 1 | -5/+15 | |
| | | | | llvm-svn: 156414 | |||||
* | Windows/PathV2.inc: Retry rename() for (maximum) 2 seconds. | NAKAMURA Takumi | 2012-05-08 | 1 | -4/+14 | |
| | | | | | | Files might be opend by system scanners (eg. file indexer, virus scanner, &c). llvm-svn: 156380 | |||||
* | Don't assume size_t is unsigned long long. | Matt Beaumont-Gay | 2012-05-07 | 1 | -3/+1 | |
| | | | | | | Fixes a -Woverflow warning from gcc when building for 32-bit platforms. llvm-svn: 156313 | |||||
* | make SourceMgr tolerate empty SMLoc()'s better. | Chris Lattner | 2012-05-06 | 1 | -45/+54 | |
| | | | | llvm-svn: 156260 | |||||
* | Unix/Process.inc: Give more useful random seed to srand. Workaround for PR12743. | NAKAMURA Takumi | 2012-05-06 | 1 | -1/+14 | |
| | | | | llvm-svn: 156252 | |||||
* | Support/Process: Move llvm::sys::Process::GetRandomNumber() from Process.cpp ↵ | NAKAMURA Takumi | 2012-05-06 | 2 | -10/+9 | |
| | | | | | | | to Unix/Process.inc. FIXME: GetRandomNumber() is not implemented in Win32. llvm-svn: 156251 | |||||
* | reapply my patch, with a fix for an off-by-one error. Turned out to be a lot | Chris Lattner | 2012-05-05 | 1 | -12/+18 | |
| | | | | | | of work for a drive-by fix :) llvm-svn: 156246 | |||||
* | revert my patches, which are causing problems. | Chris Lattner | 2012-05-05 | 1 | -18/+12 | |
| | | | | llvm-svn: 156245 | |||||
* | refactor some code to expose column numbers more and make diagnostic ↵ | Chris Lattner | 2012-05-05 | 1 | -12/+18 | |
| | | | | | | printing slightly more efficient. llvm-svn: 156243 | |||||
* | [Support] Add missing include. | Daniel Dunbar | 2012-05-05 | 1 | -1/+2 | |
| | | | | llvm-svn: 156240 | |||||
* | [Support] Fix up comments. | Daniel Dunbar | 2012-05-05 | 1 | -5/+3 | |
| | | | | llvm-svn: 156239 | |||||
* | [Support] Rewrite sys::fs::unique_file to not be stupid with /dev/urandom. | Daniel Dunbar | 2012-05-05 | 1 | -19/+5 | |
| | | | | | | | | - Just use sys::Process::GetRandomNumber instead of having two poor implementations. - This is ~70 times (!) faster on my OS X machine. llvm-svn: 156238 | |||||
* | [Support] Add sys::Process::GetRandomNumber(). | Daniel Dunbar | 2012-05-05 | 1 | -0/+9 | |
| | | | | | | - Primitive API, but we rarely have need for random numbers. llvm-svn: 156237 | |||||
* | This patch adds a new NVPTX back-end to LLVM which supports code generation ↵ | Justin Holewinski | 2012-05-04 | 1 | -0/+18 | |
| | | | | | | | | | | | | | | | | | for NVIDIA PTX 3.0. This back-end will (eventually) replace the current PTX back-end, while maintaining compatibility with it. The new target machines are: nvptx (old ptx32) => 32-bit PTX nvptx64 (old ptx64) => 64-bit PTX The sources are based on the internal NVIDIA NVPTX back-end, and contain more functionality than the current PTX back-end currently provides. NV_CONTRIB llvm-svn: 156196 | |||||
* | Change the Intel Atom detection code to recognize | Preston Gurd | 2012-05-02 | 1 | -2/+3 | |
| | | | | | | Lincroft and Medfield. llvm-svn: 156025 | |||||
* | YAMLParser: get rid of global ctors & dtors. | Benjamin Kramer | 2012-05-01 | 1 | -2/+0 | |
| | | | | llvm-svn: 155907 | |||||
* | [Support/YAMLParser] Fix ASan found bugs. | Michael J. Spencer | 2012-04-27 | 1 | -1/+7 | |
| | | | | llvm-svn: 155735 | |||||
* | [Support/YAML] Properly fix unitialized variable warning by inserting a | Michael J. Spencer | 2012-04-26 | 1 | -6/+12 | |
| | | | | | | 'REPLACEMENT CHARACTER' (U+FFFD) when getAsInteger fails. llvm-svn: 155653 | |||||
* | Add a missing cpu subtype. | Evan Cheng | 2012-04-23 | 1 | -0/+4 | |
| | | | | llvm-svn: 155402 | |||||
* | [Support/Unix] Unconditionally include time.h. | Michael J. Spencer | 2012-04-23 | 1 | -8/+2 | |
| | | | | | | | | | | | | When building LLVM on Linux with libc++ with CMake TIME_WITH_SYS_TIME is undefined, and HAVE_SYS_TIME_H is defined. This ends up including sys/time.h but not time.h. Unix/TimeValue.inc requires time.h for asctime_r and localtime. libstdc++ seems to include time.h anyway, but libc++ does not. Fix this by always including time.h llvm-svn: 155382 | |||||
* | Conflict with st_dev/st_ino identifiers under Debian GNU/Hurd | Sylvestre Ledru | 2012-04-23 | 1 | -4/+4 | |
| | | | | | | | | | | | | | The problem is that the struct file_status on UNIX systems has two members called st_dev and st_ino; those are also members of the struct stat, and they are reserved identifiers which can also be provided as #define (and this is the case for st_dev on Hurd). The solution (attached) is to rename them, for example adding a "fs_" prefix (= file status) to them. Patch by Pino Toscano llvm-svn: 155354 | |||||
* | Don't die with an assertion if the Result bitwidth is already correct. This | Chris Lattner | 2012-04-23 | 1 | -1/+1 | |
| | | | | | | fixes an assert reading "1239123123123123" when the result is already 64-bit. llvm-svn: 155329 | |||||
* | Remove some potential warnings about variables used uninitialized. | Bill Wendling | 2012-04-22 | 1 | -3/+3 | |
| | | | | llvm-svn: 155307 | |||||
* | No need for "else if" after a return. Autosense "0o123" as octal in | Chris Lattner | 2012-04-21 | 1 | -4/+12 | |
| | | | | | | StringRef::getAsInteger llvm-svn: 155298 | |||||
* | move Signals to .rodata | Nuno Lopes | 2012-04-21 | 1 | -1/+1 | |
| | | | | llvm-svn: 155283 | |||||
* | YAMLParser: silence warning about tautological comparison on unsigned-char ↵ | Benjamin Kramer | 2012-04-21 | 1 | -1/+1 | |
| | | | | | | | | platforms. No functionality change. llvm-svn: 155280 | |||||
* | SourceMgr: Colorize diagnostics. | Benjamin Kramer | 2012-04-18 | 1 | -7/+41 | |
| | | | | | | Same color scheme as clang uses. The colors are only enabled if the output is a tty. llvm-svn: 155035 | |||||
* | SmallPtrSet: Reuse DenseMapInfo's pointer hash function instead of inventing ↵ | Benjamin Kramer | 2012-04-18 | 1 | -1/+2 | |
| | | | | | | | | | | a bad one ourselves. DenseMap's hash function uses slightly more entropy and reduces hash collisions significantly. I also experimented with Hashing.h, but it didn't gave a lot of improvement while being much more expensive to compute. llvm-svn: 154996 | |||||
* | fix error check in assert | Seth Cantrell | 2012-04-18 | 1 | -1/+1 | |
| | | | | llvm-svn: 154971 | |||||
* | C++ has newlines at the end of files (including include files). | David Blaikie | 2012-04-17 | 1 | -1/+1 | |
| | | | | llvm-svn: 154962 | |||||
* | platform support for counting column widths and checking isprint | Seth Cantrell | 2012-04-17 | 5 | -0/+104 | |
| | | | | llvm-svn: 154944 | |||||
* | Goodbye, JSONParser... | Manuel Klimek | 2012-04-17 | 2 | -303/+0 | |
| | | | | llvm-svn: 154930 | |||||
* | Reapply 'Add reverseColor to raw_ostream'. | Benjamin Kramer | 2012-04-16 | 3 | -0/+49 | |
| | | | | | | | To be used in printing unprintable source in clang diagnostics. Patch by Seth Cantrell, with a minor fix for mingw by me. llvm-svn: 154805 | |||||
* | Revert r154800 which breaks windows builders. | Argyrios Kyrtzidis | 2012-04-16 | 3 | -50/+0 | |
| | | | | llvm-svn: 154802 | |||||
* | Add reverseColor to raw_ostream. | Argyrios Kyrtzidis | 2012-04-16 | 3 | -0/+50 | |
| | | | | | | | To be used in printing unprintable source in clang diagnostics. Patch by Seth Cantrell! llvm-svn: 154800 | |||||
* | Fix the build under Debian GNU/Hurd. | Sylvestre Ledru | 2012-04-11 | 3 | -2/+17 | |
| | | | | | | Thanks to Pino Toscano for the patch llvm-svn: 154500 | |||||
* | FoldingSet: Push the hash through FoldingSetTraits::Equals, so clients can ↵ | Benjamin Kramer | 2012-04-11 | 1 | -3/+3 | |
| | | | | | | use it. llvm-svn: 154496 | |||||
* | In MemoryBuffer::getOpenFile() make sure that the buffer is null-terminated if | Argyrios Kyrtzidis | 2012-04-05 | 1 | -0/+11 | |
| | | | | | | | | | | | | | the caller requested a null-terminated one. When mapping the file there could be a racing issue that resulted in the file being larger than the FileSize passed by the caller. We already have an assertion for this in MemoryBuffer::init() but have a runtime guarantee that the buffer will be null-terminated, so do a copy that adds a null-terminator. Protects against crash of rdar://11161822. llvm-svn: 154082 | |||||
* | Move yaml::Stream's dtor out of line so it can see Scanner's dtor. | Benjamin Kramer | 2012-04-04 | 1 | -0/+2 | |
| | | | | llvm-svn: 154004 | |||||
* | Sorry about that. MSVC seems to accept just about any random string you give ↵ | Michael J. Spencer | 2012-04-03 | 1 | -2/+2 | |
| | | | | | | it ;/ llvm-svn: 153979 | |||||
* | Add YAML parser to Support. | Michael J. Spencer | 2012-04-03 | 2 | -0/+2116 | |
| | | | | llvm-svn: 153977 | |||||
* | Add triple support for the IBM BG/P and BG/Q supercomputers. | Hal Finkel | 2012-04-02 | 1 | -0/+6 | |
| | | | | llvm-svn: 153882 | |||||
* | Lowercase the tag name to match the rest of dwarf. | Eric Christopher | 2012-03-29 | 1 | -1/+1 | |
| | | | | llvm-svn: 153691 | |||||
* | Fix GetMainExecutable on kFreeBSD. | Anton Korobeynikov | 2012-03-26 | 1 | -3/+3 | |
| | | | | | | Patch by Sylvestre Ledru! llvm-svn: 153435 | |||||
* | Fix null to integer conversion warnings. | Jean-Daniel Dupas | 2012-03-24 | 1 | -2/+2 | |
| | | | | llvm-svn: 153395 | |||||
* | [PathV2]: Fix bug in create_directories which caused infinite recursion on | Michael J. Spencer | 2012-03-21 | 1 | -5/+6 | |
| | | | | | | | | som inputs. Bug found and fix proposed by Kal Conley! llvm-svn: 153225 | |||||
* | Move APInt::operator[] inline. | Benjamin Kramer | 2012-03-14 | 1 | -6/+0 | |
| | | | | llvm-svn: 152692 | |||||
* | Move APInt::operator! inline, it's small and fuses well with surrounding ↵ | Benjamin Kramer | 2012-03-14 | 1 | -10/+0 | |
| | | | | | | code when inlined. llvm-svn: 152688 | |||||
* | Add a sanity check in MemoryBuffer::getOpenFile() to make sure we don't hang | Argyrios Kyrtzidis | 2012-03-13 | 1 | -1/+5 | |
| | | | | | | | | if the passed in FileSize is inaccurate. rdar://11034179 llvm-svn: 152662 | |||||
* | Inline a trivial helper function. | Benjamin Kramer | 2012-03-12 | 1 | -7/+3 | |
| | | | | llvm-svn: 152577 |