LLVM 22.0.0git
TypeSize.h
Go to the documentation of this file.
1//===- TypeSize.h - Wrapper around type sizes -------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file provides a struct that can be used to query the size of IR types
10// which may be scalable vectors. It provides convenience operators so that
11// it can be used in much the same way as a single scalar value.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef LLVM_SUPPORT_TYPESIZE_H
16#define LLVM_SUPPORT_TYPESIZE_H
17
22
23#include <algorithm>
24#include <cassert>
25#include <cstdint>
26#include <type_traits>
27
28namespace llvm {
29
30/// StackOffset holds a fixed and a scalable offset in bytes.
31class StackOffset {
32 int64_t Fixed = 0;
33 int64_t Scalable = 0;
34
35 StackOffset(int64_t Fixed, int64_t Scalable)
36 : Fixed(Fixed), Scalable(Scalable) {}
37
38public:
39 StackOffset() = default;
40 static StackOffset getFixed(int64_t Fixed) { return {Fixed, 0}; }
41 static StackOffset getScalable(int64_t Scalable) { return {0, Scalable}; }
42 static StackOffset get(int64_t Fixed, int64_t Scalable) {
43 return {Fixed, Scalable};
44 }
45
46 /// Returns the fixed component of the stack.
47 int64_t getFixed() const { return Fixed; }
48
49 /// Returns the scalable component of the stack.
50 int64_t getScalable() const { return Scalable; }
51
52 // Arithmetic operations.
53 StackOffset operator+(const StackOffset &RHS) const {
54 return {Fixed + RHS.Fixed, Scalable + RHS.Scalable};
55 }
56 StackOffset operator-(const StackOffset &RHS) const {
57 return {Fixed - RHS.Fixed, Scalable - RHS.Scalable};
58 }
59 StackOffset &operator+=(const StackOffset &RHS) {
60 Fixed += RHS.Fixed;
61 Scalable += RHS.Scalable;
62 return *this;
63 }
64 StackOffset &operator-=(const StackOffset &RHS) {
65 Fixed -= RHS.Fixed;
66 Scalable -= RHS.Scalable;
67 return *this;
68 }
69 StackOffset operator-() const { return {-Fixed, -Scalable}; }
70
71 // Equality comparisons.
72 bool operator==(const StackOffset &RHS) const {
73 return Fixed == RHS.Fixed && Scalable == RHS.Scalable;
74 }
75 bool operator!=(const StackOffset &RHS) const {
76 return Fixed != RHS.Fixed || Scalable != RHS.Scalable;
77 }
78
79 // The bool operator returns true iff any of the components is non zero.
80 explicit operator bool() const { return Fixed != 0 || Scalable != 0; }
81};
82
83namespace details {
84
85// Base class for ElementCount and TypeSize below.
86template <typename LeafTy, typename ValueTy> class FixedOrScalableQuantity {
87public:
88 using ScalarTy = ValueTy;
89
90protected:
92 bool Scalable = false;
93
94 constexpr FixedOrScalableQuantity() = default;
97
98 friend constexpr LeafTy &operator+=(LeafTy &LHS, const LeafTy &RHS) {
99 assert((LHS.Quantity == 0 || RHS.Quantity == 0 ||
100 LHS.Scalable == RHS.Scalable) &&
101 "Incompatible types");
102 LHS.Quantity += RHS.Quantity;
103 if (!RHS.isZero())
104 LHS.Scalable = RHS.Scalable;
105 return LHS;
106 }
107
108 friend constexpr LeafTy &operator-=(LeafTy &LHS, const LeafTy &RHS) {
109 assert((LHS.Quantity == 0 || RHS.Quantity == 0 ||
110 LHS.Scalable == RHS.Scalable) &&
111 "Incompatible types");
112 LHS.Quantity -= RHS.Quantity;
113 if (!RHS.isZero())
114 LHS.Scalable = RHS.Scalable;
115 return LHS;
116 }
117
118 friend constexpr LeafTy &operator*=(LeafTy &LHS, ScalarTy RHS) {
119 LHS.Quantity *= RHS;
120 return LHS;
121 }
122
123 friend constexpr LeafTy operator+(const LeafTy &LHS, const LeafTy &RHS) {
124 LeafTy Copy = LHS;
125 return Copy += RHS;
126 }
127
128 friend constexpr LeafTy operator-(const LeafTy &LHS, const LeafTy &RHS) {
129 LeafTy Copy = LHS;
130 return Copy -= RHS;
131 }
132
133 friend constexpr LeafTy operator*(const LeafTy &LHS, ScalarTy RHS) {
134 LeafTy Copy = LHS;
135 return Copy *= RHS;
136 }
137
138 template <typename U = ScalarTy>
139 friend constexpr std::enable_if_t<std::is_signed_v<U>, LeafTy>
140 operator-(const LeafTy &LHS) {
141 LeafTy Copy = LHS;
142 return Copy *= -1;
143 }
144
145public:
146 constexpr bool operator==(const FixedOrScalableQuantity &RHS) const {
147 return Quantity == RHS.Quantity && Scalable == RHS.Scalable;
148 }
149
150 constexpr bool operator!=(const FixedOrScalableQuantity &RHS) const {
151 return Quantity != RHS.Quantity || Scalable != RHS.Scalable;
152 }
153
154 constexpr bool isZero() const { return Quantity == 0; }
155
156 constexpr bool isNonZero() const { return Quantity != 0; }
157
158 explicit operator bool() const { return isNonZero(); }
159
160 /// Add \p RHS to the underlying quantity.
161 constexpr LeafTy getWithIncrement(ScalarTy RHS) const {
162 return LeafTy::get(Quantity + RHS, Scalable);
163 }
164
165 /// Returns the minimum value this quantity can represent.
166 constexpr ScalarTy getKnownMinValue() const { return Quantity; }
167
168 /// Returns whether the quantity is scaled by a runtime quantity (vscale).
169 constexpr bool isScalable() const { return Scalable; }
170
171 /// Returns true if the quantity is not scaled by vscale.
172 constexpr bool isFixed() const { return !Scalable; }
173
174 /// A return value of true indicates we know at compile time that the number
175 /// of elements (vscale * Min) is definitely even. However, returning false
176 /// does not guarantee that the total number of elements is odd.
177 constexpr bool isKnownEven() const { return (getKnownMinValue() & 0x1) == 0; }
178
179 /// This function tells the caller whether the element count is known at
180 /// compile time to be a multiple of the scalar value RHS.
181 constexpr bool isKnownMultipleOf(ScalarTy RHS) const {
182 return getKnownMinValue() % RHS == 0;
183 }
184
185 /// Returns whether or not the callee is known to be a multiple of RHS.
186 constexpr bool isKnownMultipleOf(const FixedOrScalableQuantity &RHS) const {
187 // x % y == 0 => x % y == 0
188 // x % y == 0 => (vscale * x) % y == 0
189 // x % y == 0 => (vscale * x) % (vscale * y) == 0
190 // but
191 // x % y == 0 !=> x % (vscale * y) == 0
192 if (!isScalable() && RHS.isScalable())
193 return false;
194 return getKnownMinValue() % RHS.getKnownMinValue() == 0;
195 }
196
197 // Return the minimum value with the assumption that the count is exact.
198 // Use in places where a scalable count doesn't make sense (e.g. non-vector
199 // types, or vectors in backends which don't support scalable vectors).
200 constexpr ScalarTy getFixedValue() const {
201 assert((!isScalable() || isZero()) &&
202 "Request for a fixed element count on a scalable object");
203 return getKnownMinValue();
204 }
205
206 // For some cases, quantity ordering between scalable and fixed quantity types
207 // cannot be determined at compile time, so such comparisons aren't allowed.
208 //
209 // e.g. <vscale x 2 x i16> could be bigger than <4 x i32> with a runtime
210 // vscale >= 5, equal sized with a vscale of 4, and smaller with
211 // a vscale <= 3.
212 //
213 // All the functions below make use of the fact vscale is always >= 1, which
214 // means that <vscale x 4 x i32> is guaranteed to be >= <4 x i32>, etc.
215
216 static constexpr bool isKnownLT(const FixedOrScalableQuantity &LHS,
218 if (!LHS.isScalable() || RHS.isScalable())
219 return LHS.getKnownMinValue() < RHS.getKnownMinValue();
220 return false;
221 }
222
223 static constexpr bool isKnownGT(const FixedOrScalableQuantity &LHS,
225 if (LHS.isScalable() || !RHS.isScalable())
226 return LHS.getKnownMinValue() > RHS.getKnownMinValue();
227 return false;
228 }
229
230 static constexpr bool isKnownLE(const FixedOrScalableQuantity &LHS,
232 if (!LHS.isScalable() || RHS.isScalable())
233 return LHS.getKnownMinValue() <= RHS.getKnownMinValue();
234 return false;
235 }
236
237 static constexpr bool isKnownGE(const FixedOrScalableQuantity &LHS,
239 if (LHS.isScalable() || !RHS.isScalable())
240 return LHS.getKnownMinValue() >= RHS.getKnownMinValue();
241 return false;
242 }
243
244 /// We do not provide the '/' operator here because division for polynomial
245 /// types does not work in the same way as for normal integer types. We can
246 /// only divide the minimum value (or coefficient) by RHS, which is not the
247 /// same as
248 /// (Min * Vscale) / RHS
249 /// The caller is recommended to use this function in combination with
250 /// isKnownMultipleOf(RHS), which lets the caller know if it's possible to
251 /// perform a lossless divide by RHS.
252 constexpr LeafTy divideCoefficientBy(ScalarTy RHS) const {
253 return LeafTy::get(getKnownMinValue() / RHS, isScalable());
254 }
255
256 constexpr LeafTy multiplyCoefficientBy(ScalarTy RHS) const {
257 return LeafTy::get(getKnownMinValue() * RHS, isScalable());
258 }
259
260 constexpr LeafTy coefficientNextPowerOf2() const {
261 return LeafTy::get(
263 isScalable());
264 }
265
266 /// Returns true if there exists a value X where RHS.multiplyCoefficientBy(X)
267 /// will result in a value whose quantity matches our own.
268 constexpr bool
270 return isScalable() == RHS.isScalable() &&
271 getKnownMinValue() % RHS.getKnownMinValue() == 0;
272 }
273
274 /// Returns a value X where RHS.multiplyCoefficientBy(X) will result in a
275 /// value whose quantity matches our own.
276 constexpr ScalarTy
278 assert(hasKnownScalarFactor(RHS) && "Expected RHS to be a known factor!");
279 return getKnownMinValue() / RHS.getKnownMinValue();
280 }
281
282 /// Printing function.
283 void print(raw_ostream &OS) const {
284 if (isScalable())
285 OS << "vscale x ";
286 OS << getKnownMinValue();
287 }
288};
289
290} // namespace details
291
292// Stores the number of elements for a type and whether this type is fixed
293// (N-Elements) or scalable (e.g., SVE).
294// - ElementCount::getFixed(1) : A scalar value.
295// - ElementCount::getFixed(2) : A vector type holding 2 values.
296// - ElementCount::getScalable(4) : A scalable vector type holding 4 values.
297class ElementCount
298 : public details::FixedOrScalableQuantity<ElementCount, unsigned> {
299 constexpr ElementCount(ScalarTy MinVal, bool Scalable)
301
302 constexpr ElementCount(
305
306public:
308
309 static constexpr ElementCount getFixed(ScalarTy MinVal) {
310 return ElementCount(MinVal, false);
311 }
312 static constexpr ElementCount getScalable(ScalarTy MinVal) {
313 return ElementCount(MinVal, true);
314 }
315 static constexpr ElementCount get(ScalarTy MinVal, bool Scalable) {
316 return ElementCount(MinVal, Scalable);
317 }
318
319 /// Exactly one element.
320 constexpr bool isScalar() const {
321 return !isScalable() && getKnownMinValue() == 1;
322 }
323 /// One or more elements.
324 constexpr bool isVector() const {
325 return (isScalable() && getKnownMinValue() != 0) || getKnownMinValue() > 1;
326 }
327};
328
329// Stores the size of a type. If the type is of fixed size, it will represent
330// the exact size. If the type is a scalable vector, it will represent the known
331// minimum size.
332class TypeSize : public details::FixedOrScalableQuantity<TypeSize, uint64_t> {
335
336public:
339
340 static constexpr TypeSize get(ScalarTy Quantity, bool Scalable) {
341 return TypeSize(Quantity, Scalable);
342 }
343 static constexpr TypeSize getFixed(ScalarTy ExactSize) {
344 return TypeSize(ExactSize, false);
345 }
346 static constexpr TypeSize getScalable(ScalarTy MinimumSize) {
347 return TypeSize(MinimumSize, true);
348 }
349 static constexpr TypeSize getZero() { return TypeSize(0, false); }
350
351 // All code for this class below this point is needed because of the
352 // temporary implicit conversion to uint64_t. The operator overloads are
353 // needed because otherwise the conversion of the parent class
354 // UnivariateLinearPolyBase -> TypeSize is ambiguous.
355 // TODO: Remove the implicit conversion.
356
357 // Casts to a uint64_t if this is a fixed-width size.
358 //
359 // This interface is deprecated and will be removed in a future version
360 // of LLVM in favour of upgrading uses that rely on this implicit conversion
361 // to uint64_t. Calls to functions that return a TypeSize should use the
362 // proper interfaces to TypeSize.
363 // In practice this is mostly calls to MVT/EVT::getSizeInBits().
364 //
365 // To determine how to upgrade the code:
366 //
367 // if (<algorithm works for both scalable and fixed-width vectors>)
368 // use getKnownMinValue()
369 // else if (<algorithm works only for fixed-width vectors>) {
370 // if <algorithm can be adapted for both scalable and fixed-width vectors>
371 // update the algorithm and use getKnownMinValue()
372 // else
373 // bail out early for scalable vectors and use getFixedValue()
374 // }
375 operator ScalarTy() const {
376 if (isScalable()) {
378 "Cannot implicitly convert a scalable size to a fixed-width size in "
379 "`TypeSize::operator ScalarTy()`");
380 }
381 return getFixedValue();
382 }
383
384 // Additional operators needed to avoid ambiguous parses
385 // because of the implicit conversion hack.
386 friend constexpr TypeSize operator*(const TypeSize &LHS, const int RHS) {
387 return LHS * (ScalarTy)RHS;
388 }
389 friend constexpr TypeSize operator*(const TypeSize &LHS, const unsigned RHS) {
390 return LHS * (ScalarTy)RHS;
391 }
392 friend constexpr TypeSize operator*(const TypeSize &LHS, const int64_t RHS) {
393 return LHS * (ScalarTy)RHS;
394 }
395 friend constexpr TypeSize operator*(const int LHS, const TypeSize &RHS) {
396 return RHS * LHS;
397 }
398 friend constexpr TypeSize operator*(const unsigned LHS, const TypeSize &RHS) {
399 return RHS * LHS;
400 }
401 friend constexpr TypeSize operator*(const int64_t LHS, const TypeSize &RHS) {
402 return RHS * LHS;
403 }
404 friend constexpr TypeSize operator*(const uint64_t LHS, const TypeSize &RHS) {
405 return RHS * LHS;
406 }
407};
408
409//===----------------------------------------------------------------------===//
410// Utilities
411//===----------------------------------------------------------------------===//
412
413/// Returns a TypeSize with a known minimum size that is the next integer
414/// (mod 2**64) that is greater than or equal to \p Quantity and is a multiple
415/// of \p Align. \p Align must be non-zero.
416///
417/// Similar to the alignTo functions in MathExtras.h
419 assert(Align != 0u && "Align must be non-zero");
420 return {(Size.getKnownMinValue() + Align - 1) / Align * Align,
421 Size.isScalable()};
422}
423
424/// Stream operator function for `FixedOrScalableQuantity`.
425template <typename LeafTy, typename ScalarTy>
429 PS.print(OS);
430 return OS;
431}
432
433template <> struct DenseMapInfo<ElementCount, void> {
434 static inline ElementCount getEmptyKey() {
435 return ElementCount::getScalable(~0U);
436 }
438 return ElementCount::getFixed(~0U - 1);
439 }
440 static unsigned getHashValue(const ElementCount &EltCnt) {
441 unsigned HashVal = EltCnt.getKnownMinValue() * 37U;
442 if (EltCnt.isScalable())
443 return (HashVal - 1U);
444
445 return HashVal;
446 }
447 static bool isEqual(const ElementCount &LHS, const ElementCount &RHS) {
448 return LHS == RHS;
449 }
450};
451
452} // end namespace llvm
453
454#endif // LLVM_SUPPORT_TYPESIZE_H
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
Value * RHS
Value * LHS
constexpr bool isVector() const
One or more elements.
Definition TypeSize.h:324
constexpr ElementCount()
Definition TypeSize.h:307
static constexpr ElementCount getScalable(ScalarTy MinVal)
Definition TypeSize.h:312
static constexpr ElementCount getFixed(ScalarTy MinVal)
Definition TypeSize.h:309
static constexpr ElementCount get(ScalarTy MinVal, bool Scalable)
Definition TypeSize.h:315
constexpr bool isScalar() const
Exactly one element.
Definition TypeSize.h:320
int64_t getFixed() const
Returns the fixed component of the stack.
Definition TypeSize.h:47
StackOffset operator+(const StackOffset &RHS) const
Definition TypeSize.h:53
int64_t getScalable() const
Returns the scalable component of the stack.
Definition TypeSize.h:50
StackOffset operator-() const
Definition TypeSize.h:69
bool operator!=(const StackOffset &RHS) const
Definition TypeSize.h:75
StackOffset operator-(const StackOffset &RHS) const
Definition TypeSize.h:56
bool operator==(const StackOffset &RHS) const
Definition TypeSize.h:72
StackOffset & operator-=(const StackOffset &RHS)
Definition TypeSize.h:64
static StackOffset get(int64_t Fixed, int64_t Scalable)
Definition TypeSize.h:42
StackOffset()=default
static StackOffset getScalable(int64_t Scalable)
Definition TypeSize.h:41
static StackOffset getFixed(int64_t Fixed)
Definition TypeSize.h:40
StackOffset & operator+=(const StackOffset &RHS)
Definition TypeSize.h:59
static constexpr TypeSize getFixed(ScalarTy ExactSize)
Definition TypeSize.h:343
constexpr TypeSize(ScalarTy Quantity, bool Scalable)
Definition TypeSize.h:337
static constexpr TypeSize getZero()
Definition TypeSize.h:349
friend constexpr TypeSize operator*(const TypeSize &LHS, const unsigned RHS)
Definition TypeSize.h:389
friend constexpr TypeSize operator*(const TypeSize &LHS, const int64_t RHS)
Definition TypeSize.h:392
friend constexpr TypeSize operator*(const uint64_t LHS, const TypeSize &RHS)
Definition TypeSize.h:404
static constexpr TypeSize getScalable(ScalarTy MinimumSize)
Definition TypeSize.h:346
static constexpr TypeSize get(ScalarTy Quantity, bool Scalable)
Definition TypeSize.h:340
friend constexpr TypeSize operator*(const TypeSize &LHS, const int RHS)
Definition TypeSize.h:386
friend constexpr TypeSize operator*(const int64_t LHS, const TypeSize &RHS)
Definition TypeSize.h:401
friend constexpr TypeSize operator*(const unsigned LHS, const TypeSize &RHS)
Definition TypeSize.h:398
friend constexpr TypeSize operator*(const int LHS, const TypeSize &RHS)
Definition TypeSize.h:395
constexpr bool isKnownMultipleOf(ScalarTy RHS) const
This function tells the caller whether the element count is known at compile time to be a multiple of...
Definition TypeSize.h:181
constexpr bool hasKnownScalarFactor(const FixedOrScalableQuantity &RHS) const
Returns true if there exists a value X where RHS.multiplyCoefficientBy(X) will result in a value whos...
Definition TypeSize.h:269
friend constexpr LeafTy & operator*=(LeafTy &LHS, ScalarTy RHS)
Definition TypeSize.h:118
friend constexpr LeafTy operator+(const LeafTy &LHS, const LeafTy &RHS)
Definition TypeSize.h:123
constexpr bool operator!=(const FixedOrScalableQuantity &RHS) const
Definition TypeSize.h:150
friend constexpr LeafTy & operator-=(LeafTy &LHS, const LeafTy &RHS)
Definition TypeSize.h:108
constexpr ScalarTy getFixedValue() const
Definition TypeSize.h:200
static constexpr bool isKnownLE(const FixedOrScalableQuantity &LHS, const FixedOrScalableQuantity &RHS)
Definition TypeSize.h:230
constexpr FixedOrScalableQuantity()=default
friend constexpr LeafTy & operator+=(LeafTy &LHS, const LeafTy &RHS)
Definition TypeSize.h:98
constexpr bool isNonZero() const
Definition TypeSize.h:156
friend constexpr std::enable_if_t< std::is_signed_v< U >, LeafTy > operator-(const LeafTy &LHS)
Definition TypeSize.h:140
void print(raw_ostream &OS) const
Printing function.
Definition TypeSize.h:283
constexpr LeafTy coefficientNextPowerOf2() const
Definition TypeSize.h:260
constexpr LeafTy getWithIncrement(ScalarTy RHS) const
Add RHS to the underlying quantity.
Definition TypeSize.h:161
constexpr ScalarTy getKnownScalarFactor(const FixedOrScalableQuantity &RHS) const
Returns a value X where RHS.multiplyCoefficientBy(X) will result in a value whose quantity matches ou...
Definition TypeSize.h:277
constexpr FixedOrScalableQuantity(ScalarTy Quantity, bool Scalable)
Definition TypeSize.h:95
static constexpr bool isKnownLT(const FixedOrScalableQuantity &LHS, const FixedOrScalableQuantity &RHS)
Definition TypeSize.h:216
friend constexpr LeafTy operator-(const LeafTy &LHS, const LeafTy &RHS)
Definition TypeSize.h:128
constexpr bool isScalable() const
Returns whether the quantity is scaled by a runtime quantity (vscale).
Definition TypeSize.h:169
constexpr LeafTy multiplyCoefficientBy(ScalarTy RHS) const
Definition TypeSize.h:256
constexpr bool isKnownEven() const
A return value of true indicates we know at compile time that the number of elements (vscale * Min) i...
Definition TypeSize.h:177
constexpr bool isFixed() const
Returns true if the quantity is not scaled by vscale.
Definition TypeSize.h:172
friend constexpr LeafTy operator*(const LeafTy &LHS, ScalarTy RHS)
Definition TypeSize.h:133
constexpr bool operator==(const FixedOrScalableQuantity &RHS) const
Definition TypeSize.h:146
constexpr ScalarTy getKnownMinValue() const
Returns the minimum value this quantity can represent.
Definition TypeSize.h:166
constexpr bool isKnownMultipleOf(const FixedOrScalableQuantity &RHS) const
Returns whether or not the callee is known to be a multiple of RHS.
Definition TypeSize.h:186
constexpr bool isZero() const
Definition TypeSize.h:154
static constexpr bool isKnownGT(const FixedOrScalableQuantity &LHS, const FixedOrScalableQuantity &RHS)
Definition TypeSize.h:223
constexpr LeafTy divideCoefficientBy(ScalarTy RHS) const
We do not provide the '/' operator here because division for polynomial types does not work in the sa...
Definition TypeSize.h:252
static constexpr bool isKnownGE(const FixedOrScalableQuantity &LHS, const FixedOrScalableQuantity &RHS)
Definition TypeSize.h:237
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition raw_ostream.h:53
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI void reportFatalInternalError(Error Err)
Report a fatal error that indicates a bug in LLVM.
Definition Error.cpp:177
uint64_t alignTo(uint64_t Size, Align A)
Returns a multiple of A needed to store Size bytes.
Definition Alignment.h:155
raw_ostream & operator<<(raw_ostream &OS, const APFixedPoint &FX)
constexpr uint64_t NextPowerOf2(uint64_t A)
Returns the next power of two (in 64-bits) that is strictly greater than A.
Definition MathExtras.h:378
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition Alignment.h:39
static unsigned getHashValue(const ElementCount &EltCnt)
Definition TypeSize.h:440
static bool isEqual(const ElementCount &LHS, const ElementCount &RHS)
Definition TypeSize.h:447
static ElementCount getTombstoneKey()
Definition TypeSize.h:437
An information struct used to provide DenseMap with the various necessary components for a given valu...