Author: kremenek
Date: Fri Feb 15 15:12:46 2008
New Revision: 47178
URL: http://llvm.org/viewvc/llvm-project?rev=47178&view=rev
Log:
Fixed bug in FoldingSetIteratorImpl where we did not correctly check if
we had reached the "fake bucket" after the last bucket, allowing the iterator
in some cases t
Author: kremenek
Date: Mon Feb 11 17:11:12 2008
New Revision: 46975
URL: http://llvm.org/viewvc/llvm-project?rev=46975&view=rev
Log:
The factories for ImutAVLTree/ImmutableSet/ImmutableMap now take an (optional)
BumpPtrAllocator argument to their constructors. This BumpPtrAllocator
will be used t
Author: kremenek
Date: Mon Feb 11 11:24:50 2008
New Revision: 46957
URL: http://llvm.org/viewvc/llvm-project?rev=46957&view=rev
Log:
Added "Profile" method to APFloat for use with FoldingSet.
Added member template "Add" to FoldingSetNodeID that allows "adding" arbitrary
objects to a profile via d
I'm wondering if we need to keep on adding specialized "Add" methods
to FoldingSet.
For example, APInt already has a "Profile" method for adding its
profile to a FoldingSetNodeID, and APFloat could easily have a Profile
method added to it. Now that FoldingSet uses FoldingSetTrait<> to
pro
Author: kremenek
Date: Fri Feb 8 01:14:19 2008
New Revision: 46882
URL: http://llvm.org/viewvc/llvm-project?rev=46882&view=rev
Log:
Constified operator<< in APSInt.
Modified:
llvm/trunk/include/llvm/ADT/APSInt.h
Modified: llvm/trunk/include/llvm/ADT/APSInt.h
URL:
http://llvm.org/viewvc/llv
Author: kremenek
Date: Tue Feb 5 12:50:25 2008
New Revision: 46757
URL: http://llvm.org/viewvc/llvm-project?rev=46757&view=rev
Log:
Added FoldingSet profiling support to ImmutableSet.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableSet.h
Modified: llvm/trunk/include/llvm/ADT/ImmutableSet.h
U
Author: kremenek
Date: Tue Feb 5 11:30:43 2008
New Revision: 46753
URL: http://llvm.org/viewvc/llvm-project?rev=46753&view=rev
Log:
Changed profiling method for ImmutableMap to once again just use its
unique ImutAVLTree* for profiling.
Modified ImutAVLTree:
(1) changed ComputeHash() to ComputeD
Author: kremenek
Date: Mon Feb 4 15:17:02 2008
New Revision: 46719
URL: http://llvm.org/viewvc/llvm-project?rev=46719&view=rev
Log:
Modified 'Profile' method of ImmutableMap to use the 'Profile' method
of the contained ImutAVLTree root.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableMap.h
M
Author: kremenek
Date: Mon Feb 4 15:15:24 2008
New Revision: 46717
URL: http://llvm.org/viewvc/llvm-project?rev=46717&view=rev
Log:
Modified node creation of ImutAVLTree to do a hash lookup for an existing
node in the FoldingSet of nodes held by the Factory object. If we
we find a node with a ma
Author: kremenek
Date: Mon Feb 4 15:11:17 2008
New Revision: 46716
URL: http://llvm.org/viewvc/llvm-project?rev=46716&view=rev
Log:
Added "bucket_iterators" to FoldingSet. Bucket iterators allow iteration
over all the nodes in a particular bucket.
Modified:
llvm/trunk/include/llvm/ADT/Foldi
Author: kremenek
Date: Mon Feb 4 11:14:20 2008
New Revision: 46709
URL: http://llvm.org/viewvc/llvm-project?rev=46709&view=rev
Log:
Fixed 80 col. violation.
Modified:
llvm/trunk/lib/Support/FoldingSet.cpp
Modified: llvm/trunk/lib/Support/FoldingSet.cpp
URL:
http://llvm.org/viewvc/llvm-proj
Author: kremenek
Date: Mon Feb 4 10:57:26 2008
New Revision: 46707
URL: http://llvm.org/viewvc/llvm-project?rev=46707&view=rev
Log:
constified operator~().
Modified:
llvm/trunk/include/llvm/ADT/APSInt.h
Modified: llvm/trunk/include/llvm/ADT/APSInt.h
URL:
http://llvm.org/viewvc/llvm-project
Author: kremenek
Date: Tue Jan 29 12:55:14 2008
New Revision: 46521
URL: http://llvm.org/viewvc/llvm-project?rev=46521&view=rev
Log:
Altered ctor for APSInt to accept an optional "isUnsigned" flag. Default
behavior is unchanged.
Modified:
llvm/trunk/include/llvm/ADT/APSInt.h
Modified: llvm/
Author: kremenek
Date: Mon Jan 28 16:05:23 2008
New Revision: 46465
URL: http://llvm.org/viewvc/llvm-project?rev=46465&view=rev
Log:
Added destructor for template class FoldingSetNodeWrapper.
Added getValue() to FoldingSetNodeWrapper.
Modified:
llvm/trunk/include/llvm/ADT/FoldingSet.h
Modifi
Author: kremenek
Date: Thu Jan 24 12:59:52 2008
New Revision: 46316
URL: http://llvm.org/viewvc/llvm-project?rev=46316&view=rev
Log:
Added additional overloaded operators for APSInt to match the operators of
APInt.
While some operators were already specifically overloaded for APSInt, others
resul
Author: kremenek
Date: Wed Jan 23 16:29:58 2008
New Revision: 46283
URL: http://llvm.org/viewvc/llvm-project?rev=46283&view=rev
Log:
Added special escape sequences "\{", "\}", and "\|" when processing
getNodeLabel(); these sequences allow the user to specify the characters '{',
'}', and '|' in the
Author: kremenek
Date: Wed Jan 23 13:57:33 2008
New Revision: 46277
URL: http://llvm.org/viewvc/llvm-project?rev=46277&view=rev
Log:
Added "getRoot()" to ImmutableSet.
Made ImmutableSet::ImmutableSet(ImutAVLTree* Root) public. (this allows handy
casting between trees and sets).
Modified:
l
On Jan 21, 2008, at 2:36 PM, Chris Lattner wrote:
> On Jan 21, 2008, at 2:33 PM, Ted Kremenek wrote:
>> URL: http://llvm.org/viewvc/llvm-project?rev=46224&view=rev
>> Log:
>> Replaced (FoldingSet) profiling of ImutAVLTree with a hashing based
>> scheme. The
&g
Author: kremenek
Date: Mon Jan 21 16:54:46 2008
New Revision: 46229
URL: http://llvm.org/viewvc/llvm-project?rev=46229&view=rev
Log:
Fixed buggy caching of the hash value of an ImutAVLTree node.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableSet.h
Modified: llvm/trunk/include/llvm/ADT/Immuta
Author: kremenek
Date: Mon Jan 21 16:51:35 2008
New Revision: 46228
URL: http://llvm.org/viewvc/llvm-project?rev=46228&view=rev
Log:
Moved method call within a conditional branch because its effects will
be ignored on the false branch.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableSet.h
Mod
Author: kremenek
Date: Mon Jan 21 16:50:37 2008
New Revision: 46227
URL: http://llvm.org/viewvc/llvm-project?rev=46227&view=rev
Log:
Adjusted ImutAVLTree::ComputeHash to compute a hash value that is based on a
clearer sequence of hashing compositions.
Modified:
llvm/trunk/include/llvm/ADT/Imm
Author: kremenek
Date: Mon Jan 21 16:49:22 2008
New Revision: 46226
URL: http://llvm.org/viewvc/llvm-project?rev=46226&view=rev
Log:
Added "clear" method to FoldingSetNodeID to allow a FoldingSetNodeID object
to be reused to compute multiple object profiles.
Modified:
llvm/trunk/include/llvm/
Author: kremenek
Date: Mon Jan 21 16:33:30 2008
New Revision: 46224
URL: http://llvm.org/viewvc/llvm-project?rev=46224&view=rev
Log:
Replaced (FoldingSet) profiling of ImutAVLTree with a hashing based scheme. The
problem was that we previously hashed based on the pointers of the left and
right chi
Author: kremenek
Date: Sat Jan 19 11:21:43 2008
New Revision: 46193
URL: http://llvm.org/viewvc/llvm-project?rev=46193&view=rev
Log:
Changed argument name for 'Profile' method to potentially fix a name conflict
reported in pr1929 (http://llvm.org/PR1929).
Modified:
llvm/trunk/include/llvm/ADT
Author: kremenek
Date: Fri Jan 18 22:51:55 2008
New Revision: 46190
URL: http://llvm.org/viewvc/llvm-project?rev=46190&view=rev
Log:
Modified ImmutableSet/ImmutableMap to use FoldingSet profiling using
FoldingSetTrait instead of directly calling a 'Profile' method.
Modified:
llvm/trunk/includ
Author: kremenek
Date: Fri Jan 18 22:31:12 2008
New Revision: 46189
URL: http://llvm.org/viewvc/llvm-project?rev=46189&view=rev
Log:
Added FoldingSet style 'profiling' support for APSInt.
Added:
llvm/trunk/lib/Support/APSInt.cpp
Modified:
llvm/trunk/include/llvm/ADT/APSInt.h
Modified: ll
Author: kremenek
Date: Fri Jan 18 22:23:33 2008
New Revision: 46188
URL: http://llvm.org/viewvc/llvm-project?rev=46188&view=rev
Log:
Added FoldingSet style 'profiling' support for APInt.
Modified:
llvm/trunk/include/llvm/ADT/APInt.h
llvm/trunk/lib/Support/APInt.cpp
Modified: llvm/trunk/i
Author: kremenek
Date: Fri Jan 18 22:22:50 2008
New Revision: 46187
URL: http://llvm.org/viewvc/llvm-project?rev=46187&view=rev
Log:
Made 'FoldingSetNodeID' a proper class instead of a nested class in
'FoldingSetNodeImpl' (previously 'FoldingSetNodeID' was a typedef of
'FoldingSetNodeImpl::NodeID'
Author: kremenek
Date: Fri Jan 18 21:58:00 2008
New Revision: 46186
URL: http://llvm.org/viewvc/llvm-project?rev=46186&view=rev
Log:
Made 'profiling' of objects in a FoldingSet trait-based using FoldingSetTrait
instead of always assuming that the stored objects had a method called
'Profile'. The d
Author: kremenek
Date: Thu Jan 17 18:38:04 2008
New Revision: 46150
URL: http://llvm.org/viewvc/llvm-project?rev=46150&view=rev
Log:
Reverted implementation of ImmutableMap::find() to return a TreeTy* instead of
an iterator, since the implementation returned an iterator that pointed to a
different
Author: kremenek
Date: Thu Jan 17 11:36:49 2008
New Revision: 46130
URL: http://llvm.org/viewvc/llvm-project?rev=46130&view=rev
Log:
Implemented "FIXME" in ImutAVLTree: isEqual() now also compares the *data* value
and not just the key value when comparing trees. To do this we added data_type
and d
Author: kremenek
Date: Tue Jan 15 17:53:53 2008
New Revision: 46034
URL: http://llvm.org/viewvc/llvm-project?rev=46034&view=rev
Log:
Changed ImmutableMap::find to return an iterator instead of a pointer
to the tree node.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableMap.h
Modified: llvm/tru
Author: kremenek
Date: Tue Jan 8 15:05:59 2008
New Revision: 45756
URL: http://llvm.org/viewvc/llvm-project?rev=45756&view=rev
Log:
Added "getRoot()" to ImmutableMap.
Made the ctor for ImmutableMap to construct a map from an AVL tree public.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableMap
Author: kremenek
Date: Tue Jan 8 13:38:55 2008
New Revision: 45752
URL: http://llvm.org/viewvc/llvm-project?rev=45752&view=rev
Log:
Fixed 80 col. violation.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableMap.h
Modified: llvm/trunk/include/llvm/ADT/ImmutableMap.h
URL:
http://llvm.org/viewvc
Author: kremenek
Date: Wed Jan 2 16:18:33 2008
New Revision: 45507
URL: http://llvm.org/viewvc/llvm-project?rev=45507&view=rev
Log:
Inverted argument order for ImmutableMap::Profile.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableMap.h
Modified: llvm/trunk/include/llvm/ADT/ImmutableMap.h
UR
Author: kremenek
Date: Wed Jan 2 15:31:48 2008
New Revision: 45503
URL: http://llvm.org/viewvc/llvm-project?rev=45503&view=rev
Log:
Added iterator and profiling (i.e. FoldingSetNodeID) support to ImmutableMap.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableMap.h
Modified: llvm/trunk/include
Author: kremenek
Date: Mon Dec 24 02:04:39 2007
New Revision: 45341
URL: http://llvm.org/viewvc/llvm-project?rev=45341&view=rev
Log:
Added special support for stripping CRLF characters that may appear in the
output of nm.
Modified:
llvm/trunk/utils/GenLibDeps.pl
Modified: llvm/trunk/utils/Ge
Author: kremenek
Date: Thu Dec 20 18:15:29 2007
New Revision: 45274
URL: http://llvm.org/viewvc/llvm-project?rev=45274&view=rev
Log:
Removed scoped_ptr, as its functionality is subsumed by OwningPtr.
Removed:
llvm/trunk/include/llvm/ADT/scoped_ptr.h
Removed: llvm/trunk/include/llvm/ADT/scope
Author: kremenek
Date: Thu Dec 20 13:53:47 2007
New Revision: 45266
URL: http://llvm.org/viewvc/llvm-project?rev=45266&view=rev
Log:
Added OwningArrayPtr smart pointer class to provide an analogous class to
OwningPtr except that it works for pointers to arrays.
Modified:
llvm/trunk/include/ll
Author: kremenek
Date: Tue Dec 18 16:07:33 2007
New Revision: 45182
URL: http://llvm.org/viewvc/llvm-project?rev=45182&view=rev
Log:
Added "GetCurrentDirectory()" to sys::Path.
Modified:
llvm/trunk/include/llvm/System/Path.h
llvm/trunk/lib/System/Unix/Path.inc
llvm/trunk/lib/System/Wi
Author: kremenek
Date: Tue Dec 18 13:46:22 2007
New Revision: 45168
URL: http://llvm.org/viewvc/llvm-project?rev=45168&view=rev
Log:
Added "isDirectory" method to llvm::sys::Path.
Modified:
llvm/trunk/include/llvm/System/Path.h
llvm/trunk/lib/System/Unix/Path.inc
llvm/trunk/lib/System
Author: kremenek
Date: Tue Dec 18 12:25:55 2007
New Revision: 45162
URL: http://llvm.org/viewvc/llvm-project?rev=45162&view=rev
Log:
Added some sectioning comments to Serialize.h.
Added additional serialization functors for use with std::foreach.
Modified:
llvm/trunk/include/llvm/Bitcode/Seri
Author: kremenek
Date: Mon Dec 17 16:25:12 2007
New Revision: 45129
URL: http://llvm.org/viewvc/llvm-project?rev=45129&view=rev
Log:
Modified Deserializer::ReadCStr to allow C-strings to be read into a
std::vector starting from any index in the vector.
Modified:
llvm/trunk/include/llvm/Bitcod
Author: kremenek
Date: Mon Dec 10 16:28:35 2007
New Revision: 44815
URL: http://llvm.org/viewvc/llvm-project?rev=44815&view=rev
Log:
Added two bounds checks to the BitVector class to detect
out-of-bounds bit accesses. The checks are only performed
in a Debug build.
Modified:
llvm/trunk/inclu
Author: kremenek
Date: Tue Dec 4 18:13:07 2007
New Revision: 44589
URL: http://llvm.org/viewvc/llvm-project?rev=44589&view=rev
Log:
Added "Emitter" functor to allow easy emitting of elements of a container
using std::for_each.
Modified:
llvm/trunk/include/llvm/Bitcode/Serialize.h
Modified:
Fantastic! Merci!
On Nov 30, 2007, at 4:34 PM, Eric Christopher wrote:
> Author: echristo
> Date: Fri Nov 30 18:34:39 2007
> New Revision: 44478
>
> URL: http://llvm.org/viewvc/llvm-project?rev=44478&view=rev
> Log:
> Add target triple to include/llvm/Config/config.h.in. Regenerate all
> files
Author: kremenek
Date: Fri Nov 30 16:45:05 2007
New Revision: 44470
URL: http://llvm.org/viewvc/llvm-project?rev=44470&view=rev
Log:
Fixed subtle bug in Deserializer::JumpTo when jumping when the block-nesting
information matching did not exactly match the underlying stream's scoping
information.
Author: kremenek
Date: Fri Nov 30 16:39:46 2007
New Revision: 44469
URL: http://llvm.org/viewvc/llvm-project?rev=44469&view=rev
Log:
Fixed potential bug where CurWord is not zeroed out in JumpToBit.
Modified:
llvm/trunk/include/llvm/Bitcode/BitstreamReader.h
Modified: llvm/trunk/include/llvm
Author: kremenek
Date: Tue Nov 27 13:31:11 2007
New Revision: 44372
URL: http://llvm.org/viewvc/llvm-project?rev=44372&view=rev
Log:
Updated GenLibDeps.pl to employ "use strict" to help prevent uses of variables
that have not yet been defined.
Removed used of grep and sed when parsing the results
Author: kremenek
Date: Tue Nov 27 11:53:54 2007
New Revision: 44365
URL: http://llvm.org/viewvc/llvm-project?rev=44365&view=rev
Log:
Added quotes around $(NM_PATH) argument to GenLibDeps.pl script so that
the "-p" option is actually seen by nm (it was being dropped as it was
considered as separate
Author: kremenek
Date: Fri Nov 16 21:34:33 2007
New Revision: 44203
URL: http://llvm.org/viewvc/llvm-project?rev=44203&view=rev
Log:
Reverted patch 44199:
http://llvm.org/viewvc/llvm-project?rev=44199&view=rev
This patch completely broke serialization due to an invariant I assumed but
did not ho
Author: kremenek
Date: Fri Nov 16 18:45:37 2007
New Revision: 44200
URL: http://llvm.org/viewvc/llvm-project?rev=44200&view=rev
Log:
Changed implementation of Serialize::EmitDiffPtrID and
Deserialize::ReadDiffPtrID to read and emit bools instead of unsigned
integers. This should result in a nice s
Author: kremenek
Date: Fri Nov 16 18:40:45 2007
New Revision: 44199
URL: http://llvm.org/viewvc/llvm-project?rev=44199&view=rev
Log:
Implemented optimization for BatchEmitOwnedPtrs that we only emit one complete
SerializedPtrID, followed by the *differences* in IDs. The big idea is that
most IDs w
Author: kremenek
Date: Wed Nov 14 18:05:03 2007
New Revision: 44152
URL: http://llvm.org/viewvc/llvm-project?rev=44152&view=rev
Log:
Fixed serious bug in BatchReadOwnedPtrs where in a chain of calls to
deserialize objects if BatchReadOwnedPtrs was called more than once in the
same call chain then
Author: kremenek
Date: Wed Nov 14 11:42:09 2007
New Revision: 44124
URL: http://llvm.org/viewvc/llvm-project?rev=44124&view=rev
Log:
Removed debug #define that was accidentally checked in while debugging
the deserializer.
Fixed assertion when "stream jumping" in the deserializer to properly funct
Author: kremenek
Date: Wed Nov 14 02:05:03 2007
New Revision: 44105
URL: http://llvm.org/viewvc/llvm-project?rev=44105&view=rev
Log:
Added two new overloaded versions of BatchEmitOwnedPtrs and
BatchReadOwnedPtrs.
Modified:
llvm/trunk/include/llvm/Bitcode/Deserialize.h
llvm/trunk/include/l
Author: kremenek
Date: Mon Nov 12 18:25:08 2007
New Revision: 44034
URL: http://llvm.org/viewvc/llvm-project?rev=44034&view=rev
Log:
Renamed serialization method "Materialize" to "Create". This is an API change.
Modified:
llvm/trunk/include/llvm/Bitcode/Deserialize.h
llvm/trunk/include/l
Author: kremenek
Date: Mon Nov 12 18:13:57 2007
New Revision: 44032
URL: http://llvm.org/viewvc/llvm-project?rev=44032&view=rev
Log:
Fixed bug with inconsistent serialization/deserialization in matching
calls to BatchEmitOwnedPtrs and BatchReadOwnedPtrs.
Modified:
llvm/trunk/include/llvm/Bitc
Author: kremenek
Date: Mon Nov 12 13:11:15 2007
New Revision: 44021
URL: http://llvm.org/viewvc/llvm-project?rev=44021&view=rev
Log:
Added versions of ReadPtr that takes an explicit SerializedPtrID. This allows
clients of the Deserializer to read the pointer ID before they are ready
to deserializ
Author: kremenek
Date: Sat Nov 10 13:33:26 2007
New Revision: 43984
URL: http://llvm.org/viewvc/llvm-project?rev=43984&view=rev
Log:
Fixed a bug introduced by my last patch. Now we properly clear out the
BatchIDVec
vector before reusing it.
Modified:
llvm/trunk/include/llvm/Bitcode/Deserial
Author: kremenek
Date: Sat Nov 10 13:28:49 2007
New Revision: 43983
URL: http://llvm.org/viewvc/llvm-project?rev=43983&view=rev
Log:
Fixed hack in BatchReadOwnedPtrs to no longer use the array of pointers passed
in for
deserialization as a temporary location for storing serialized pointer
identi
Author: kremenek
Date: Sat Nov 10 13:19:32 2007
New Revision: 43982
URL: http://llvm.org/viewvc/llvm-project?rev=43982&view=rev
Log:
Updated method signature to conform with the typedef in the method prototype.
Modified:
llvm/trunk/lib/Bitcode/Reader/Deserialize.cpp
Modified: llvm/trunk/lib/
Author: kremenek
Date: Fri Nov 9 20:02:34 2007
New Revision: 43973
URL: http://llvm.org/viewvc/llvm-project?rev=43973&view=rev
Log:
Added "random access" to the Deserializer to allow a client to jump to any
serialized block in the bitstream, including a block in an entirely different
nesting than
Author: kremenek
Date: Fri Nov 9 20:00:38 2007
New Revision: 43972
URL: http://llvm.org/viewvc/llvm-project?rev=43972&view=rev
Log:
Made Deserializer a friend class of BitstreamReader.
Moved some of the logic in BitstreamReader::ExitBlock into a utility function
BitstreamReader::PopBlockScope. T
Author: kremenek
Date: Thu Nov 8 18:43:51 2007
New Revision: 43916
URL: http://llvm.org/viewvc/llvm-project?rev=43916&view=rev
Log:
Updated Deserializer class to provide more information about the current
block that is being visited in the bitstream. The client can also now
skip blocks before re
Author: kremenek
Date: Thu Nov 8 13:50:46 2007
New Revision: 43903
URL: http://llvm.org/viewvc/llvm-project?rev=43903&view=rev
Log:
Added typedef "SerializedPtrID" to represent the pointer handle written to disk
instead of just using "unsigned". This gives us more flexibility in changing
the def
Author: kremenek
Date: Wed Nov 7 18:55:31 2007
New Revision: 43861
URL: http://llvm.org/viewvc/llvm-project?rev=43861&view=rev
Log:
Revised BatchEmitOwnedPtrs to work better with constant pointers.
Modified:
llvm/trunk/include/llvm/Bitcode/Serialize.h
Modified: llvm/trunk/include/llvm/Bitco
Author: kremenek
Date: Wed Nov 7 18:04:50 2007
New Revision: 43855
URL: http://llvm.org/viewvc/llvm-project?rev=43855&view=rev
Log:
Revised implementation of BatchReadOwnedPtrs() that deserializes an
array of pointers to not allocate a second array to contain the pointer ids.
Fixed bug in the sa
Author: kremenek
Date: Wed Nov 7 17:32:06 2007
New Revision: 43853
URL: http://llvm.org/viewvc/llvm-project?rev=43853&view=rev
Log:
Fixed bug where we did not properly serialize owned objects due to a missing
dereference.
Modified:
llvm/trunk/include/llvm/Bitcode/Serialize.h
Modified: llvm/
Author: kremenek
Date: Wed Nov 7 17:18:40 2007
New Revision: 43852
URL: http://llvm.org/viewvc/llvm-project?rev=43852&view=rev
Log:
Added version of BatchEmitOwnedPtrs and BatchReadOwnedPtrs that emits/reads
an array of pointers of the same type.
Modified:
llvm/trunk/include/llvm/Bitcode/Des
Author: kremenek
Date: Wed Nov 7 16:30:29 2007
New Revision: 43845
URL: http://llvm.org/viewvc/llvm-project?rev=43845&view=rev
Log:
Added methods to batch emit and deserialize owned pointers. This allows
to group the pointer IDs together in the bitstream before their referenced
contents (which w
itcode/Reader/DeserializeAPFloat.cpp Wed Nov 7 12:39:22
2007
@@ -0,0 +1,24 @@
+//===-- SerializeAPInt.cpp - Serialization for APFloat -*- C++
-*--===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by Ted Kremenek and is distributed under t
Author: kremenek
Date: Wed Nov 7 12:24:34 2007
New Revision: 43828
URL: http://llvm.org/viewvc/llvm-project?rev=43828&view=rev
Log:
Implemented serialization of signed integers.
Modified:
llvm/trunk/include/llvm/Bitcode/Deserialize.h
llvm/trunk/include/llvm/Bitcode/Serialization.h
ll
Author: kremenek
Date: Tue Nov 6 18:47:33 2007
New Revision: 43799
URL: http://llvm.org/viewvc/llvm-project?rev=43799&view=rev
Log:
Added special version of ReadPtr() that returns a deserialized pointer
by value. This version prohibits backpatching of pointers, so it
useful when a pointee is alw
Author: kremenek
Date: Tue Nov 6 18:27:59 2007
New Revision: 43795
URL: http://llvm.org/viewvc/llvm-project?rev=43795&view=rev
Log:
Fixed default ctor for APInt to properly initialize BitWidth to a
non-random value.
Modified:
llvm/trunk/include/llvm/ADT/APInt.h
Modified: llvm/trunk/include/
Author: kremenek
Date: Tue Nov 6 16:22:25 2007
New Revision: 43784
URL: http://llvm.org/viewvc/llvm-project?rev=43784&view=rev
Log:
Serializer no longer automatically emits a root-level block in the bitstream.
Modified:
llvm/trunk/include/llvm/Bitcode/Serialize.h
llvm/trunk/lib/Bitcode/W
Author: kremenek
Date: Tue Nov 6 16:21:14 2007
New Revision: 43783
URL: http://llvm.org/viewvc/llvm-project?rev=43783&view=rev
Log:
Augmented ReadPtr and ReadOwnedPtr to control whether or not a pointer is
allowed to be backpatched
or can be registered with the deserializer to backpatch other po
Author: kremenek
Date: Tue Nov 6 13:49:50 2007
New Revision: 43772
URL: http://llvm.org/viewvc/llvm-project?rev=43772&view=rev
Log:
Renamed "Flush()" to "FlushRecord()".
Modified:
llvm/trunk/include/llvm/Bitcode/Serialize.h
llvm/trunk/lib/Bitcode/Writer/Serialize.cpp
Modified: llvm/trun
Author: kremenek
Date: Tue Nov 6 13:49:16 2007
New Revision: 43771
URL: http://llvm.org/viewvc/llvm-project?rev=43771&view=rev
Log:
Added support for processing abbreviations in the Deserializer.
Added some #ifdef-controlled messages for debugging backpatching.
Modified:
llvm/trunk/include/l
Author: kremenek
Date: Mon Nov 5 15:36:35 2007
New Revision: 43736
URL: http://llvm.org/viewvc/llvm-project?rev=43736&view=rev
Log:
Added support in serializer and deserializer to create arbitrary blocks.
Added detection of end-of-stream in deserializer.
Modified:
llvm/trunk/include/llvm/Bit
Author: kremenek
Date: Mon Nov 5 14:47:27 2007
New Revision: 43732
URL: http://llvm.org/viewvc/llvm-project?rev=43732&view=rev
Log:
Added default creation of root-level block by bitstream serializer.
Modified:
llvm/trunk/include/llvm/Bitcode/Serialize.h
llvm/trunk/lib/Bitcode/Reader/Dese
Author: kremenek
Date: Mon Nov 5 12:13:03 2007
New Revision: 43721
URL: http://llvm.org/viewvc/llvm-project?rev=43721&view=rev
Log:
Fixed bug where tombstone key and empty key for DenseMap used for
pointer backpatching in deserializer were improperly created and
resulted in an assertion failure.
Author: kremenek
Date: Fri Nov 2 13:04:20 2007
New Revision: 43647
URL: http://llvm.org/viewvc/llvm-project?rev=43647&view=rev
Log:
Added overloaded version of Deserializer::ReadOwnedPtr which allows
the target pointer to be passed by reference. This can result in less
typing, as the object to b
Author: kremenek
Date: Thu Nov 1 17:23:34 2007
New Revision: 43624
URL: http://llvm.org/viewvc/llvm-project?rev=43624&view=rev
Log:
Removed ReadVal from SerializeTrait, and also removed it from
Deserializer.
There were issues with Visual C++ barfing when instantiating
SerializeTrait when "T" was
Author: kremenek
Date: Wed Oct 31 19:57:37 2007
New Revision: 43595
URL: http://llvm.org/viewvc/llvm-project?rev=43595&view=rev
Log:
Rewrote backpatcher. Backpatcher now stores the "has final pointer"
flag in the **key** of the backpatch map, as opposed to the mapped
value which contains either t
Author: kremenek
Date: Wed Oct 31 19:54:57 2007
New Revision: 43594
URL: http://llvm.org/viewvc/llvm-project?rev=43594&view=rev
Log:
Added typedef "value_type" to DenseMap (similar typedef appears in std::map).
Added method FindAndConstruct() to DenseMap, which does the same thing as
operator[],
Author: kremenek
Date: Wed Oct 31 17:42:03 2007
New Revision: 43583
URL: http://llvm.org/viewvc/llvm-project?rev=43583&view=rev
Log:
constified several pointer arguments for methods in the Deserializer.
Modified:
llvm/trunk/include/llvm/Bitcode/Deserialize.h
llvm/trunk/lib/Bitcode/Reader/
Author: kremenek
Date: Wed Oct 31 14:58:32 2007
New Revision: 43570
URL: http://llvm.org/viewvc/llvm-project?rev=43570&view=rev
Log:
Implemented deserialization of references. References are handled
just like pointers, except that they cannot be backpatched. This
means that references are essent
Author: kremenek
Date: Wed Oct 31 13:23:21 2007
New Revision: 43565
URL: http://llvm.org/viewvc/llvm-project?rev=43565&view=rev
Log:
Added Serializer::EmitRef to deal with emitting arbitrary references.
Modified Serializer::EmitPtr to handle const pointers.
Modified:
llvm/trunk/include/llvm/B
Author: kremenek
Date: Wed Oct 31 12:12:47 2007
New Revision: 43559
URL: http://llvm.org/viewvc/llvm-project?rev=43559&view=rev
Log:
Changed access control within FoldingSet for some ivars from "private"
to "protected". This allows iterators to work.
Modified:
llvm/trunk/include/llvm/ADT/Fol
Author: kremenek
Date: Tue Oct 30 18:35:55 2007
New Revision: 43531
URL: http://llvm.org/viewvc/llvm-project?rev=43531&view=rev
Log:
Added member function "size()" to FoldingSet to return the number of
nodes in the FoldingSet.
Modified:
llvm/trunk/include/llvm/ADT/FoldingSet.h
Modified: llvm
Author: kremenek
Date: Mon Oct 29 13:43:39 2007
New Revision: 43459
URL: http://llvm.org/viewvc/llvm-project?rev=43459&view=rev
Log:
Fixed warning concerning implicit conversion from a NULL pointer
constant to an unsigned int. We now just directly assign the literal 0.
Modified:
llvm/trunk/l
Author: kremenek
Date: Sun Oct 28 18:38:38 2007
New Revision: 43425
URL: http://llvm.org/viewvc/llvm-project?rev=43425&view=rev
Log:
Fixed assertion in Deserializer::~Deserializer that checks for
pointers that were not backpatched (previously checked the wrong invariant).
Modified:
llvm/trunk
Author: kremenek
Date: Sun Oct 28 16:17:59 2007
New Revision: 43422
URL: http://llvm.org/viewvc/llvm-project?rev=43422&view=rev
Log:
Updated backpatching logic during object deserialization to perform
eager backpatching instead of waithing until all objects have been
deserialized. This allows us
Author: kremenek
Date: Fri Oct 26 18:44:59 2007
New Revision: 43413
URL: http://llvm.org/viewvc/llvm-project?rev=43413&view=rev
Log:
Fixed bug where default SerializeTrait<>::Materialize would not return the
materialized object pointer.
Modified:
llvm/trunk/include/llvm/Bitcode/Serialization
Author: kremenek
Date: Fri Oct 26 16:53:37 2007
New Revision: 43406
URL: http://llvm.org/viewvc/llvm-project?rev=43406&view=rev
Log:
Added SerializeAPInt.cpp and DeserializeAPInt.cpp to the XCode project.
Modified:
llvm/trunk/Xcode/LLVM.xcodeproj/project.pbxproj
Modified: llvm/trunk/Xcode/LL
7
@@ -0,0 +1,33 @@
+//===-- DeserializeAPInt.cpp - Deserialization for APInts --*- C++
-*--===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by Ted Kremenek and is distributed under the
+// University of Illinois
Author: kremenek
Date: Fri Oct 26 15:44:02 2007
New Revision: 43402
URL: http://llvm.org/viewvc/llvm-project?rev=43402&view=rev
Log:
Fixed incorrect "path name" in preamble (comment) of header file.
Modified:
llvm/trunk/include/llvm/ADT/APSInt.h
Modified: llvm/trunk/include/llvm/ADT/APSInt.h
Author: kremenek
Date: Fri Oct 26 15:42:45 2007
New Revision: 43401
URL: http://llvm.org/viewvc/llvm-project?rev=43401&view=rev
Log:
Fixed incorrect "path name" in preamble (comment) of header file.
Modified:
llvm/trunk/include/llvm/ADT/APInt.h
Modified: llvm/trunk/include/llvm/ADT/APInt.h
U
Author: kremenek
Date: Fri Oct 26 15:23:27 2007
New Revision: 43396
URL: http://llvm.org/viewvc/llvm-project?rev=43396&view=rev
Log:
Added default implementation of SerializeTrait<> that dispatches to
calling member functions of the target type to perform type-specific
serialization.
1 - 100 of 135 matches
Mail list logo