LLVM 18.0.0git
LowLevelType.h
Go to the documentation of this file.
1//== llvm/CodeGen/LowLevelType.h ------------------------------- -*- 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/// \file
9/// Implement a low-level type suitable for MachineInstr level instruction
10/// selection.
11///
12/// For a type attached to a MachineInstr, we only care about 2 details: total
13/// size and the number of vector lanes (if any). Accordingly, there are 4
14/// possible valid type-kinds:
15///
16/// * `sN` for scalars and aggregates
17/// * `<N x sM>` for vectors, which must have at least 2 elements.
18/// * `pN` for pointers
19///
20/// Other information required for correct selection is expected to be carried
21/// by the opcode, or non-type flags. For example the distinction between G_ADD
22/// and G_FADD for int/float or fast-math flags.
23///
24//===----------------------------------------------------------------------===//
25
26#ifndef LLVM_CODEGEN_LOWLEVELTYPE_H
27#define LLVM_CODEGEN_LOWLEVELTYPE_H
28
31#include "llvm/Support/Debug.h"
32#include <cassert>
33
34namespace llvm {
35
36class Type;
37class raw_ostream;
38
39class LLT {
40public:
41 /// Get a low-level scalar or aggregate "bag of bits".
42 static constexpr LLT scalar(unsigned SizeInBits) {
43 return LLT{/*isPointer=*/false, /*isVector=*/false, /*isScalar=*/true,
44 ElementCount::getFixed(0), SizeInBits,
45 /*AddressSpace=*/0};
46 }
47
48 /// Get a low-level pointer in the given address space.
49 static constexpr LLT pointer(unsigned AddressSpace, unsigned SizeInBits) {
50 assert(SizeInBits > 0 && "invalid pointer size");
51 return LLT{/*isPointer=*/true, /*isVector=*/false, /*isScalar=*/false,
52 ElementCount::getFixed(0), SizeInBits, AddressSpace};
53 }
54
55 /// Get a low-level vector of some number of elements and element width.
56 static constexpr LLT vector(ElementCount EC, unsigned ScalarSizeInBits) {
57 assert(!EC.isScalar() && "invalid number of vector elements");
58 return LLT{/*isPointer=*/false, /*isVector=*/true, /*isScalar=*/false,
59 EC, ScalarSizeInBits, /*AddressSpace=*/0};
60 }
61
62 /// Get a low-level vector of some number of elements and element type.
63 static constexpr LLT vector(ElementCount EC, LLT ScalarTy) {
64 assert(!EC.isScalar() && "invalid number of vector elements");
65 assert(!ScalarTy.isVector() && "invalid vector element type");
66 return LLT{ScalarTy.isPointer(),
67 /*isVector=*/true,
68 /*isScalar=*/false,
69 EC,
70 ScalarTy.getSizeInBits().getFixedValue(),
71 ScalarTy.isPointer() ? ScalarTy.getAddressSpace() : 0};
72 }
73
74 /// Get a 16-bit IEEE half value.
75 /// TODO: Add IEEE semantics to type - This currently returns a simple `scalar(16)`.
76 static constexpr LLT float16() {
77 return scalar(16);
78 }
79
80 /// Get a 32-bit IEEE float value.
81 static constexpr LLT float32() {
82 return scalar(32);
83 }
84
85 /// Get a 64-bit IEEE double value.
86 static constexpr LLT float64() {
87 return scalar(64);
88 }
89
90 /// Get a low-level fixed-width vector of some number of elements and element
91 /// width.
92 static constexpr LLT fixed_vector(unsigned NumElements,
93 unsigned ScalarSizeInBits) {
94 return vector(ElementCount::getFixed(NumElements), ScalarSizeInBits);
95 }
96
97 /// Get a low-level fixed-width vector of some number of elements and element
98 /// type.
99 static constexpr LLT fixed_vector(unsigned NumElements, LLT ScalarTy) {
100 return vector(ElementCount::getFixed(NumElements), ScalarTy);
101 }
102
103 /// Get a low-level scalable vector of some number of elements and element
104 /// width.
105 static constexpr LLT scalable_vector(unsigned MinNumElements,
106 unsigned ScalarSizeInBits) {
107 return vector(ElementCount::getScalable(MinNumElements), ScalarSizeInBits);
108 }
109
110 /// Get a low-level scalable vector of some number of elements and element
111 /// type.
112 static constexpr LLT scalable_vector(unsigned MinNumElements, LLT ScalarTy) {
113 return vector(ElementCount::getScalable(MinNumElements), ScalarTy);
114 }
115
116 static constexpr LLT scalarOrVector(ElementCount EC, LLT ScalarTy) {
117 return EC.isScalar() ? ScalarTy : LLT::vector(EC, ScalarTy);
118 }
119
120 static constexpr LLT scalarOrVector(ElementCount EC, uint64_t ScalarSize) {
121 assert(ScalarSize <= std::numeric_limits<unsigned>::max() &&
122 "Not enough bits in LLT to represent size");
123 return scalarOrVector(EC, LLT::scalar(static_cast<unsigned>(ScalarSize)));
124 }
125
126 explicit constexpr LLT(bool isPointer, bool isVector, bool isScalar,
127 ElementCount EC, uint64_t SizeInBits,
128 unsigned AddressSpace)
129 : LLT() {
130 init(isPointer, isVector, isScalar, EC, SizeInBits, AddressSpace);
131 }
132 explicit constexpr LLT()
133 : IsScalar(false), IsPointer(false), IsVector(false), RawData(0) {}
134
135 explicit LLT(MVT VT);
136
137 constexpr bool isValid() const { return IsScalar || RawData != 0; }
138
139 constexpr bool isScalar() const { return IsScalar; }
140
141 constexpr bool isPointer() const {
142 return isValid() && IsPointer && !IsVector;
143 }
144
145 constexpr bool isVector() const { return isValid() && IsVector; }
146
147 /// Returns the number of elements in a vector LLT. Must only be called on
148 /// vector types.
149 constexpr uint16_t getNumElements() const {
150 if (isScalable())
152 "Possible incorrect use of LLT::getNumElements() for "
153 "scalable vector. Scalable flag may be dropped, use "
154 "LLT::getElementCount() instead");
156 }
157
158 /// Returns true if the LLT is a scalable vector. Must only be called on
159 /// vector types.
160 constexpr bool isScalable() const {
161 assert(isVector() && "Expected a vector type");
162 return IsPointer ? getFieldValue(PointerVectorScalableFieldInfo)
163 : getFieldValue(VectorScalableFieldInfo);
164 }
165
166 constexpr ElementCount getElementCount() const {
167 assert(IsVector && "cannot get number of elements on scalar/aggregate");
168 return ElementCount::get(IsPointer
169 ? getFieldValue(PointerVectorElementsFieldInfo)
170 : getFieldValue(VectorElementsFieldInfo),
171 isScalable());
172 }
173
174 /// Returns the total size of the type. Must only be called on sized types.
175 constexpr TypeSize getSizeInBits() const {
176 if (isPointer() || isScalar())
178 auto EC = getElementCount();
179 return TypeSize(getScalarSizeInBits() * EC.getKnownMinValue(),
180 EC.isScalable());
181 }
182
183 /// Returns the total size of the type in bytes, i.e. number of whole bytes
184 /// needed to represent the size in bits. Must only be called on sized types.
185 constexpr TypeSize getSizeInBytes() const {
186 TypeSize BaseSize = getSizeInBits();
187 return {(BaseSize.getKnownMinValue() + 7) / 8, BaseSize.isScalable()};
188 }
189
190 constexpr LLT getScalarType() const {
191 return isVector() ? getElementType() : *this;
192 }
193
194 /// If this type is a vector, return a vector with the same number of elements
195 /// but the new element type. Otherwise, return the new element type.
196 constexpr LLT changeElementType(LLT NewEltTy) const {
197 return isVector() ? LLT::vector(getElementCount(), NewEltTy) : NewEltTy;
198 }
199
200 /// If this type is a vector, return a vector with the same number of elements
201 /// but the new element size. Otherwise, return the new element type. Invalid
202 /// for pointer types. For pointer types, use changeElementType.
203 constexpr LLT changeElementSize(unsigned NewEltSize) const {
205 "invalid to directly change element size for pointers");
206 return isVector() ? LLT::vector(getElementCount(), NewEltSize)
207 : LLT::scalar(NewEltSize);
208 }
209
210 /// Return a vector or scalar with the same element type and the new element
211 /// count.
212 constexpr LLT changeElementCount(ElementCount EC) const {
214 }
215
216 /// Return a type that is \p Factor times smaller. Reduces the number of
217 /// elements if this is a vector, or the bitwidth for scalar/pointers. Does
218 /// not attempt to handle cases that aren't evenly divisible.
219 constexpr LLT divide(int Factor) const {
220 assert(Factor != 1);
221 assert((!isScalar() || getScalarSizeInBits() != 0) &&
222 "cannot divide scalar of size zero");
223 if (isVector()) {
224 assert(getElementCount().isKnownMultipleOf(Factor));
225 return scalarOrVector(getElementCount().divideCoefficientBy(Factor),
227 }
228
229 assert(getScalarSizeInBits() % Factor == 0);
230 return scalar(getScalarSizeInBits() / Factor);
231 }
232
233 /// Produce a vector type that is \p Factor times bigger, preserving the
234 /// element type. For a scalar or pointer, this will produce a new vector with
235 /// \p Factor elements.
236 constexpr LLT multiplyElements(int Factor) const {
237 if (isVector()) {
238 return scalarOrVector(getElementCount().multiplyCoefficientBy(Factor),
240 }
241
242 return fixed_vector(Factor, *this);
243 }
244
245 constexpr bool isByteSized() const {
247 }
248
249 constexpr unsigned getScalarSizeInBits() const {
250 if (IsScalar)
251 return getFieldValue(ScalarSizeFieldInfo);
252 if (IsVector) {
253 if (!IsPointer)
254 return getFieldValue(VectorSizeFieldInfo);
255 else
256 return getFieldValue(PointerVectorSizeFieldInfo);
257 }
258 assert(IsPointer && "unexpected LLT");
259 return getFieldValue(PointerSizeFieldInfo);
260 }
261
262 constexpr unsigned getAddressSpace() const {
263 assert(RawData != 0 && "Invalid Type");
264 assert(IsPointer && "cannot get address space of non-pointer type");
265 if (!IsVector)
266 return getFieldValue(PointerAddressSpaceFieldInfo);
267 else
268 return getFieldValue(PointerVectorAddressSpaceFieldInfo);
269 }
270
271 /// Returns the vector's element type. Only valid for vector types.
272 constexpr LLT getElementType() const {
273 assert(isVector() && "cannot get element type of scalar/aggregate");
274 if (IsPointer)
276 else
277 return scalar(getScalarSizeInBits());
278 }
279
280 void print(raw_ostream &OS) const;
281
282#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
283 LLVM_DUMP_METHOD void dump() const;
284#endif
285
286 constexpr bool operator==(const LLT &RHS) const {
287 return IsPointer == RHS.IsPointer && IsVector == RHS.IsVector &&
288 IsScalar == RHS.IsScalar && RHS.RawData == RawData;
289 }
290
291 constexpr bool operator!=(const LLT &RHS) const { return !(*this == RHS); }
292
293 friend struct DenseMapInfo<LLT>;
295
296private:
297 /// LLT is packed into 64 bits as follows:
298 /// isScalar : 1
299 /// isPointer : 1
300 /// isVector : 1
301 /// with 61 bits remaining for Kind-specific data, packed in bitfields
302 /// as described below. As there isn't a simple portable way to pack bits
303 /// into bitfields, here the different fields in the packed structure is
304 /// described in static const *Field variables. Each of these variables
305 /// is a 2-element array, with the first element describing the bitfield size
306 /// and the second element describing the bitfield offset.
307 typedef int BitFieldInfo[2];
308 ///
309 /// This is how the bitfields are packed per Kind:
310 /// * Invalid:
311 /// gets encoded as RawData == 0, as that is an invalid encoding, since for
312 /// valid encodings, SizeInBits/SizeOfElement must be larger than 0.
313 /// * Non-pointer scalar (isPointer == 0 && isVector == 0):
314 /// SizeInBits: 32;
315 static const constexpr BitFieldInfo ScalarSizeFieldInfo{32, 0};
316 /// * Pointer (isPointer == 1 && isVector == 0):
317 /// SizeInBits: 16;
318 /// AddressSpace: 24;
319 static const constexpr BitFieldInfo PointerSizeFieldInfo{16, 0};
320 static const constexpr BitFieldInfo PointerAddressSpaceFieldInfo{
321 24, PointerSizeFieldInfo[0] + PointerSizeFieldInfo[1]};
322 static_assert((PointerAddressSpaceFieldInfo[0] +
323 PointerAddressSpaceFieldInfo[1]) <= 61,
324 "Insufficient bits to encode all data");
325 /// * Vector-of-non-pointer (isPointer == 0 && isVector == 1):
326 /// NumElements: 16;
327 /// SizeOfElement: 32;
328 /// Scalable: 1;
329 static const constexpr BitFieldInfo VectorElementsFieldInfo{16, 0};
330 static const constexpr BitFieldInfo VectorSizeFieldInfo{
331 32, VectorElementsFieldInfo[0] + VectorElementsFieldInfo[1]};
332 static const constexpr BitFieldInfo VectorScalableFieldInfo{
333 1, VectorSizeFieldInfo[0] + VectorSizeFieldInfo[1]};
334 static_assert((VectorSizeFieldInfo[0] + VectorSizeFieldInfo[1]) <= 61,
335 "Insufficient bits to encode all data");
336 /// * Vector-of-pointer (isPointer == 1 && isVector == 1):
337 /// NumElements: 16;
338 /// SizeOfElement: 16;
339 /// AddressSpace: 24;
340 /// Scalable: 1;
341 static const constexpr BitFieldInfo PointerVectorElementsFieldInfo{16, 0};
342 static const constexpr BitFieldInfo PointerVectorSizeFieldInfo{
343 16,
344 PointerVectorElementsFieldInfo[1] + PointerVectorElementsFieldInfo[0]};
345 static const constexpr BitFieldInfo PointerVectorAddressSpaceFieldInfo{
346 24, PointerVectorSizeFieldInfo[1] + PointerVectorSizeFieldInfo[0]};
347 static const constexpr BitFieldInfo PointerVectorScalableFieldInfo{
348 1, PointerVectorAddressSpaceFieldInfo[0] +
349 PointerVectorAddressSpaceFieldInfo[1]};
350 static_assert((PointerVectorAddressSpaceFieldInfo[0] +
351 PointerVectorAddressSpaceFieldInfo[1]) <= 61,
352 "Insufficient bits to encode all data");
353
354 uint64_t IsScalar : 1;
355 uint64_t IsPointer : 1;
356 uint64_t IsVector : 1;
357 uint64_t RawData : 61;
358
359 static constexpr uint64_t getMask(const BitFieldInfo FieldInfo) {
360 const int FieldSizeInBits = FieldInfo[0];
361 return (((uint64_t)1) << FieldSizeInBits) - 1;
362 }
363 static constexpr uint64_t maskAndShift(uint64_t Val, uint64_t Mask,
364 uint8_t Shift) {
365 assert(Val <= Mask && "Value too large for field");
366 return (Val & Mask) << Shift;
367 }
368 static constexpr uint64_t maskAndShift(uint64_t Val,
369 const BitFieldInfo FieldInfo) {
370 return maskAndShift(Val, getMask(FieldInfo), FieldInfo[1]);
371 }
372
373 constexpr uint64_t getFieldValue(const BitFieldInfo FieldInfo) const {
374 return getMask(FieldInfo) & (RawData >> FieldInfo[1]);
375 }
376
377 constexpr void init(bool IsPointer, bool IsVector, bool IsScalar,
378 ElementCount EC, uint64_t SizeInBits,
379 unsigned AddressSpace) {
380 assert(SizeInBits <= std::numeric_limits<unsigned>::max() &&
381 "Not enough bits in LLT to represent size");
382 this->IsPointer = IsPointer;
383 this->IsVector = IsVector;
384 this->IsScalar = IsScalar;
385 if (IsScalar)
386 RawData = maskAndShift(SizeInBits, ScalarSizeFieldInfo);
387 else if (IsVector) {
388 assert(EC.isVector() && "invalid number of vector elements");
389 if (!IsPointer)
390 RawData =
391 maskAndShift(EC.getKnownMinValue(), VectorElementsFieldInfo) |
392 maskAndShift(SizeInBits, VectorSizeFieldInfo) |
393 maskAndShift(EC.isScalable() ? 1 : 0, VectorScalableFieldInfo);
394 else
395 RawData =
396 maskAndShift(EC.getKnownMinValue(),
397 PointerVectorElementsFieldInfo) |
398 maskAndShift(SizeInBits, PointerVectorSizeFieldInfo) |
399 maskAndShift(AddressSpace, PointerVectorAddressSpaceFieldInfo) |
400 maskAndShift(EC.isScalable() ? 1 : 0,
401 PointerVectorScalableFieldInfo);
402 } else if (IsPointer)
403 RawData = maskAndShift(SizeInBits, PointerSizeFieldInfo) |
404 maskAndShift(AddressSpace, PointerAddressSpaceFieldInfo);
405 else
406 llvm_unreachable("unexpected LLT configuration");
407 }
408
409public:
410 constexpr uint64_t getUniqueRAWLLTData() const {
411 return ((uint64_t)RawData) << 3 | ((uint64_t)IsScalar) << 2 |
412 ((uint64_t)IsPointer) << 1 | ((uint64_t)IsVector);
413 }
414};
415
417 Ty.print(OS);
418 return OS;
419}
420
421template<> struct DenseMapInfo<LLT> {
422 static inline LLT getEmptyKey() {
423 LLT Invalid;
424 Invalid.IsPointer = true;
425 return Invalid;
426 }
427 static inline LLT getTombstoneKey() {
428 LLT Invalid;
429 Invalid.IsVector = true;
430 return Invalid;
431 }
432 static inline unsigned getHashValue(const LLT &Ty) {
433 uint64_t Val = Ty.getUniqueRAWLLTData();
435 }
436 static bool isEqual(const LLT &LHS, const LLT &RHS) {
437 return LHS == RHS;
438 }
439};
440
441}
442
443#endif // LLVM_CODEGEN_LOWLEVELTYPE_H
RelocType Type
Definition: COFFYAML.cpp:391
#define LLVM_DUMP_METHOD
Mark debug helper function definitions like dump() that should not be stripped from debug builds.
Definition: Compiler.h:510
This file defines DenseMapInfo traits for DenseMap.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
raw_pwrite_stream & OS
Value * RHS
Value * LHS
static constexpr ElementCount getScalable(ScalarTy MinVal)
Definition: TypeSize.h:294
static constexpr ElementCount getFixed(ScalarTy MinVal)
Definition: TypeSize.h:291
static constexpr ElementCount get(ScalarTy MinVal, bool Scalable)
Definition: TypeSize.h:297
static constexpr LLT float64()
Get a 64-bit IEEE double value.
Definition: LowLevelType.h:86
void print(raw_ostream &OS) const
static constexpr LLT scalarOrVector(ElementCount EC, uint64_t ScalarSize)
Definition: LowLevelType.h:120
constexpr unsigned getScalarSizeInBits() const
Definition: LowLevelType.h:249
constexpr LLT(bool isPointer, bool isVector, bool isScalar, ElementCount EC, uint64_t SizeInBits, unsigned AddressSpace)
Definition: LowLevelType.h:126
constexpr bool isScalar() const
Definition: LowLevelType.h:139
static constexpr LLT scalable_vector(unsigned MinNumElements, unsigned ScalarSizeInBits)
Get a low-level scalable vector of some number of elements and element width.
Definition: LowLevelType.h:105
constexpr bool operator==(const LLT &RHS) const
Definition: LowLevelType.h:286
constexpr LLT changeElementType(LLT NewEltTy) const
If this type is a vector, return a vector with the same number of elements but the new element type.
Definition: LowLevelType.h:196
constexpr LLT multiplyElements(int Factor) const
Produce a vector type that is Factor times bigger, preserving the element type.
Definition: LowLevelType.h:236
static constexpr LLT vector(ElementCount EC, unsigned ScalarSizeInBits)
Get a low-level vector of some number of elements and element width.
Definition: LowLevelType.h:56
static constexpr LLT scalar(unsigned SizeInBits)
Get a low-level scalar or aggregate "bag of bits".
Definition: LowLevelType.h:42
constexpr bool isValid() const
Definition: LowLevelType.h:137
constexpr uint16_t getNumElements() const
Returns the number of elements in a vector LLT.
Definition: LowLevelType.h:149
constexpr bool operator!=(const LLT &RHS) const
Definition: LowLevelType.h:291
constexpr bool isVector() const
Definition: LowLevelType.h:145
static constexpr LLT pointer(unsigned AddressSpace, unsigned SizeInBits)
Get a low-level pointer in the given address space.
Definition: LowLevelType.h:49
constexpr bool isScalable() const
Returns true if the LLT is a scalable vector.
Definition: LowLevelType.h:160
constexpr uint64_t getUniqueRAWLLTData() const
Definition: LowLevelType.h:410
constexpr bool isByteSized() const
Definition: LowLevelType.h:245
constexpr TypeSize getSizeInBits() const
Returns the total size of the type. Must only be called on sized types.
Definition: LowLevelType.h:175
constexpr bool isPointer() const
Definition: LowLevelType.h:141
constexpr LLT()
Definition: LowLevelType.h:132
constexpr LLT getElementType() const
Returns the vector's element type. Only valid for vector types.
Definition: LowLevelType.h:272
static constexpr LLT vector(ElementCount EC, LLT ScalarTy)
Get a low-level vector of some number of elements and element type.
Definition: LowLevelType.h:63
constexpr ElementCount getElementCount() const
Definition: LowLevelType.h:166
constexpr LLT changeElementSize(unsigned NewEltSize) const
If this type is a vector, return a vector with the same number of elements but the new element size.
Definition: LowLevelType.h:203
static constexpr LLT fixed_vector(unsigned NumElements, LLT ScalarTy)
Get a low-level fixed-width vector of some number of elements and element type.
Definition: LowLevelType.h:99
static constexpr LLT float16()
Get a 16-bit IEEE half value.
Definition: LowLevelType.h:76
constexpr unsigned getAddressSpace() const
Definition: LowLevelType.h:262
static constexpr LLT fixed_vector(unsigned NumElements, unsigned ScalarSizeInBits)
Get a low-level fixed-width vector of some number of elements and element width.
Definition: LowLevelType.h:92
constexpr LLT changeElementCount(ElementCount EC) const
Return a vector or scalar with the same element type and the new element count.
Definition: LowLevelType.h:212
LLVM_DUMP_METHOD void dump() const
constexpr LLT getScalarType() const
Definition: LowLevelType.h:190
constexpr TypeSize getSizeInBytes() const
Returns the total size of the type in bytes, i.e.
Definition: LowLevelType.h:185
static constexpr LLT scalable_vector(unsigned MinNumElements, LLT ScalarTy)
Get a low-level scalable vector of some number of elements and element type.
Definition: LowLevelType.h:112
static constexpr LLT scalarOrVector(ElementCount EC, LLT ScalarTy)
Definition: LowLevelType.h:116
static constexpr LLT float32()
Get a 32-bit IEEE float value.
Definition: LowLevelType.h:81
constexpr LLT divide(int Factor) const
Return a type that is Factor times smaller.
Definition: LowLevelType.h:219
Machine Value Type.
static constexpr TypeSize Fixed(ScalarTy ExactSize)
Definition: TypeSize.h:331
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:175
constexpr ScalarTy getFixedValue() const
Definition: TypeSize.h:182
constexpr bool isScalable() const
Returns whether the quantity is scaled by a runtime quantity (vscale).
Definition: TypeSize.h:166
constexpr ScalarTy getKnownMinValue() const
Returns the minimum value this quantity can represent.
Definition: TypeSize.h:163
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:52
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
AddressSpace
Definition: NVPTXBaseInfo.h:21
void reportInvalidSizeRequest(const char *Msg)
Reports a diagnostic message to indicate an invalid size request has been done on a scalable vector.
Definition: TypeSize.cpp:38
@ Invalid
Denotes invalid value.
raw_ostream & operator<<(raw_ostream &OS, const APFixedPoint &FX)
Definition: APFixedPoint.h:292
static LLT getTombstoneKey()
Definition: LowLevelType.h:427
static bool isEqual(const LLT &LHS, const LLT &RHS)
Definition: LowLevelType.h:436
static unsigned getHashValue(const LLT &Ty)
Definition: LowLevelType.h:432
An information struct used to provide DenseMap with the various necessary components for a given valu...
Definition: DenseMapInfo.h:50