mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Added FoldingSet style 'profiling' support for APInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46188 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user