Lines Matching defs:DIBuilder
1 //===--- DIBuilder.cpp - Debug Information Builder ------------------------===//
9 // This file implements the DIBuilder.
13 #include "llvm/IR/DIBuilder.h"
27 DIBuilder::DIBuilder(Module &m, bool AllowUnresolvedNodes, DICompileUnit *CU)
45 void DIBuilder::trackIfUnresolved(MDNode *N) {
55 void DIBuilder::finalizeSubprogram(DISubprogram *SP) {
63 void DIBuilder::finalize() {
134 DICompileUnit *DIBuilder::createCompileUnit(
146 assert(!CUNode && "Can only make one compile unit per DIBuilder instance");
177 DIImportedEntity *DIBuilder::createImportedModule(DIScope *Context,
186 DIImportedEntity *DIBuilder::createImportedModule(DIScope *Context,
195 DIImportedEntity *DIBuilder::createImportedModule(DIScope *Context, DIModule *M,
204 DIBuilder::createImportedDeclaration(DIScope *Context, DINode *Decl,
214 DIFile *DIBuilder::createFile(StringRef Filename, StringRef Directory,
220 DIMacro *DIBuilder::createMacro(DIMacroFile *Parent, unsigned LineNumber,
232 DIMacroFile *DIBuilder::createTempMacroFile(DIMacroFile *Parent,
240 // the map. Otherwise, it will not be resolved in DIBuilder::finalize().
245 DIEnumerator *DIBuilder::createEnumerator(StringRef Name, uint64_t Val,
252 DIEnumerator *DIBuilder::createEnumerator(StringRef Name, const APSInt &Value) {
257 DIBasicType *DIBuilder::createUnspecifiedType(StringRef Name) {
262 DIBasicType *DIBuilder::createNullPtrType() {
266 DIBasicType *DIBuilder::createBasicType(StringRef Name, uint64_t SizeInBits,
275 DIStringType *DIBuilder::createStringType(StringRef Name, uint64_t SizeInBits) {
281 DIStringType *DIBuilder::createStringType(StringRef Name,
289 DIStringType *DIBuilder::createStringType(StringRef Name,
297 DIDerivedType *DIBuilder::createQualifiedType(unsigned Tag, DIType *FromTy) {
302 DIDerivedType *DIBuilder::createPtrAuthQualifiedType(
316 DIBuilder::createPointerType(DIType *PointeeTy, uint64_t SizeInBits,
327 DIDerivedType *DIBuilder::createMemberPointerType(DIType *PointeeTy,
339 DIBuilder::createReferenceType(unsigned Tag, DIType *RTy, uint64_t SizeInBits,
348 DIDerivedType *DIBuilder::createTypedef(DIType *Ty, StringRef Name,
360 DIBuilder::createTemplateAlias(DIType *Ty, StringRef Name, DIFile *File,
370 DIDerivedType *DIBuilder::createFriend(DIType *Ty, DIType *FriendTy) {
378 DIDerivedType *DIBuilder::createInheritance(DIType *Ty, DIType *BaseTy,
390 DIDerivedType *DIBuilder::createMemberType(
406 DIDerivedType *DIBuilder::createVariantMemberType(
416 DIDerivedType *DIBuilder::createBitFieldMemberType(
431 DIBuilder::createStaticMemberType(DIScope *Scope, StringRef Name, DIFile *File,
443 DIBuilder::createObjCIVar(StringRef Name, DIFile *File, unsigned LineNumber,
454 DIBuilder::createObjCProperty(StringRef Name, DIFile *File, unsigned LineNumber,
462 DIBuilder::createTemplateTypeParameter(DIScope *Context, StringRef Name,
477 DIBuilder::createTemplateValueParameter(DIScope *Context, StringRef Name,
486 DIBuilder::createTemplateTemplateParameter(DIScope *Context, StringRef Name,
495 DIBuilder::createTemplateParameterPack(DIScope *Context, StringRef Name,
502 DICompositeType *DIBuilder::createClassType(
520 DICompositeType *DIBuilder::createStructType(
536 DICompositeType *DIBuilder::createUnionType(
549 DIBuilder::createVariantPart(DIScope *Scope, StringRef Name, DIFile *File,
562 DISubroutineType *DIBuilder::createSubroutineType(DITypeRefArray ParameterTypes,
569 DIBuilder::createEnumerationType(DIScope *Scope, StringRef Name, DIFile *File,
584 DIDerivedType *DIBuilder::createSetType(DIScope *Scope, StringRef Name,
597 DIBuilder::createArrayType(uint64_t Size, uint32_t AlignInBits, DIType *Ty,
619 DICompositeType *DIBuilder::createVectorType(uint64_t Size,
629 DISubprogram *DIBuilder::createArtificialSubprogram(DISubprogram *SP) {
640 DIType *DIBuilder::createArtificialType(DIType *Ty) {
647 DIType *DIBuilder::createObjectPointerType(DIType *Ty, bool Implicit) {
659 void DIBuilder::retainType(DIScope *T) {
667 DIBasicType *DIBuilder::createUnspecifiedParameter() { return nullptr; }
670 DIBuilder::createForwardDecl(unsigned Tag, StringRef Name, DIScope *Scope,
684 DICompositeType *DIBuilder::createReplaceableCompositeType(
700 DINodeArray DIBuilder::getOrCreateArray(ArrayRef<Metadata *> Elements) {
705 DIBuilder::getOrCreateMacroArray(ArrayRef<Metadata *> Elements) {
709 DITypeRefArray DIBuilder::getOrCreateTypeArray(ArrayRef<Metadata *> Elements) {
720 DISubrange *DIBuilder::getOrCreateSubrange(int64_t Lo, int64_t Count) {
728 DISubrange *DIBuilder::getOrCreateSubrange(int64_t Lo, Metadata *CountNode) {
734 DISubrange *DIBuilder::getOrCreateSubrange(Metadata *CountNode, Metadata *LB,
739 DIGenericSubrange *DIBuilder::getOrCreateGenericSubrange(
760 DIGlobalVariableExpression *DIBuilder::createGlobalVariableExpression(
779 DIGlobalVariable *DIBuilder::createTempGlobalVariableFwdDecl(
813 DILocalVariable *DIBuilder::createAutoVariable(DIScope *Scope, StringRef Name,
825 DILocalVariable *DIBuilder::createParameterVariable(
837 DILabel *DIBuilder::createLabel(DIScope *Context, StringRef Name, DIFile *File,
851 DIExpression *DIBuilder::createExpression(ArrayRef<uint64_t> Addr) {
862 DISubprogram *DIBuilder::createFunction(
882 DISubprogram *DIBuilder::createTempFunctionFwdDecl(
897 DISubprogram *DIBuilder::createMethod(
920 DICommonBlock *DIBuilder::createCommonBlock(DIScope *Scope,
927 DINamespace *DIBuilder::createNameSpace(DIScope *Scope, StringRef Name,
939 DIModule *DIBuilder::createModule(DIScope *Scope, StringRef Name,
948 DILexicalBlockFile *DIBuilder::createLexicalBlockFile(DIScope *Scope,
954 DILexicalBlock *DIBuilder::createLexicalBlock(DIScope *Scope, DIFile *File,
962 DbgInstPtr DIBuilder::insertDeclare(Value *Storage, DILocalVariable *VarInfo,
969 DbgInstPtr DIBuilder::insertDeclare(Value *Storage, DILocalVariable *VarInfo,
978 DbgInstPtr DIBuilder::insertDbgAssign(Instruction *LinkedInstr, Value *Val,
1020 DbgInstPtr DIBuilder::insertLabel(DILabel *LabelInfo, const DILocation *DL,
1027 DbgInstPtr DIBuilder::insertLabel(DILabel *LabelInfo, const DILocation *DL,
1032 DbgInstPtr DIBuilder::insertDbgValueIntrinsic(Value *V,
1045 DbgInstPtr DIBuilder::insertDbgValueIntrinsic(Value *V,
1073 DbgInstPtr DIBuilder::insertDbgValueIntrinsic(
1089 DbgInstPtr DIBuilder::insertDeclare(Value *Storage, DILocalVariable *VarInfo,
1120 void DIBuilder::insertDbgVariableRecord(DbgVariableRecord *DVR,
1139 Instruction *DIBuilder::insertDbgIntrinsic(llvm::Function *IntrinsicFn,
1165 DbgInstPtr DIBuilder::insertLabel(DILabel *LabelInfo, const DILocation *DL,
1194 void DIBuilder::replaceVTableHolder(DICompositeType *&T, DIType *VTableHolder) {
1213 void DIBuilder::replaceArrays(DICompositeType *&T, DINodeArray Elements,