Lines Matching refs:Unit
618 llvm::DIFile *Unit) { in CreateQualifiedType() argument
641 return getOrCreateType(QualType(T, 0), Unit); in CreateQualifiedType()
644 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType()
652 llvm::DIFile *Unit) { in CreateType() argument
658 return getOrCreateType(CGM.getContext().getObjCIdType(), Unit); in CreateType()
661 Ty->getPointeeType(), Unit); in CreateType()
665 llvm::DIFile *Unit) { in CreateType() argument
667 Ty->getPointeeType(), Unit); in CreateType()
749 llvm::DIFile *Unit) { in CreatePointerLikeType() argument
759 return DBuilder.createReferenceType(Tag, getOrCreateType(PointeeTy, Unit), in CreatePointerLikeType()
762 return DBuilder.createPointerType(getOrCreateType(PointeeTy, Unit), Size, in CreatePointerLikeType()
778 llvm::DIFile *Unit) { in CreateType() argument
787 EltTys.push_back(CreateMemberType(Unit, FType, "reserved", &FieldOffset)); in CreateType()
788 EltTys.push_back(CreateMemberType(Unit, FType, "Size", &FieldOffset)); in CreateType()
797 DBuilder.createStructType(Unit, "__block_descriptor", nullptr, LineNo, in CreateType()
807 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in CreateType()
809 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in CreateType()
810 EltTys.push_back(CreateMemberType(Unit, FType, "__reserved", &FieldOffset)); in CreateType()
812 EltTys.push_back(CreateMemberType(Unit, FType, "__FuncPtr", &FieldOffset)); in CreateType()
817 EltTys.push_back(DBuilder.createMemberType(Unit, "__descriptor", nullptr, LineNo, in CreateType()
829 DBuilder.createStructType(Unit, "", nullptr, LineNo, in CreateType()
836 llvm::DIFile *Unit) { in CreateType() argument
838 llvm::DIType *Src = getOrCreateType(Ty->getAliasedType(), Unit); in CreateType()
859 llvm::DIFile *Unit) { in CreateType() argument
866 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit), in CreateType()
905 llvm::DIFile *Unit) { in CreateType() argument
909 EltTys.push_back(getOrCreateType(Ty->getReturnType(), Unit)); in CreateType()
917 EltTys.push_back(getOrCreateType(FPT->getParamType(i), Unit)); in CreateType()
1138 llvm::DIFile *Unit) { in getOrCreateMethodType() argument
1142 getOrCreateType(QualType(Func, 0), Unit)); in getOrCreateMethodType()
1144 Func, Unit); in getOrCreateMethodType()
1148 QualType ThisPtr, const FunctionProtoType *Func, llvm::DIFile *Unit) { in getOrCreateInstanceMethodType() argument
1151 cast<llvm::DISubroutineType>(getOrCreateType(QualType(Func, 0), Unit)) in getOrCreateInstanceMethodType()
1169 llvm::DIType *PointeeType = getOrCreateType(PointeeTy, Unit); in getOrCreateInstanceMethodType()
1179 llvm::DIType *ThisPtrType = getOrCreateType(ThisPtr, Unit); in getOrCreateInstanceMethodType()
1212 const CXXMethodDecl *Method, llvm::DIFile *Unit, llvm::DIType *RecordTy) { in CreateCXXMemberFunction() argument
1217 llvm::DISubroutineType *MethodTy = getOrCreateMethodType(Method, Unit); in CreateCXXMemberFunction()
1301 llvm::DINodeArray TParamsArray = CollectFunctionTemplateParams(Method, Unit); in CreateCXXMemberFunction()
1314 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXMemberFunctions() argument
1346 ? CreateCXXMemberFunction(Method, Unit, RecordTy) in CollectCXXMemberFunctions()
1351 void CGDebugInfo::CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBases() argument
1383 RecordTy, getOrCreateType(BI.getType(), Unit), BaseOffset, BFlags); in CollectCXXBases()
1391 llvm::DIFile *Unit) { in CollectTemplateParams() argument
1400 llvm::DIType *TTy = getOrCreateType(TA.getAsType(), Unit); in CollectTemplateParams()
1405 llvm::DIType *TTy = getOrCreateType(TA.getIntegralType(), Unit); in CollectTemplateParams()
1413 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
1443 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
1469 CollectTemplateParams(nullptr, TA.getPackAsArray(), Unit))); in CollectTemplateParams()
1478 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
1494 llvm::DIFile *Unit) { in CollectFunctionTemplateParams() argument
1501 TList, FD->getTemplateSpecializationArgs()->asArray(), Unit); in CollectFunctionTemplateParams()
1507 const ClassTemplateSpecializationDecl *TSpecial, llvm::DIFile *Unit) { in CollectCXXTemplateParams() argument
1513 return CollectTemplateParams(TPList, TAList.asArray(), Unit); in CollectCXXTemplateParams()
1516 llvm::DIType *CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile *Unit) { in getOrCreateVTablePtrType() argument
1523 llvm::Metadata *STy = getOrCreateType(Context.IntTy, Unit); in getOrCreateVTablePtrType()
1538 void CGDebugInfo::CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectVTableInfo() argument
1552 Unit, getVTableName(RD), Unit, 0, Size, 0, 0, in CollectVTableInfo()
1553 llvm::DINode::FlagArtificial, getOrCreateVTablePtrType(Unit)); in CollectVTableInfo()
1764 llvm::DIFile *Unit) { in CreateType() argument
1766 return getOrCreateType(Ty->getBaseType(), Unit); in CreateType()
1794 llvm::DIFile *Unit) { in CreateType() argument
1806 getDeclContextDescriptor(ID), Unit, 0); in CreateType()
1822 ObjCInterfaceCache.push_back(ObjCInterfaceCacheEntry(Ty, FwdDecl, Unit)); in CreateType()
1826 return CreateTypeDefinition(Ty, Unit); in CreateType()
1888 llvm::DIFile *Unit) { in CreateTypeDefinition() argument
1904 Mod ? Mod : Unit, ID->getName(), DefUnit, Line, Size, Align, Flags, in CreateTypeDefinition()
1920 getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit); in CreateTypeDefinition()
1964 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CreateTypeDefinition()
2049 llvm::DIFile *Unit) { in CreateType() argument
2050 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
2066 llvm::DIType *CGDebugInfo::CreateType(const ArrayType *Ty, llvm::DIFile *Unit) { in CreateType() argument
2114 return DBuilder.createArrayType(Size, Align, getOrCreateType(EltTy, Unit), in CreateType()
2119 llvm::DIFile *Unit) { in CreateType() argument
2121 Ty->getPointeeType(), Unit); in CreateType()
2125 llvm::DIFile *Unit) { in CreateType() argument
2127 Ty->getPointeeType(), Unit); in CreateType()
2339 llvm::DIType *CGDebugInfo::getOrCreateType(QualType Ty, llvm::DIFile *Unit) { in getOrCreateType() argument
2349 llvm::DIType *Res = CreateTypeNode(Ty, Unit); in getOrCreateType()
2394 llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit) { in CreateTypeNode() argument
2397 return CreateQualifiedType(Ty, Unit); in CreateTypeNode()
2410 return CreateType(cast<VectorType>(Ty), Unit); in CreateTypeNode()
2412 return CreateType(cast<ObjCObjectPointerType>(Ty), Unit); in CreateTypeNode()
2414 return CreateType(cast<ObjCObjectType>(Ty), Unit); in CreateTypeNode()
2416 return CreateType(cast<ObjCInterfaceType>(Ty), Unit); in CreateTypeNode()
2422 return CreateType(cast<PointerType>(Ty), Unit); in CreateTypeNode()
2427 cast<PointerType>(cast<AdjustedType>(Ty)->getAdjustedType()), Unit); in CreateTypeNode()
2429 return CreateType(cast<BlockPointerType>(Ty), Unit); in CreateTypeNode()
2431 return CreateType(cast<TypedefType>(Ty), Unit); in CreateTypeNode()
2438 return CreateType(cast<FunctionType>(Ty), Unit); in CreateTypeNode()
2442 return CreateType(cast<ArrayType>(Ty), Unit); in CreateTypeNode()
2445 return CreateType(cast<LValueReferenceType>(Ty), Unit); in CreateTypeNode()
2447 return CreateType(cast<RValueReferenceType>(Ty), Unit); in CreateTypeNode()
2450 return CreateType(cast<MemberPointerType>(Ty), Unit); in CreateTypeNode()
2453 return CreateType(cast<AtomicType>(Ty), Unit); in CreateTypeNode()
2456 return CreateType(cast<PipeType>(Ty), Unit); in CreateTypeNode()
2459 return CreateType(cast<TemplateSpecializationType>(Ty), Unit); in CreateTypeNode()
2478 llvm::DIFile *Unit) { in getOrCreateLimitedType() argument
2593 llvm::DIType *CGDebugInfo::CreateMemberType(llvm::DIFile *Unit, QualType FType, in CreateMemberType() argument
2595 llvm::DIType *FieldTy = CGDebugInfo::getOrCreateType(FType, Unit); in CreateMemberType()
2598 llvm::DIType *Ty = DBuilder.createMemberType(Unit, Name, Unit, 0, FieldSize, in CreateMemberType()
2604 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit, in collectFunctionDeclProps() argument
2635 TParamsArray = CollectFunctionTemplateParams(FD, Unit); in collectFunctionDeclProps()
2639 void CGDebugInfo::collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit, in collectVarDeclProps() argument
2643 Unit = getOrCreateFile(VD->getLocation()); in collectVarDeclProps()
2692 llvm::DIFile *Unit = getOrCreateFile(Loc); in getFunctionForwardDeclaration() local
2693 llvm::DIScope *DContext = Unit; in getFunctionForwardDeclaration()
2696 collectFunctionDeclProps(FD, Unit, Name, LinkageName, DContext, in getFunctionForwardDeclaration()
2706 DContext, Name, LinkageName, Unit, Line, in getFunctionForwardDeclaration()
2707 getOrCreateFunctionType(FD, FnType, Unit), !FD->isExternallyVisible(), in getFunctionForwardDeclaration()
2722 llvm::DIFile *Unit = getOrCreateFile(Loc); in getGlobalVariableForwardDeclaration() local
2723 llvm::DIScope *DContext = Unit; in getGlobalVariableForwardDeclaration()
2726 collectVarDeclProps(VD, Unit, Line, T, Name, LinkageName, DContext); in getGlobalVariableForwardDeclaration()
2728 DContext, Name, LinkageName, Unit, Line, getOrCreateType(T, Unit), in getGlobalVariableForwardDeclaration()
2878 llvm::DIFile *Unit = getOrCreateFile(Loc); in EmitFunctionStart() local
2879 llvm::DIScope *FDContext = Unit; in EmitFunctionStart()
2895 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in EmitFunctionStart()
2923 FDContext, Name, LinkageName, Unit, LineNo, in EmitFunctionStart()
2924 getOrCreateFunctionType(D, FnType, Unit), Fn->hasLocalLinkage(), in EmitFunctionStart()
2951 llvm::DIFile *Unit = getOrCreateFile(Loc); in EmitFunctionDecl() local
2956 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in EmitFunctionDecl()
2977 FDContext, Name, LinkageName, Unit, LineNo, in EmitFunctionDecl()
2978 getOrCreateFunctionType(D, FnType, Unit), false /*internalLinkage*/, in EmitFunctionDecl()
3055 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitTypeForVarWithBlocksAttr() local
3060 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3061 EltTys.push_back(CreateMemberType(Unit, FType, "__forwarding", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3063 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3064 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3070 CreateMemberType(Unit, FType, "__copy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3072 CreateMemberType(Unit, FType, "__destroy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3081 CreateMemberType(Unit, FType, "__byref_variable_layout", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3096 EltTys.push_back(CreateMemberType(Unit, FType, "", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3101 llvm::DIType *FieldTy = getOrCreateType(FType, Unit); in EmitTypeForVarWithBlocksAttr()
3106 FieldTy = DBuilder.createMemberType(Unit, VD->getName(), Unit, 0, FieldSize, in EmitTypeForVarWithBlocksAttr()
3115 return DBuilder.createStructType(Unit, "", Unit, 0, FieldOffset, 0, Flags, in EmitTypeForVarWithBlocksAttr()
3130 llvm::DIFile *Unit = nullptr; in EmitDeclare() local
3132 Unit = getOrCreateFile(VD->getLocation()); in EmitDeclare()
3138 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclare()
3188 *ArgNo, Unit, Line, Ty) in EmitDeclare()
3189 : DBuilder.createAutoVariable(Scope, VD->getName(), Unit, in EmitDeclare()
3212 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in EmitDeclare()
3221 Scope, FieldName, Unit, Line, FieldTy, CGM.getLangOpts().Optimize, in EmitDeclare()
3235 ? DBuilder.createParameterVariable(Scope, Name, *ArgNo, Unit, Line, in EmitDeclare()
3238 : DBuilder.createAutoVariable(Scope, Name, Unit, Line, Ty, in EmitDeclare()
3276 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitDeclareOfBlockDeclRefVariable() local
3281 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclareOfBlockDeclRefVariable()
3319 cast<llvm::DILocalScope>(LexicalBlockStack.back()), VD->getName(), Unit, in EmitDeclareOfBlockDeclRefVariable()
3519 const RecordDecl *RD, llvm::DIFile *Unit, unsigned LineNo, in CollectAnonRecordDecls() argument
3524 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CollectAnonRecordDecls()
3531 GV = CollectAnonRecordDecls(RT->getDecl(), Unit, LineNo, LinkageName, in CollectAnonRecordDecls()
3536 GV = DBuilder.createGlobalVariable(DContext, FieldName, LinkageName, Unit, in CollectAnonRecordDecls()
3549 llvm::DIFile *Unit = nullptr; in EmitGlobalVariable() local
3554 collectVarDeclProps(D, Unit, LineNo, T, DeclName, LinkageName, DContext); in EmitGlobalVariable()
3567 GV = CollectAnonRecordDecls(RD, Unit, LineNo, LinkageName, Var, DContext); in EmitGlobalVariable()
3570 DContext, DeclName, LinkageName, Unit, LineNo, getOrCreateType(T, Unit), in EmitGlobalVariable()
3583 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitGlobalVariable() local
3585 llvm::DIType *Ty = getOrCreateType(VD->getType(), Unit); in EmitGlobalVariable()
3589 Ty = getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit); in EmitGlobalVariable()
3619 DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty, in EmitGlobalVariable()
3722 ? CreateTypeDefinition(E.Type, E.Unit) in finalize()