Lines Matching refs:Unit
274 /// getOrCreateMainFile - Get the file info for main compile unit.
314 /// CreateCompileUnit - Create new compile unit.
373 // Create new compile unit.
525 llvm::DIType CGDebugInfo::CreateQualifiedType(QualType Ty, llvm::DIFile Unit) {
548 return getOrCreateType(QualType(T, 0), Unit);
551 llvm::DIType FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit);
561 llvm::DIFile Unit) {
567 return getOrCreateType(CGM.getContext().getObjCIdType(), Unit);
571 Ty->getPointeeType(), Unit);
576 llvm::DIFile Unit) {
578 Ty->getPointeeType(), Unit);
637 llvm::DIFile Unit) {
640 return DBuilder.createReferenceType(Tag, getOrCreateType(PointeeTy, Unit));
649 return DBuilder.createPointerType(getOrCreateType(PointeeTy, Unit), Size,
665 llvm::DIFile Unit) {
679 EltTys.push_back(CreateMemberType(Unit, FType, "reserved", &FieldOffset));
680 EltTys.push_back(CreateMemberType(Unit, FType, "Size", &FieldOffset));
688 EltTy = DBuilder.createStructType(Unit, "__block_descriptor",
689 Unit, LineNo, FieldOffset, 0,
699 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset));
701 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset));
702 EltTys.push_back(CreateMemberType(Unit, FType, "__reserved", &FieldOffset));
704 EltTys.push_back(CreateMemberType(Unit, FType, "__FuncPtr", &FieldOffset));
710 FieldTy = DBuilder.createMemberType(Unit, "__descriptor", Unit,
718 EltTy = DBuilder.createStructType(Unit, "__block_literal_generic",
719 Unit, LineNo, FieldOffset, 0,
726 llvm::DIType CGDebugInfo::CreateType(const TemplateSpecializationType *Ty, llvm::DIFile Unit) {
728 llvm::DIType Src = getOrCreateType(Ty->getAliasedType(), Unit);
751 llvm::DIType CGDebugInfo::CreateType(const TypedefType *Ty, llvm::DIFile Unit) {
754 llvm::DIType Src = getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit);
770 llvm::DIFile Unit) {
774 EltTys.push_back(getOrCreateType(Ty->getReturnType(), Unit));
782 EltTys.push_back(getOrCreateType(FPT->getParamType(i), Unit));
788 return DBuilder.createSubroutineType(Unit, EltTypeArray);
978 llvm::DIFile Unit) {
981 return llvm::DICompositeType(getOrCreateType(QualType(Func, 0), Unit));
983 Func, Unit);
987 QualType ThisPtr, const FunctionProtoType *Func, llvm::DIFile Unit) {
990 getOrCreateType(QualType(Func, 0), Unit)).getTypeArray();
1007 llvm::DIType PointeeType = getOrCreateType(PointeeTy, Unit);
1017 llvm::DIType ThisPtrType = getOrCreateType(ThisPtr, Unit);
1035 return DBuilder.createSubroutineType(Unit, EltTypeArray, Flags);
1052 llvm::DIFile Unit,
1058 llvm::DICompositeType MethodTy = getOrCreateMethodType(Method, Unit);
1119 llvm::DIArray TParamsArray = CollectFunctionTemplateParams(Method, Unit);
1138 CollectCXXMemberFunctions(const CXXRecordDecl *RD, llvm::DIFile Unit,
1160 EltTys.push_back(CreateCXXMemberFunction(Method, Unit, RecordTy));
1181 CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile Unit,
1213 getOrCreateType(BI.getType(), Unit),
1223 llvm::DIFile Unit) {
1232 llvm::DIType TTy = getOrCreateType(TA.getAsType(), Unit);
1238 llvm::DIType TTy = getOrCreateType(TA.getIntegralType(), Unit);
1253 llvm::DIType TTy = getOrCreateType(T, Unit);
1285 llvm::DIType TTy = getOrCreateType(T, Unit);
1316 CollectTemplateParams(nullptr, TA.getPackAsArray(), Unit));
1324 llvm::DIType TTy = getOrCreateType(T, Unit);
1343 CollectFunctionTemplateParams(const FunctionDecl *FD, llvm::DIFile Unit) {
1350 TList, FD->getTemplateSpecializationArgs()->asArray(), Unit);
1359 llvm::DIFile Unit) {
1365 return CollectTemplateParams(TPList, TAList.asArray(), Unit);
1369 llvm::DIType CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile Unit) {
1376 llvm::Value *STy = getOrCreateType(Context.IntTy, Unit);
1378 llvm::DIType SubTy = DBuilder.createSubroutineType(Unit, SElements);
1396 CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile Unit,
1410 = DBuilder.createMemberType(Unit, getVTableName(RD), Unit,
1413 getOrCreateVTablePtrType(Unit));
1600 llvm::DIFile Unit) {
1602 return getOrCreateType(Ty->getBaseType(), Unit);
1632 llvm::DIFile Unit) {
1649 ObjCInterfaceCache.push_back(ObjCInterfaceCacheEntry(Ty, FwdDecl, Unit));
1654 return CreateTypeDefinition(Ty, Unit);
1657 llvm::DIType CGDebugInfo::CreateTypeDefinition(const ObjCInterfaceType *Ty, llvm::DIFile Unit) {
1672 DBuilder.createStructType(Unit, ID->getName(), DefUnit,
1689 getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit);
1721 llvm::DIType FieldTy = getOrCreateType(Field->getType(), Unit);
1805 llvm::DIType CGDebugInfo::CreateType(const VectorType *Ty, llvm::DIFile Unit) {
1806 llvm::DIType ElementTy = getOrCreateType(Ty->getElementType(), Unit);
1823 llvm::DIFile Unit) {
1872 DBuilder.createArrayType(Size, Align, getOrCreateType(EltTy, Unit),
1878 llvm::DIFile Unit) {
1880 Ty, Ty->getPointeeType(), Unit);
1884 llvm::DIFile Unit) {
1886 Ty, Ty->getPointeeType(), Unit);
2062 llvm::DIType CGDebugInfo::getOrCreateType(QualType Ty, llvm::DIFile Unit) {
2073 llvm::DIType Res = CreateTypeNode(Ty, Unit);
2109 llvm::DIType CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile Unit) {
2112 return CreateQualifiedType(Ty, Unit);
2127 return CreateType(cast<VectorType>(Ty), Unit);
2129 return CreateType(cast<ObjCObjectPointerType>(Ty), Unit);
2131 return CreateType(cast<ObjCObjectType>(Ty), Unit);
2133 return CreateType(cast<ObjCInterfaceType>(Ty), Unit);
2139 return CreateType(cast<PointerType>(Ty), Unit);
2144 cast<PointerType>(cast<AdjustedType>(Ty)->getAdjustedType()), Unit);
2146 return CreateType(cast<BlockPointerType>(Ty), Unit);
2148 return CreateType(cast<TypedefType>(Ty), Unit);
2155 return CreateType(cast<FunctionType>(Ty), Unit);
2159 return CreateType(cast<ArrayType>(Ty), Unit);
2162 return CreateType(cast<LValueReferenceType>(Ty), Unit);
2164 return CreateType(cast<RValueReferenceType>(Ty), Unit);
2167 return CreateType(cast<MemberPointerType>(Ty), Unit);
2170 return CreateType(cast<AtomicType>(Ty), Unit);
2173 return CreateType(cast<TemplateSpecializationType>(Ty), Unit);
2201 llvm::DIFile Unit) {
2306 llvm::DIType CGDebugInfo::CreateMemberType(llvm::DIFile Unit, QualType FType,
2309 llvm::DIType FieldTy = CGDebugInfo::getOrCreateType(FType, Unit);
2312 llvm::DIType Ty = DBuilder.createMemberType(Unit, Name, Unit, 0,
2461 llvm::DIFile Unit = getOrCreateFile(Loc);
2462 llvm::DIDescriptor FDContext(Unit);
2505 TParamsArray = CollectFunctionTemplateParams(FD, Unit);
2533 DBuilder.createFunction(FDContext, Name, LinkageName, Unit, LineNo,
2534 getOrCreateFunctionType(D, FnType, Unit),
2642 llvm::DIFile Unit = getOrCreateFile(VD->getLocation());
2647 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset));
2648 EltTys.push_back(CreateMemberType(Unit, FType, "__forwarding", &FieldOffset));
2650 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset));
2651 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset));
2656 EltTys.push_back(CreateMemberType(Unit, FType, "__copy_helper",
2658 EltTys.push_back(CreateMemberType(Unit, FType, "__destroy_helper",
2667 EltTys.push_back(CreateMemberType(Unit, FType,
2686 EltTys.push_back(CreateMemberType(Unit, FType, "", &FieldOffset));
2691 llvm::DIType FieldTy = getOrCreateType(FType, Unit);
2696 FieldTy = DBuilder.createMemberType(Unit, VD->getName(), Unit,
2706 return DBuilder.createStructType(Unit, "", Unit, 0, FieldOffset, 0, Flags,
2720 llvm::DIFile Unit;
2722 Unit = getOrCreateFile(VD->getLocation());
2728 Ty = getOrCreateType(VD->getType(), Unit);
2780 VD->getName(), Unit, Line, Ty,
2796 llvm::DIType FieldTy = getOrCreateType(Field->getType(), Unit);
2806 FieldName, Unit, Line, FieldTy,
2822 Name, Unit, Line, Ty,
2864 llvm::DIFile Unit = getOrCreateFile(VD->getLocation());
2869 Ty = getOrCreateType(VD->getType(), Unit);
2910 VD->getName(), Unit, Line, Ty, addr);
3112 CGDebugInfo::CollectAnonRecordDecls(const RecordDecl *RD, llvm::DIFile Unit,
3119 llvm::DIType FieldTy = getOrCreateType(Field->getType(), Unit);
3126 GV = CollectAnonRecordDecls(RT->getDecl(), Unit, LineNo, LinkageName,
3131 GV = DBuilder.createStaticVariable(DContext, FieldName, LinkageName, Unit,
3144 llvm::DIFile Unit = getOrCreateFile(D->getLocation());
3181 GV = CollectAnonRecordDecls(RD, Unit, LineNo, LinkageName, Var, DContext);
3184 DContext, DeclName, LinkageName, Unit, LineNo, getOrCreateType(T, Unit),
3196 llvm::DIFile Unit = getOrCreateFile(VD->getLocation());
3198 llvm::DIType Ty = getOrCreateType(VD->getType(), Unit);
3202 Ty = getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit);
3217 DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty,
3304 ? CreateTypeDefinition(E.Type, E.Unit)