summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Allocator.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fold the useful features of alist and alist_node into ilist, andDan Gohman2008-07-281-2/+4
| | | | | | | | | | | | | | | | a new ilist_node class, and remove them. Unlike alist_node, ilist_node doesn't attempt to manage storage itself, so it avoids the associated problems, including being opaque in gdb. Adjust the Recycler class so that it doesn't depend on alist_node. Also, change it to use explicit Size and Align parameters, allowing it to work when the largest-sized node doesn't have the greatest alignment requirement. Change MachineInstr's MachineMemOperand list from a pool-backed alist to a std::list for now. llvm-svn: 54146
* Add some basic Pool-allocation infrastructure. This adds a Recycler class,Dan Gohman2008-07-071-0/+7
| | | | | | | | for handling bookkeeping for deleted objects, as well as the alist class template, for keeping lists of objects allocated from Recyclers, and some related utilities. llvm-svn: 53210
* Fix more -Wshorten-64-to-32 warnings.Evan Cheng2008-05-051-2/+2
| | | | llvm-svn: 50659
* Fix a pointer-arithmetic bug that caused 64-bit host pointer values toDan Gohman2008-04-281-1/+1
| | | | | | | be truncated to 32 bits. This fixes the recent Benchmarks/McCat/09-vor regression on x86-64, among other things. llvm-svn: 50372
* Bug fix in BumpPtrAllocator: don't assume that all objects have the same ↵Ted Kremenek2008-04-281-6/+9
| | | | | | alignment. "Bump" of the pointer for the next allocated object to be of the specified alignment. llvm-svn: 50362
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45418
* Smarter Reset(). Instead of deallocating all memory regions and reallocate theEvan Cheng2007-09-081-5/+17
| | | | | | first region, just deallocate all but the last region in the list. llvm-svn: 41782
* Added Reset() to free all allocated memory regions and reset state to be the ↵Evan Cheng2007-09-051-0/+6
| | | | | | same as right after ctor. llvm-svn: 41728
* Avoid TBAA issue.Chris Lattner2007-02-231-1/+4
| | | | llvm-svn: 34539
* Don't use <sstream> in Streams.h but <iosfwd> instead.Bill Wendling2006-12-071-0/+1
| | | | llvm-svn: 32340
* Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, areBill Wendling2006-12-071-2/+2
| | | | | | now cerr, cout, and NullStream resp. llvm-svn: 32298
* Removed #include <iostream> and replace with llvm_* streams.Bill Wendling2006-11-261-3/+3
| | | | llvm-svn: 31927
* Include llvm/Support/DataTypes.h to define intptr_t.John Criswell2006-11-081-0/+1
| | | | | | This fixes the build on OpenBSD and potentially other systems. llvm-svn: 31550
* Add a new llvm::Allocator abstraction, which will be used by a containerChris Lattner2006-10-291-0/+106
I'm about to add. This is similar to, but necessarily different than, the STL allocator class. llvm-svn: 31285
OpenPOWER on IntegriCloud