1 //===--- llvm/DIBuilder.h - Debug Information Builder -----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines a DIBuilder that is useful for creating debugging
11 // information entries in LLVM IR form.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_DIBUILDER_H
16 #define LLVM_DIBUILDER_H
18 #include "llvm/ADT/ArrayRef.h"
19 #include "llvm/ADT/StringRef.h"
20 #include "llvm/Support/DataTypes.h"
32 class DICompositeType;
39 class DIGlobalVariable;
40 class DIImportedEntity;
44 class DILexicalBlockFile;
48 class DITemplateTypeParameter;
49 class DITemplateValueParameter;
55 LLVMContext & VMContext;
58 MDNode *TempEnumTypes;
59 MDNode *TempRetainTypes;
60 MDNode *TempSubprograms;
62 MDNode *TempImportedModules;
64 Function *DeclareFn; // llvm.dbg.declare
65 Function *ValueFn; // llvm.dbg.value
67 SmallVector<Value *, 4> AllEnumTypes;
68 SmallVector<Value *, 4> AllRetainTypes;
69 SmallVector<Value *, 4> AllSubprograms;
70 SmallVector<Value *, 4> AllGVs;
71 SmallVector<Value *, 4> AllImportedModules;
73 DIBuilder(const DIBuilder &) LLVM_DELETED_FUNCTION;
74 void operator=(const DIBuilder &) LLVM_DELETED_FUNCTION;
77 explicit DIBuilder(Module &M);
78 const MDNode *getCU() { return TheCU; }
79 enum ComplexAddrKind { OpPlus=1, OpDeref };
81 /// finalize - Construct any deferred debug info descriptors.
84 /// createCompileUnit - A CompileUnit provides an anchor for all debugging
85 /// information generated during this instance of compilation.
86 /// @param Lang Source programming language, eg. dwarf::DW_LANG_C99
87 /// @param File File name
88 /// @param Dir Directory
89 /// @param Producer String identify producer of debugging information.
90 /// Usuall this is a compiler version string.
91 /// @param isOptimized A boolean flag which indicates whether optimization
93 /// @param Flags This string lists command line options. This string is
94 /// directly embedded in debug info output which may be used
95 /// by a tool analyzing generated debugging information.
96 /// @param RV This indicates runtime version for languages like
98 /// @param SplitName The name of the file that we'll split debug info out
100 void createCompileUnit(unsigned Lang, StringRef File, StringRef Dir,
101 StringRef Producer, bool isOptimized,
102 StringRef Flags, unsigned RV,
103 StringRef SplitName = StringRef());
105 /// createFile - Create a file descriptor to hold debugging information
107 DIFile createFile(StringRef Filename, StringRef Directory);
109 /// createEnumerator - Create a single enumerator value.
110 DIEnumerator createEnumerator(StringRef Name, uint64_t Val);
112 /// createNullPtrType - Create C++0x nullptr type.
113 DIType createNullPtrType(StringRef Name);
115 /// createBasicType - Create debugging information entry for a basic
117 /// @param Name Type name.
118 /// @param SizeInBits Size of the type.
119 /// @param AlignInBits Type alignment.
120 /// @param Encoding DWARF encoding code, e.g. dwarf::DW_ATE_float.
121 DIBasicType createBasicType(StringRef Name, uint64_t SizeInBits,
122 uint64_t AlignInBits, unsigned Encoding);
124 /// createQualifiedType - Create debugging information entry for a qualified
125 /// type, e.g. 'const int'.
126 /// @param Tag Tag identifing type, e.g. dwarf::TAG_volatile_type
127 /// @param FromTy Base Type.
128 DIDerivedType createQualifiedType(unsigned Tag, DIType FromTy);
130 /// createPointerType - Create debugging information entry for a pointer.
131 /// @param PointeeTy Type pointed by this pointer.
132 /// @param SizeInBits Size.
133 /// @param AlignInBits Alignment. (optional)
134 /// @param Name Pointer type name. (optional)
136 createPointerType(DIType PointeeTy, uint64_t SizeInBits,
137 uint64_t AlignInBits = 0, StringRef Name = StringRef());
139 /// \brief Create debugging information entry for a pointer to member.
140 /// @param PointeeTy Type pointed to by this pointer.
141 /// @param Class Type for which this pointer points to members of.
142 DIDerivedType createMemberPointerType(DIType PointeeTy, DIType Class);
144 /// createReferenceType - Create debugging information entry for a c++
145 /// style reference or rvalue reference type.
146 DIDerivedType createReferenceType(unsigned Tag, DIType RTy);
148 /// createTypedef - Create debugging information entry for a typedef.
149 /// @param Ty Original type.
150 /// @param Name Typedef name.
151 /// @param File File where this type is defined.
152 /// @param LineNo Line number.
153 /// @param Context The surrounding context for the typedef.
154 DIDerivedType createTypedef(DIType Ty, StringRef Name, DIFile File,
155 unsigned LineNo, DIDescriptor Context);
157 /// createFriend - Create debugging information entry for a 'friend'.
158 DIType createFriend(DIType Ty, DIType FriendTy);
160 /// createInheritance - Create debugging information entry to establish
161 /// inheritance relationship between two types.
162 /// @param Ty Original type.
163 /// @param BaseTy Base type. Ty is inherits from base.
164 /// @param BaseOffset Base offset.
165 /// @param Flags Flags to describe inheritance attribute,
167 DIDerivedType createInheritance(DIType Ty, DIType BaseTy,
168 uint64_t BaseOffset, unsigned Flags);
170 /// createMemberType - Create debugging information entry for a member.
171 /// @param Scope Member scope.
172 /// @param Name Member name.
173 /// @param File File where this member is defined.
174 /// @param LineNo Line number.
175 /// @param SizeInBits Member size.
176 /// @param AlignInBits Member alignment.
177 /// @param OffsetInBits Member offset.
178 /// @param Flags Flags to encode member attribute, e.g. private
179 /// @param Ty Parent type.
181 createMemberType(DIDescriptor Scope, StringRef Name, DIFile File,
182 unsigned LineNo, uint64_t SizeInBits, uint64_t AlignInBits,
183 uint64_t OffsetInBits, unsigned Flags, DIType Ty);
185 /// createStaticMemberType - Create debugging information entry for a
186 /// C++ static data member.
187 /// @param Scope Member scope.
188 /// @param Name Member name.
189 /// @param File File where this member is declared.
190 /// @param LineNo Line number.
191 /// @param Ty Type of the static member.
192 /// @param Flags Flags to encode member attribute, e.g. private.
193 /// @param Val Const initializer of the member.
194 DIType createStaticMemberType(DIDescriptor Scope, StringRef Name,
195 DIFile File, unsigned LineNo, DIType Ty,
196 unsigned Flags, llvm::Value *Val);
198 /// createObjCIVar - Create debugging information entry for Objective-C
199 /// instance variable.
200 /// @param Name Member name.
201 /// @param File File where this member is defined.
202 /// @param LineNo Line number.
203 /// @param SizeInBits Member size.
204 /// @param AlignInBits Member alignment.
205 /// @param OffsetInBits Member offset.
206 /// @param Flags Flags to encode member attribute, e.g. private
207 /// @param Ty Parent type.
208 /// @param PropertyName Name of the Objective C property associated with
210 /// @param PropertyGetterName Name of the Objective C property getter
212 /// @param PropertySetterName Name of the Objective C property setter
214 /// @param PropertyAttributes Objective C property attributes.
215 DIType createObjCIVar(StringRef Name, DIFile File,
216 unsigned LineNo, uint64_t SizeInBits,
217 uint64_t AlignInBits, uint64_t OffsetInBits,
218 unsigned Flags, DIType Ty,
219 StringRef PropertyName = StringRef(),
220 StringRef PropertyGetterName = StringRef(),
221 StringRef PropertySetterName = StringRef(),
222 unsigned PropertyAttributes = 0);
224 /// createObjCIVar - Create debugging information entry for Objective-C
225 /// instance variable.
226 /// @param Name Member name.
227 /// @param File File where this member is defined.
228 /// @param LineNo Line number.
229 /// @param SizeInBits Member size.
230 /// @param AlignInBits Member alignment.
231 /// @param OffsetInBits Member offset.
232 /// @param Flags Flags to encode member attribute, e.g. private
233 /// @param Ty Parent type.
234 /// @param PropertyNode Property associated with this ivar.
235 DIType createObjCIVar(StringRef Name, DIFile File,
236 unsigned LineNo, uint64_t SizeInBits,
237 uint64_t AlignInBits, uint64_t OffsetInBits,
238 unsigned Flags, DIType Ty,
239 MDNode *PropertyNode);
241 /// createObjCProperty - Create debugging information entry for Objective-C
243 /// @param Name Property name.
244 /// @param File File where this property is defined.
245 /// @param LineNumber Line number.
246 /// @param GetterName Name of the Objective C property getter selector.
247 /// @param SetterName Name of the Objective C property setter selector.
248 /// @param PropertyAttributes Objective C property attributes.
250 DIObjCProperty createObjCProperty(StringRef Name,
251 DIFile File, unsigned LineNumber,
252 StringRef GetterName,
253 StringRef SetterName,
254 unsigned PropertyAttributes,
257 /// createClassType - Create debugging information entry for a class.
258 /// @param Scope Scope in which this class is defined.
259 /// @param Name class name.
260 /// @param File File where this member is defined.
261 /// @param LineNumber Line number.
262 /// @param SizeInBits Member size.
263 /// @param AlignInBits Member alignment.
264 /// @param OffsetInBits Member offset.
265 /// @param Flags Flags to encode member attribute, e.g. private
266 /// @param Elements class members.
267 /// @param VTableHolder Debug info of the base class that contains vtable
268 /// for this type. This is used in
269 /// DW_AT_containing_type. See DWARF documentation
271 /// @param TemplateParms Template type parameters.
272 DICompositeType createClassType(DIDescriptor Scope, StringRef Name,
273 DIFile File, unsigned LineNumber,
274 uint64_t SizeInBits, uint64_t AlignInBits,
275 uint64_t OffsetInBits, unsigned Flags,
276 DIType DerivedFrom, DIArray Elements,
277 MDNode *VTableHolder = 0,
278 MDNode *TemplateParms = 0);
280 /// createStructType - Create debugging information entry for a struct.
281 /// @param Scope Scope in which this struct is defined.
282 /// @param Name Struct name.
283 /// @param File File where this member is defined.
284 /// @param LineNumber Line number.
285 /// @param SizeInBits Member size.
286 /// @param AlignInBits Member alignment.
287 /// @param Flags Flags to encode member attribute, e.g. private
288 /// @param Elements Struct elements.
289 /// @param RunTimeLang Optional parameter, Objective-C runtime version.
290 DICompositeType createStructType(DIDescriptor Scope, StringRef Name,
291 DIFile File, unsigned LineNumber,
292 uint64_t SizeInBits, uint64_t AlignInBits,
293 unsigned Flags, DIType DerivedFrom,
294 DIArray Elements, unsigned RunTimeLang = 0,
295 MDNode *VTableHolder = 0);
297 /// createUnionType - Create debugging information entry for an union.
298 /// @param Scope Scope in which this union is defined.
299 /// @param Name Union name.
300 /// @param File File where this member is defined.
301 /// @param LineNumber Line number.
302 /// @param SizeInBits Member size.
303 /// @param AlignInBits Member alignment.
304 /// @param Flags Flags to encode member attribute, e.g. private
305 /// @param Elements Union elements.
306 /// @param RunTimeLang Optional parameter, Objective-C runtime version.
307 DICompositeType createUnionType(
308 DIDescriptor Scope, StringRef Name, DIFile File, unsigned LineNumber,
309 uint64_t SizeInBits, uint64_t AlignInBits, unsigned Flags,
310 DIArray Elements, unsigned RunTimeLang = 0);
312 /// createTemplateTypeParameter - Create debugging information for template
314 /// @param Scope Scope in which this type is defined.
315 /// @param Name Type parameter name.
316 /// @param Ty Parameter type.
317 /// @param File File where this type parameter is defined.
318 /// @param LineNo Line number.
319 /// @param ColumnNo Column Number.
320 DITemplateTypeParameter
321 createTemplateTypeParameter(DIDescriptor Scope, StringRef Name, DIType Ty,
322 MDNode *File = 0, unsigned LineNo = 0,
323 unsigned ColumnNo = 0);
325 /// createTemplateValueParameter - Create debugging information for template
327 /// @param Scope Scope in which this type is defined.
328 /// @param Name Value parameter name.
329 /// @param Ty Parameter type.
330 /// @param Val Constant parameter value.
331 /// @param File File where this type parameter is defined.
332 /// @param LineNo Line number.
333 /// @param ColumnNo Column Number.
334 DITemplateValueParameter
335 createTemplateValueParameter(DIDescriptor Scope, StringRef Name,
336 DIType Ty, Value *Val, MDNode *File = 0,
337 unsigned LineNo = 0, unsigned ColumnNo = 0);
339 /// createArrayType - Create debugging information entry for an array.
340 /// @param Size Array size.
341 /// @param AlignInBits Alignment.
342 /// @param Ty Element type.
343 /// @param Subscripts Subscripts.
344 DICompositeType createArrayType(uint64_t Size, uint64_t AlignInBits,
345 DIType Ty, DIArray Subscripts);
347 /// createVectorType - Create debugging information entry for a vector type.
348 /// @param Size Array size.
349 /// @param AlignInBits Alignment.
350 /// @param Ty Element type.
351 /// @param Subscripts Subscripts.
352 DIType createVectorType(uint64_t Size, uint64_t AlignInBits,
353 DIType Ty, DIArray Subscripts);
355 /// createEnumerationType - Create debugging information entry for an
357 /// @param Scope Scope in which this enumeration is defined.
358 /// @param Name Union name.
359 /// @param File File where this member is defined.
360 /// @param LineNumber Line number.
361 /// @param SizeInBits Member size.
362 /// @param AlignInBits Member alignment.
363 /// @param Elements Enumeration elements.
364 /// @param UnderlyingType Underlying type of a C++11/ObjC fixed enum.
365 DICompositeType createEnumerationType(DIDescriptor Scope, StringRef Name,
366 DIFile File, unsigned LineNumber,
368 uint64_t AlignInBits,
370 DIType UnderlyingType);
372 /// createSubroutineType - Create subroutine type.
373 /// @param File File in which this subroutine is defined.
374 /// @param ParameterTypes An array of subroutine parameter types. This
375 /// includes return type at 0th index.
376 DICompositeType createSubroutineType(DIFile File, DIArray ParameterTypes);
378 /// createArtificialType - Create a new DIType with "artificial" flag set.
379 DIType createArtificialType(DIType Ty);
381 /// createObjectPointerType - Create a new DIType with the "object pointer"
383 DIType createObjectPointerType(DIType Ty);
385 /// createForwardDecl - Create a temporary forward-declared type.
386 DIType createForwardDecl(unsigned Tag, StringRef Name, DIDescriptor Scope,
387 DIFile F, unsigned Line, unsigned RuntimeLang = 0,
388 uint64_t SizeInBits = 0, uint64_t AlignInBits = 0);
390 /// retainType - Retain DIType in a module even if it is not referenced
391 /// through debug info anchors.
392 void retainType(DIType T);
394 /// createUnspecifiedParameter - Create unspeicified type descriptor
395 /// for a subroutine type.
396 DIDescriptor createUnspecifiedParameter();
398 /// getOrCreateArray - Get a DIArray, create one if required.
399 DIArray getOrCreateArray(ArrayRef<Value *> Elements);
401 /// getOrCreateSubrange - Create a descriptor for a value range. This
402 /// implicitly uniques the values returned.
403 DISubrange getOrCreateSubrange(int64_t Lo, int64_t Count);
405 /// createGlobalVariable - Create a new descriptor for the specified global.
406 /// @param Name Name of the variable.
407 /// @param File File where this variable is defined.
408 /// @param LineNo Line number.
409 /// @param Ty Variable Type.
410 /// @param isLocalToUnit Boolean flag indicate whether this variable is
411 /// externally visible or not.
412 /// @param Val llvm::Value of the variable.
414 createGlobalVariable(StringRef Name, DIFile File, unsigned LineNo,
415 DIType Ty, bool isLocalToUnit, llvm::Value *Val);
417 /// \brief Create a new descriptor for the specified global.
418 /// @param Name Name of the variable.
419 /// @param LinkageName Mangled variable name.
420 /// @param File File where this variable is defined.
421 /// @param LineNo Line number.
422 /// @param Ty Variable Type.
423 /// @param isLocalToUnit Boolean flag indicate whether this variable is
424 /// externally visible or not.
425 /// @param Val llvm::Value of the variable.
427 createGlobalVariable(StringRef Name, StringRef LinkageName, DIFile File,
428 unsigned LineNo, DIType Ty, bool isLocalToUnit,
431 /// createStaticVariable - Create a new descriptor for the specified
433 /// @param Context Variable scope.
434 /// @param Name Name of the variable.
435 /// @param LinkageName Mangled name of the variable.
436 /// @param File File where this variable is defined.
437 /// @param LineNo Line number.
438 /// @param Ty Variable Type.
439 /// @param isLocalToUnit Boolean flag indicate whether this variable is
440 /// externally visible or not.
441 /// @param Val llvm::Value of the variable.
442 /// @param Decl Reference to the corresponding declaration.
444 createStaticVariable(DIDescriptor Context, StringRef Name,
445 StringRef LinkageName, DIFile File, unsigned LineNo,
446 DIType Ty, bool isLocalToUnit, llvm::Value *Val,
447 MDNode *Decl = NULL);
450 /// createLocalVariable - Create a new descriptor for the specified
452 /// @param Tag Dwarf TAG. Usually DW_TAG_auto_variable or
453 /// DW_TAG_arg_variable.
454 /// @param Scope Variable scope.
455 /// @param Name Variable name.
456 /// @param File File where this variable is defined.
457 /// @param LineNo Line number.
458 /// @param Ty Variable Type
459 /// @param AlwaysPreserve Boolean. Set to true if debug info for this
460 /// variable should be preserved in optimized build.
461 /// @param Flags Flags, e.g. artificial variable.
462 /// @param ArgNo If this variable is an arugment then this argument's
463 /// number. 1 indicates 1st argument.
464 DIVariable createLocalVariable(unsigned Tag, DIDescriptor Scope,
466 DIFile File, unsigned LineNo,
467 DIType Ty, bool AlwaysPreserve = false,
472 /// createComplexVariable - Create a new descriptor for the specified
473 /// variable which has a complex address expression for its address.
474 /// @param Tag Dwarf TAG. Usually DW_TAG_auto_variable or
475 /// DW_TAG_arg_variable.
476 /// @param Scope Variable scope.
477 /// @param Name Variable name.
478 /// @param F File where this variable is defined.
479 /// @param LineNo Line number.
480 /// @param Ty Variable Type
481 /// @param Addr An array of complex address operations.
482 /// @param ArgNo If this variable is an arugment then this argument's
483 /// number. 1 indicates 1st argument.
484 DIVariable createComplexVariable(unsigned Tag, DIDescriptor Scope,
485 StringRef Name, DIFile F, unsigned LineNo,
486 DIType Ty, ArrayRef<Value *> Addr,
489 /// createFunction - Create a new descriptor for the specified subprogram.
490 /// See comments in DISubprogram for descriptions of these fields.
491 /// @param Scope Function scope.
492 /// @param Name Function name.
493 /// @param LinkageName Mangled function name.
494 /// @param File File where this variable is defined.
495 /// @param LineNo Line number.
496 /// @param Ty Function type.
497 /// @param isLocalToUnit True if this function is not externally visible..
498 /// @param isDefinition True if this is a function definition.
499 /// @param ScopeLine Set to the beginning of the scope this starts
500 /// @param Flags e.g. is this function prototyped or not.
501 /// This flags are used to emit dwarf attributes.
502 /// @param isOptimized True if optimization is ON.
503 /// @param Fn llvm::Function pointer.
504 /// @param TParam Function template parameters.
505 DISubprogram createFunction(DIDescriptor Scope, StringRef Name,
506 StringRef LinkageName,
507 DIFile File, unsigned LineNo,
508 DIType Ty, bool isLocalToUnit,
512 bool isOptimized = false,
517 /// createMethod - Create a new descriptor for the specified C++ method.
518 /// See comments in DISubprogram for descriptions of these fields.
519 /// @param Scope Function scope.
520 /// @param Name Function name.
521 /// @param LinkageName Mangled function name.
522 /// @param File File where this variable is defined.
523 /// @param LineNo Line number.
524 /// @param Ty Function type.
525 /// @param isLocalToUnit True if this function is not externally visible..
526 /// @param isDefinition True if this is a function definition.
527 /// @param Virtuality Attributes describing virtualness. e.g. pure
528 /// virtual function.
529 /// @param VTableIndex Index no of this method in virtual table.
530 /// @param VTableHolder Type that holds vtable.
531 /// @param Flags e.g. is this function prototyped or not.
532 /// This flags are used to emit dwarf attributes.
533 /// @param isOptimized True if optimization is ON.
534 /// @param Fn llvm::Function pointer.
535 /// @param TParam Function template parameters.
536 DISubprogram createMethod(DIDescriptor Scope, StringRef Name,
537 StringRef LinkageName,
538 DIFile File, unsigned LineNo,
539 DIType Ty, bool isLocalToUnit,
541 unsigned Virtuality = 0, unsigned VTableIndex = 0,
542 MDNode *VTableHolder = 0,
544 bool isOptimized = false,
548 /// createNameSpace - This creates new descriptor for a namespace
549 /// with the specified parent scope.
550 /// @param Scope Namespace scope
551 /// @param Name Name of this namespace
552 /// @param File Source file
553 /// @param LineNo Line number
554 DINameSpace createNameSpace(DIDescriptor Scope, StringRef Name,
555 DIFile File, unsigned LineNo);
558 /// createLexicalBlockFile - This creates a descriptor for a lexical
559 /// block with a new file attached. This merely extends the existing
560 /// lexical block as it crosses a file.
561 /// @param Scope Lexical block.
562 /// @param File Source file.
563 DILexicalBlockFile createLexicalBlockFile(DIDescriptor Scope,
566 /// createLexicalBlock - This creates a descriptor for a lexical block
567 /// with the specified parent context.
568 /// @param Scope Parent lexical scope.
569 /// @param File Source file
570 /// @param Line Line number
571 /// @param Col Column number
572 DILexicalBlock createLexicalBlock(DIDescriptor Scope, DIFile File,
573 unsigned Line, unsigned Col);
575 /// \brief Create a descriptor for an imported module.
576 /// @param Context The scope this module is imported into
577 /// @param NS The namespace being imported here
578 /// @param Line Line number
579 DIImportedEntity createImportedModule(DIScope Context, DINameSpace NS,
581 StringRef Name = StringRef());
583 /// \brief Create a descriptor for an imported module.
584 /// @param Context The scope this module is imported into
585 /// @param NS An aliased namespace
586 /// @param Line Line number
587 DIImportedEntity createImportedModule(DIScope Context, DIImportedEntity NS,
588 unsigned Line, StringRef Name);
590 /// \brief Create a descriptor for an imported function.
591 /// @param Context The scope this module is imported into
592 /// @param Decl The declaration (or definition) of a function, type, or
594 /// @param Line Line number
595 DIImportedEntity createImportedDeclaration(DIScope Context,
599 /// insertDeclare - Insert a new llvm.dbg.declare intrinsic call.
600 /// @param Storage llvm::Value of the variable
601 /// @param VarInfo Variable's debug info descriptor.
602 /// @param InsertAtEnd Location for the new intrinsic.
603 Instruction *insertDeclare(llvm::Value *Storage, DIVariable VarInfo,
604 BasicBlock *InsertAtEnd);
606 /// insertDeclare - Insert a new llvm.dbg.declare intrinsic call.
607 /// @param Storage llvm::Value of the variable
608 /// @param VarInfo Variable's debug info descriptor.
609 /// @param InsertBefore Location for the new intrinsic.
610 Instruction *insertDeclare(llvm::Value *Storage, DIVariable VarInfo,
611 Instruction *InsertBefore);
614 /// insertDbgValueIntrinsic - Insert a new llvm.dbg.value intrinsic call.
615 /// @param Val llvm::Value of the variable
616 /// @param Offset Offset
617 /// @param VarInfo Variable's debug info descriptor.
618 /// @param InsertAtEnd Location for the new intrinsic.
619 Instruction *insertDbgValueIntrinsic(llvm::Value *Val, uint64_t Offset,
621 BasicBlock *InsertAtEnd);
623 /// insertDbgValueIntrinsic - Insert a new llvm.dbg.value intrinsic call.
624 /// @param Val llvm::Value of the variable
625 /// @param Offset Offset
626 /// @param VarInfo Variable's debug info descriptor.
627 /// @param InsertBefore Location for the new intrinsic.
628 Instruction *insertDbgValueIntrinsic(llvm::Value *Val, uint64_t Offset,
630 Instruction *InsertBefore);
633 } // end namespace llvm