Lines Matching refs:Unit
918 llvm::DIFile *Unit) { in CreateQualifiedType() argument
941 return getOrCreateType(QualType(T, 0), Unit); in CreateQualifiedType()
944 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType()
952 llvm::DIFile *Unit) { in CreateType() argument
958 return getOrCreateType(CGM.getContext().getObjCIdType(), Unit); in CreateType()
961 Ty->getPointeeType(), Unit); in CreateType()
965 llvm::DIFile *Unit) { in CreateType() argument
967 Ty->getPointeeType(), Unit); in CreateType()
1108 llvm::DIFile *Unit) { in CreatePointerLikeType() argument
1120 return DBuilder.createReferenceType(Tag, getOrCreateType(PointeeTy, Unit), in CreatePointerLikeType()
1123 return DBuilder.createPointerType(getOrCreateType(PointeeTy, Unit), Size, in CreatePointerLikeType()
1139 const BlockPointerType *Ty, llvm::DIFile *Unit, llvm::DIDerivedType *DescTy, in collectDefaultElementTypesForBlockPointer() argument
1152 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1153 EltTys.push_back(CreateMemberType(Unit, FType, "__align", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1156 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1158 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1159 EltTys.push_back(CreateMemberType(Unit, FType, "__reserved", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1161 EltTys.push_back(CreateMemberType(Unit, FType, "__FuncPtr", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1166 Unit, "__descriptor", nullptr, LineNo, FieldSize, FieldAlign, in collectDefaultElementTypesForBlockPointer()
1175 llvm::DIFile *Unit) { in CreateType() argument
1183 EltTys.push_back(CreateMemberType(Unit, FType, "reserved", &FieldOffset)); in CreateType()
1184 EltTys.push_back(CreateMemberType(Unit, FType, "Size", &FieldOffset)); in CreateType()
1192 DBuilder.createStructType(Unit, "__block_descriptor", nullptr, 0, in CreateType()
1200 FieldOffset = collectDefaultElementTypesForBlockPointer(Ty, Unit, DescTy, in CreateType()
1209 EltTy = DBuilder.createStructType(Unit, "", nullptr, 0, FieldOffset, 0, in CreateType()
1216 llvm::DIFile *Unit) { in CreateType() argument
1218 llvm::DIType *Src = getOrCreateType(Ty->getAliasedType(), Unit); in CreateType()
1239 llvm::DIFile *Unit) { in CreateType() argument
1241 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit); in CreateType()
1304 llvm::DIFile *Unit) { in CreateType() argument
1308 EltTys.push_back(getOrCreateType(Ty->getReturnType(), Unit)); in CreateType()
1316 EltTys.push_back(getOrCreateType(ParamType, Unit)); in CreateType()
1575 llvm::DIFile *Unit, bool decl) { in getOrCreateMethodType() argument
1579 getOrCreateType(QualType(Func, 0), Unit)); in getOrCreateMethodType()
1580 return getOrCreateInstanceMethodType(Method->getThisType(), Func, Unit, decl); in getOrCreateMethodType()
1586 llvm::DIFile *Unit, bool decl) { in getOrCreateInstanceMethodType() argument
1589 cast<llvm::DISubroutineType>(getOrCreateType(QualType(Func, 0), Unit)) in getOrCreateInstanceMethodType()
1610 llvm::DIType *PointeeType = getOrCreateType(PointeeTy, Unit); in getOrCreateInstanceMethodType()
1620 llvm::DIType *ThisPtrType = getOrCreateType(ThisPtr, Unit); in getOrCreateInstanceMethodType()
1653 const CXXMethodDecl *Method, llvm::DIFile *Unit, llvm::DIType *RecordTy) { in CreateCXXMemberFunction() argument
1658 llvm::DISubroutineType *MethodTy = getOrCreateMethodType(Method, Unit, true); in CreateCXXMemberFunction()
1778 llvm::DINodeArray TParamsArray = CollectFunctionTemplateParams(Method, Unit); in CreateCXXMemberFunction()
1790 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXMemberFunctions() argument
1822 ? CreateCXXMemberFunction(Method, Unit, RecordTy) in CollectCXXMemberFunctions()
1827 void CGDebugInfo::CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBases() argument
1831 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->bases(), SeenTypes, in CollectCXXBases()
1837 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->vbases(), SeenTypes, in CollectCXXBases()
1843 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBasesAux() argument
1854 auto *BaseTy = getOrCreateType(BI.getType(), Unit); in CollectCXXBasesAux()
1892 llvm::DIFile *Unit) { in CollectTemplateParams() argument
1902 llvm::DIType *TTy = getOrCreateType(TA.getAsType(), Unit); in CollectTemplateParams()
1916 llvm::DIType *TTy = getOrCreateType(TA.getIntegralType(), Unit); in CollectTemplateParams()
1934 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
1979 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2004 CollectTemplateParams(nullptr, TA.getPackAsArray(), Unit))); in CollectTemplateParams()
2013 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2029 llvm::DIFile *Unit) { in CollectFunctionTemplateParams() argument
2036 TList, FD->getTemplateSpecializationArgs()->asArray(), Unit); in CollectFunctionTemplateParams()
2042 llvm::DIFile *Unit) { in CollectVarTemplateParams() argument
2052 return CollectTemplateParams(TList, TA, Unit); in CollectVarTemplateParams()
2056 const ClassTemplateSpecializationDecl *TSpecial, llvm::DIFile *Unit) { in CollectCXXTemplateParams() argument
2063 return CollectTemplateParams(TPList, TAList.asArray(), Unit); in CollectCXXTemplateParams()
2066 llvm::DIType *CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile *Unit) { in getOrCreateVTablePtrType() argument
2073 llvm::Metadata *STy = getOrCreateType(Context.IntTy, Unit); in getOrCreateVTablePtrType()
2146 void CGDebugInfo::CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectVTableInfo() argument
2192 VPtrTy = getOrCreateVTablePtrType(Unit); in CollectVTableInfo()
2196 DBuilder.createMemberType(Unit, getVTableName(RD), Unit, 0, Size, 0, 0, in CollectVTableInfo()
2495 llvm::DIFile *Unit) { in CreateType() argument
2497 return getOrCreateType(Ty->getBaseType(), Unit); in CreateType()
2501 llvm::DIFile *Unit) { in CreateType() argument
2507 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit), in CreateType()
2537 llvm::DIFile *Unit) { in CreateType() argument
2549 getDeclContextDescriptor(ID), Unit, 0); in CreateType()
2565 ObjCInterfaceCache.push_back(ObjCInterfaceCacheEntry(Ty, FwdDecl, Unit)); in CreateType()
2569 return CreateTypeDefinition(Ty, Unit); in CreateType()
2667 llvm::DIFile *Unit) { in CreateTypeDefinition() argument
2683 Mod ? Mod : Unit, ID->getName(), DefUnit, Line, Size, Align, Flags, in CreateTypeDefinition()
2699 getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit); in CreateTypeDefinition()
2754 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CreateTypeDefinition()
2841 llvm::DIFile *Unit) { in CreateType() argument
2842 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
2869 llvm::DIFile *Unit) { in CreateType() argument
2873 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
2895 llvm::DIType *CGDebugInfo::CreateType(const ArrayType *Ty, llvm::DIFile *Unit) { in CreateType() argument
2961 return DBuilder.createArrayType(Size, Align, getOrCreateType(EltTy, Unit), in CreateType()
2966 llvm::DIFile *Unit) { in CreateType() argument
2968 Ty->getPointeeType(), Unit); in CreateType()
2972 llvm::DIFile *Unit) { in CreateType() argument
2979 return CreatePointerLikeType(Tag, Ty, Ty->getPointeeType(), Unit); in CreateType()
3213 llvm::DIType *CGDebugInfo::getOrCreateType(QualType Ty, llvm::DIFile *Unit) { in getOrCreateType() argument
3230 llvm::DIType *Res = CreateTypeNode(Ty, Unit); in getOrCreateType()
3274 llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit) { in CreateTypeNode() argument
3277 return CreateQualifiedType(Ty, Unit); in CreateTypeNode()
3290 return CreateType(cast<VectorType>(Ty), Unit); in CreateTypeNode()
3292 return CreateType(cast<ConstantMatrixType>(Ty), Unit); in CreateTypeNode()
3294 return CreateType(cast<ObjCObjectPointerType>(Ty), Unit); in CreateTypeNode()
3296 return CreateType(cast<ObjCObjectType>(Ty), Unit); in CreateTypeNode()
3298 return CreateType(cast<ObjCTypeParamType>(Ty), Unit); in CreateTypeNode()
3300 return CreateType(cast<ObjCInterfaceType>(Ty), Unit); in CreateTypeNode()
3306 return CreateType(cast<PointerType>(Ty), Unit); in CreateTypeNode()
3308 return CreateType(cast<BlockPointerType>(Ty), Unit); in CreateTypeNode()
3310 return CreateType(cast<TypedefType>(Ty), Unit); in CreateTypeNode()
3317 return CreateType(cast<FunctionType>(Ty), Unit); in CreateTypeNode()
3321 return CreateType(cast<ArrayType>(Ty), Unit); in CreateTypeNode()
3324 return CreateType(cast<LValueReferenceType>(Ty), Unit); in CreateTypeNode()
3326 return CreateType(cast<RValueReferenceType>(Ty), Unit); in CreateTypeNode()
3329 return CreateType(cast<MemberPointerType>(Ty), Unit); in CreateTypeNode()
3332 return CreateType(cast<AtomicType>(Ty), Unit); in CreateTypeNode()
3337 return CreateType(cast<PipeType>(Ty), Unit); in CreateTypeNode()
3340 return CreateType(cast<TemplateSpecializationType>(Ty), Unit); in CreateTypeNode()
3500 llvm::DIType *CGDebugInfo::CreateMemberType(llvm::DIFile *Unit, QualType FType, in CreateMemberType() argument
3502 llvm::DIType *FieldTy = CGDebugInfo::getOrCreateType(FType, Unit); in CreateMemberType()
3506 DBuilder.createMemberType(Unit, Name, Unit, 0, FieldSize, FieldAlign, in CreateMemberType()
3512 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit, in collectFunctionDeclProps() argument
3554 TParamsArray = CollectFunctionTemplateParams(FD, Unit); in collectFunctionDeclProps()
3558 void CGDebugInfo::collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit, in collectVarDeclProps() argument
3563 Unit = getOrCreateFile(VD->getLocation()); in collectVarDeclProps()
3586 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VD, &*Unit); in collectVarDeclProps()
3620 llvm::DIFile *Unit = getOrCreateFile(Loc); in getFunctionFwdDeclOrStub() local
3621 llvm::DIScope *DContext = Unit; in getFunctionFwdDeclOrStub()
3623 collectFunctionDeclProps(GD, Unit, Name, LinkageName, DContext, TParamsArray, in getFunctionFwdDeclOrStub()
3644 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
3645 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3650 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
3651 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3673 llvm::DIFile *Unit = getOrCreateFile(Loc); in getGlobalVariableForwardDeclaration() local
3674 llvm::DIScope *DContext = Unit; in getGlobalVariableForwardDeclaration()
3678 collectVarDeclProps(VD, Unit, Line, T, Name, LinkageName, TemplateParameters, in getGlobalVariableForwardDeclaration()
3682 DContext, Name, LinkageName, Unit, Line, getOrCreateType(T, Unit), in getGlobalVariableForwardDeclaration()
3877 llvm::DIFile *Unit = getOrCreateFile(Loc); in emitFunctionStart() local
3878 llvm::DIScope *FDContext = Unit; in emitFunctionStart()
3894 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in emitFunctionStart()
3936 llvm::DISubroutineType *DIFnType = getOrCreateFunctionType(D, FnType, Unit); in emitFunctionStart()
3949 FDContext, Name, LinkageName, Unit, LineNo, DIFnType, ScopeLine, in emitFunctionStart()
3979 llvm::DIFile *Unit = getOrCreateFile(Loc); in EmitFunctionDecl() local
3982 IsDeclForCallSite ? Unit : getDeclContextDescriptor(D); in EmitFunctionDecl()
3986 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in EmitFunctionDecl()
4010 FDContext, Name, LinkageName, Unit, LineNo, in EmitFunctionDecl()
4011 getOrCreateFunctionType(D, FnType, Unit), ScopeLine, Flags, SPFlags, in EmitFunctionDecl()
4161 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitTypeForVarWithBlocksAttr() local
4166 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4167 EltTys.push_back(CreateMemberType(Unit, FType, "__forwarding", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4169 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4170 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4176 CreateMemberType(Unit, FType, "__copy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4178 CreateMemberType(Unit, FType, "__destroy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4187 CreateMemberType(Unit, FType, "__byref_variable_layout", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4202 EltTys.push_back(CreateMemberType(Unit, FType, "", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4207 llvm::DIType *WrappedTy = getOrCreateType(FType, Unit); in EmitTypeForVarWithBlocksAttr()
4213 Unit, VD->getName(), Unit, 0, FieldSize, FieldAlign, FieldOffset, in EmitTypeForVarWithBlocksAttr()
4219 return {DBuilder.createStructType(Unit, "", Unit, 0, FieldOffset, 0, in EmitTypeForVarWithBlocksAttr()
4237 llvm::DIFile *Unit = nullptr; in EmitDeclare() local
4239 Unit = getOrCreateFile(VD->getLocation()); in EmitDeclare()
4245 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclare()
4313 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in EmitDeclare()
4323 Scope, FieldName, Unit, Line, FieldTy, CGM.getLangOpts().Optimize, in EmitDeclare()
4349 D = DBuilder.createParameterVariable(Scope, Name, *ArgNo, Unit, Line, Ty, in EmitDeclare()
4391 D = DBuilder.createAutoVariable(Scope, Name, Unit, Line, Ty, in EmitDeclare()
4419 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); in EmitLabel() local
4429 DBuilder.createLabel(Scope, Name, Unit, Line, CGM.getLangOpts().Optimize); in EmitLabel()
4460 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitDeclareOfBlockDeclRefVariable() local
4465 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclareOfBlockDeclRefVariable()
4505 cast<llvm::DILocalScope>(LexicalBlockStack.back()), VD->getName(), Unit, in EmitDeclareOfBlockDeclRefVariable()
4537 const llvm::StructLayout &BlockLayout, llvm::DIFile *Unit, in collectDefaultFieldsForBlockLiteralDeclare() argument
4545 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4548 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4552 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4555 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4558 BlockLayout.getElementOffsetInBits(2), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4563 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4569 Loc, AS_public, BlockLayout.getElementOffsetInBits(4), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4719 const RecordDecl *RD, llvm::DIFile *Unit, unsigned LineNo, in CollectAnonRecordDecls() argument
4724 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CollectAnonRecordDecls()
4730 GVE = CollectAnonRecordDecls(RT->getDecl(), Unit, LineNo, LinkageName, in CollectAnonRecordDecls()
4736 DContext, FieldName, LinkageName, Unit, LineNo, FieldTy, in CollectAnonRecordDecls()
4773 llvm::DIFile *Unit = nullptr; in EmitGlobalVariable() local
4779 collectVarDeclProps(D, Unit, LineNo, T, DeclName, LinkageName, in EmitGlobalVariable()
4793 GVE = CollectAnonRecordDecls(RD, Unit, LineNo, LinkageName, Var, DContext); in EmitGlobalVariable()
4811 DContext, DeclName, LinkageName, Unit, LineNo, getOrCreateType(T, Unit), in EmitGlobalVariable()
4831 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitGlobalVariable() local
4833 llvm::DIType *Ty = getOrCreateType(VD->getType(), Unit); in EmitGlobalVariable()
4851 getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit); in EmitGlobalVariable()
4896 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VarD, &*Unit); in EmitGlobalVariable()
4901 DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty, in EmitGlobalVariable()
4913 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); in EmitExternalVariable() local
4915 llvm::DIType *Ty = getOrCreateType(D->getType(), Unit); in EmitExternalVariable()
4920 DContext, Name, StringRef(), Unit, getLineNumber(D->getLocation()), in EmitExternalVariable()
5059 ? CreateTypeDefinition(E.Type, E.Unit) in finalize()