Lines Matching refs:Unit
463 llvm::DIType CGDebugInfo::CreateQualifiedType(QualType Ty, llvm::DIFile Unit) { in CreateQualifiedType() argument
486 return getOrCreateType(QualType(T, 0), Unit); in CreateQualifiedType()
489 llvm::DIType FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType()
499 llvm::DIFile Unit) { in CreateType() argument
502 Ty->getPointeeType(), Unit); in CreateType()
507 llvm::DIFile Unit) { in CreateType() argument
509 Ty->getPointeeType(), Unit); in CreateType()
568 llvm::DIFile Unit) { in CreatePointeeType() argument
570 return getOrCreateType(PointeeTy, Unit); in CreatePointeeType()
581 return CreateQualifiedType(PointeeTy, Unit); in CreatePointeeType()
591 return getOrCreateType(PointeeTy, Unit); in CreatePointeeType()
598 llvm::DIFile Unit) { in CreatePointerLikeType() argument
602 CreatePointeeType(PointeeTy, Unit)); in CreatePointerLikeType()
611 return DBuilder.createPointerType(CreatePointeeType(PointeeTy, Unit), in CreatePointerLikeType()
616 llvm::DIFile Unit) { in CreateType() argument
630 EltTys.push_back(CreateMemberType(Unit, FType, "reserved", &FieldOffset)); in CreateType()
631 EltTys.push_back(CreateMemberType(Unit, FType, "Size", &FieldOffset)); in CreateType()
639 EltTy = DBuilder.createStructType(Unit, "__block_descriptor", in CreateType()
640 Unit, LineNo, FieldOffset, 0, in CreateType()
650 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in CreateType()
652 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in CreateType()
653 EltTys.push_back(CreateMemberType(Unit, FType, "__reserved", &FieldOffset)); in CreateType()
655 EltTys.push_back(CreateMemberType(Unit, FType, "__FuncPtr", &FieldOffset)); in CreateType()
661 FieldTy = DBuilder.createMemberType(Unit, "__descriptor", Unit, in CreateType()
669 EltTy = DBuilder.createStructType(Unit, "__block_literal_generic", in CreateType()
670 Unit, LineNo, FieldOffset, 0, in CreateType()
678 llvm::DIType CGDebugInfo::CreateType(const TypedefType *Ty, llvm::DIFile Unit) { in CreateType() argument
681 llvm::DIType Src = getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit); in CreateType()
693 DBuilder.createTypedef(Src, TyDecl->getName(), Unit, Line, TypedefContext); in CreateType()
697 llvm::DIFile Unit) { in CreateType() argument
701 EltTys.push_back(getOrCreateType(Ty->getResultType(), Unit)); in CreateType()
709 EltTys.push_back(getOrCreateType(FPT->getArgType(i), Unit)); in CreateType()
713 return DBuilder.createSubroutineType(Unit, EltTypeArray); in CreateType()
861 llvm::DIFile Unit) { in getOrCreateMethodType() argument
865 Unit); in getOrCreateMethodType()
888 llvm::DIType PointeeType = getOrCreateType(PointeeTy, Unit); in getOrCreateMethodType()
897 llvm::DIType ThisPtrType = getOrCreateType(ThisPtr, Unit); in getOrCreateMethodType()
910 return DBuilder.createSubroutineType(Unit, EltTypeArray); in getOrCreateMethodType()
927 llvm::DIFile Unit, in CreateCXXMemberFunction() argument
933 llvm::DIType MethodTy = getOrCreateMethodType(Method, Unit); in CreateCXXMemberFunction()
982 llvm::DIArray TParamsArray = CollectFunctionTemplateParams(Method, Unit); in CreateCXXMemberFunction()
1001 CollectCXXMemberFunctions(const CXXRecordDecl *RD, llvm::DIFile Unit, in CollectCXXMemberFunctions() argument
1018 EltTys.push_back(CreateCXXMemberFunction(Method, Unit, RecordTy)); in CollectCXXMemberFunctions()
1023 EltTys.push_back(CreateCXXMemberFunction(cast<CXXMethodDecl>(*SI), Unit, in CollectCXXMemberFunctions()
1032 CollectCXXFriends(const CXXRecordDecl *RD, llvm::DIFile Unit, in CollectCXXFriends() argument
1042 Unit))); in CollectCXXFriends()
1050 CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile Unit, in CollectCXXBases() argument
1083 getOrCreateType(BI->getType(), Unit), in CollectCXXBases()
1093 llvm::DIFile Unit) { in CollectTemplateParams() argument
1099 llvm::DIType TTy = getOrCreateType(TA.getAsType(), Unit); in CollectTemplateParams()
1104 llvm::DIType TTy = getOrCreateType(TA.getIntegralType(), Unit); in CollectTemplateParams()
1117 CollectFunctionTemplateParams(const FunctionDecl *FD, llvm::DIFile Unit) { in CollectFunctionTemplateParams() argument
1124 CollectTemplateParams(TList, *FD->getTemplateSpecializationArgs(), Unit); in CollectFunctionTemplateParams()
1133 llvm::DIFile Unit) { in CollectCXXTemplateParams() argument
1142 return CollectTemplateParams(TPList, TAList, Unit); in CollectCXXTemplateParams()
1146 llvm::DIType CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile Unit) { in getOrCreateVTablePtrType() argument
1153 llvm::Value *STy = getOrCreateType(Context.IntTy, Unit); in getOrCreateVTablePtrType()
1155 llvm::DIType SubTy = DBuilder.createSubroutineType(Unit, SElements); in getOrCreateVTablePtrType()
1178 CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile Unit, in CollectVTableInfo() argument
1192 = DBuilder.createMemberType(Unit, getVTableName(RD), Unit, in CollectVTableInfo()
1194 getOrCreateVTablePtrType(Unit)); in CollectVTableInfo()
1290 llvm::DIFile Unit) { in CreateType() argument
1292 return getOrCreateType(Ty->getBaseType(), Unit); in CreateType()
1297 llvm::DIFile Unit) { in CreateType() argument
1329 DBuilder.createStructType(Unit, ID->getName(), DefUnit, in CreateType()
1348 getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit); in CreateType()
1381 llvm::DIType FieldTy = getOrCreateType(Field->getType(), Unit); in CreateType()
1456 llvm::DIType CGDebugInfo::CreateType(const VectorType *Ty, llvm::DIFile Unit) { in CreateType() argument
1457 llvm::DIType ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
1478 llvm::DIFile Unit) { in CreateType() argument
1527 DBuilder.createArrayType(Size, Align, getOrCreateType(EltTy, Unit), in CreateType()
1533 llvm::DIFile Unit) { in CreateType() argument
1535 Ty, Ty->getPointeeType(), Unit); in CreateType()
1539 llvm::DIFile Unit) { in CreateType() argument
1541 Ty, Ty->getPointeeType(), Unit); in CreateType()
1712 llvm::DIType CGDebugInfo::getOrCreateType(QualType Ty, llvm::DIFile Unit) { in getOrCreateType() argument
1725 llvm::DIType Res = CreateTypeNode(Ty, Unit); in getOrCreateType()
1742 llvm::DIType CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile Unit) { in CreateTypeNode() argument
1745 return CreateQualifiedType(Ty, Unit); in CreateTypeNode()
1760 return CreateType(cast<VectorType>(Ty), Unit); in CreateTypeNode()
1762 return CreateType(cast<ObjCObjectPointerType>(Ty), Unit); in CreateTypeNode()
1764 return CreateType(cast<ObjCObjectType>(Ty), Unit); in CreateTypeNode()
1766 return CreateType(cast<ObjCInterfaceType>(Ty), Unit); in CreateTypeNode()
1772 return CreateType(cast<PointerType>(Ty), Unit); in CreateTypeNode()
1774 return CreateType(cast<BlockPointerType>(Ty), Unit); in CreateTypeNode()
1776 return CreateType(cast<TypedefType>(Ty), Unit); in CreateTypeNode()
1783 return CreateType(cast<FunctionType>(Ty), Unit); in CreateTypeNode()
1787 return CreateType(cast<ArrayType>(Ty), Unit); in CreateTypeNode()
1790 return CreateType(cast<LValueReferenceType>(Ty), Unit); in CreateTypeNode()
1792 return CreateType(cast<RValueReferenceType>(Ty), Unit); in CreateTypeNode()
1795 return CreateType(cast<MemberPointerType>(Ty), Unit); in CreateTypeNode()
1798 return CreateType(cast<AtomicType>(Ty), Unit); in CreateTypeNode()
1824 llvm::DIFile Unit) { in getOrCreateLimitedType() argument
1839 llvm::DIType Res = CreateLimitedTypeNode(Ty, Unit); in getOrCreateLimitedType()
1921 llvm::DIType CGDebugInfo::CreateLimitedTypeNode(QualType Ty,llvm::DIFile Unit) { in CreateLimitedTypeNode() argument
1935 return CreateTypeNode(Ty, Unit); in CreateLimitedTypeNode()
1940 llvm::DIType CGDebugInfo::CreateMemberType(llvm::DIFile Unit, QualType FType, in CreateMemberType() argument
1943 llvm::DIType FieldTy = CGDebugInfo::getOrCreateType(FType, Unit); in CreateMemberType()
1946 llvm::DIType Ty = DBuilder.createMemberType(Unit, Name, Unit, 0, in CreateMemberType()
2030 llvm::DIFile Unit = getOrCreateFile(Loc); in EmitFunctionStart() local
2031 llvm::DIDescriptor FDContext(Unit); in EmitFunctionStart()
2066 TParamsArray = CollectFunctionTemplateParams(FD, Unit); in EmitFunctionStart()
2086 DIFnType = getOrCreateFunctionType(D, FnType, Unit); in EmitFunctionStart()
2095 DIFnType = DBuilder.createSubroutineType(Unit, EltTypeArray); in EmitFunctionStart()
2098 SP = DBuilder.createFunction(FDContext, Name, LinkageName, Unit, in EmitFunctionStart()
2199 llvm::DIFile Unit = getOrCreateFile(VD->getLocation()); in EmitTypeForVarWithBlocksAttr() local
2204 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
2205 EltTys.push_back(CreateMemberType(Unit, FType, "__forwarding", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
2207 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
2208 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
2213 EltTys.push_back(CreateMemberType(Unit, FType, "__copy_helper", in EmitTypeForVarWithBlocksAttr()
2215 EltTys.push_back(CreateMemberType(Unit, FType, "__destroy_helper", in EmitTypeForVarWithBlocksAttr()
2233 EltTys.push_back(CreateMemberType(Unit, FType, "", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
2238 llvm::DIType FieldTy = CGDebugInfo::getOrCreateType(FType, Unit); in EmitTypeForVarWithBlocksAttr()
2243 FieldTy = DBuilder.createMemberType(Unit, VD->getName(), Unit, in EmitTypeForVarWithBlocksAttr()
2253 return DBuilder.createStructType(Unit, "", Unit, 0, FieldOffset, 0, Flags, in EmitTypeForVarWithBlocksAttr()
2264 llvm::DIFile Unit = getOrCreateFile(VD->getLocation()); in EmitDeclare() local
2270 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclare()
2321 VD->getName(), Unit, Line, Ty, in EmitDeclare()
2337 Name, Unit, Line, Ty, in EmitDeclare()
2350 Name, Unit, Line, Ty, in EmitDeclare()
2369 llvm::DIType FieldTy = getOrCreateType(Field->getType(), Unit); in EmitDeclare()
2379 FieldName, Unit, Line, FieldTy, in EmitDeclare()
2411 llvm::DIFile Unit = getOrCreateFile(VD->getLocation()); in EmitDeclareOfBlockDeclRefVariable() local
2416 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclareOfBlockDeclRefVariable()
2450 VD->getName(), Unit, Line, Ty, addr); in EmitDeclareOfBlockDeclRefVariable()
2627 llvm::DIFile Unit = getOrCreateFile(D->getLocation()); in EmitGlobalVariable() local
2652 Unit, LineNo, getOrCreateType(T, Unit), in EmitGlobalVariable()
2661 llvm::DIFile Unit = getOrCreateFile(ID->getLocation()); in EmitGlobalVariable() local
2677 DBuilder.createGlobalVariable(Name, Unit, LineNo, in EmitGlobalVariable()
2678 getOrCreateType(T, Unit), in EmitGlobalVariable()
2687 llvm::DIFile Unit = getOrCreateFile(VD->getLocation()); in EmitGlobalVariable() local
2689 llvm::DIType Ty = getOrCreateType(VD->getType(), Unit); in EmitGlobalVariable()
2693 Ty = getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit); in EmitGlobalVariable()
2698 DBuilder.createStaticVariable(Unit, Name, Name, Unit, in EmitGlobalVariable()