Lines Matching refs:Unit
940 llvm::DIFile *Unit) { in CreateQualifiedType() argument
963 return getOrCreateType(QualType(T, 0), Unit); in CreateQualifiedType()
966 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType()
974 llvm::DIFile *Unit) { in CreateType() argument
980 return getOrCreateType(CGM.getContext().getObjCIdType(), Unit); in CreateType()
983 Ty->getPointeeType(), Unit); in CreateType()
987 llvm::DIFile *Unit) { in CreateType() argument
989 Ty->getPointeeType(), Unit); in CreateType()
1130 llvm::DIFile *Unit) { in CreatePointerLikeType() argument
1142 return DBuilder.createReferenceType(Tag, getOrCreateType(PointeeTy, Unit), in CreatePointerLikeType()
1145 return DBuilder.createPointerType(getOrCreateType(PointeeTy, Unit), Size, in CreatePointerLikeType()
1161 const BlockPointerType *Ty, llvm::DIFile *Unit, llvm::DIDerivedType *DescTy, in collectDefaultElementTypesForBlockPointer() argument
1174 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1175 EltTys.push_back(CreateMemberType(Unit, FType, "__align", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1178 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1180 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1181 EltTys.push_back(CreateMemberType(Unit, FType, "__reserved", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1183 EltTys.push_back(CreateMemberType(Unit, FType, "__FuncPtr", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1188 Unit, "__descriptor", nullptr, LineNo, FieldSize, FieldAlign, in collectDefaultElementTypesForBlockPointer()
1197 llvm::DIFile *Unit) { in CreateType() argument
1205 EltTys.push_back(CreateMemberType(Unit, FType, "reserved", &FieldOffset)); in CreateType()
1206 EltTys.push_back(CreateMemberType(Unit, FType, "Size", &FieldOffset)); in CreateType()
1214 DBuilder.createStructType(Unit, "__block_descriptor", nullptr, 0, in CreateType()
1222 FieldOffset = collectDefaultElementTypesForBlockPointer(Ty, Unit, DescTy, in CreateType()
1231 EltTy = DBuilder.createStructType(Unit, "", nullptr, 0, FieldOffset, 0, in CreateType()
1238 llvm::DIFile *Unit) { in CreateType() argument
1240 llvm::DIType *Src = getOrCreateType(Ty->getAliasedType(), Unit); in CreateType()
1261 llvm::DIFile *Unit) { in CreateType() argument
1263 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit); in CreateType()
1323 llvm::DIFile *Unit) { in CreateType() argument
1327 EltTys.push_back(getOrCreateType(Ty->getReturnType(), Unit)); in CreateType()
1335 EltTys.push_back(getOrCreateType(ParamType, Unit)); in CreateType()
1594 llvm::DIFile *Unit, bool decl) { in getOrCreateMethodType() argument
1598 getOrCreateType(QualType(Func, 0), Unit)); in getOrCreateMethodType()
1599 return getOrCreateInstanceMethodType(Method->getThisType(), Func, Unit, decl); in getOrCreateMethodType()
1605 llvm::DIFile *Unit, bool decl) { in getOrCreateInstanceMethodType() argument
1608 cast<llvm::DISubroutineType>(getOrCreateType(QualType(Func, 0), Unit)) in getOrCreateInstanceMethodType()
1629 llvm::DIType *PointeeType = getOrCreateType(PointeeTy, Unit); in getOrCreateInstanceMethodType()
1639 llvm::DIType *ThisPtrType = getOrCreateType(ThisPtr, Unit); in getOrCreateInstanceMethodType()
1672 const CXXMethodDecl *Method, llvm::DIFile *Unit, llvm::DIType *RecordTy) { in CreateCXXMemberFunction() argument
1677 llvm::DISubroutineType *MethodTy = getOrCreateMethodType(Method, Unit, true); in CreateCXXMemberFunction()
1797 llvm::DINodeArray TParamsArray = CollectFunctionTemplateParams(Method, Unit); in CreateCXXMemberFunction()
1809 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXMemberFunctions() argument
1841 ? CreateCXXMemberFunction(Method, Unit, RecordTy) in CollectCXXMemberFunctions()
1846 void CGDebugInfo::CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBases() argument
1850 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->bases(), SeenTypes, in CollectCXXBases()
1856 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->vbases(), SeenTypes, in CollectCXXBases()
1862 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBasesAux() argument
1873 auto *BaseTy = getOrCreateType(BI.getType(), Unit); in CollectCXXBasesAux()
1911 llvm::DIFile *Unit) { in CollectTemplateParams() argument
1921 llvm::DIType *TTy = getOrCreateType(TA.getAsType(), Unit); in CollectTemplateParams()
1935 llvm::DIType *TTy = getOrCreateType(TA.getIntegralType(), Unit); in CollectTemplateParams()
1953 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
1998 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2023 CollectTemplateParams(nullptr, TA.getPackAsArray(), Unit))); in CollectTemplateParams()
2032 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2048 llvm::DIFile *Unit) { in CollectFunctionTemplateParams() argument
2055 TList, FD->getTemplateSpecializationArgs()->asArray(), Unit); in CollectFunctionTemplateParams()
2061 llvm::DIFile *Unit) { in CollectVarTemplateParams() argument
2071 return CollectTemplateParams(TList, TA, Unit); in CollectVarTemplateParams()
2075 const ClassTemplateSpecializationDecl *TSpecial, llvm::DIFile *Unit) { in CollectCXXTemplateParams() argument
2082 return CollectTemplateParams(TPList, TAList.asArray(), Unit); in CollectCXXTemplateParams()
2085 llvm::DIType *CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile *Unit) { in getOrCreateVTablePtrType() argument
2092 llvm::Metadata *STy = getOrCreateType(Context.IntTy, Unit); in getOrCreateVTablePtrType()
2165 void CGDebugInfo::CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectVTableInfo() argument
2211 VPtrTy = getOrCreateVTablePtrType(Unit); in CollectVTableInfo()
2215 DBuilder.createMemberType(Unit, getVTableName(RD), Unit, 0, Size, 0, 0, in CollectVTableInfo()
2514 llvm::DIFile *Unit) { in CreateType() argument
2516 return getOrCreateType(Ty->getBaseType(), Unit); in CreateType()
2520 llvm::DIFile *Unit) { in CreateType() argument
2526 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit), in CreateType()
2556 llvm::DIFile *Unit) { in CreateType() argument
2568 getDeclContextDescriptor(ID), Unit, 0); in CreateType()
2584 ObjCInterfaceCache.push_back(ObjCInterfaceCacheEntry(Ty, FwdDecl, Unit)); in CreateType()
2588 return CreateTypeDefinition(Ty, Unit); in CreateType()
2686 llvm::DIFile *Unit) { in CreateTypeDefinition() argument
2702 Mod ? Mod : Unit, ID->getName(), DefUnit, Line, Size, Align, Flags, in CreateTypeDefinition()
2718 getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit); in CreateTypeDefinition()
2773 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CreateTypeDefinition()
2860 llvm::DIFile *Unit) { in CreateType() argument
2861 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
2888 llvm::DIFile *Unit) { in CreateType() argument
2892 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
2914 llvm::DIType *CGDebugInfo::CreateType(const ArrayType *Ty, llvm::DIFile *Unit) { in CreateType() argument
2980 return DBuilder.createArrayType(Size, Align, getOrCreateType(EltTy, Unit), in CreateType()
2985 llvm::DIFile *Unit) { in CreateType() argument
2987 Ty->getPointeeType(), Unit); in CreateType()
2991 llvm::DIFile *Unit) { in CreateType() argument
2993 Ty->getPointeeType(), Unit); in CreateType()
3231 llvm::DIType *CGDebugInfo::getOrCreateType(QualType Ty, llvm::DIFile *Unit) { in getOrCreateType() argument
3248 llvm::DIType *Res = CreateTypeNode(Ty, Unit); in getOrCreateType()
3292 llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit) { in CreateTypeNode() argument
3295 return CreateQualifiedType(Ty, Unit); in CreateTypeNode()
3308 return CreateType(cast<VectorType>(Ty), Unit); in CreateTypeNode()
3310 return CreateType(cast<ConstantMatrixType>(Ty), Unit); in CreateTypeNode()
3312 return CreateType(cast<ObjCObjectPointerType>(Ty), Unit); in CreateTypeNode()
3314 return CreateType(cast<ObjCObjectType>(Ty), Unit); in CreateTypeNode()
3316 return CreateType(cast<ObjCTypeParamType>(Ty), Unit); in CreateTypeNode()
3318 return CreateType(cast<ObjCInterfaceType>(Ty), Unit); in CreateTypeNode()
3324 return CreateType(cast<PointerType>(Ty), Unit); in CreateTypeNode()
3326 return CreateType(cast<BlockPointerType>(Ty), Unit); in CreateTypeNode()
3328 return CreateType(cast<TypedefType>(Ty), Unit); in CreateTypeNode()
3335 return CreateType(cast<FunctionType>(Ty), Unit); in CreateTypeNode()
3339 return CreateType(cast<ArrayType>(Ty), Unit); in CreateTypeNode()
3342 return CreateType(cast<LValueReferenceType>(Ty), Unit); in CreateTypeNode()
3344 return CreateType(cast<RValueReferenceType>(Ty), Unit); in CreateTypeNode()
3347 return CreateType(cast<MemberPointerType>(Ty), Unit); in CreateTypeNode()
3350 return CreateType(cast<AtomicType>(Ty), Unit); in CreateTypeNode()
3355 return CreateType(cast<PipeType>(Ty), Unit); in CreateTypeNode()
3358 return CreateType(cast<TemplateSpecializationType>(Ty), Unit); in CreateTypeNode()
3518 llvm::DIType *CGDebugInfo::CreateMemberType(llvm::DIFile *Unit, QualType FType, in CreateMemberType() argument
3520 llvm::DIType *FieldTy = CGDebugInfo::getOrCreateType(FType, Unit); in CreateMemberType()
3524 DBuilder.createMemberType(Unit, Name, Unit, 0, FieldSize, FieldAlign, in CreateMemberType()
3530 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit, in collectFunctionDeclProps() argument
3571 TParamsArray = CollectFunctionTemplateParams(FD, Unit); in collectFunctionDeclProps()
3575 void CGDebugInfo::collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit, in collectVarDeclProps() argument
3580 Unit = getOrCreateFile(VD->getLocation()); in collectVarDeclProps()
3603 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VD, &*Unit); in collectVarDeclProps()
3637 llvm::DIFile *Unit = getOrCreateFile(Loc); in getFunctionFwdDeclOrStub() local
3638 llvm::DIScope *DContext = Unit; in getFunctionFwdDeclOrStub()
3640 collectFunctionDeclProps(GD, Unit, Name, LinkageName, DContext, TParamsArray, in getFunctionFwdDeclOrStub()
3661 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
3662 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3667 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
3668 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3690 llvm::DIFile *Unit = getOrCreateFile(Loc); in getGlobalVariableForwardDeclaration() local
3691 llvm::DIScope *DContext = Unit; in getGlobalVariableForwardDeclaration()
3695 collectVarDeclProps(VD, Unit, Line, T, Name, LinkageName, TemplateParameters, in getGlobalVariableForwardDeclaration()
3699 DContext, Name, LinkageName, Unit, Line, getOrCreateType(T, Unit), in getGlobalVariableForwardDeclaration()
3894 llvm::DIFile *Unit = getOrCreateFile(Loc); in emitFunctionStart() local
3895 llvm::DIScope *FDContext = Unit; in emitFunctionStart()
3911 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in emitFunctionStart()
3953 llvm::DISubroutineType *DIFnType = getOrCreateFunctionType(D, FnType, Unit); in emitFunctionStart()
3966 FDContext, Name, LinkageName, Unit, LineNo, DIFnType, ScopeLine, in emitFunctionStart()
4001 llvm::DIFile *Unit = getOrCreateFile(Loc); in EmitFunctionDecl() local
4004 IsDeclForCallSite ? Unit : getDeclContextDescriptor(D); in EmitFunctionDecl()
4008 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in EmitFunctionDecl()
4032 FDContext, Name, LinkageName, Unit, LineNo, in EmitFunctionDecl()
4033 getOrCreateFunctionType(D, FnType, Unit), ScopeLine, Flags, SPFlags, in EmitFunctionDecl()
4183 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitTypeForVarWithBlocksAttr() local
4188 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4189 EltTys.push_back(CreateMemberType(Unit, FType, "__forwarding", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4191 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4192 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4198 CreateMemberType(Unit, FType, "__copy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4200 CreateMemberType(Unit, FType, "__destroy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4209 CreateMemberType(Unit, FType, "__byref_variable_layout", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4224 EltTys.push_back(CreateMemberType(Unit, FType, "", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4229 llvm::DIType *WrappedTy = getOrCreateType(FType, Unit); in EmitTypeForVarWithBlocksAttr()
4235 Unit, VD->getName(), Unit, 0, FieldSize, FieldAlign, FieldOffset, in EmitTypeForVarWithBlocksAttr()
4241 return {DBuilder.createStructType(Unit, "", Unit, 0, FieldOffset, 0, in EmitTypeForVarWithBlocksAttr()
4259 llvm::DIFile *Unit = nullptr; in EmitDeclare() local
4261 Unit = getOrCreateFile(VD->getLocation()); in EmitDeclare()
4267 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclare()
4335 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in EmitDeclare()
4345 Scope, FieldName, Unit, Line, FieldTy, CGM.getLangOpts().Optimize, in EmitDeclare()
4371 D = DBuilder.createParameterVariable(Scope, Name, *ArgNo, Unit, Line, Ty, in EmitDeclare()
4413 D = DBuilder.createAutoVariable(Scope, Name, Unit, Line, Ty, in EmitDeclare()
4441 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); in EmitLabel() local
4451 DBuilder.createLabel(Scope, Name, Unit, Line, CGM.getLangOpts().Optimize); in EmitLabel()
4482 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitDeclareOfBlockDeclRefVariable() local
4487 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclareOfBlockDeclRefVariable()
4527 cast<llvm::DILocalScope>(LexicalBlockStack.back()), VD->getName(), Unit, in EmitDeclareOfBlockDeclRefVariable()
4559 const llvm::StructLayout &BlockLayout, llvm::DIFile *Unit, in collectDefaultFieldsForBlockLiteralDeclare() argument
4567 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4570 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4574 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4577 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4580 BlockLayout.getElementOffsetInBits(2), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4585 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4591 Loc, AS_public, BlockLayout.getElementOffsetInBits(4), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4741 const RecordDecl *RD, llvm::DIFile *Unit, unsigned LineNo, in CollectAnonRecordDecls() argument
4746 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CollectAnonRecordDecls()
4752 GVE = CollectAnonRecordDecls(RT->getDecl(), Unit, LineNo, LinkageName, in CollectAnonRecordDecls()
4758 DContext, FieldName, LinkageName, Unit, LineNo, FieldTy, in CollectAnonRecordDecls()
4787 llvm::DIFile *Unit = nullptr; in EmitGlobalVariable() local
4793 collectVarDeclProps(D, Unit, LineNo, T, DeclName, LinkageName, in EmitGlobalVariable()
4807 GVE = CollectAnonRecordDecls(RD, Unit, LineNo, LinkageName, Var, DContext); in EmitGlobalVariable()
4825 DContext, DeclName, LinkageName, Unit, LineNo, getOrCreateType(T, Unit), in EmitGlobalVariable()
4849 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitGlobalVariable() local
4851 llvm::DIType *Ty = getOrCreateType(VD->getType(), Unit); in EmitGlobalVariable()
4869 getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit); in EmitGlobalVariable()
4914 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VarD, &*Unit); in EmitGlobalVariable()
4919 DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty, in EmitGlobalVariable()
4931 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); in EmitExternalVariable() local
4933 llvm::DIType *Ty = getOrCreateType(D->getType(), Unit); in EmitExternalVariable()
4938 DContext, Name, StringRef(), Unit, getLineNumber(D->getLocation()), in EmitExternalVariable()
5058 ? CreateTypeDefinition(E.Type, E.Unit) in finalize()