clang 23.0.0git
EvalEmitter.cpp
Go to the documentation of this file.
1//===--- EvalEmitter.cpp - Instruction emitter for the VM -------*- 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#include "EvalEmitter.h"
10#include "Context.h"
11#include "IntegralAP.h"
12#include "Interp.h"
13#include "clang/AST/DeclCXX.h"
14#include "clang/AST/ExprCXX.h"
15#include "llvm/ADT/ScopeExit.h"
16
17using namespace clang;
18using namespace clang::interp;
19
21 InterpStack &Stk)
22 : Ctx(Ctx), P(P), S(Parent, P, Stk, Ctx, this), EvalResult(&Ctx) {}
23
25 for (auto &V : Locals) {
26 Block *B = reinterpret_cast<Block *>(V.get());
27 if (B->isInitialized())
28 B->invokeDtor();
29 }
30}
31
32/// Clean up all our resources. This needs to done in failed evaluations before
33/// we call InterpStack::clear(), because there might be a Pointer on the stack
34/// pointing into a Block in the EvalEmitter.
35void EvalEmitter::cleanup() { S.cleanup(); }
36
38 bool ConvertResultToRValue,
39 bool DestroyToplevelScope) {
40 S.setEvalLocation(E->getExprLoc());
41 this->ConvertResultToRValue = ConvertResultToRValue && !isa<ConstantExpr>(E);
42 this->CheckFullyInitialized = isa<ConstantExpr>(E) && !E->isGLValue();
43 EvalResult.setSource(E);
44
45 if (!this->visitExpr(E, DestroyToplevelScope)) {
46 // EvalResult may already have a result set, but something failed
47 // after that (e.g. evaluating destructors).
48 EvalResult.setInvalid();
49 }
50
51 return std::move(this->EvalResult);
52}
53
55 bool CheckFullyInitialized) {
56 assert(VD);
57 assert(Init);
58 this->CheckFullyInitialized = CheckFullyInitialized;
59 S.EvaluatingDecl = VD;
60 S.setEvalLocation(VD->getLocation());
61 EvalResult.setSource(VD);
62
63 QualType T = VD->getType();
64 this->ConvertResultToRValue = !Init->isGLValue() && !T->isPointerType() &&
65 !T->isObjCObjectPointerType();
66 EvalResult.setSource(VD);
67
68 if (!this->visitDeclAndReturn(VD, Init, S.inConstantContext()))
69 EvalResult.setInvalid();
70
71 S.EvaluatingDecl = nullptr;
72 updateGlobalTemporaries();
73 return std::move(this->EvalResult);
74}
75
77 const APValue &Value) {
78 assert(VD);
79 S.setEvalLocation(VD->getLocation());
80 S.EvaluatingDecl = VD;
81 S.EvalKind = EvaluationKind::Dtor;
82 EvalResult.setSource(VD);
83
84 if (!this->visitDtorCall(VD, Value))
85 EvalResult.setInvalid();
86
87 S.EvaluatingDecl = nullptr;
88 return std::move(this->EvalResult);
89}
90
92 PtrCallback PtrCB) {
93 S.setEvalLocation(E->getExprLoc());
94 this->ConvertResultToRValue = false;
95 this->CheckFullyInitialized = false;
96 this->PtrCB = PtrCB;
97 EvalResult.setSource(E);
98
99 if (!this->visitExpr(E, true)) {
100 // EvalResult may already have a result set, but something failed
101 // after that (e.g. evaluating destructors).
102 EvalResult.setInvalid();
103 }
104
105 return std::move(this->EvalResult);
106}
107
109 PtrCallback PtrCB) {
110 S.setEvalLocation(E->getExprLoc());
111 this->ConvertResultToRValue = false;
112 this->CheckFullyInitialized = false;
113 this->PtrCB = PtrCB;
114 EvalResult.setSource(E);
115
116 if (!this->visitLValueExpr(E, true))
117 EvalResult.setInvalid();
118
119 return std::move(this->EvalResult);
120}
121
123 // Add parameters to the parameter map. The values in the ParamOffset don't
124 // matter in this case as reading from them can't ever work.
125 for (const ParmVarDecl *PD : FD->parameters()) {
126 this->Params.insert({PD, {0, false}});
127 }
128
129 return this->visitExpr(E, /*DestroyToplevelScope=*/false);
130}
131
133 const FunctionDecl *Callee, ArrayRef<const Expr *> Args, const Expr *This,
134 const Expr *Condition) {
135
136 if (!this->visitWithSubstitutions(Callee, Args, This, Condition))
137 return std::nullopt;
138
139 if (EvalResult.empty() || EvalResult.isInvalid())
140 return false;
141
142 assert(!EvalResult.empty());
143 APValue Result = EvalResult.stealAPValue();
144
145 assert(Result.isInt());
146 return Result.getInt().getBoolValue();
147}
148
149void EvalEmitter::emitLabel(LabelTy Label) { CurrentLabel = Label; }
150
152
154 // Allocate memory for a local.
155 auto Memory = std::make_unique<char[]>(sizeof(Block) + D->getAllocSize());
156 auto *B = new (Memory.get()) Block(Ctx.getEvalID(), D, /*IsStatic=*/false);
157 B->invokeCtorNoMemset();
158
159 // Initialize local variable inline descriptor.
160 auto &Desc = B->getBlockDesc<InlineDescriptor>();
161 Desc.Desc = D;
162 Desc.Offset = sizeof(InlineDescriptor);
163 Desc.IsActive = false;
164 Desc.IsBase = false;
165 Desc.IsFieldMutable = false;
166 Desc.IsConst = false;
167 Desc.IsInitialized = false;
168
169 // Register the local.
170 unsigned Off = Locals.size();
171 Locals.push_back(std::move(Memory));
172 return {Off, D};
173}
174
176 if (isActive()) {
177 CurrentSource = SI;
178 if (S.Stk.pop<bool>())
179 ActiveLabel = Label;
180 }
181 return true;
182}
183
185 if (isActive()) {
186 CurrentSource = SI;
187 if (!S.Stk.pop<bool>())
188 ActiveLabel = Label;
189 }
190 return true;
191}
192
193bool EvalEmitter::jump(const LabelTy &Label, SourceInfo SI) {
194 if (isActive()) {
195 CurrentSource = SI;
196 CurrentLabel = ActiveLabel = Label;
197 }
198 return true;
199}
200
202 if (isActive())
203 ActiveLabel = Label;
204 CurrentLabel = Label;
205 return true;
206}
207
208bool EvalEmitter::speculate(const CallExpr *E, const LabelTy &EndLabel) {
209 if (!isActive())
210 return true;
211
213 auto _ = llvm::scope_exit([&]() { PopIgnoreDiags(S); });
214
215 size_t StackSizeBefore = S.Stk.size();
216 const Expr *Arg = E->getArg(0);
217 if (!this->visit(Arg)) {
218 S.Stk.clearTo(StackSizeBefore);
219
220 if (S.inConstantContext() || Arg->HasSideEffects(S.getASTContext()))
221 return this->emitBool(false, E);
222 return Invalid(S, OpPC);
223 }
224
225 PrimType T = Ctx.classify(Arg->getType()).value_or(PT_Ptr);
226 if (T == PT_Ptr) {
227 const auto &Ptr = S.Stk.pop<Pointer>();
228 return this->emitBool(CheckBCPResult(S, Ptr), E);
229 }
230
231 // Otherwise, this is fine!
232 if (!this->emitPop(T, E))
233 return false;
234 return this->emitBool(true, E);
235}
236
237template <PrimType OpType> bool EvalEmitter::emitRet(SourceInfo Info) {
238 if (!isActive())
239 return true;
240
241 using T = typename PrimConv<OpType>::T;
242 EvalResult.takeValue(S.Stk.pop<T>().toAPValue(Ctx.getASTContext()));
243 return true;
244}
245
246template <> bool EvalEmitter::emitRet<PT_Ptr>(SourceInfo Info) {
247 if (!isActive())
248 return true;
249
250 const Pointer &Ptr = S.Stk.pop<Pointer>();
251 // If we're returning a raw pointer, call our callback.
252 if (this->PtrCB)
253 return (*this->PtrCB)(S, OpPC, Ptr);
254
255 if (!EvalResult.checkDynamicAllocations(S, Ctx, Ptr, Info))
256 return false;
257 if (CheckFullyInitialized && !EvalResult.checkFullyInitialized(S, Ptr))
258 return false;
259
260 // Function pointers are always returned as lvalues.
261 if (Ptr.isFunctionPointer()) {
262 EvalResult.takeValue(Ptr.toAPValue(Ctx.getASTContext()));
263 return true;
264 }
265
266 // Implicitly convert lvalue to rvalue, if requested.
267 if (ConvertResultToRValue) {
268 if (Ptr.isPastEnd())
269 return false;
270
271 if (Ptr.pointsToStringLiteral() && Ptr.isArrayRoot())
272 return false;
273
274 if (!Ptr.isZero() && !CheckFinalLoad(S, OpPC, Ptr))
275 return false;
276
277 // Never allow reading from a non-const pointer, unless the memory
278 // has been created in this evaluation.
279 if (!Ptr.isZero() && !Ptr.isConst() && Ptr.isBlockPointer() &&
280 Ptr.block()->getEvalID() != Ctx.getEvalID())
281 return false;
282
283 if (std::optional<APValue> V =
284 Ptr.toRValue(Ctx, EvalResult.getSourceType())) {
285 EvalResult.takeValue(std::move(*V));
286 } else {
287 return false;
288 }
289 } else {
290 // If this is pointing to a local variable, just return
291 // the result, even if the pointer is dead.
292 // This will later be diagnosed by CheckLValueConstantExpression.
293 if (Ptr.isBlockPointer() && !Ptr.block()->isStatic()) {
294 EvalResult.takeValue(Ptr.toAPValue(Ctx.getASTContext()));
295 return true;
296 }
297
298 if (!Ptr.isLive() && !Ptr.isTemporary())
299 return false;
300
301 // If the variable of this pointer is being evaluated when returning
302 // its value, mark it as constexpr-unknown.
303 APValue V = Ptr.toAPValue(Ctx.getASTContext());
304 if (const Descriptor *DeclDesc = Ptr.getDeclDesc();
305 DeclDesc && S.EvaluatingDecl &&
306 DeclDesc->asVarDecl() == S.EvaluatingDecl &&
307 S.getLangOpts().CPlusPlus23 &&
308 S.EvaluatingDecl->getType()->isReferenceType()) {
309 V.setConstexprUnknown(true);
310 }
311 EvalResult.takeValue(std::move(V));
312 }
313
314 return true;
315}
316
317bool EvalEmitter::emitRetVoid(SourceInfo Info) {
318 EvalResult.setValid();
319 return true;
320}
321
322bool EvalEmitter::emitRetValue(SourceInfo Info) {
323 const auto &Ptr = S.Stk.pop<Pointer>();
324
325 if (!EvalResult.checkDynamicAllocations(S, Ctx, Ptr, Info))
326 return false;
327 if (CheckFullyInitialized && !EvalResult.checkFullyInitialized(S, Ptr))
328 return false;
329
330 if (std::optional<APValue> APV =
331 Ptr.toRValue(Ctx, EvalResult.getSourceType())) {
332 EvalResult.takeValue(std::move(*APV));
333 return true;
334 }
335
336 EvalResult.setInvalid();
337 return false;
338}
339
340bool EvalEmitter::emitGetPtrLocal(uint32_t I, SourceInfo Info) {
341 if (!isActive())
342 return true;
343
344 Block *B = getLocal(I);
345 S.Stk.push<Pointer>(B, sizeof(InlineDescriptor));
346 return true;
347}
348
349bool EvalEmitter::emitGetRefLocal(uint32_t I, SourceInfo Info) {
350 if (!isActive())
351 return true;
352
353 Block *B = getLocal(I);
354 return handleReference(S, OpPC, B);
355}
356
357template <PrimType OpType>
358bool EvalEmitter::emitGetLocal(uint32_t I, SourceInfo Info) {
359 if (!isActive())
360 return true;
361
362 using T = typename PrimConv<OpType>::T;
363
364 Block *B = getLocal(I);
365
366 if (!CheckLocalLoad(S, OpPC, B))
367 return false;
368
369 S.Stk.push<T>(B->deref<T>());
370 return true;
371}
372
373template <PrimType OpType>
374bool EvalEmitter::emitSetLocal(uint32_t I, SourceInfo Info) {
375 if (!isActive())
376 return true;
377
378 using T = typename PrimConv<OpType>::T;
379
380 Block *B = getLocal(I);
381 B->deref<T>() = S.Stk.pop<T>();
382 auto &Desc = B->getBlockDesc<InlineDescriptor>();
383 Desc.IsInitialized = true;
384 Desc.LifeState = Lifetime::Started;
385
386 return true;
387}
388
389bool EvalEmitter::emitDestroy(uint32_t I, SourceInfo Info) {
390 if (!isActive())
391 return true;
392
393 for (auto &Local : Descriptors[I]) {
394 Block *B = getLocal(Local.Offset);
395 S.deallocate(B);
396 }
397
398 return true;
399}
400
401bool EvalEmitter::emitGetLocalEnabled(uint32_t I, SourceInfo Info) {
402 if (!isActive())
403 return true;
404
405 Block *B = getLocal(I);
406 const auto &Desc = B->getBlockDesc<InlineDescriptor>();
407
408 S.Stk.push<bool>(Desc.IsActive);
409 return true;
410}
411
412bool EvalEmitter::emitEnableLocal(uint32_t I, SourceInfo Info) {
413 if (!isActive())
414 return true;
415
416 // FIXME: This is a little dirty, but to avoid adding a flag to
417 // InlineDescriptor that's only ever useful on the toplevel of local
418 // variables, we reuse the IsActive flag for the enabled state. We should
419 // probably use a different struct than InlineDescriptor for the block-level
420 // inline descriptor of local varaibles.
421 Block *B = getLocal(I);
422 auto &Desc = B->getBlockDesc<InlineDescriptor>();
423 Desc.IsActive = true;
424 return true;
425}
426
427/// Global temporaries (LifetimeExtendedTemporary) carry their value
428/// around as an APValue, which codegen accesses.
429/// We set their value once when creating them, but we don't update it
430/// afterwards when code changes it later.
431/// This is what we do here.
432void EvalEmitter::updateGlobalTemporaries() {
433 for (const auto &[E, Temp] : S.SeenGlobalTemporaries) {
434 UnsignedOrNone GlobalIndex = P.getGlobal(E);
435 assert(GlobalIndex);
436 const Pointer &Ptr = P.getPtrGlobal(*GlobalIndex);
437 APValue *Cached = Temp->getOrCreateValue(true);
438
439 QualType TempType = E->getType();
440 if (const auto *MTE = dyn_cast<MaterializeTemporaryExpr>(E))
441 TempType = MTE->getSubExpr()->skipRValueSubobjectAdjustments()->getType();
442
443 if (OptPrimType T = Ctx.classify(TempType)) {
444 TYPE_SWITCH(*T,
445 { *Cached = Ptr.deref<T>().toAPValue(Ctx.getASTContext()); });
446 } else {
447 if (std::optional<APValue> APV = Ptr.toRValue(Ctx, TempType))
448 *Cached = *APV;
449 }
450 }
451 S.SeenGlobalTemporaries.clear();
452}
453
454//===----------------------------------------------------------------------===//
455// Opcode evaluators
456//===----------------------------------------------------------------------===//
457
458#define GET_EVAL_IMPL
459#include "Opcodes.inc"
460#undef GET_EVAL_IMPL
#define V(N, I)
Defines the C++ Decl subclasses, other than those for templates (found in DeclTemplate....
Defines the clang::Expr interface and subclasses for C++ expressions.
static bool CheckFullyInitialized(EvalInfo &Info, SourceLocation DiagLoc, QualType Type, const APValue &Value)
Check that this evaluated value is fully-initialized and can be loaded by an lvalue-to-rvalue convers...
#define TYPE_SWITCH(Expr, B)
Definition PrimType.h:223
APValue - This class implements a discriminated union of [uninitialized] [APSInt] [APFloat],...
Definition APValue.h:122
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
Definition Expr.h:2949
Expr * getArg(unsigned Arg)
getArg - Return the specified argument.
Definition Expr.h:3153
SourceLocation getLocation() const
Definition DeclBase.h:447
const LangOptions & getLangOpts() const LLVM_READONLY
Helper to get the language options from the ASTContext.
Definition DeclBase.cpp:553
This represents one expression.
Definition Expr.h:112
bool isGLValue() const
Definition Expr.h:287
bool HasSideEffects(const ASTContext &Ctx, bool IncludePossibleEffects=true) const
HasSideEffects - This routine returns true for all those expressions which have any effect other than...
Definition Expr.cpp:3697
SourceLocation getExprLoc() const LLVM_READONLY
getExprLoc - Return the preferred location for the arrow when diagnosing a problem with a generic exp...
Definition Expr.cpp:283
QualType getType() const
Definition Expr.h:144
Represents a function declaration or definition.
Definition Decl.h:2027
ArrayRef< ParmVarDecl * > parameters() const
Definition Decl.h:2805
Represents a parameter to a function.
Definition Decl.h:1817
A (possibly-)qualified type.
Definition TypeBase.h:937
QualType getType() const
Definition Decl.h:723
Represents a variable declaration or definition.
Definition Decl.h:932
A memory block, either on the stack or in the heap.
Definition InterpBlock.h:44
void invokeDtor()
Invokes the Destructor.
const T & deref() const
bool isStatic() const
Checks if the block has static storage duration.
Definition InterpBlock.h:79
bool isInitialized() const
Returns whether the data of this block has been initialized via invoking the Ctor func.
Definition InterpBlock.h:92
unsigned getEvalID() const
The Evaluation ID this block was created in.
Definition InterpBlock.h:94
Holds all information required to evaluate constexpr code in a module.
Definition Context.h:47
ASTContext & getASTContext() const
Returns the AST context.
Definition Context.h:107
unsigned getEvalID() const
Definition Context.h:180
llvm::DenseMap< const ParmVarDecl *, FuncParam > Params
Parameter indices.
EvaluationResult interpretDecl(const VarDecl *VD, const Expr *Init, bool CheckFullyInitialized)
EvaluationResult interpretDestructor(const VarDecl *VD, const APValue &Value)
EvaluationResult interpretExpr(const Expr *E, bool ConvertResultToRValue=false, bool DestroyToplevelScope=false)
bool jump(const LabelTy &Label, SourceInfo SI)
virtual bool visit(const Expr *E)=0
bool speculate(const CallExpr *E, const LabelTy &EndLabel)
Speculative execution.
std::optional< bool > interpretWithSubstitutions(const FunctionDecl *Callee, ArrayRef< const Expr * > Args, const Expr *This, const Expr *Condition)
virtual bool visitDtorCall(const VarDecl *VD, const APValue &Value)=0
bool jumpFalse(const LabelTy &Label, SourceInfo SI)
Local createLocal(Descriptor *D)
Callback for registering a local.
bool interpretCall(const FunctionDecl *FD, const Expr *E)
Interpret the given expression as if it was in the body of the given function, i.e.
void emitLabel(LabelTy Label)
Define a label.
bool isActive() const
Since expressions can only jump forward, predicated execution is used to deal with if-else statements...
Definition EvalEmitter.h:94
virtual bool visitWithSubstitutions(const FunctionDecl *Callee, ArrayRef< const Expr * > Args, const Expr *This, const Expr *Condition)=0
EvaluationResult interpretAsLValuePointer(const Expr *E, PtrCallback PtrCB)
virtual bool visitExpr(const Expr *E, bool DestroyToplevelScope)=0
Methods implemented by the compiler.
bool fallthrough(const LabelTy &Label)
virtual bool visitDeclAndReturn(const VarDecl *VD, const Expr *Init, bool ConstantContext)=0
void cleanup()
Clean up all resources.
LabelTy getLabel()
Create a label.
EvaluationResult interpretAsPointer(const Expr *E, PtrCallback PtrCB)
Interpret the given Expr to a Pointer.
EvalEmitter(Context &Ctx, Program &P, State &Parent, InterpStack &Stk)
virtual bool emitBool(bool V, const Expr *E)=0
bool jumpTrue(const LabelTy &Label, SourceInfo SI)
Emits jumps.
llvm::SmallVector< SmallVector< Local, 8 >, 2 > Descriptors
Local descriptors.
virtual bool visitLValueExpr(const Expr *E, bool DestroyToplevelScope)=0
llvm::function_ref< bool(InterpState &S, CodePtr OpPC, const Pointer &)> PtrCallback
Definition EvalEmitter.h:36
Defines the result of an evaluation.
bool checkFullyInitialized(InterpState &S, const Pointer &Ptr) const
Check that all subobjects of the given pointer have been initialized.
bool checkDynamicAllocations(InterpState &S, const Context &Ctx, const Pointer &Ptr, SourceInfo Info)
Check that none of the blocks the given pointer (transitively) points to are dynamically allocated.
Stack frame storing temporaries and parameters.
Definition InterpStack.h:25
T pop()
Returns the value from the top of the stack and removes it.
Definition InterpStack.h:39
InterpStack & Stk
Temporary stack.
A pointer to a memory block, live or dead.
Definition Pointer.h:405
bool isConst() const
Checks if an object or a subfield is mutable.
Definition Pointer.h:769
T & deref() const
Dereferences the pointer, if it's live.
Definition Pointer.h:875
QualType getType() const
Returns the type of the innermost field.
Definition Pointer.h:574
bool pointsToStringLiteral() const
Definition Pointer.cpp:834
bool isArrayRoot() const
Whether this array refers to an array, but not to the first element.
Definition Pointer.h:615
bool isLive() const
Checks if the pointer is live.
Definition Pointer.h:522
bool isZero() const
Checks if the pointer is null.
Definition Pointer.h:508
const Descriptor * getDeclDesc() const
Accessor for information about the declaration site.
Definition Pointer.h:536
APValue toAPValue(const ASTContext &ASTCtx) const
Converts the pointer to an APValue.
Definition Pointer.cpp:173
bool isPastEnd() const
Checks if the pointer points past the end of the object.
Definition Pointer.h:846
bool isBlockPointer() const
Definition Pointer.h:679
std::optional< APValue > toRValue(const Context &Ctx, QualType ResultType) const
Converts the pointer to an APValue that is an rvalue.
Definition Pointer.cpp:901
bool isTemporary() const
Checks if the storage is temporary.
Definition Pointer.h:713
const Block * block() const
Definition Pointer.h:814
bool isFunctionPointer() const
Definition Pointer.h:681
The program contains and links the bytecode for all functions.
Definition Program.h:36
Describes the statement/declaration an opcode was generated from.
Definition Source.h:76
Interface for the VM to interact with the AST walker's context.
Definition State.h:81
bool PushIgnoreDiags(InterpState &S)
Definition Interp.h:3622
bool PopIgnoreDiags(InterpState &S)
Definition Interp.h:3634
bool handleReference(InterpState &S, CodePtr OpPC, Block *B)
Definition Interp.cpp:2732
bool CheckBCPResult(InterpState &S, const Pointer &Ptr)
Definition Interp.cpp:304
bool This(InterpState &S, CodePtr OpPC)
Definition Interp.h:3150
bool CheckFinalLoad(InterpState &S, CodePtr OpPC, const Pointer &Ptr)
This is not used by any of the opcodes directly.
Definition Interp.cpp:955
PrimType
Enumeration of the primitive types of the VM.
Definition PrimType.h:34
bool Init(InterpState &S, CodePtr OpPC)
Definition Interp.h:2391
bool CheckLocalLoad(InterpState &S, CodePtr OpPC, const Block *B)
Definition Interp.cpp:857
The JSON file list parser is used to communicate input to InstallAPI.
bool isa(CodeGen::Address addr)
Definition Address.h:330
@ Result
The result type of a method or function.
Definition TypeBase.h:905
OptionalUnsigned< unsigned > UnsignedOrNone
@ Off
Never emit colors regardless of the output stream.
__packed_splat4 __packed_splat2 __packed_splat8 __packed_splat4 __packed_splat2 __packed_splat4 __packed_splat2 __packed_splat8 __packed_splat4 uint32_t
Describes a memory block created by an allocation site.
Definition Descriptor.h:123
const bool IsConst
Flag indicating if the block is mutable.
Definition Descriptor.h:162
unsigned getAllocSize() const
Returns the allocated size, including metadata.
Definition Descriptor.h:248
const VarDecl * asVarDecl() const
Definition Descriptor.h:220
Inline descriptor embedded in structures and arrays.
Definition Descriptor.h:68
Mapping from primitive types to their representation.
Definition PrimType.h:150
Information about a local's storage.
Definition Function.h:39