Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Various MSVC warning fixes about truncated 64 bit shifts and const pointers ↵ | Benjamin Kramer | 2010-04-08 | 1 | -1/+1 | |
| | | | | | | passed to free. llvm-svn: 100767 | |||||
* | rename llvm_install_error_handler -> install_fatal_error_handler | Chris Lattner | 2010-04-07 | 1 | -16/+13 | |
| | | | | | | and friends. llvm-svn: 100717 | |||||
* | rename llvm::llvm_report_error -> llvm::report_fatal_error | Chris Lattner | 2010-04-07 | 2 | -7/+7 | |
| | | | | llvm-svn: 100709 | |||||
* | enhance SMDiagnostic to also maintain a pointer to the SourceMgr. | Chris Lattner | 2010-04-06 | 1 | -1/+1 | |
| | | | | | | | Add a simplified constructor for clients that don't have locations like "file not found" errors. llvm-svn: 100538 | |||||
* | give the SourceMgr object a cookie. | Chris Lattner | 2010-04-06 | 1 | -1/+2 | |
| | | | | llvm-svn: 100504 | |||||
* | Give llvm::SourceMgr the ability to have a client-specified | Chris Lattner | 2010-04-06 | 1 | -1/+8 | |
| | | | | | | diagnostic handler. llvm-svn: 100503 | |||||
* | stringref-ize the MemoryBuffer::get apis. This requires | Chris Lattner | 2010-04-05 | 1 | -11/+8 | |
| | | | | | | a co-committed clang patch. llvm-svn: 100485 | |||||
* | Push const through the regex engine. Fixes some of the warnings in PR6616. | Owen Anderson | 2010-04-05 | 2 | -44/+51 | |
| | | | | llvm-svn: 100438 | |||||
* | Remove accidental include and add a comment. | Benjamin Kramer | 2010-04-01 | 1 | -2/+2 | |
| | | | | llvm-svn: 100107 | |||||
* | Various improvements to MemoryBuffer::getFile: | Benjamin Kramer | 2010-04-01 | 1 | -17/+26 | |
| | | | | | | | | | | - Use a RAII object to close the FD. - Use sys::StrError instead of thread-unsafe strerror calls. - Recover gracefully if read returns zero. This works around an issue on DragonFlyBSD where /dev/null has an st_size of 136 but we can't read 136 bytes from it. llvm-svn: 100106 | |||||
* | Introduce SpecificBumpPtrAllocator, a wrapper for BumpPtrAllocator which allows | Benjamin Kramer | 2010-03-30 | 1 | -15/+0 | |
| | | | | | | | only a single type of object to be allocated. Use it to make VNInfo destruction typesafe. llvm-svn: 99919 | |||||
* | Introduce namespace-scope functions to enable LLVM statistics without | Douglas Gregor | 2010-03-30 | 1 | -21/+37 | |
| | | | | | | | passing the command-line parameter "-stats" and to print the resulting statistics without calling llvm_shutdown(). llvm-svn: 99893 | |||||
* | Reapply r99881 with some fixes: only call destructor in releaseMemory! | Torok Edwin | 2010-03-30 | 1 | -0/+15 | |
| | | | | llvm-svn: 99883 | |||||
* | Revert 99881, it brooke smooshlab's llvm-gcc-i386-darwin9. | Torok Edwin | 2010-03-30 | 1 | -15/+0 | |
| | | | | llvm-svn: 99882 | |||||
* | Introduce another Reset() method in BumpPtrAllocator that calls a destructor | Torok Edwin | 2010-03-30 | 1 | -0/+15 | |
| | | | | | | | | | | on all objects it has allocated, if they are all of the same size and alignment. Use this to destruct all VNInfos allocated in LiveIntervalAnalysis (PR6653). valnos is not reliable for this purpose, as seen in r99400 (which still leaked, and sometimes caused double frees). llvm-svn: 99881 | |||||
* | stringref'ize Timer apis | Chris Lattner | 2010-03-30 | 1 | -16/+15 | |
| | | | | llvm-svn: 99877 | |||||
* | finally, maintain a global list of timer groups, allowing us to | Chris Lattner | 2010-03-30 | 1 | -0/+30 | |
| | | | | | | | implement TimerGroup::printAll, which prints and resets all active timers. llvm-svn: 99876 | |||||
* | add a new TimerGroup::print method, and refactor away the bogus | Chris Lattner | 2010-03-30 | 1 | -31/+52 | |
| | | | | | | TimerGroup copy ctor and assignment operator. llvm-svn: 99875 | |||||
* | rename GetLibSupportInfoOutputFile -> CreateInfoOutputFile and | Chris Lattner | 2010-03-30 | 2 | -18/+14 | |
| | | | | | | have it always return a new stream to simplify clients. llvm-svn: 99874 | |||||
* | if a timergroup is destroyed before its timers, print times. | Chris Lattner | 2010-03-30 | 2 | -6/+14 | |
| | | | | llvm-svn: 99873 | |||||
* | change TimerGroup to keep a linked list of active timers | Chris Lattner | 2010-03-30 | 1 | -55/+67 | |
| | | | | | | | | instead of just a count of them, and refactor the guts of report printing out of removeTimer into its own method. Refactor addTimerToPrint away. llvm-svn: 99872 | |||||
* | reapply my timer rewrite with a change for PassManager to store | Chris Lattner | 2010-03-30 | 1 | -139/+85 | |
| | | | | | | timers by pointer instead of by-value. llvm-svn: 99871 | |||||
* | revert r99862 which is causing FNT failures. | Chris Lattner | 2010-03-30 | 1 | -85/+139 | |
| | | | | llvm-svn: 99870 | |||||
* | fairly major rewrite of various timing related stuff. | Chris Lattner | 2010-03-30 | 1 | -139/+85 | |
| | | | | llvm-svn: 99862 | |||||
* | move a function into a more logical place in the file | Chris Lattner | 2010-03-29 | 1 | -22/+21 | |
| | | | | llvm-svn: 99842 | |||||
* | remove support for per-time peak memory tracking, this | Chris Lattner | 2010-03-29 | 1 | -29/+4 | |
| | | | | | | | isn't used by anyone and is better exposed as a non-per-timer thing. Also, stop including System/Mutex.h in Timer.h llvm-svn: 99841 | |||||
* | various timer fixes: move operator= out of line, | Chris Lattner | 2010-03-29 | 1 | -13/+20 | |
| | | | | | | | | | eliminate the per-timer lock (timers should be externally locked if needed), the info-output-stream can never be dbgs(), so drop the check. Make some stuff private. llvm-svn: 99839 | |||||
* | s/.../. | Chris Lattner | 2010-03-29 | 1 | -7/+7 | |
| | | | | llvm-svn: 99834 | |||||
* | move code around and improve indentation, no functionality change. | Chris Lattner | 2010-03-29 | 1 | -126/+124 | |
| | | | | llvm-svn: 99831 | |||||
* | improve portability to minix, patch by | Chris Lattner | 2010-03-26 | 1 | -2/+2 | |
| | | | | | | Kees van Reeuwijk for PR6704 llvm-svn: 99677 | |||||
* | Fix minor style issues. | Dan Gohman | 2010-03-24 | 6 | -211/+206 | |
| | | | | llvm-svn: 99414 | |||||
* | Fix comment typo. | Duncan Sands | 2010-03-24 | 1 | -1/+1 | |
| | | | | llvm-svn: 99392 | |||||
* | Add the ability to "intern" FoldingSetNodeID data into a | Dan Gohman | 2010-03-18 | 1 | -0/+10 | |
| | | | | | | | | | | | | BumpPtrAllocator-allocated region to allow it to be stored in a more compact form and to avoid the need for a non-trivial destructor call. Use this new mechanism in ScalarEvolution instead of FastFoldingSetNode to avoid leaking memory in the case where a FoldingSetNodeID uses heap storage, and to reduce overall memory usage. llvm-svn: 98829 | |||||
* | Extend MemoryBuffer::getFile() to take an optional "stat" structure | Douglas Gregor | 2010-03-15 | 1 | -7/+10 | |
| | | | | | | | pointer. If given, the structure will be set with the stat information from the file actually read. llvm-svn: 98575 | |||||
* | make APFloat::toString be const. | Chris Lattner | 2010-03-06 | 1 | -1/+1 | |
| | | | | llvm-svn: 97883 | |||||
* | add an assertion requested on llvmdev. | Chris Lattner | 2010-03-05 | 1 | -0/+1 | |
| | | | | llvm-svn: 97769 | |||||
* | Don't potentially read past the end of the fill data when making a NaN from | John McCall | 2010-03-01 | 1 | -1/+2 | |
| | | | | | | an APInt. llvm-svn: 97467 | |||||
* | Properly clear all the extra bits in a significand when making a NaN from an | John McCall | 2010-02-28 | 1 | -8/+28 | |
| | | | | | | | APInt. Be certain to set the integer bit in an x87 extended-precision significand so that we don't accidentally make a pseudo-NaN. llvm-svn: 97382 | |||||
* | Add an override to StringRef::getAsInteger which parses into an APInt. | John McCall | 2010-02-28 | 1 | -12/+93 | |
| | | | | | | | | | | It gets its own implementation totally divorced from the (presumably performance-sensitive) routines which parse into a uint64_t. Add APInt::operator|=(uint64_t), which is situationally much better than using a full APInt. llvm-svn: 97381 | |||||
* | Teach APFloat how to create both QNaNs and SNaNs and with arbitrary-width | John McCall | 2010-02-28 | 2 | -12/+45 | |
| | | | | | | | | payloads. APFloat's internal folding routines always make QNaNs now, instead of sometimes making QNaNs and sometimes SNaNs depending on the type. llvm-svn: 97364 | |||||
* | Make APFloat's string-parsing routines a bit safer against very large exponents. | John McCall | 2010-02-26 | 1 | -2/+16 | |
| | | | | llvm-svn: 97278 | |||||
* | Replace a temporary std::string with SmallString. | Benjamin Kramer | 2010-02-26 | 1 | -1/+2 | |
| | | | | llvm-svn: 97259 | |||||
* | Adding the MicroBlaze backend. | Wesley Peck | 2010-02-23 | 1 | -0/+9 | |
| | | | | | | | | | | | | The MicroBlaze is a highly configurable 32-bit soft-microprocessor for use on Xilinx FPGAs. For more information see: http://www.xilinx.com/tools/microblaze.htm http://en.wikipedia.org/wiki/MicroBlaze The current LLVM MicroBlaze backend generates assembly which can be compiled using the an appropriate binutils assembler. llvm-svn: 96969 | |||||
* | Fix viewCFG on Linux. | Jeffrey Yasskin | 2010-02-23 | 1 | -1/+1 | |
| | | | | llvm-svn: 96834 | |||||
* | Fix various doxygen warnings. | Dan Gohman | 2010-02-22 | 1 | -2/+0 | |
| | | | | llvm-svn: 96779 | |||||
* | Refer to -help instead of --help since this is what tools themselves say. | Duncan Sands | 2010-02-18 | 1 | -7/+7 | |
| | | | | | | | | Also, have tools output -help-hidden rather than refer to --help-hidden, for consistency, and likewise adjust documentation. This doesn't change every mention of --help, only those which seemed clearly safe. llvm-svn: 96578 | |||||
* | Add Regex::sub, for doing regular expression substitution with backreferences. | Daniel Dunbar | 2010-02-17 | 1 | -0/+76 | |
| | | | | llvm-svn: 96503 | |||||
* | enhance raw_svector_ostream::write_impl to work with unbuffered streams, | Chris Lattner | 2010-02-15 | 1 | -6/+12 | |
| | | | | | | which may call write_impl on things that are not the usual buffer. llvm-svn: 96209 | |||||
* | make PadToColumn return the stream so you can use: | Chris Lattner | 2010-02-15 | 1 | -1/+2 | |
| | | | | | | OS.PadToColumn(42) << "foo"; llvm-svn: 96208 | |||||
* | Fix "the the" and similar typos. | Dan Gohman | 2010-02-10 | 1 | -2/+2 | |
| | | | | llvm-svn: 95781 |