diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-01-19 04:23:33 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-01-19 04:23:33 +0000 |
commit | 109de0d448d957ea457dbaff945fb2f124af5e73 (patch) | |
tree | 83a7539e28f73b8481b46d3f97ebe703ef695f54 /include/llvm/ADT/APInt.h | |
parent | 3c6a928472a30557432b3a0e06937d3804071c7e (diff) | |
download | external_llvm-109de0d448d957ea457dbaff945fb2f124af5e73.zip external_llvm-109de0d448d957ea457dbaff945fb2f124af5e73.tar.gz external_llvm-109de0d448d957ea457dbaff945fb2f124af5e73.tar.bz2 |
Added FoldingSet style 'profiling' support for APInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46188 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APInt.h')
-rw-r--r-- | include/llvm/ADT/APInt.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index 3a98ae4..e97d5e7 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -24,6 +24,7 @@ namespace llvm { class Serializer; class Deserializer; + class FoldingSetNodeID; /* An unsigned host type used as a single part of a multi-part bignum. */ @@ -210,6 +211,10 @@ public: /// for object deserialization (pair this with the static method Read). explicit APInt() : BitWidth(1) {} + /// Profile - Used to insert APInt objects, or objects that contain APInt + /// objects, into FoldingSets. + void Profile(FoldingSetNodeID& ID) const; + /// @brief Used by the Bitcode serializer to emit APInts to Bitcode. void Emit(Serializer& S) const; |