Lines Matching refs:Unit

936                                                llvm::DIFile *Unit) {  in CreateQualifiedType()  argument
947 return getOrCreateType(QualType(T, 0), Unit); in CreateQualifiedType()
950 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType()
958 llvm::DIFile *Unit) { in CreateQualifiedType() argument
974 Unit); in CreateQualifiedType()
982 llvm::DIFile *Unit) { in CreateType() argument
988 return getOrCreateType(CGM.getContext().getObjCIdType(), Unit); in CreateType()
991 Ty->getPointeeType(), Unit); in CreateType()
995 llvm::DIFile *Unit) { in CreateType() argument
997 Ty->getPointeeType(), Unit); in CreateType()
1138 llvm::DIFile *Unit) { in CreatePointerLikeType() argument
1168 return DBuilder.createReferenceType(Tag, getOrCreateType(PointeeTy, Unit), in CreatePointerLikeType()
1171 return DBuilder.createPointerType(getOrCreateType(PointeeTy, Unit), Size, in CreatePointerLikeType()
1188 const BlockPointerType *Ty, llvm::DIFile *Unit, llvm::DIDerivedType *DescTy, in collectDefaultElementTypesForBlockPointer() argument
1201 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1202 EltTys.push_back(CreateMemberType(Unit, FType, "__align", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1205 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1207 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1208 EltTys.push_back(CreateMemberType(Unit, FType, "__reserved", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1210 EltTys.push_back(CreateMemberType(Unit, FType, "__FuncPtr", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1215 Unit, "__descriptor", nullptr, LineNo, FieldSize, FieldAlign, in collectDefaultElementTypesForBlockPointer()
1224 llvm::DIFile *Unit) { in CreateType() argument
1232 EltTys.push_back(CreateMemberType(Unit, FType, "reserved", &FieldOffset)); in CreateType()
1233 EltTys.push_back(CreateMemberType(Unit, FType, "Size", &FieldOffset)); in CreateType()
1241 DBuilder.createStructType(Unit, "__block_descriptor", nullptr, 0, in CreateType()
1249 FieldOffset = collectDefaultElementTypesForBlockPointer(Ty, Unit, DescTy, in CreateType()
1258 EltTy = DBuilder.createStructType(Unit, "", nullptr, 0, FieldOffset, 0, in CreateType()
1265 llvm::DIFile *Unit) { in CreateType() argument
1267 llvm::DIType *Src = getOrCreateType(Ty->getAliasedType(), Unit); in CreateType()
1289 llvm::DIFile *Unit) { in CreateType() argument
1291 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit); in CreateType()
1367 llvm::DIFile *Unit) { in CreateType() argument
1370 if (llvm::DIType *QTy = CreateQualifiedType(FPT, Unit)) in CreateType()
1379 EltTys.push_back(getOrCreateType(Ty->getReturnType(), Unit)); in CreateType()
1389 EltTys.push_back(getOrCreateType(ParamType, Unit)); in CreateType()
1650 llvm::DIFile *Unit, bool decl) { in getOrCreateMethodType() argument
1654 getOrCreateType(QualType(Func, 0), Unit)); in getOrCreateMethodType()
1655 return getOrCreateInstanceMethodType(Method->getThisType(), Func, Unit, decl); in getOrCreateMethodType()
1661 llvm::DIFile *Unit, bool decl) { in getOrCreateInstanceMethodType() argument
1679 Unit)); in getOrCreateInstanceMethodType()
1693 Elts.push_back(getOrCreateType(AT->getDeducedType(), Unit)); in getOrCreateInstanceMethodType()
1708 llvm::DIType *PointeeType = getOrCreateType(PointeeTy, Unit); in getOrCreateInstanceMethodType()
1718 llvm::DIType *ThisPtrType = getOrCreateType(ThisPtr, Unit); in getOrCreateInstanceMethodType()
1745 const CXXMethodDecl *Method, llvm::DIFile *Unit, llvm::DIType *RecordTy) { in CreateCXXMemberFunction() argument
1750 llvm::DISubroutineType *MethodTy = getOrCreateMethodType(Method, Unit, true); in CreateCXXMemberFunction()
1870 llvm::DINodeArray TParamsArray = CollectFunctionTemplateParams(Method, Unit); in CreateCXXMemberFunction()
1882 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXMemberFunctions() argument
1914 ? CreateCXXMemberFunction(Method, Unit, RecordTy) in CollectCXXMemberFunctions()
1919 void CGDebugInfo::CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBases() argument
1923 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->bases(), SeenTypes, in CollectCXXBases()
1929 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->vbases(), SeenTypes, in CollectCXXBases()
1935 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBasesAux() argument
1946 auto *BaseTy = getOrCreateType(BI.getType(), Unit); in CollectCXXBasesAux()
1983 llvm::DIFile *Unit) { in CollectTemplateParams() argument
1996 llvm::DIType *TTy = getOrCreateType(TA.getAsType(), Unit); in CollectTemplateParams()
2010 llvm::DIType *TTy = getOrCreateType(TA.getIntegralType(), Unit); in CollectTemplateParams()
2028 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2073 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2102 CollectTemplateParams({{nullptr, TA.getPackAsArray()}}, Unit))); in CollectTemplateParams()
2111 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2165 llvm::DIFile *Unit) { in CollectFunctionTemplateParams() argument
2166 return CollectTemplateParams(GetTemplateArgs(FD), Unit); in CollectFunctionTemplateParams()
2170 llvm::DIFile *Unit) { in CollectVarTemplateParams() argument
2171 return CollectTemplateParams(GetTemplateArgs(VL), Unit); in CollectVarTemplateParams()
2175 llvm::DIFile *Unit) { in CollectCXXTemplateParams() argument
2176 return CollectTemplateParams(GetTemplateArgs(RD), Unit); in CollectCXXTemplateParams()
2193 llvm::DIType *CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile *Unit) { in getOrCreateVTablePtrType() argument
2200 llvm::Metadata *STy = getOrCreateType(Context.IntTy, Unit); in getOrCreateVTablePtrType()
2273 void CGDebugInfo::CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectVTableInfo() argument
2319 VPtrTy = getOrCreateVTablePtrType(Unit); in CollectVTableInfo()
2323 DBuilder.createMemberType(Unit, getVTableName(RD), Unit, 0, Size, 0, 0, in CollectVTableInfo()
2622 llvm::DIFile *Unit) { in CreateType() argument
2624 return getOrCreateType(Ty->getBaseType(), Unit); in CreateType()
2628 llvm::DIFile *Unit) { in CreateType() argument
2634 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit), in CreateType()
2664 llvm::DIFile *Unit) { in CreateType() argument
2676 getDeclContextDescriptor(ID), Unit, 0); in CreateType()
2692 ObjCInterfaceCache.push_back(ObjCInterfaceCacheEntry(Ty, FwdDecl, Unit)); in CreateType()
2696 return CreateTypeDefinition(Ty, Unit); in CreateType()
2794 llvm::DIFile *Unit) { in CreateTypeDefinition() argument
2810 Mod ? Mod : Unit, ID->getName(), DefUnit, Line, Size, Align, Flags, in CreateTypeDefinition()
2826 getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit); in CreateTypeDefinition()
2881 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CreateTypeDefinition()
2968 llvm::DIFile *Unit) { in CreateType() argument
2983 return CreateType(CharVecTy->getAs<VectorType>(), Unit); in CreateType()
2986 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
3013 llvm::DIFile *Unit) { in CreateType() argument
3017 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
3039 llvm::DIType *CGDebugInfo::CreateType(const ArrayType *Ty, llvm::DIFile *Unit) { in CreateType() argument
3105 return DBuilder.createArrayType(Size, Align, getOrCreateType(EltTy, Unit), in CreateType()
3110 llvm::DIFile *Unit) { in CreateType() argument
3112 Ty->getPointeeType(), Unit); in CreateType()
3116 llvm::DIFile *Unit) { in CreateType() argument
3123 return CreatePointerLikeType(Tag, Ty, Ty->getPointeeType(), Unit); in CreateType()
3363 llvm::DIType *CGDebugInfo::getOrCreateType(QualType Ty, llvm::DIFile *Unit) { in getOrCreateType() argument
3380 llvm::DIType *Res = CreateTypeNode(Ty, Unit); in getOrCreateType()
3424 llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit) { in CreateTypeNode() argument
3427 return CreateQualifiedType(Ty, Unit); in CreateTypeNode()
3440 return CreateType(cast<VectorType>(Ty), Unit); in CreateTypeNode()
3442 return CreateType(cast<ConstantMatrixType>(Ty), Unit); in CreateTypeNode()
3444 return CreateType(cast<ObjCObjectPointerType>(Ty), Unit); in CreateTypeNode()
3446 return CreateType(cast<ObjCObjectType>(Ty), Unit); in CreateTypeNode()
3448 return CreateType(cast<ObjCTypeParamType>(Ty), Unit); in CreateTypeNode()
3450 return CreateType(cast<ObjCInterfaceType>(Ty), Unit); in CreateTypeNode()
3456 return CreateType(cast<PointerType>(Ty), Unit); in CreateTypeNode()
3458 return CreateType(cast<BlockPointerType>(Ty), Unit); in CreateTypeNode()
3460 return CreateType(cast<TypedefType>(Ty), Unit); in CreateTypeNode()
3467 return CreateType(cast<FunctionType>(Ty), Unit); in CreateTypeNode()
3471 return CreateType(cast<ArrayType>(Ty), Unit); in CreateTypeNode()
3474 return CreateType(cast<LValueReferenceType>(Ty), Unit); in CreateTypeNode()
3476 return CreateType(cast<RValueReferenceType>(Ty), Unit); in CreateTypeNode()
3479 return CreateType(cast<MemberPointerType>(Ty), Unit); in CreateTypeNode()
3482 return CreateType(cast<AtomicType>(Ty), Unit); in CreateTypeNode()
3487 return CreateType(cast<PipeType>(Ty), Unit); in CreateTypeNode()
3490 return CreateType(cast<TemplateSpecializationType>(Ty), Unit); in CreateTypeNode()
3660 llvm::DIType *CGDebugInfo::CreateMemberType(llvm::DIFile *Unit, QualType FType, in CreateMemberType() argument
3662 llvm::DIType *FieldTy = CGDebugInfo::getOrCreateType(FType, Unit); in CreateMemberType()
3666 DBuilder.createMemberType(Unit, Name, Unit, 0, FieldSize, FieldAlign, in CreateMemberType()
3672 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit, in collectFunctionDeclProps() argument
3714 TParamsArray = CollectFunctionTemplateParams(FD, Unit); in collectFunctionDeclProps()
3718 void CGDebugInfo::collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit, in collectVarDeclProps() argument
3723 Unit = getOrCreateFile(VD->getLocation()); in collectVarDeclProps()
3746 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VD, &*Unit); in collectVarDeclProps()
3780 llvm::DIFile *Unit = getOrCreateFile(Loc); in getFunctionFwdDeclOrStub() local
3781 llvm::DIScope *DContext = Unit; in getFunctionFwdDeclOrStub()
3783 collectFunctionDeclProps(GD, Unit, Name, LinkageName, DContext, TParamsArray, in getFunctionFwdDeclOrStub()
3804 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
3805 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3810 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
3811 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3833 llvm::DIFile *Unit = getOrCreateFile(Loc); in getGlobalVariableForwardDeclaration() local
3834 llvm::DIScope *DContext = Unit; in getGlobalVariableForwardDeclaration()
3838 collectVarDeclProps(VD, Unit, Line, T, Name, LinkageName, TemplateParameters, in getGlobalVariableForwardDeclaration()
3842 DContext, Name, LinkageName, Unit, Line, getOrCreateType(T, Unit), in getGlobalVariableForwardDeclaration()
4062 llvm::DIFile *Unit = getOrCreateFile(Loc); in emitFunctionStart() local
4063 llvm::DIScope *FDContext = Unit; in emitFunctionStart()
4079 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in emitFunctionStart()
4121 llvm::DISubroutineType *DIFnType = getOrCreateFunctionType(D, FnType, Unit); in emitFunctionStart()
4137 FDContext, Name, LinkageName, Unit, LineNo, DIFnType, ScopeLine, in emitFunctionStart()
4168 llvm::DIFile *Unit = getOrCreateFile(Loc); in EmitFunctionDecl() local
4171 IsDeclForCallSite ? Unit : getDeclContextDescriptor(D); in EmitFunctionDecl()
4175 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in EmitFunctionDecl()
4200 FDContext, Name, LinkageName, Unit, LineNo, in EmitFunctionDecl()
4201 getOrCreateFunctionType(D, FnType, Unit), ScopeLine, Flags, SPFlags, in EmitFunctionDecl()
4351 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitTypeForVarWithBlocksAttr() local
4356 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4357 EltTys.push_back(CreateMemberType(Unit, FType, "__forwarding", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4359 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4360 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4366 CreateMemberType(Unit, FType, "__copy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4368 CreateMemberType(Unit, FType, "__destroy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4377 CreateMemberType(Unit, FType, "__byref_variable_layout", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4392 EltTys.push_back(CreateMemberType(Unit, FType, "", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4397 llvm::DIType *WrappedTy = getOrCreateType(FType, Unit); in EmitTypeForVarWithBlocksAttr()
4403 Unit, VD->getName(), Unit, 0, FieldSize, FieldAlign, FieldOffset, in EmitTypeForVarWithBlocksAttr()
4409 return {DBuilder.createStructType(Unit, "", Unit, 0, FieldOffset, 0, in EmitTypeForVarWithBlocksAttr()
4427 llvm::DIFile *Unit = nullptr; in EmitDeclare() local
4429 Unit = getOrCreateFile(VD->getLocation()); in EmitDeclare()
4435 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclare()
4503 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in EmitDeclare()
4513 Scope, FieldName, Unit, Line, FieldTy, CGM.getLangOpts().Optimize, in EmitDeclare()
4539 D = DBuilder.createParameterVariable(Scope, Name, *ArgNo, Unit, Line, Ty, in EmitDeclare()
4582 D = DBuilder.createAutoVariable(Scope, Name, Unit, Line, Ty, in EmitDeclare()
4608 llvm::DIFile *Unit = getOrCreateFile(BD->getLocation()); in EmitDeclare() local
4609 llvm::DIType *Ty = getOrCreateType(BD->getType(), Unit); in EmitDeclare()
4637 Scope, Name, Unit, Line, Ty, CGM.getLangOpts().Optimize, in EmitDeclare()
4702 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); in EmitLabel() local
4712 DBuilder.createLabel(Scope, Name, Unit, Line, CGM.getLangOpts().Optimize); in EmitLabel()
4743 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitDeclareOfBlockDeclRefVariable() local
4748 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclareOfBlockDeclRefVariable()
4788 cast<llvm::DILocalScope>(LexicalBlockStack.back()), VD->getName(), Unit, in EmitDeclareOfBlockDeclRefVariable()
4820 const llvm::StructLayout &BlockLayout, llvm::DIFile *Unit, in collectDefaultFieldsForBlockLiteralDeclare() argument
4828 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4831 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4835 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4838 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4841 BlockLayout.getElementOffsetInBits(2), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4846 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4852 Loc, AS_public, BlockLayout.getElementOffsetInBits(4), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5002 const RecordDecl *RD, llvm::DIFile *Unit, unsigned LineNo, in CollectAnonRecordDecls() argument
5007 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CollectAnonRecordDecls()
5013 GVE = CollectAnonRecordDecls(RT->getDecl(), Unit, LineNo, LinkageName, in CollectAnonRecordDecls()
5019 DContext, FieldName, LinkageName, Unit, LineNo, FieldTy, in CollectAnonRecordDecls()
5271 llvm::DIFile *Unit = nullptr; in EmitGlobalVariable() local
5277 collectVarDeclProps(D, Unit, LineNo, T, DeclName, LinkageName, in EmitGlobalVariable()
5291 GVE = CollectAnonRecordDecls(RD, Unit, LineNo, LinkageName, Var, DContext); in EmitGlobalVariable()
5310 DContext, DeclName, LinkageName, Unit, LineNo, getOrCreateType(T, Unit), in EmitGlobalVariable()
5330 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitGlobalVariable() local
5332 llvm::DIType *Ty = getOrCreateType(VD->getType(), Unit); in EmitGlobalVariable()
5350 getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit); in EmitGlobalVariable()
5395 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VarD, &*Unit); in EmitGlobalVariable()
5400 DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty, in EmitGlobalVariable()
5412 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); in EmitExternalVariable() local
5414 llvm::DIType *Ty = getOrCreateType(D->getType(), Unit); in EmitExternalVariable()
5419 DContext, Name, StringRef(), Unit, getLineNumber(D->getLocation()), in EmitExternalVariable()
5614 ? CreateTypeDefinition(E.Type, E.Unit) in finalize()