summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
* Removes template magic to build up containers.Manuel Klimek2012-01-171-7/+82
| | | | | | Instead, we now put the attributes of the container into members. llvm-svn: 148302
* Remove unreachable code. (replace with llvm_unreachable to help GCC where ↵David Blaikie2012-01-171-1/+8
| | | | | | necessary) llvm-svn: 148284
* Removing unused default switch cases in switches over enums that already ↵David Blaikie2012-01-162-7/+0
| | | | | | | | account for all enumeration values explicitly. (This time I believe I've checked all the -Wreturn-type warnings from GCC & added the couple of llvm_unreachables necessary to silence them. If I've missed any, I'll happily fix them as soon as I know about them) llvm-svn: 148262
* Remove SetWorkingDirectory from the Process interface. Nothing in LLVMChandler Carruth2012-01-152-8/+0
| | | | | | | | | | | | or Clang is using this, and it would be hard to use it correctly given the thread hostility of the function. Also, it never checked the return which is rather dangerous with chdir. If someone was in fact using this, please let me know, as well as what the usecase actually is so that I can add it back and make it more correct and secure to use. (That said, it's never going to be "safe" per-se, but we could at least document the risks...) llvm-svn: 148211
* Remove dead code.David Blaikie2012-01-152-140/+79
| | | | llvm-svn: 148206
* Disable the crash reporter when running lit tests.Argyrios Kyrtzidis2012-01-112-1/+21
| | | | llvm-svn: 147965
* Teach the triple library about the androideabi environment.Chandler Carruth2012-01-101-0/+3
| | | | | | Patch by Evgeniy Stepanov. llvm-svn: 147871
* Add 'llvm_unreachable' to passify GCC's understanding of the constraintsChandler Carruth2012-01-101-0/+1
| | | | | | | | of several newly un-defaulted switches. This also helps optimizers (including LLVM's) recognize that every case is covered, and we should assume as much. llvm-svn: 147861
* Remove unnecessary default cases in switches that cover all enum values.David Blaikie2012-01-101-3/+0
| | | | llvm-svn: 147855
* Add definitions for AMD's bobcat (aka btver1)Benjamin Kramer2012-01-101-0/+2
| | | | llvm-svn: 147846
* revert r147542 after comments from Joerg SonnenbergerSebastian Pop2012-01-054-18/+7
| | | | llvm-svn: 147608
* use getHostTriple instead of getDefaultTargetTriple in getClosestTargetForJITSebastian Pop2012-01-044-7/+18
| | | | | | | | | | Get back getHostTriple. For JIT compilation, use the host triple instead of the default target: this fixes some JIT testcases that used to fail when the compiler has been configured as a cross compiler. llvm-svn: 147542
* Conform to the style guide; remove 'else' after 'return'. Also remove an extraNick Lewycky2012-01-031-56/+36
| | | | | | if-statement by turning it into an assert. No functionality change. llvm-svn: 147474
* Switch StringMap from an array of structures to a structure of arrays.Benjamin Kramer2011-12-271-27/+34
| | | | | | | - -25% memory usage of the main table on x86_64 (was wasted in struct padding). - no significant performance change. llvm-svn: 147294
* drop unneeded config.h includesDylan Noblesmith2011-12-221-1/+1
| | | | llvm-svn: 147197
* Fix APInt::rotl and APInt::rotr so that they work correctly. Found while ↵Eli Friedman2011-12-221-12/+4
| | | | | | writing some code that tried to use them. llvm-svn: 147134
* Changes the JSON parser to use the SourceMgr.Manuel Klimek2011-12-211-26/+33
| | | | | | | | Diagnostics are now emitted via the SourceMgr and we use MemoryBuffer for buffer management. Switched the code to make use of the trailing '0' that MemoryBuffer guarantees where it makes sense. llvm-svn: 147063
* Fixes a potential compilation error.Manuel Klimek2011-12-201-12/+0
| | | | | | | Pulling the template implementation into the header to guarantee that it's visible to all possible instantiations. llvm-svn: 146973
* Pulls the implementation of skip() into JSONParser.Manuel Klimek2011-12-201-11/+24
| | | | | | | This is the first step towards migrating more of the parser implementation into the parser class. llvm-svn: 146971
* Addressing style issues in JSON parser.Manuel Klimek2011-12-201-4/+2
| | | | llvm-svn: 146968
* Fix up the CMake build for the new files added in r146960, they'reChandler Carruth2011-12-201-0/+1
| | | | | | likely to stay either way that discussion ends up resolving itself. llvm-svn: 146966
* Unweaken vtables as per ↵David Blaikie2011-12-201-0/+14
| | | | | | http://llvm.org/docs/CodingStandards.html#ll_virtual_anch llvm-svn: 146960
* APInt: update asserts for base-36Dylan Noblesmith2011-12-161-1/+5
| | | | | | | | Hexatridecimal was added in r139695. And fix the unittest that now triggers the assert. llvm-svn: 146754
* Adds a JSON parser and a benchmark (json-bench) to catch performance ↵Manuel Klimek2011-12-162-0/+222
| | | | | | regressions. llvm-svn: 146735
* Support/FileSystem: Add file_magic and move a vew clients over to it.Michael J. Spencer2011-12-132-14/+126
| | | | llvm-svn: 146523
* Support/Program: Make Change<stream>ToBinary return error_code.Michael J. Spencer2011-12-134-12/+20
| | | | llvm-svn: 146522
* Cleanup whitespace.Michael J. Spencer2011-12-132-4/+4
| | | | llvm-svn: 146521
* Hexagon backend supportTony Linthicum2011-12-121-0/+7
| | | | llvm-svn: 146412
* LLVMBuild: Remove trailing newline, which irked me.Daniel Dunbar2011-12-121-1/+0
| | | | llvm-svn: 146409
* Revert r146363 to allow buildbots to make forward progress.Chad Rosier2011-12-123-65/+0
| | | | | | | Original commit message: Support/FileSystem: Implement canonicalize. llvm-svn: 146378
* Support/FileSystem: Implement bool equivalent(file_status A, file_status B);Michael J. Spencer2011-12-122-83/+51
| | | | llvm-svn: 146364
* Support/FileSystem: Implement canonicalize.Michael J. Spencer2011-12-123-0/+65
| | | | llvm-svn: 146363
* Support/Windows: Cleanup scoped handles.Michael J. Spencer2011-12-124-59/+80
| | | | llvm-svn: 146362
* Support/FileSystem: Implement recursive_directory_iterator and makeMichael J. Spencer2011-12-082-9/+11
| | | | | | directory_iterator preserve InputIterator semantics on copy. llvm-svn: 146200
* Adding missing anchor to DATDeltaAlgorithm.David Blaikie2011-12-071-0/+3
| | | | llvm-svn: 146025
* Silence tsan false-positives (tsan can't track things which are only safe due toNick Lewycky2011-12-051-0/+3
| | | | | | | memory fences) in statistics registration, which works the same way that ManagedStatic registration does. llvm-svn: 145869
* Fix unreachable return & simplify some branches.David Blaikie2011-12-011-9/+5
| | | | llvm-svn: 145627
* Autodetect bulldozers.Benjamin Kramer2011-12-011-0/+2
| | | | llvm-svn: 145607
* Add some missing anchors.David Blaikie2011-12-011-0/+3
| | | | llvm-svn: 145578
* [Win32] Catch exceptions (eg. segfault) on waiting for invoked clang from ↵NAKAMURA Takumi2011-11-292-2/+12
| | | | | | | | | | | | the driver. clang/lib/Driver/Driver.cpp: Don't pass through negative exit status, or parent would be confused. llvm::sys::Program::Wait(): Suppose 0x8000XXXX and 0xC000XXXX as abnormal exit code and pass it as negative value. Win32 Exception Handler: Exit with ExceptionCode on an unhandle exception. llvm-svn: 145389
* Don't define these unless we plan to use them.Nick Lewycky2011-11-281-0/+2
| | | | llvm-svn: 145289
* Add back a line I deleted by accident in r145141. Fixes uninitialized ↵Eli Friedman2011-11-281-0/+1
| | | | | | variable warnings and runtime failures. llvm-svn: 145256
* rename ENABLE_THREADS to LLVM_ENABLE_THREADSDylan Noblesmith2011-11-284-7/+7
| | | | | | | | | | | Now that it needs to be exported in a public header (Valgrind.h) it should be prefixed to avoid collision with other projects. Add it to llvm-config.h as well. This'll require regenerating the configure script after this commit, but I don't have the required autoconf version. llvm-svn: 145214
* Fix APFloat::convert so that it handles narrowing conversions correctly; itEli Friedman2011-11-261-49/+36
| | | | | | | | was returning incorrect values in rare cases, and incorrectly marking exact conversions as inexact in some more common cases. Fixes PR11406, and a missed optimization in test/CodeGen/X86/fp-stack-O0.ll. llvm-svn: 145141
* Make ConstantRange::truncate a bit more efficient.Benjamin Kramer2011-11-241-4/+2
| | | | llvm-svn: 145122
* Correctly byte-swap APInts with bit-widths greater than 64.Richard Smith2011-11-231-17/+26
| | | | llvm-svn: 145111
* Add configure checking for pread(2) and use it to save a syscall when ↵Benjamin Kramer2011-11-221-0/+7
| | | | | | reading files. llvm-svn: 145061
* Turn error recovery into an assert.Benjamin Kramer2011-11-221-6/+1
| | | | | | | This was put in because in a certain version of DragonFlyBSD stat(2) lied about the size of some files. This was fixed a long time ago so we can remove the workaround. llvm-svn: 145059
* Move WEAK marking to the declaration.Nick Lewycky2011-11-151-6/+6
| | | | llvm-svn: 144603
* Fix linking for some users who already have tsan enabled code and are trying toNick Lewycky2011-11-151-6/+6
| | | | | | link it against llvm code, by making our definitions weak. "Some users." llvm-svn: 144596
OpenPOWER on IntegriCloud