llvm::ImutProfileInfo

Generic profile template. The default behavior is to invoke the profile method of an object. Specializations for primitive integers and generic handling of pointers is done below.

Synopsis

Declared in <llvm/ADT/ImmutableSet.h>

template<typename T>
struct ImutProfileInfo;

Type Aliases

NameDescription
value_type The type of a value when profiling elements for folding-set hashing.
value_type_ref A reference to a value when profiling elements for folding-set hashing.

Static Member Functions

NameDescription
Profile Adds profile data for X to ID using T's FoldingSetTrait.

Specializations

NameDescription
ImutProfileInfo<bool> Profile traits for booleans.
ImutProfileInfo<char>
ImutProfileInfo<int>
ImutProfileInfo<long>
ImutProfileInfo<long long>
ImutProfileInfo<short>
ImutProfileInfo<unsigned char>
ImutProfileInfo<unsigned int>
ImutProfileInfo<unsigned long>
ImutProfileInfo<unsigned long long>
ImutProfileInfo<unsigned short>
ImutProfileInfo<T*> Generic profile trait for pointer types. We treat pointers as references to unique objects.

Derived Classes

NameDescription
ImutContainerInfo<T*> Specialization for pointer values to treat pointers as references to unique objects. Pointers are thus compared by their addresses.
ImutContainerInfo Generic definition of comparison operations for elements of immutable containers that defaults to using std::equal_to<> and std::less<> to perform comparison of elements.