Lines Matching refs:Unit

809                                                llvm::DIFile *Unit) {  in CreateQualifiedType()  argument
832 return getOrCreateType(QualType(T, 0), Unit); in CreateQualifiedType()
835 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType()
843 llvm::DIFile *Unit) { in CreateType() argument
849 return getOrCreateType(CGM.getContext().getObjCIdType(), Unit); in CreateType()
852 Ty->getPointeeType(), Unit); in CreateType()
856 llvm::DIFile *Unit) { in CreateType() argument
858 Ty->getPointeeType(), Unit); in CreateType()
974 llvm::DIFile *Unit) { in CreatePointerLikeType() argument
986 return DBuilder.createReferenceType(Tag, getOrCreateType(PointeeTy, Unit), in CreatePointerLikeType()
989 return DBuilder.createPointerType(getOrCreateType(PointeeTy, Unit), Size, in CreatePointerLikeType()
1005 const BlockPointerType *Ty, llvm::DIFile *Unit, llvm::DIDerivedType *DescTy, in collectDefaultElementTypesForBlockPointer() argument
1018 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1019 EltTys.push_back(CreateMemberType(Unit, FType, "__align", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1022 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1024 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1025 EltTys.push_back(CreateMemberType(Unit, FType, "__reserved", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1027 EltTys.push_back(CreateMemberType(Unit, FType, "__FuncPtr", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1032 Unit, "__descriptor", nullptr, LineNo, FieldSize, FieldAlign, in collectDefaultElementTypesForBlockPointer()
1041 llvm::DIFile *Unit) { in CreateType() argument
1049 EltTys.push_back(CreateMemberType(Unit, FType, "reserved", &FieldOffset)); in CreateType()
1050 EltTys.push_back(CreateMemberType(Unit, FType, "Size", &FieldOffset)); in CreateType()
1058 DBuilder.createStructType(Unit, "__block_descriptor", nullptr, 0, in CreateType()
1066 FieldOffset = collectDefaultElementTypesForBlockPointer(Ty, Unit, DescTy, in CreateType()
1075 EltTy = DBuilder.createStructType(Unit, "", nullptr, 0, FieldOffset, 0, in CreateType()
1082 llvm::DIFile *Unit) { in CreateType() argument
1084 llvm::DIType *Src = getOrCreateType(Ty->getAliasedType(), Unit); in CreateType()
1102 llvm::DIFile *Unit) { in CreateType() argument
1109 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit), in CreateType()
1158 llvm::DIFile *Unit) { in CreateType() argument
1162 EltTys.push_back(getOrCreateType(Ty->getReturnType(), Unit)); in CreateType()
1170 EltTys.push_back(getOrCreateType(ParamType, Unit)); in CreateType()
1426 llvm::DIFile *Unit) { in getOrCreateMethodType() argument
1430 getOrCreateType(QualType(Func, 0), Unit)); in getOrCreateMethodType()
1431 return getOrCreateInstanceMethodType(Method->getThisType(), Func, Unit); in getOrCreateMethodType()
1435 QualType ThisPtr, const FunctionProtoType *Func, llvm::DIFile *Unit) { in getOrCreateInstanceMethodType() argument
1438 cast<llvm::DISubroutineType>(getOrCreateType(QualType(Func, 0), Unit)) in getOrCreateInstanceMethodType()
1456 llvm::DIType *PointeeType = getOrCreateType(PointeeTy, Unit); in getOrCreateInstanceMethodType()
1466 llvm::DIType *ThisPtrType = getOrCreateType(ThisPtr, Unit); in getOrCreateInstanceMethodType()
1499 const CXXMethodDecl *Method, llvm::DIFile *Unit, llvm::DIType *RecordTy) { in CreateCXXMemberFunction() argument
1504 llvm::DISubroutineType *MethodTy = getOrCreateMethodType(Method, Unit); in CreateCXXMemberFunction()
1591 llvm::DINodeArray TParamsArray = CollectFunctionTemplateParams(Method, Unit); in CreateCXXMemberFunction()
1603 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXMemberFunctions() argument
1635 ? CreateCXXMemberFunction(Method, Unit, RecordTy) in CollectCXXMemberFunctions()
1640 void CGDebugInfo::CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBases() argument
1644 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->bases(), SeenTypes, in CollectCXXBases()
1650 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->vbases(), SeenTypes, in CollectCXXBases()
1656 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBasesAux() argument
1667 auto *BaseTy = getOrCreateType(BI.getType(), Unit); in CollectCXXBasesAux()
1705 llvm::DIFile *Unit) { in CollectTemplateParams() argument
1714 llvm::DIType *TTy = getOrCreateType(TA.getAsType(), Unit); in CollectTemplateParams()
1719 llvm::DIType *TTy = getOrCreateType(TA.getIntegralType(), Unit); in CollectTemplateParams()
1727 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
1757 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
1782 CollectTemplateParams(nullptr, TA.getPackAsArray(), Unit))); in CollectTemplateParams()
1791 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
1807 llvm::DIFile *Unit) { in CollectFunctionTemplateParams() argument
1814 TList, FD->getTemplateSpecializationArgs()->asArray(), Unit); in CollectFunctionTemplateParams()
1820 llvm::DIFile *Unit) { in CollectVarTemplateParams() argument
1830 return CollectTemplateParams(TList, TA, Unit); in CollectVarTemplateParams()
1834 const ClassTemplateSpecializationDecl *TSpecial, llvm::DIFile *Unit) { in CollectCXXTemplateParams() argument
1841 return CollectTemplateParams(TPList, TAList.asArray(), Unit); in CollectCXXTemplateParams()
1844 llvm::DIType *CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile *Unit) { in getOrCreateVTablePtrType() argument
1851 llvm::Metadata *STy = getOrCreateType(Context.IntTy, Unit); in getOrCreateVTablePtrType()
1870 void CGDebugInfo::CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectVTableInfo() argument
1917 VPtrTy = getOrCreateVTablePtrType(Unit); in CollectVTableInfo()
1921 DBuilder.createMemberType(Unit, getVTableName(RD), Unit, 0, Size, 0, 0, in CollectVTableInfo()
2175 llvm::DIFile *Unit) { in CreateType() argument
2177 return getOrCreateType(Ty->getBaseType(), Unit); in CreateType()
2181 llvm::DIFile *Unit) { in CreateType() argument
2187 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit), in CreateType()
2217 llvm::DIFile *Unit) { in CreateType() argument
2229 getDeclContextDescriptor(ID), Unit, 0); in CreateType()
2245 ObjCInterfaceCache.push_back(ObjCInterfaceCacheEntry(Ty, FwdDecl, Unit)); in CreateType()
2249 return CreateTypeDefinition(Ty, Unit); in CreateType()
2322 llvm::DIFile *Unit) { in CreateTypeDefinition() argument
2338 Mod ? Mod : Unit, ID->getName(), DefUnit, Line, Size, Align, Flags, in CreateTypeDefinition()
2354 getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit); in CreateTypeDefinition()
2399 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CreateTypeDefinition()
2486 llvm::DIFile *Unit) { in CreateType() argument
2487 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
2505 llvm::DIType *CGDebugInfo::CreateType(const ArrayType *Ty, llvm::DIFile *Unit) { in CreateType() argument
2564 return DBuilder.createArrayType(Size, Align, getOrCreateType(EltTy, Unit), in CreateType()
2569 llvm::DIFile *Unit) { in CreateType() argument
2571 Ty->getPointeeType(), Unit); in CreateType()
2575 llvm::DIFile *Unit) { in CreateType() argument
2577 Ty->getPointeeType(), Unit); in CreateType()
2817 llvm::DIType *CGDebugInfo::getOrCreateType(QualType Ty, llvm::DIFile *Unit) { in getOrCreateType() argument
2827 llvm::DIType *Res = CreateTypeNode(Ty, Unit); in getOrCreateType()
2871 llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit) { in CreateTypeNode() argument
2874 return CreateQualifiedType(Ty, Unit); in CreateTypeNode()
2887 return CreateType(cast<VectorType>(Ty), Unit); in CreateTypeNode()
2889 return CreateType(cast<ObjCObjectPointerType>(Ty), Unit); in CreateTypeNode()
2891 return CreateType(cast<ObjCObjectType>(Ty), Unit); in CreateTypeNode()
2893 return CreateType(cast<ObjCTypeParamType>(Ty), Unit); in CreateTypeNode()
2895 return CreateType(cast<ObjCInterfaceType>(Ty), Unit); in CreateTypeNode()
2901 return CreateType(cast<PointerType>(Ty), Unit); in CreateTypeNode()
2903 return CreateType(cast<BlockPointerType>(Ty), Unit); in CreateTypeNode()
2905 return CreateType(cast<TypedefType>(Ty), Unit); in CreateTypeNode()
2912 return CreateType(cast<FunctionType>(Ty), Unit); in CreateTypeNode()
2916 return CreateType(cast<ArrayType>(Ty), Unit); in CreateTypeNode()
2919 return CreateType(cast<LValueReferenceType>(Ty), Unit); in CreateTypeNode()
2921 return CreateType(cast<RValueReferenceType>(Ty), Unit); in CreateTypeNode()
2924 return CreateType(cast<MemberPointerType>(Ty), Unit); in CreateTypeNode()
2927 return CreateType(cast<AtomicType>(Ty), Unit); in CreateTypeNode()
2930 return CreateType(cast<PipeType>(Ty), Unit); in CreateTypeNode()
2933 return CreateType(cast<TemplateSpecializationType>(Ty), Unit); in CreateTypeNode()
2955 llvm::DIFile *Unit) { in getOrCreateLimitedType() argument
3083 llvm::DIType *CGDebugInfo::CreateMemberType(llvm::DIFile *Unit, QualType FType, in CreateMemberType() argument
3085 llvm::DIType *FieldTy = CGDebugInfo::getOrCreateType(FType, Unit); in CreateMemberType()
3089 DBuilder.createMemberType(Unit, Name, Unit, 0, FieldSize, FieldAlign, in CreateMemberType()
3095 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit, in collectFunctionDeclProps() argument
3130 TParamsArray = CollectFunctionTemplateParams(FD, Unit); in collectFunctionDeclProps()
3134 void CGDebugInfo::collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit, in collectVarDeclProps() argument
3139 Unit = getOrCreateFile(VD->getLocation()); in collectVarDeclProps()
3162 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VD, &*Unit); in collectVarDeclProps()
3196 llvm::DIFile *Unit = getOrCreateFile(Loc); in getFunctionFwdDeclOrStub() local
3197 llvm::DIScope *DContext = Unit; in getFunctionFwdDeclOrStub()
3199 collectFunctionDeclProps(GD, Unit, Name, LinkageName, DContext, TParamsArray, in getFunctionFwdDeclOrStub()
3220 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
3221 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3226 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
3227 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3249 llvm::DIFile *Unit = getOrCreateFile(Loc); in getGlobalVariableForwardDeclaration() local
3250 llvm::DIScope *DContext = Unit; in getGlobalVariableForwardDeclaration()
3254 collectVarDeclProps(VD, Unit, Line, T, Name, LinkageName, TemplateParameters, in getGlobalVariableForwardDeclaration()
3258 DContext, Name, LinkageName, Unit, Line, getOrCreateType(T, Unit), in getGlobalVariableForwardDeclaration()
3416 llvm::DIFile *Unit = getOrCreateFile(Loc); in EmitFunctionStart() local
3417 llvm::DIScope *FDContext = Unit; in EmitFunctionStart()
3433 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in EmitFunctionStart()
3473 FDContext, Name, LinkageName, Unit, LineNo, in EmitFunctionStart()
3474 getOrCreateFunctionType(D, FnType, Unit), ScopeLine, FlagsForDef, in EmitFunctionStart()
3494 InterfaceDecl, Name, LinkageName, Unit, LineNo, in EmitFunctionStart()
3495 getOrCreateFunctionType(D, FnType, Unit), ScopeLine, Flags, SPFlags, in EmitFunctionStart()
3520 llvm::DIFile *Unit = getOrCreateFile(Loc); in EmitFunctionDecl() local
3525 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in EmitFunctionDecl()
3549 FDContext, Name, LinkageName, Unit, LineNo, in EmitFunctionDecl()
3550 getOrCreateFunctionType(D, FnType, Unit), ScopeLine, Flags, SPFlags, in EmitFunctionDecl()
3664 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitTypeForVarWithBlocksAttr() local
3669 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3670 EltTys.push_back(CreateMemberType(Unit, FType, "__forwarding", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3672 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3673 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3679 CreateMemberType(Unit, FType, "__copy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3681 CreateMemberType(Unit, FType, "__destroy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3690 CreateMemberType(Unit, FType, "__byref_variable_layout", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3705 EltTys.push_back(CreateMemberType(Unit, FType, "", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
3710 llvm::DIType *WrappedTy = getOrCreateType(FType, Unit); in EmitTypeForVarWithBlocksAttr()
3716 Unit, VD->getName(), Unit, 0, FieldSize, FieldAlign, FieldOffset, in EmitTypeForVarWithBlocksAttr()
3722 return {DBuilder.createStructType(Unit, "", Unit, 0, FieldOffset, 0, in EmitTypeForVarWithBlocksAttr()
3739 llvm::DIFile *Unit = nullptr; in EmitDeclare() local
3741 Unit = getOrCreateFile(VD->getLocation()); in EmitDeclare()
3747 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclare()
3813 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in EmitDeclare()
3823 Scope, FieldName, Unit, Line, FieldTy, CGM.getLangOpts().Optimize, in EmitDeclare()
3837 Scope, Name, *ArgNo, Unit, Line, Ty, in EmitDeclare()
3839 : DBuilder.createAutoVariable(Scope, Name, Unit, Line, Ty, in EmitDeclare()
3880 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitDeclareOfBlockDeclRefVariable() local
3885 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclareOfBlockDeclRefVariable()
3924 cast<llvm::DILocalScope>(LexicalBlockStack.back()), VD->getName(), Unit, in EmitDeclareOfBlockDeclRefVariable()
3956 const llvm::StructLayout &BlockLayout, llvm::DIFile *Unit, in collectDefaultFieldsForBlockLiteralDeclare() argument
3964 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
3967 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
3971 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
3974 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
3977 BlockLayout.getElementOffsetInBits(2), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
3982 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
3988 Loc, AS_public, BlockLayout.getElementOffsetInBits(4), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4137 const RecordDecl *RD, llvm::DIFile *Unit, unsigned LineNo, in CollectAnonRecordDecls() argument
4142 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CollectAnonRecordDecls()
4148 GVE = CollectAnonRecordDecls(RT->getDecl(), Unit, LineNo, LinkageName, in CollectAnonRecordDecls()
4154 DContext, FieldName, LinkageName, Unit, LineNo, FieldTy, in CollectAnonRecordDecls()
4175 llvm::DIFile *Unit = nullptr; in EmitGlobalVariable() local
4181 collectVarDeclProps(D, Unit, LineNo, T, DeclName, LinkageName, in EmitGlobalVariable()
4195 GVE = CollectAnonRecordDecls(RD, Unit, LineNo, LinkageName, Var, DContext); in EmitGlobalVariable()
4205 DContext, DeclName, LinkageName, Unit, LineNo, getOrCreateType(T, Unit), in EmitGlobalVariable()
4221 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitGlobalVariable() local
4223 llvm::DIType *Ty = getOrCreateType(VD->getType(), Unit); in EmitGlobalVariable()
4227 Ty = getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit); in EmitGlobalVariable()
4271 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VarD, &*Unit); in EmitGlobalVariable()
4276 DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty, in EmitGlobalVariable()
4394 ? CreateTypeDefinition(E.Type, E.Unit) in finalize()