Lines Matching refs:Unit
989 llvm::DIFile *Unit) { in CreateQualifiedType() argument
1000 return getOrCreateType(QualType(T, 0), Unit); in CreateQualifiedType()
1003 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType()
1011 llvm::DIFile *Unit) { in CreateQualifiedType() argument
1027 Unit); in CreateQualifiedType()
1035 llvm::DIFile *Unit) { in CreateType() argument
1041 return getOrCreateType(CGM.getContext().getObjCIdType(), Unit); in CreateType()
1044 Ty->getPointeeType(), Unit); in CreateType()
1048 llvm::DIFile *Unit) { in CreateType() argument
1050 Ty->getPointeeType(), Unit); in CreateType()
1191 llvm::DIFile *Unit) { in CreatePointerLikeType() argument
1220 return DBuilder.createReferenceType(Tag, getOrCreateType(PointeeTy, Unit), in CreatePointerLikeType()
1223 return DBuilder.createPointerType(getOrCreateType(PointeeTy, Unit), Size, in CreatePointerLikeType()
1240 const BlockPointerType *Ty, llvm::DIFile *Unit, llvm::DIDerivedType *DescTy, in collectDefaultElementTypesForBlockPointer() argument
1253 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1254 EltTys.push_back(CreateMemberType(Unit, FType, "__align", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1257 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1259 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1260 EltTys.push_back(CreateMemberType(Unit, FType, "__reserved", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1262 EltTys.push_back(CreateMemberType(Unit, FType, "__FuncPtr", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1267 Unit, "__descriptor", nullptr, LineNo, FieldSize, FieldAlign, in collectDefaultElementTypesForBlockPointer()
1276 llvm::DIFile *Unit) { in CreateType() argument
1284 EltTys.push_back(CreateMemberType(Unit, FType, "reserved", &FieldOffset)); in CreateType()
1285 EltTys.push_back(CreateMemberType(Unit, FType, "Size", &FieldOffset)); in CreateType()
1293 DBuilder.createStructType(Unit, "__block_descriptor", nullptr, 0, in CreateType()
1301 FieldOffset = collectDefaultElementTypesForBlockPointer(Ty, Unit, DescTy, in CreateType()
1310 EltTy = DBuilder.createStructType(Unit, "", nullptr, 0, FieldOffset, 0, in CreateType()
1317 llvm::DIFile *Unit) { in CreateType() argument
1319 llvm::DIType *Src = getOrCreateType(Ty->getAliasedType(), Unit); in CreateType()
1381 llvm::DIFile *Unit) { in CreateType() argument
1383 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit); in CreateType()
1467 llvm::DIFile *Unit) { in CreateType() argument
1470 if (llvm::DIType *QTy = CreateQualifiedType(FPT, Unit)) in CreateType()
1479 EltTys.push_back(getOrCreateType(Ty->getReturnType(), Unit)); in CreateType()
1489 EltTys.push_back(getOrCreateType(ParamType, Unit)); in CreateType()
1814 llvm::DIFile *Unit) { in getOrCreateMethodType() argument
1818 getOrCreateType(QualType(Func, 0), Unit)); in getOrCreateMethodType()
1819 return getOrCreateInstanceMethodType(Method->getThisType(), Func, Unit); in getOrCreateMethodType()
1823 QualType ThisPtr, const FunctionProtoType *Func, llvm::DIFile *Unit) { in getOrCreateInstanceMethodType() argument
1841 Unit)); in getOrCreateInstanceMethodType()
1858 getOrCreateType(ThisPtrTy->getPointeeType(), Unit); in getOrCreateInstanceMethodType()
1868 llvm::DIType *ThisPtrType = getOrCreateType(ThisPtr, Unit); in getOrCreateInstanceMethodType()
1895 const CXXMethodDecl *Method, llvm::DIFile *Unit, llvm::DIType *RecordTy) { in CreateCXXMemberFunction() argument
1900 llvm::DISubroutineType *MethodTy = getOrCreateMethodType(Method, Unit); in CreateCXXMemberFunction()
2001 llvm::DINodeArray TParamsArray = CollectFunctionTemplateParams(Method, Unit); in CreateCXXMemberFunction()
2013 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXMemberFunctions() argument
2045 ? CreateCXXMemberFunction(Method, Unit, RecordTy) in CollectCXXMemberFunctions()
2050 void CGDebugInfo::CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBases() argument
2054 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->bases(), SeenTypes, in CollectCXXBases()
2060 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->vbases(), SeenTypes, in CollectCXXBases()
2066 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBasesAux() argument
2077 auto *BaseTy = getOrCreateType(BI.getType(), Unit); in CollectCXXBasesAux()
2114 llvm::DIFile *Unit) { in CollectTemplateParams() argument
2128 llvm::DIType *TTy = getOrCreateType(TA.getAsType(), Unit); in CollectTemplateParams()
2134 llvm::DIType *TTy = getOrCreateType(TA.getIntegralType(), Unit); in CollectTemplateParams()
2142 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2187 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2206 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2224 CollectTemplateParams({{nullptr, TA.getPackAsArray()}}, Unit))); in CollectTemplateParams()
2233 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2287 llvm::DIFile *Unit) { in CollectFunctionTemplateParams() argument
2288 return CollectTemplateParams(GetTemplateArgs(FD), Unit); in CollectFunctionTemplateParams()
2292 llvm::DIFile *Unit) { in CollectVarTemplateParams() argument
2293 return CollectTemplateParams(GetTemplateArgs(VL), Unit); in CollectVarTemplateParams()
2297 llvm::DIFile *Unit) { in CollectCXXTemplateParams() argument
2298 return CollectTemplateParams(GetTemplateArgs(RD), Unit); in CollectCXXTemplateParams()
2315 llvm::DIType *CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile *Unit) { in getOrCreateVTablePtrType() argument
2322 llvm::Metadata *STy = getOrCreateType(Context.IntTy, Unit); in getOrCreateVTablePtrType()
2395 void CGDebugInfo::CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectVTableInfo() argument
2441 VPtrTy = getOrCreateVTablePtrType(Unit); in CollectVTableInfo()
2445 DBuilder.createMemberType(Unit, getVTableName(RD), Unit, 0, Size, 0, 0, in CollectVTableInfo()
2701 llvm::DIFile *Unit) { in GetPreferredNameType() argument
2709 return getOrCreateType(PNA->getTypedefType(), Unit); in GetPreferredNameType()
2777 llvm::DIFile *Unit) { in CreateType() argument
2779 return getOrCreateType(Ty->getBaseType(), Unit); in CreateType()
2783 llvm::DIFile *Unit) { in CreateType() argument
2789 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit), in CreateType()
2819 llvm::DIFile *Unit) { in CreateType() argument
2831 getDeclContextDescriptor(ID), Unit, 0); in CreateType()
2847 ObjCInterfaceCache.push_back(ObjCInterfaceCacheEntry(Ty, FwdDecl, Unit)); in CreateType()
2851 return CreateTypeDefinition(Ty, Unit); in CreateType()
2953 llvm::DIFile *Unit) { in CreateTypeDefinition() argument
2969 Mod ? Mod : Unit, ID->getName(), DefUnit, Line, Size, Align, Flags, in CreateTypeDefinition()
2985 getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit); in CreateTypeDefinition()
3040 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CreateTypeDefinition()
3130 llvm::DIFile *Unit) { in CreateType() argument
3145 return CreateType(CharVecTy->getAs<VectorType>(), Unit); in CreateType()
3148 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
3175 llvm::DIFile *Unit) { in CreateType() argument
3179 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
3201 llvm::DIType *CGDebugInfo::CreateType(const ArrayType *Ty, llvm::DIFile *Unit) { in CreateType() argument
3267 return DBuilder.createArrayType(Size, Align, getOrCreateType(EltTy, Unit), in CreateType()
3272 llvm::DIFile *Unit) { in CreateType() argument
3274 Ty->getPointeeType(), Unit); in CreateType()
3278 llvm::DIFile *Unit) { in CreateType() argument
3285 return CreatePointerLikeType(Tag, Ty, Ty->getPointeeType(), Unit); in CreateType()
3526 llvm::DIType *CGDebugInfo::getOrCreateType(QualType Ty, llvm::DIFile *Unit) { in getOrCreateType() argument
3543 llvm::DIType *Res = CreateTypeNode(Ty, Unit); in getOrCreateType()
3587 llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit) { in CreateTypeNode() argument
3590 return CreateQualifiedType(Ty, Unit); in CreateTypeNode()
3603 return CreateType(cast<VectorType>(Ty), Unit); in CreateTypeNode()
3605 return CreateType(cast<ConstantMatrixType>(Ty), Unit); in CreateTypeNode()
3607 return CreateType(cast<ObjCObjectPointerType>(Ty), Unit); in CreateTypeNode()
3609 return CreateType(cast<ObjCObjectType>(Ty), Unit); in CreateTypeNode()
3611 return CreateType(cast<ObjCTypeParamType>(Ty), Unit); in CreateTypeNode()
3613 return CreateType(cast<ObjCInterfaceType>(Ty), Unit); in CreateTypeNode()
3619 return CreateType(cast<PointerType>(Ty), Unit); in CreateTypeNode()
3621 return CreateType(cast<BlockPointerType>(Ty), Unit); in CreateTypeNode()
3623 return CreateType(cast<TypedefType>(Ty), Unit); in CreateTypeNode()
3630 return CreateType(cast<FunctionType>(Ty), Unit); in CreateTypeNode()
3634 return CreateType(cast<ArrayType>(Ty), Unit); in CreateTypeNode()
3637 return CreateType(cast<LValueReferenceType>(Ty), Unit); in CreateTypeNode()
3639 return CreateType(cast<RValueReferenceType>(Ty), Unit); in CreateTypeNode()
3642 return CreateType(cast<MemberPointerType>(Ty), Unit); in CreateTypeNode()
3645 return CreateType(cast<AtomicType>(Ty), Unit); in CreateTypeNode()
3650 return CreateType(cast<PipeType>(Ty), Unit); in CreateTypeNode()
3653 return CreateType(cast<TemplateSpecializationType>(Ty), Unit); in CreateTypeNode()
3822 llvm::DIType *CGDebugInfo::CreateMemberType(llvm::DIFile *Unit, QualType FType, in CreateMemberType() argument
3824 llvm::DIType *FieldTy = CGDebugInfo::getOrCreateType(FType, Unit); in CreateMemberType()
3828 DBuilder.createMemberType(Unit, Name, Unit, 0, FieldSize, FieldAlign, in CreateMemberType()
3834 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit, in collectFunctionDeclProps() argument
3877 TParamsArray = CollectFunctionTemplateParams(FD, Unit); in collectFunctionDeclProps()
3881 void CGDebugInfo::collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit, in collectVarDeclProps() argument
3886 Unit = getOrCreateFile(VD->getLocation()); in collectVarDeclProps()
3909 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VD, &*Unit); in collectVarDeclProps()
3943 llvm::DIFile *Unit = getOrCreateFile(Loc); in getFunctionFwdDeclOrStub() local
3944 llvm::DIScope *DContext = Unit; in getFunctionFwdDeclOrStub()
3946 collectFunctionDeclProps(GD, Unit, Name, LinkageName, DContext, TParamsArray, in getFunctionFwdDeclOrStub()
3967 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
3968 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3973 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
3974 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3996 llvm::DIFile *Unit = getOrCreateFile(Loc); in getGlobalVariableForwardDeclaration() local
3997 llvm::DIScope *DContext = Unit; in getGlobalVariableForwardDeclaration()
4001 collectVarDeclProps(VD, Unit, Line, T, Name, LinkageName, TemplateParameters, in getGlobalVariableForwardDeclaration()
4005 DContext, Name, LinkageName, Unit, Line, getOrCreateType(T, Unit), in getGlobalVariableForwardDeclaration()
4226 llvm::DIFile *Unit = getOrCreateFile(Loc); in emitFunctionStart() local
4227 llvm::DIScope *FDContext = Unit; in emitFunctionStart()
4243 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in emitFunctionStart()
4289 llvm::DISubroutineType *DIFnType = getOrCreateFunctionType(D, FnType, Unit); in emitFunctionStart()
4305 FDContext, Name, LinkageName, Unit, LineNo, DIFnType, ScopeLine, in emitFunctionStart()
4336 llvm::DIFile *Unit = getOrCreateFile(Loc); in EmitFunctionDecl() local
4339 IsDeclForCallSite ? Unit : getDeclContextDescriptor(D); in EmitFunctionDecl()
4343 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in EmitFunctionDecl()
4367 llvm::DISubroutineType *STy = getOrCreateFunctionType(D, FnType, Unit); in EmitFunctionDecl()
4369 FDContext, Name, LinkageName, Unit, LineNo, STy, ScopeLine, Flags, in EmitFunctionDecl()
4382 SP, PD->getName(), ArgNo, Unit, LineNo, ParamTypes[ArgNo], true, in EmitFunctionDecl()
4530 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitTypeForVarWithBlocksAttr() local
4535 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4536 EltTys.push_back(CreateMemberType(Unit, FType, "__forwarding", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4538 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4539 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4545 CreateMemberType(Unit, FType, "__copy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4547 CreateMemberType(Unit, FType, "__destroy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4556 CreateMemberType(Unit, FType, "__byref_variable_layout", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4571 EltTys.push_back(CreateMemberType(Unit, FType, "", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4576 llvm::DIType *WrappedTy = getOrCreateType(FType, Unit); in EmitTypeForVarWithBlocksAttr()
4582 Unit, VD->getName(), Unit, 0, FieldSize, FieldAlign, FieldOffset, in EmitTypeForVarWithBlocksAttr()
4588 return {DBuilder.createStructType(Unit, "", Unit, 0, FieldOffset, 0, in EmitTypeForVarWithBlocksAttr()
4606 llvm::DIFile *Unit = nullptr; in EmitDeclare() local
4608 Unit = getOrCreateFile(VD->getLocation()); in EmitDeclare()
4614 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclare()
4682 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in EmitDeclare()
4692 Scope, FieldName, Unit, Line, FieldTy, CGM.getLangOpts().Optimize, in EmitDeclare()
4718 D = DBuilder.createParameterVariable(Scope, Name, *ArgNo, Unit, Line, Ty, in EmitDeclare()
4761 D = DBuilder.createAutoVariable(Scope, Name, Unit, Line, Ty, in EmitDeclare()
4774 llvm::DIFile *Unit = getOrCreateFile(BD->getLocation()); in CreateBindingDeclType() local
4797 llvm::DIType *Ty = getOrCreateType(FinalTy, Unit); in CreateBindingDeclType()
4804 return getOrCreateType(BD->getType(), Unit); in CreateBindingDeclType()
4847 llvm::DIFile *Unit = getOrCreateFile(BD->getLocation()); in EmitDeclare() local
4850 Scope, Name, Unit, Line, Ty, CGM.getLangOpts().Optimize, in EmitDeclare()
4924 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); in EmitLabel() local
4934 DBuilder.createLabel(Scope, Name, Unit, Line, CGM.getLangOpts().Optimize); in EmitLabel()
4965 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitDeclareOfBlockDeclRefVariable() local
4970 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclareOfBlockDeclRefVariable()
5010 cast<llvm::DILocalScope>(LexicalBlockStack.back()), VD->getName(), Unit, in EmitDeclareOfBlockDeclRefVariable()
5043 const llvm::StructLayout &BlockLayout, llvm::DIFile *Unit, in collectDefaultFieldsForBlockLiteralDeclare() argument
5051 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5054 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5058 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5061 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5064 BlockLayout.getElementOffsetInBits(2), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5069 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5075 Loc, AS_public, BlockLayout.getElementOffsetInBits(4), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5225 const RecordDecl *RD, llvm::DIFile *Unit, unsigned LineNo, in CollectAnonRecordDecls() argument
5230 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CollectAnonRecordDecls()
5236 GVE = CollectAnonRecordDecls(RT->getDecl(), Unit, LineNo, LinkageName, in CollectAnonRecordDecls()
5242 DContext, FieldName, LinkageName, Unit, LineNo, FieldTy, in CollectAnonRecordDecls()
5496 llvm::DIFile *Unit = nullptr; in EmitGlobalVariable() local
5502 collectVarDeclProps(D, Unit, LineNo, T, DeclName, LinkageName, in EmitGlobalVariable()
5516 GVE = CollectAnonRecordDecls(RD, Unit, LineNo, LinkageName, Var, DContext); in EmitGlobalVariable()
5534 DContext, DeclName, LinkageName, Unit, LineNo, getOrCreateType(T, Unit), in EmitGlobalVariable()
5554 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitGlobalVariable() local
5556 llvm::DIType *Ty = getOrCreateType(VD->getType(), Unit); in EmitGlobalVariable()
5574 getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit); in EmitGlobalVariable()
5610 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VarD, &*Unit); in EmitGlobalVariable()
5615 DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty, in EmitGlobalVariable()
5627 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); in EmitExternalVariable() local
5629 llvm::DIType *Ty = getOrCreateType(D->getType(), Unit); in EmitExternalVariable()
5634 DContext, Name, StringRef(), Unit, getLineNumber(D->getLocation()), in EmitExternalVariable()
5829 ? CreateTypeDefinition(E.Type, E.Unit) in finalize()