Lines Matching refs:Unit

949                                                llvm::DIFile *Unit) {  in CreateQualifiedType()  argument
960 return getOrCreateType(QualType(T, 0), Unit); in CreateQualifiedType()
963 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType()
971 llvm::DIFile *Unit) { in CreateQualifiedType() argument
987 Unit); in CreateQualifiedType()
995 llvm::DIFile *Unit) { in CreateType() argument
1001 return getOrCreateType(CGM.getContext().getObjCIdType(), Unit); in CreateType()
1004 Ty->getPointeeType(), Unit); in CreateType()
1008 llvm::DIFile *Unit) { in CreateType() argument
1010 Ty->getPointeeType(), Unit); in CreateType()
1151 llvm::DIFile *Unit) { in CreatePointerLikeType() argument
1180 return DBuilder.createReferenceType(Tag, getOrCreateType(PointeeTy, Unit), in CreatePointerLikeType()
1183 return DBuilder.createPointerType(getOrCreateType(PointeeTy, Unit), Size, in CreatePointerLikeType()
1200 const BlockPointerType *Ty, llvm::DIFile *Unit, llvm::DIDerivedType *DescTy, in collectDefaultElementTypesForBlockPointer() argument
1213 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1214 EltTys.push_back(CreateMemberType(Unit, FType, "__align", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1217 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1219 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1220 EltTys.push_back(CreateMemberType(Unit, FType, "__reserved", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1222 EltTys.push_back(CreateMemberType(Unit, FType, "__FuncPtr", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1227 Unit, "__descriptor", nullptr, LineNo, FieldSize, FieldAlign, in collectDefaultElementTypesForBlockPointer()
1236 llvm::DIFile *Unit) { in CreateType() argument
1244 EltTys.push_back(CreateMemberType(Unit, FType, "reserved", &FieldOffset)); in CreateType()
1245 EltTys.push_back(CreateMemberType(Unit, FType, "Size", &FieldOffset)); in CreateType()
1253 DBuilder.createStructType(Unit, "__block_descriptor", nullptr, 0, in CreateType()
1261 FieldOffset = collectDefaultElementTypesForBlockPointer(Ty, Unit, DescTy, in CreateType()
1270 EltTy = DBuilder.createStructType(Unit, "", nullptr, 0, FieldOffset, 0, in CreateType()
1277 llvm::DIFile *Unit) { in CreateType() argument
1279 llvm::DIType *Src = getOrCreateType(Ty->getAliasedType(), Unit); in CreateType()
1341 llvm::DIFile *Unit) { in CreateType() argument
1343 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit); in CreateType()
1425 llvm::DIFile *Unit) { in CreateType() argument
1428 if (llvm::DIType *QTy = CreateQualifiedType(FPT, Unit)) in CreateType()
1437 EltTys.push_back(getOrCreateType(Ty->getReturnType(), Unit)); in CreateType()
1447 EltTys.push_back(getOrCreateType(ParamType, Unit)); in CreateType()
1686 llvm::DIFile *Unit) { in getOrCreateMethodType() argument
1690 getOrCreateType(QualType(Func, 0), Unit)); in getOrCreateMethodType()
1691 return getOrCreateInstanceMethodType(Method->getThisType(), Func, Unit); in getOrCreateMethodType()
1695 QualType ThisPtr, const FunctionProtoType *Func, llvm::DIFile *Unit) { in getOrCreateInstanceMethodType() argument
1713 Unit)); in getOrCreateInstanceMethodType()
1730 getOrCreateType(ThisPtrTy->getPointeeType(), Unit); in getOrCreateInstanceMethodType()
1740 llvm::DIType *ThisPtrType = getOrCreateType(ThisPtr, Unit); in getOrCreateInstanceMethodType()
1767 const CXXMethodDecl *Method, llvm::DIFile *Unit, llvm::DIType *RecordTy) { in CreateCXXMemberFunction() argument
1772 llvm::DISubroutineType *MethodTy = getOrCreateMethodType(Method, Unit); in CreateCXXMemberFunction()
1892 llvm::DINodeArray TParamsArray = CollectFunctionTemplateParams(Method, Unit); in CreateCXXMemberFunction()
1904 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXMemberFunctions() argument
1936 ? CreateCXXMemberFunction(Method, Unit, RecordTy) in CollectCXXMemberFunctions()
1941 void CGDebugInfo::CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBases() argument
1945 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->bases(), SeenTypes, in CollectCXXBases()
1951 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->vbases(), SeenTypes, in CollectCXXBases()
1957 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBasesAux() argument
1968 auto *BaseTy = getOrCreateType(BI.getType(), Unit); in CollectCXXBasesAux()
2005 llvm::DIFile *Unit) { in CollectTemplateParams() argument
2024 llvm::DIType *TTy = getOrCreateType(TA.getAsType(), Unit); in CollectTemplateParams()
2030 llvm::DIType *TTy = getOrCreateType(TA.getIntegralType(), Unit); in CollectTemplateParams()
2038 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2083 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2112 CollectTemplateParams({{nullptr, TA.getPackAsArray()}}, Unit))); in CollectTemplateParams()
2121 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2175 llvm::DIFile *Unit) { in CollectFunctionTemplateParams() argument
2176 return CollectTemplateParams(GetTemplateArgs(FD), Unit); in CollectFunctionTemplateParams()
2180 llvm::DIFile *Unit) { in CollectVarTemplateParams() argument
2181 return CollectTemplateParams(GetTemplateArgs(VL), Unit); in CollectVarTemplateParams()
2185 llvm::DIFile *Unit) { in CollectCXXTemplateParams() argument
2186 return CollectTemplateParams(GetTemplateArgs(RD), Unit); in CollectCXXTemplateParams()
2203 llvm::DIType *CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile *Unit) { in getOrCreateVTablePtrType() argument
2210 llvm::Metadata *STy = getOrCreateType(Context.IntTy, Unit); in getOrCreateVTablePtrType()
2283 void CGDebugInfo::CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectVTableInfo() argument
2329 VPtrTy = getOrCreateVTablePtrType(Unit); in CollectVTableInfo()
2333 DBuilder.createMemberType(Unit, getVTableName(RD), Unit, 0, Size, 0, 0, in CollectVTableInfo()
2632 llvm::DIFile *Unit) { in CreateType() argument
2634 return getOrCreateType(Ty->getBaseType(), Unit); in CreateType()
2638 llvm::DIFile *Unit) { in CreateType() argument
2644 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit), in CreateType()
2674 llvm::DIFile *Unit) { in CreateType() argument
2686 getDeclContextDescriptor(ID), Unit, 0); in CreateType()
2702 ObjCInterfaceCache.push_back(ObjCInterfaceCacheEntry(Ty, FwdDecl, Unit)); in CreateType()
2706 return CreateTypeDefinition(Ty, Unit); in CreateType()
2808 llvm::DIFile *Unit) { in CreateTypeDefinition() argument
2824 Mod ? Mod : Unit, ID->getName(), DefUnit, Line, Size, Align, Flags, in CreateTypeDefinition()
2840 getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit); in CreateTypeDefinition()
2895 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CreateTypeDefinition()
2985 llvm::DIFile *Unit) { in CreateType() argument
3000 return CreateType(CharVecTy->getAs<VectorType>(), Unit); in CreateType()
3003 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
3030 llvm::DIFile *Unit) { in CreateType() argument
3034 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
3056 llvm::DIType *CGDebugInfo::CreateType(const ArrayType *Ty, llvm::DIFile *Unit) { in CreateType() argument
3122 return DBuilder.createArrayType(Size, Align, getOrCreateType(EltTy, Unit), in CreateType()
3127 llvm::DIFile *Unit) { in CreateType() argument
3129 Ty->getPointeeType(), Unit); in CreateType()
3133 llvm::DIFile *Unit) { in CreateType() argument
3140 return CreatePointerLikeType(Tag, Ty, Ty->getPointeeType(), Unit); in CreateType()
3380 llvm::DIType *CGDebugInfo::getOrCreateType(QualType Ty, llvm::DIFile *Unit) { in getOrCreateType() argument
3397 llvm::DIType *Res = CreateTypeNode(Ty, Unit); in getOrCreateType()
3441 llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit) { in CreateTypeNode() argument
3444 return CreateQualifiedType(Ty, Unit); in CreateTypeNode()
3457 return CreateType(cast<VectorType>(Ty), Unit); in CreateTypeNode()
3459 return CreateType(cast<ConstantMatrixType>(Ty), Unit); in CreateTypeNode()
3461 return CreateType(cast<ObjCObjectPointerType>(Ty), Unit); in CreateTypeNode()
3463 return CreateType(cast<ObjCObjectType>(Ty), Unit); in CreateTypeNode()
3465 return CreateType(cast<ObjCTypeParamType>(Ty), Unit); in CreateTypeNode()
3467 return CreateType(cast<ObjCInterfaceType>(Ty), Unit); in CreateTypeNode()
3473 return CreateType(cast<PointerType>(Ty), Unit); in CreateTypeNode()
3475 return CreateType(cast<BlockPointerType>(Ty), Unit); in CreateTypeNode()
3477 return CreateType(cast<TypedefType>(Ty), Unit); in CreateTypeNode()
3484 return CreateType(cast<FunctionType>(Ty), Unit); in CreateTypeNode()
3488 return CreateType(cast<ArrayType>(Ty), Unit); in CreateTypeNode()
3491 return CreateType(cast<LValueReferenceType>(Ty), Unit); in CreateTypeNode()
3493 return CreateType(cast<RValueReferenceType>(Ty), Unit); in CreateTypeNode()
3496 return CreateType(cast<MemberPointerType>(Ty), Unit); in CreateTypeNode()
3499 return CreateType(cast<AtomicType>(Ty), Unit); in CreateTypeNode()
3504 return CreateType(cast<PipeType>(Ty), Unit); in CreateTypeNode()
3507 return CreateType(cast<TemplateSpecializationType>(Ty), Unit); in CreateTypeNode()
3677 llvm::DIType *CGDebugInfo::CreateMemberType(llvm::DIFile *Unit, QualType FType, in CreateMemberType() argument
3679 llvm::DIType *FieldTy = CGDebugInfo::getOrCreateType(FType, Unit); in CreateMemberType()
3683 DBuilder.createMemberType(Unit, Name, Unit, 0, FieldSize, FieldAlign, in CreateMemberType()
3689 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit, in collectFunctionDeclProps() argument
3731 TParamsArray = CollectFunctionTemplateParams(FD, Unit); in collectFunctionDeclProps()
3735 void CGDebugInfo::collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit, in collectVarDeclProps() argument
3740 Unit = getOrCreateFile(VD->getLocation()); in collectVarDeclProps()
3763 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VD, &*Unit); in collectVarDeclProps()
3797 llvm::DIFile *Unit = getOrCreateFile(Loc); in getFunctionFwdDeclOrStub() local
3798 llvm::DIScope *DContext = Unit; in getFunctionFwdDeclOrStub()
3800 collectFunctionDeclProps(GD, Unit, Name, LinkageName, DContext, TParamsArray, in getFunctionFwdDeclOrStub()
3821 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
3822 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3827 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
3828 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
3850 llvm::DIFile *Unit = getOrCreateFile(Loc); in getGlobalVariableForwardDeclaration() local
3851 llvm::DIScope *DContext = Unit; in getGlobalVariableForwardDeclaration()
3855 collectVarDeclProps(VD, Unit, Line, T, Name, LinkageName, TemplateParameters, in getGlobalVariableForwardDeclaration()
3859 DContext, Name, LinkageName, Unit, Line, getOrCreateType(T, Unit), in getGlobalVariableForwardDeclaration()
4080 llvm::DIFile *Unit = getOrCreateFile(Loc); in emitFunctionStart() local
4081 llvm::DIScope *FDContext = Unit; in emitFunctionStart()
4097 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in emitFunctionStart()
4143 llvm::DISubroutineType *DIFnType = getOrCreateFunctionType(D, FnType, Unit); in emitFunctionStart()
4159 FDContext, Name, LinkageName, Unit, LineNo, DIFnType, ScopeLine, in emitFunctionStart()
4190 llvm::DIFile *Unit = getOrCreateFile(Loc); in EmitFunctionDecl() local
4193 IsDeclForCallSite ? Unit : getDeclContextDescriptor(D); in EmitFunctionDecl()
4197 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in EmitFunctionDecl()
4221 llvm::DISubroutineType *STy = getOrCreateFunctionType(D, FnType, Unit); in EmitFunctionDecl()
4223 DBuilder.createFunction(FDContext, Name, LinkageName, Unit, LineNo, STy, in EmitFunctionDecl()
4237 SP, PD->getName(), ArgNo, Unit, LineNo, ParamTypes[ArgNo], true, in EmitFunctionDecl()
4385 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitTypeForVarWithBlocksAttr() local
4390 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4391 EltTys.push_back(CreateMemberType(Unit, FType, "__forwarding", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4393 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4394 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4400 CreateMemberType(Unit, FType, "__copy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4402 CreateMemberType(Unit, FType, "__destroy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4411 CreateMemberType(Unit, FType, "__byref_variable_layout", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4426 EltTys.push_back(CreateMemberType(Unit, FType, "", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4431 llvm::DIType *WrappedTy = getOrCreateType(FType, Unit); in EmitTypeForVarWithBlocksAttr()
4437 Unit, VD->getName(), Unit, 0, FieldSize, FieldAlign, FieldOffset, in EmitTypeForVarWithBlocksAttr()
4443 return {DBuilder.createStructType(Unit, "", Unit, 0, FieldOffset, 0, in EmitTypeForVarWithBlocksAttr()
4461 llvm::DIFile *Unit = nullptr; in EmitDeclare() local
4463 Unit = getOrCreateFile(VD->getLocation()); in EmitDeclare()
4469 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclare()
4537 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in EmitDeclare()
4547 Scope, FieldName, Unit, Line, FieldTy, CGM.getLangOpts().Optimize, in EmitDeclare()
4573 D = DBuilder.createParameterVariable(Scope, Name, *ArgNo, Unit, Line, Ty, in EmitDeclare()
4616 D = DBuilder.createAutoVariable(Scope, Name, Unit, Line, Ty, in EmitDeclare()
4642 llvm::DIFile *Unit = getOrCreateFile(BD->getLocation()); in EmitDeclare() local
4643 llvm::DIType *Ty = getOrCreateType(BD->getType(), Unit); in EmitDeclare()
4671 Scope, Name, Unit, Line, Ty, CGM.getLangOpts().Optimize, in EmitDeclare()
4736 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); in EmitLabel() local
4746 DBuilder.createLabel(Scope, Name, Unit, Line, CGM.getLangOpts().Optimize); in EmitLabel()
4777 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitDeclareOfBlockDeclRefVariable() local
4782 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclareOfBlockDeclRefVariable()
4822 cast<llvm::DILocalScope>(LexicalBlockStack.back()), VD->getName(), Unit, in EmitDeclareOfBlockDeclRefVariable()
4854 const llvm::StructLayout &BlockLayout, llvm::DIFile *Unit, in collectDefaultFieldsForBlockLiteralDeclare() argument
4862 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4865 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4869 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4872 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4875 BlockLayout.getElementOffsetInBits(2), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4880 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
4886 Loc, AS_public, BlockLayout.getElementOffsetInBits(4), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5036 const RecordDecl *RD, llvm::DIFile *Unit, unsigned LineNo, in CollectAnonRecordDecls() argument
5041 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CollectAnonRecordDecls()
5047 GVE = CollectAnonRecordDecls(RT->getDecl(), Unit, LineNo, LinkageName, in CollectAnonRecordDecls()
5053 DContext, FieldName, LinkageName, Unit, LineNo, FieldTy, in CollectAnonRecordDecls()
5305 llvm::DIFile *Unit = nullptr; in EmitGlobalVariable() local
5311 collectVarDeclProps(D, Unit, LineNo, T, DeclName, LinkageName, in EmitGlobalVariable()
5325 GVE = CollectAnonRecordDecls(RD, Unit, LineNo, LinkageName, Var, DContext); in EmitGlobalVariable()
5343 DContext, DeclName, LinkageName, Unit, LineNo, getOrCreateType(T, Unit), in EmitGlobalVariable()
5363 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitGlobalVariable() local
5365 llvm::DIType *Ty = getOrCreateType(VD->getType(), Unit); in EmitGlobalVariable()
5383 getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit); in EmitGlobalVariable()
5436 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VarD, &*Unit); in EmitGlobalVariable()
5441 DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty, in EmitGlobalVariable()
5453 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); in EmitExternalVariable() local
5455 llvm::DIType *Ty = getOrCreateType(D->getType(), Unit); in EmitExternalVariable()
5460 DContext, Name, StringRef(), Unit, getLineNumber(D->getLocation()), in EmitExternalVariable()
5655 ? CreateTypeDefinition(E.Type, E.Unit) in finalize()