summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
Commit message (Collapse)AuthorAgeFilesLines
...
* Introduce new error handling API.Torok Edwin2009-07-071-0/+53
| | | | | | | | This will replace exit()/abort() style error handling with an API that allows clients to register custom error handling hooks. The default is to call exit(1) when no error handler is provided. llvm-svn: 74922
* switch the .ll parser to use SourceMgr.Chris Lattner2009-07-021-10/+21
| | | | llvm-svn: 74735
* add an explicit class for holding llvm::SourceMgr diagnostics and useChris Lattner2009-07-021-19/+52
| | | | | | | | | | | | | | | it to print them. This gives us column numbers in the diag line. Before: t.s:4: error: unexpected token in argument list mov %eax %edx ^ now: t.s:4:11: error: unexpected token in argument list mov %eax %edx ^ llvm-svn: 74732
* Tweak FindExecutable so that relative executable paths work as well.Daniel Dunbar2009-07-011-2/+3
| | | | llvm-svn: 74645
* Fix FindExecutable to work if given an absolute executable path name.Daniel Dunbar2009-07-011-5/+10
| | | | | | - Patch by Viktor Kutuzov, with tweaks by me. llvm-svn: 74608
* Reapply 74494, this time removing the conflicting definition of operator<<Dan Gohman2009-06-301-0/+6
| | | | | | in APIntTest.cpp. llvm-svn: 74550
* Temporarily revert r74494. It was causing failures in the unit tests.Bill Wendling2009-06-301-6/+0
| | | | llvm-svn: 74515
* Fix the build on Cygwin. Patch by Aaron Gray.Owen Anderson2009-06-301-1/+1
| | | | llvm-svn: 74510
* Define an operator<< for APInt to be used with std::ostream.Dan Gohman2009-06-301-0/+6
| | | | | | | This will allow it to be used in unittests that use gtest's EXPECT_EQ. llvm-svn: 74494
* Normalize SourceMgr messages.Daniel Dunbar2009-06-301-3/+7
| | | | | | | | | | | | - Don't print "Parsing" in front of every message. - Take additional "type" argument which is prepended to the message (with ": ") if given. - Update clients to print errors (warnings) as: <filename>:<line number>: error(warning): ... llvm-svn: 74489
* Add triple for OpenBSD.Duncan Sands2009-06-291-0/+3
| | | | llvm-svn: 74422
* Use atomic operations for accessing this global counter.Owen Anderson2009-06-261-3/+6
| | | | llvm-svn: 74294
* Fix linking of llvm-ld and lli with CMake, from Xerxes RånbyDouglas Gregor2009-06-261-0/+2
| | | | llvm-svn: 74285
* Support thread-local pretty stack traces.Owen Anderson2009-06-251-7/+8
| | | | llvm-svn: 74227
* Use atomic operations when accessing statistics, and make the lazy ↵Owen Anderson2009-06-231-4/+8
| | | | | | initialization of statistics actually threadsafe. llvm-svn: 74005
* Make timers threadsafe again. This isn't quite as nice as I'd hoped (it ↵Owen Anderson2009-06-231-1/+53
| | | | | | | | | | uses locking rather than atomic arithmetic), but should work on all the platforms we care about. I might revisit this if a totally awesome way to do it occurs to me. llvm-svn: 74002
* Revert my last series of commits related to Timer and 64-bit atomics. Not ↵Owen Anderson2009-06-231-19/+19
| | | | | | | | all the targets we care about are capable of supporting it. llvm-svn: 73993
* Switched size_t to int64_t to prevent type mismatch in call to max.Lang Hames2009-06-231-2/+2
| | | | llvm-svn: 73988
* Actually, these need to be signed integers, not unsigned.Owen Anderson2009-06-231-2/+2
| | | | llvm-svn: 73978
* Use 64-bit integer counters for tracking time, rather than doubles. This ↵Owen Anderson2009-06-231-17/+17
| | | | | | will be more atomic op friendly. llvm-svn: 73974
* Make the lazy initialization of DefaultTimerGroup threadsafe.Owen Anderson2009-06-231-8/+14
| | | | llvm-svn: 73963
* Revert r73923, which broke clang.Owen Anderson2009-06-231-18/+10
| | | | llvm-svn: 73957
* Guard the plugin loader.Owen Anderson2009-06-231-0/+5
| | | | llvm-svn: 73925
* Add guards around timer groups, which can be shared.Owen Anderson2009-06-221-10/+18
| | | | llvm-svn: 73923
* Guard the statistics table.Owen Anderson2009-06-221-1/+3
| | | | llvm-svn: 73916
* Guard the global annotation tables.Owen Anderson2009-06-221-13/+25
| | | | llvm-svn: 73913
* rename SourceMgr::PrintError to PrintMessage.Chris Lattner2009-06-211-6/+6
| | | | llvm-svn: 73861
* move include searching logic from TGLexer to SourceMgr.Chris Lattner2009-06-211-0/+20
| | | | llvm-svn: 73845
* Rename TGSourceMgr -> SourceMgr.Chris Lattner2009-06-212-5/+6
| | | | llvm-svn: 73844
* rename TGLoc -> SMLoc.Chris Lattner2009-06-211-6/+6
| | | | llvm-svn: 73843
* move TGSourceMgr class out of TableGen into libsupport.Chris Lattner2009-06-211-0/+107
| | | | llvm-svn: 73842
* Add support for AuroraUX. Patch by evocallaghan.Duncan Sands2009-06-191-1/+4
| | | | llvm-svn: 73766
* Update CMake files to account for new location of Threading.cpp.Ted Kremenek2009-06-181-1/+0
| | | | llvm-svn: 73708
* Move Threading.[h|cpp] from Support to System.Owen Anderson2009-06-181-63/+0
| | | | llvm-svn: 73707
* Add newline at end of file.Owen Anderson2009-06-161-1/+1
| | | | llvm-svn: 73551
* Add Threading.cpp to the CMake project filesDouglas Gregor2009-06-161-0/+1
| | | | llvm-svn: 73516
* Split the thread-related APIs out into their own file, and add a few moreOwen Anderson2009-06-162-20/+67
| | | | | | calls for convenience. llvm-svn: 73512
* Add support for outputting ANSI colors to raw_fd_ostream.Torok Edwin2009-06-041-0/+30
| | | | llvm-svn: 72854
* Add support for letting the client choose different flavors of NaNs. ↵Mike Stump2009-05-301-6/+12
| | | | | | | | Testcase to be added in clang. llvm-svn: 72606
* Untabification.Bill Wendling2009-05-301-1/+1
| | | | llvm-svn: 72604
* Minor fix for CMake build systemDouglas Gregor2009-05-271-0/+1
| | | | llvm-svn: 72480
* Add llvm::triple constructor from arch, vendor, os strings, and recognizeDaniel Dunbar2009-05-221-0/+3
| | | | | | DragonFly OS type. llvm-svn: 72242
* 80 column violation.Evan Cheng2009-05-211-1/+1
| | | | llvm-svn: 72235
* Have llvm_start_multithreaded return a bool indicating whether multithreadedOwen Anderson2009-05-201-2/+3
| | | | | | initialization succeeded or not, rather than just asserting. llvm-svn: 72182
* Add llvm_start_multithreaded(), which starts up the LLVM internals in ↵Owen Anderson2009-05-201-8/+45
| | | | | | | | thread-safe mode. Provide double-check locking initialization of ManagedStatic's when running in thread-safe mode. llvm-svn: 72151
* Tweak MemoryBuffer::getSTDIN so that it returns after the first EOF. Eli Friedman2009-05-181-3/+6
| | | | | | | It doesn't matter for piped input, but it's annoying when typing at the console. llvm-svn: 71998
* Add dumping support for DW_AT_APPLE_isa and DW_AT_APPLE_block.Mike Stump2009-05-141-0/+2
| | | | | | Radar 6867696 llvm-svn: 71750
* Fix whitespacing (space after switch).Mike Stump2009-05-133-33/+32
| | | | llvm-svn: 71738
* Move helper functions for optimizing division by constant into the APIntJay Foad2009-04-301-0/+92
| | | | | | class. llvm-svn: 70488
* Add support for a character after a command line option. Like '-Os'.Bill Wendling2009-04-291-0/+3
| | | | llvm-svn: 70437
OpenPOWER on IntegriCloud