dce4a407a24b04eebc6a376f8e62b41aaa7b071f |
|
29-May-2014 |
Stephen Hines <srhines@google.com> |
Update LLVM for 3.5 rebase (r209712). Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/include/llvm/Support/Allocator.h
|
36b56886974eae4f9c5ebc96befd3e7bfe5de338 |
|
24-Apr-2014 |
Stephen Hines <srhines@google.com> |
Update to LLVM 3.5a. Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/include/llvm/Support/Allocator.h
|
7f9a887d3f64d1227b911c9180767d95dbba4c10 |
|
28-Aug-2013 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[BumpPtrAllocator] Move DefaultSlabAllocator to a member of BumpPtrAllocator, instead of a static variable. The problem with having DefaultSlabAllocator being a global static is that it is undefined if BumpPtrAllocator will be usable during global initialization because it is not guaranteed that DefaultSlabAllocator will be initialized before BumpPtrAllocator is created and used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189433 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
255f89faee13dc491cb64fbeae3c763e7e2ea4e6 |
|
03-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Sort the #include lines for the include/... tree with the script. AKA: Recompile *ALL* the source code! This one went much better. No manual edits here. I spot-checked for silliness and grep-checked for really broken edits and everything seemed good. It all still compiles. Yell if you see something that looks goofy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169133 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
a96a1824747632ce87ef065b4a13fb777d2b14d6 |
|
23-Sep-2012 |
Craig Topper <craig.topper@gmail.com> |
Add LLVM_OVERRIDE to methods that override their base classes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164471 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
f630e49efc7bf3f1716b6daab3c2cc11a908754a |
|
16-Sep-2012 |
Craig Topper <craig.topper@gmail.com> |
Use LLVM_DELETED_FUNCTION for copy constructors and copy assignment operators that aren't implemented. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
d8a627b33bdd3dec806a2fe8c699c1e9896675c6 |
|
06-Jul-2012 |
Dmitri Gribenko <gribozavr@gmail.com> |
Revert r159789. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159834 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
0da21789b3b1b51dbdf3e6ea5682a8508e747ca9 |
|
06-Jul-2012 |
Dmitri Gribenko <gribozavr@gmail.com> |
Enable new[] on llvm::BumpPtrAllocator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159789 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
1da29dd3f85f5e3f50365d8e75efb8cbfba84381 |
|
19-Apr-2011 |
Ted Kremenek <kremenek@apple.com> |
Add BumpPtrAllocator::getTotalMemory() to allow clients to query how much memory a BumpPtrAllocator allocated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129727 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
61a10a0dc91863b70002cc412a1277357d6a4b45 |
|
03-Jan-2011 |
Chris Lattner <sabre@nondot.org> |
Enhance ScopedHashTable to allow it to take an allocator argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122721 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
1f6efa3996dd1929fbc129203ce5009b620e6969 |
|
29-Nov-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Merge System into Support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
16c3b647eb100fe404ee65f106d563ddef6c74b7 |
|
30-Oct-2010 |
Chris Lattner <sabre@nondot.org> |
Rename alignof -> alignOf to avoid irritating C++'0x compilers, PR8423, patch by nobled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117774 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
75e2016f02428289e9cfd693a27bcd9a2a5cc00f |
|
03-Oct-2010 |
Duncan Sands <baldrick@free.fr> |
Remove two uses of the gcc specific 'aligned' attribute. This is partly because this attribute caused trouble in the past (the SmallVector one had to be changed from aligned to aligned(8) due to causing crashes on i386 for example; in theory the same might be needed in the Allocator case...). But it's mostly because there seems to be no point in special casing gcc here. Using the same implementation for all compilers results in better testing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115462 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
180c3d4edd1219832be8f2cf91f5f73f9757c36f |
|
08-Apr-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Provide operator delete for BumpPtrAllocator and RecyclingAllocator. They will never be called but msvc complains that they're missing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100766 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
bbef815a3beeba3161cdad8e1cc108644bfc5ddc |
|
04-Apr-2010 |
Jakob Stoklund Olesen <stoklund@2pi.dk> |
Switch SSEDomainFix to SpecificBumpPtrAllocator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100332 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
86bfd34ece523d863282ef2a2e4cf451c387c559 |
|
02-Apr-2010 |
Torok Edwin <edwintorok@gmail.com> |
Fix SpecificBumpPtrAllocator iteration. Need to start from (char*)(Slab+1), and not from (char*)Slab+1. This fixes crashes in Win64 debug mode. Thanks to Nicolas Capens! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100184 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
991de14dd62dcbab4b31357ae22dc5b053ba50a0 |
|
30-Mar-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Introduce SpecificBumpPtrAllocator, a wrapper for BumpPtrAllocator which allows only a single type of object to be allocated. Use it to make VNInfo destruction typesafe. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99919 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
01cb1b665da03e2b74c0724f71751e912ec8c2be |
|
30-Mar-2010 |
Torok Edwin <edwintorok@gmail.com> |
Reapply r99881 with some fixes: only call destructor in releaseMemory! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99883 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
226dd2ba992b1f00491c10c59ca1889825bf92b6 |
|
30-Mar-2010 |
Torok Edwin <edwintorok@gmail.com> |
Revert 99881, it brooke smooshlab's llvm-gcc-i386-darwin9. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99882 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
2a22004f6857c57dc483ea6180f0e1f86854bd13 |
|
30-Mar-2010 |
Torok Edwin <edwintorok@gmail.com> |
Introduce another Reset() method in BumpPtrAllocator that calls a destructor 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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99881 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
debbef20ee27e7808a81f261fd9da6c87c6179f0 |
|
18-Mar-2010 |
Dan Gohman <gohman@apple.com> |
offsetof always has type size_t. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98854 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
aea1b501ceff5a10e9def91febcc80926196391d |
|
18-Mar-2010 |
Dan Gohman <gohman@apple.com> |
Explicitly cast std::min's arguments to avoid type mismatches. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98851 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
9553188fccbf0ae9c5b6bef26d0d2bd5feff8b59 |
|
18-Mar-2010 |
Dan Gohman <gohman@apple.com> |
Define placement new wrappers for BumpPtrAllocator and RecyclingAllocator to allow client code to be simpler, and simplify several clients. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98847 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
c5b7b196770f8c3c83e4ec06c0f2a1f53b623b6f |
|
16-Jan-2010 |
Bill Wendling <isanbard@gmail.com> |
Temporarily revert r93581. It was causing failures in the ExecutionEngine tests on the build bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93606 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
67c59826bf0c2e980130781d1ea0d6b062e4b659 |
|
16-Jan-2010 |
Ted Kremenek <kremenek@apple.com> |
BumpPtrAllocator: Have the DefaultSlabAllocator created at runtime, not initialization time. This removes one of the 'init_constructors' reported in <rdar://problem/7545356>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93581 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
8b67f774e9c38b7718b2b300b628388f966df4e0 |
|
26-Oct-2009 |
Chandler Carruth <chandlerc@gmail.com> |
Move DataTypes.h to include/llvm/System, update all users. This breaks the last direct inclusion edge from System to Support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85086 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
8f51a62b41a425f7fe262ff20cee835129ecc072 |
|
23-Jul-2009 |
Reid Kleckner <reid@kleckner.net> |
Re-committing changes from r76825 to BumpPtrAllocator with a fix and tests for an off-by-one error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76891 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
4bf370698a456bcc96d26184785eb4f5fab396f2 |
|
23-Jul-2009 |
Reid Kleckner <reid@kleckner.net> |
Reverting r76825 and r76828, since they caused clang runtime errors and some build failure involving memset. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76838 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
95eb3ad353460c6987a9d1e03a3e3e12c75b4059 |
|
23-Jul-2009 |
Reid Kleckner <reid@kleckner.net> |
Parameterize the BumpPtrAllocator over a slab allocator. It defaults to using malloc, so there should be no functional changes to other code. These changes are necessary since I have plans to use this allocator in the JIT memory manager, and it needs a special allocator. I also added some tests which helped me pinpoint some bugs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76825 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
535f390bc30973fdcf29f616896bd96dd49e1737 |
|
11-Mar-2009 |
Mon P Wang <wangmp@apple.com> |
Changed Allocate to use size_t instead of unsigned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
cabb383aba8a4ce3691cbcd9a42fc7b136b7feed |
|
11-Mar-2009 |
Mon P Wang <wangmp@apple.com> |
Fixed rounding up EltSize git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66594 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
fe2cce63aa26d0916fa7be32c6bf7fa8fb059ee7 |
|
20-Feb-2009 |
Misha Brukman <brukman+llvm@gmail.com> |
Removed trailing whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65196 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
3f4c81de0ac7ff75e538dd68ef4ecfa204760bc9 |
|
06-Feb-2009 |
Ted Kremenek <kremenek@apple.com> |
Deallocate() methods now take a 'const void*' instead of a 'void *', matching observed behavior with how 'delete[]' can be used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63956 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
603884021010e227db6cc3fcc4c7f5e555e4a8dc |
|
03-Feb-2009 |
Chris Lattner <sabre@nondot.org> |
add a method to BumpPtrAllocator that allows allocating elements with a specified alignment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63629 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
07c2a78c2b9bf2500ece856c2df2dc043db9acb6 |
|
14-Jan-2009 |
Ted Kremenek <kremenek@apple.com> |
Add member template MallocAllocator::Allocate(Num) (to match the same function in BumpPtrAllocator). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62202 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
e8be6c63915e0389f1eef6b53c64300d13b2ce99 |
|
17-Jul-2008 |
Dan Gohman <gohman@apple.com> |
Add a new function, ReplaceAllUsesOfValuesWith, which handles bulk replacement of multiple values. This is slightly more efficient than doing multiple ReplaceAllUsesOfValueWith calls, and theoretically could be optimized even further. However, an important property of this new function is that it handles the case where the source value set and destination value set overlap. This makes it feasible for isel to use SelectNodeTo in many very common cases, which is advantageous because SelectNodeTo avoids a temporary node and it doesn't require CSEMap updates for users of values that don't change position. Revamp MorphNodeTo, which is what does all the work of SelectNodeTo, to handle operand lists more efficiently, and to correctly handle a number of corner cases to which its new wider use exposes it. This commit also includes a change to the encoding of post-isel opcodes in SDNodes; now instead of being sandwiched between the target-independent pre-isel opcodes and the target-dependent pre-isel opcodes, post-isel opcodes are now represented as negative values. This makes it possible to test if an opcode is pre-isel or post-isel without having to know the size of the current target's post-isel instruction set. These changes speed up llc overall by 3% and reduce memory usage by 10% on the InstructionCombining.cpp testcase with -fast and -regalloc=local. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53728 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
7698252750b29bbd8de20f5404241953221470f4 |
|
07-Jul-2008 |
Dan Gohman <gohman@apple.com> |
Make BumpPtrAllocator noncopyable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53188 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
dae6f4cf7604d2f11a18e430f925f0925ce0fadd |
|
07-Jul-2008 |
Dan Gohman <gohman@apple.com> |
Add a space between * and /* to help simple-minded lexers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53187 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
8032020cf209721bc104648f28b1c4b45fb88691 |
|
26-Jun-2008 |
Bill Wendling <isanbard@gmail.com> |
Remove warnings about shadowed and unused variables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52791 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
f4dc289cea5dbfa272b54a8436a6bda6b226cee2 |
|
24-Jun-2008 |
Dan Gohman <gohman@apple.com> |
Make Allocate<T>() return a T* instead of a void*. And use static_cast instead of reinterpret_cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52686 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
34cd4a484e532cc463fd5a4bf59b88d13c5467c1 |
|
05-May-2008 |
Evan Cheng <evan.cheng@apple.com> |
Fix more -Wshorten-64-to-32 warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
7ed47a13356daed2a34cd2209a31f92552e3bdd8 |
|
29-Dec-2007 |
Chris Lattner <sabre@nondot.org> |
Don't attribute in file headers anymore. See llvmdev for the discussion of this change. Boy are my fingers tired. ;-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45411 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
abb8bf131c8542ff25964b69797558d425ed93c8 |
|
14-Dec-2007 |
Dan Gohman <gohman@apple.com> |
Fix a typo in a comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45031 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
52e2d83e653abd745d93bc05acba59c32a64eabf |
|
18-Oct-2007 |
Ted Kremenek <kremenek@apple.com> |
Changed the return type of type-specific Allocate() methods to return void*. This is hint that we are returning uninitialized memory rather than a constructed object. Patched ImutAVLTree to conform to this new interface. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43106 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
869a3344f17975f57a328dcc8bacf6775344c045 |
|
17-Oct-2007 |
Ted Kremenek <kremenek@apple.com> |
Added member template functions to MallocAllocator and BumpPtrAllocator that implement allocations that return a properly typed pointer. For BumpPtrAllocator, the allocated memory is automatically aligned to the minimum alignment of the type (as calculated by llvm::AlignOf::Alignment). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43087 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
188b5224fd9c8573713665c77f9d2f415bcc4ff1 |
|
05-Sep-2007 |
Evan Cheng <evan.cheng@apple.com> |
Added Reset() to free all allocated memory regions and reset state to be the same as right after ctor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41728 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|
9f617d64c5f3f2a0949f359f63b1cb3bff4b3a9b |
|
29-Oct-2006 |
Chris Lattner <sabre@nondot.org> |
Add a new llvm::Allocator abstraction, which will be used by a container I'm about to add. This is similar to, but necessarily different than, the STL allocator class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31285 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/Allocator.h
|