summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
* Remove the Blackfin backend.Dan Gohman2011-10-251-7/+0
| | | | llvm-svn: 142880
* Remove the SystemZ backend.Dan Gohman2011-10-241-5/+0
| | | | llvm-svn: 142878
* Windows/Path.inc: [PR8460] Get rid of ScopedNullTerminator. Thanks to Zvi ↵NAKAMURA Takumi2011-10-241-18/+9
| | | | | | Rackover! llvm-svn: 142785
* Print branch probabilities as percentages.Benjamin Kramer2011-10-231-3/+3
| | | | | | 50% is much more readable than 5.000000e-01. llvm-svn: 142752
* Add compare operators to BranchProbability and use it to determine if an ↵Benjamin Kramer2011-10-231-7/+0
| | | | | | edge is hot. llvm-svn: 142751
* Fix build on mingw-w64.Anton Korobeynikov2011-10-211-6/+8
| | | | | | Patch by Ruben Van Boxem! llvm-svn: 142646
* Remove unused include of sys/uio.h in MemoryBuffer.cpp. It was not correctly ↵David Meyer2011-10-201-1/+0
| | | | | | protected by ifdef either. llvm-svn: 142623
* Fix handling of the From parameter in StringRef::find.Benjamin Kramer2011-10-171-2/+5
| | | | | | Enable bounds checking to catch this kind of bug earlier. llvm-svn: 142247
* Let printf do the formatting instead aligning strings ourselves.Benjamin Kramer2011-10-162-17/+12
| | | | | | While at it, merge some format strings. llvm-svn: 142140
* remove the dead 'ShowLine' argument from SMDiagnostic.Chris Lattner2011-10-161-11/+8
| | | | llvm-svn: 142108
* Make SMDiagnostic a little more sane. Instead of passing around ↵Chris Lattner2011-10-161-16/+22
| | | | | | | | note/warning/error as a string, pass it around as an enum. llvm-svn: 142107
* Enhance llvm::SourceMgr to support diagnostic ranges, the same way clang ↵Chris Lattner2011-10-161-21/+100
| | | | | | | | | | | | | | | does. Enhance the X86 asmparser to produce ranges in the one case that was annoying me, for example: test.s:10:15: error: invalid operand for instruction movl 0(%rax), 0(%edx) ^~~~~~~ It should be straight-forward to enhance filecheck, tblgen, and/or the .ll parser to use ranges where appropriate if someone is interested. llvm-svn: 142106
* Add a bad char heuristic to StringRef::find.Benjamin Kramer2011-10-151-3/+26
| | | | | | | | | Based on Horspool's simplified version of Boyer-Moore. We use a constant-sized table of uint8_ts to keep cache thrashing low, needles bigger than 255 bytes are uncommon anyways. The worst case is still O(n*m) but we do a lot better on the average case now. llvm-svn: 142061
* Revert r142046, "Fix for llvm::sys::getHostTriple on Windows. Instead of ↵NAKAMURA Takumi2011-10-151-36/+4
| | | | | | | | | | relying on the triple" It extremely breaks builds when optimization is enabled. Twine should not hold temporary objects. By the way, I might feel sad if I saw "i786-" "i1586-" or "iF86-". llvm-svn: 142055
* Fix for llvm::sys::getHostTriple on Windows. Instead of relying on the tripleChad Rosier2011-10-151-4/+36
| | | | | | | | from config.h, it discovers the triple based on the execution environment. Patch by Aaron Ballman <aaron@aaronballman.com> llvm-svn: 142046
* Windows/Memory.inc: Support the ability to allocate memory "near" another ↵NAKAMURA Takumi2011-10-151-2/+7
| | | | | | | | block of memory on Win32. It has fixed FIXME. Thanks to Aaron Ballman! llvm-svn: 142039
* Support/Windows: Add support modifying memory permissions on Windows. Patch ↵Michael J. Spencer2011-10-131-3/+45
| | | | | | by Aaron Ballman! llvm-svn: 141910
* Support/Windows: Add efficent RW mutex on Windows. Patch by Aaron Ballman!Michael J. Spencer2011-10-131-11/+87
| | | | llvm-svn: 141907
* Avoid undefined behavior in signed integer negation. Patch by Ahmed Charles.Eli Friedman2011-10-131-1/+2
| | | | llvm-svn: 141905
* Fix APFloat::getSmallestNormalized so the shift doesn't depend on undefined ↵Eli Friedman2011-10-121-1/+1
| | | | | | behavior. Patch from Ahmed Charles. llvm-svn: 141818
* Fix APFloat::getLargest so that it actually returns the correct value. ↵Eli Friedman2011-10-121-2/+3
| | | | | | Found by accident while reviewing a patch to nearby code. llvm-svn: 141816
* Clean up a few references to System/. We still have docs/SystemLibrary.htmlDaniel Dunbar2011-10-115-5/+5
| | | | | | lying around... llvm-svn: 141703
* The Mips specific function for instruction cache invalidation cannot beBruno Cardoso Lopes2011-10-101-34/+5
| | | | | | | | | compiled on mips32r1 processors because it uses synci and rdhwr instructions which are supported only on mips32r2, so I replaced this function with the call to function cacheflush which works for both mips32r1 and mips32r2. Patch by Sasa Stankovic llvm-svn: 141564
* Fix APInt::operator*= so that it computes the correct result for large ↵Eli Friedman2011-10-072-2/+3
| | | | | | integers where there is unsigned overflow. Fix APFloat::toString so that it doesn't depend on the incorrect behavior in common cases (and computes the correct result in some rare cases). Fixes PR11086. llvm-svn: 141441
* Add more initializers to quiet a clang warning.Eric Christopher2011-10-051-1/+1
| | | | llvm-svn: 141163
* Fix typo in comments.Nick Lewycky2011-10-031-2/+2
| | | | llvm-svn: 141032
* Add Windows x64 stack walking support. Patch by Aaron Ballman!Michael J. Spencer2011-10-011-32/+190
| | | | llvm-svn: 140906
* Fix a bug in compare_numeric().Jakob Stoklund Olesen2011-09-301-6/+13
| | | | | | Thanks to Alexandru Dura and Jonas Paulsson for finding it. llvm-svn: 140859
* These symbols appear to be visible by SearchForAddressOfSymbol and no longer Chad Rosier2011-09-271-15/+0
| | | | | | | require special case handling. rdar://10117377 llvm-svn: 140629
* sys::Process: Add a SetWorkingDirectory method.Daniel Dunbar2011-09-232-0/+9
| | | | llvm-svn: 140433
* Change:Richard Trieu2011-09-211-1/+1
| | | | | | | | | | | | assert(!"error message"); To: assert(0 && "error message"); which is more consistant across the code base. llvm-svn: 140234
* Remove the hack to check UNAME_RELEASE when identifying the Darwin version.Bob Wilson2011-09-201-9/+0
| | | | | | | | | This was only needed to locate llvm-gcc's installation directory when clang falls back to run llvm-gcc for i386 kexts. As of clang svn r140187, we're now just searching paths with several different Darwin versions on either side of the current version, so this is no longer needed. llvm-svn: 140188
* U is good enoughDouglas Gregor2011-09-201-2/+2
| | | | llvm-svn: 140166
* Eliminate sign-comparison warnings in APIntDouglas Gregor2011-09-201-2/+4
| | | | llvm-svn: 140158
* Add mips64 & mips64el to Triple. Patch by Liu with modifications.Akira Hatanaka2011-09-201-0/+10
| | | | llvm-svn: 140157
* Rename LLVM_MULTITHREADED define and fix build without threads.Eric Christopher2011-09-192-9/+9
| | | | | | Patch by Arrowdodger. llvm-svn: 140064
* Silence -Wsign-compare warnings from GCC.Benjamin Kramer2011-09-191-2/+2
| | | | llvm-svn: 140043
* Add Win32 support to llvm::llvm_execute_on_thread(). Thanks to Aaron Ballman!NAKAMURA Takumi2011-09-191-2/+33
| | | | llvm-svn: 140011
* Fix a minor bug in fs::create_directories. Patch by Albert Wong.Eli Friedman2011-09-161-1/+1
| | | | llvm-svn: 139928
* use 64-bit types instead of off_t/size_t to avoid the issue whenIvan Krasin2011-09-151-4/+4
| | | | | | | | gold plugin is built with Large File Support (sizeof(off_t) == 64 on i686) and the rest of LLVM is built w/o Large File Support (sizeof(off_t) == 32 on i686) which corrupts the stack. llvm-svn: 139873
* CommandLine: Add support for 64 bit unsigned integer options.Benjamin Kramer2011-09-151-0/+13
| | | | llvm-svn: 139848
* Add some more DWARF extensions from:Nick Lewycky2011-09-151-0/+32
| | | | | | | 1. http://gcc.gnu.org/wiki/TemplateParmsDwarf 2. ftp://ftp.software.ibm.com/software/os390/czos/dwarf/mips_extensions.pdf llvm-svn: 139784
* Update Dwarf enums list for DWARF 4.Nick Lewycky2011-09-151-0/+16
| | | | | | Note that DW_TAG_rvalue_reference_type is officially 0x42, not 0x41. llvm-svn: 139779
* Update the comment for system_temp_directory() to indicate when itDouglas Gregor2011-09-141-1/+1
| | | | | | | will ignore the erasedOnReboot option, and properly escape the backslash in "C:\TEMP". Thanks to Aaron and Francois. llvm-svn: 139755
* Include limits.h to make sure PATH_MAX is known on Solaris 10.Bill Wendling2011-09-141-0/+3
| | | | | | Patch by Joakim Johansson! llvm-svn: 139743
* Add a simple routine to determine the typical system directory forDouglas Gregor2011-09-141-0/+30
| | | | | | temporary data. llvm-svn: 139725
* Add APInt support for converting to/from hexatridecimal stringsDouglas Gregor2011-09-141-12/+19
| | | | llvm-svn: 139695
* One more patch towards JIT support for Mips.Bruno Cardoso Lopes2011-09-141-0/+35
| | | | | | | | | | | | | | - Add TSFlags for the instruction formats. The idea here is to use as much encoding as possible from getBinaryCodeForInstr, and having TSFLags formats for that would make it easier to encode most part of the instructions (since Mips encodings are pretty straightforward) - Improve the mips mechanism for compilation callback - Add Mips specific code for invalidating the instruction cache - Next patch will address wrong tablegen encoding Commit msg added by my own but the patch is from Sasa Stankovic. llvm-svn: 139688
* Remove unimplemented function prototypes from PathV2. They can be readded ↵Benjamin Kramer2011-09-141-3/+1
| | | | | | | | when someone cares enough. Patch by Aaron Ballman! llvm-svn: 139682
* ObjectFile: Add support for mach-o-style dSYM companion files.Benjamin Kramer2011-09-141-1/+1
| | | | llvm-svn: 139676
OpenPOWER on IntegriCloud