Lines Matching refs:Unit

1008                                                llvm::DIFile *Unit) {  in CreateQualifiedType()  argument
1019 return getOrCreateType(QualType(T, 0), Unit); in CreateQualifiedType()
1022 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType()
1030 llvm::DIFile *Unit) { in CreateQualifiedType() argument
1046 Unit); in CreateQualifiedType()
1054 llvm::DIFile *Unit) { in CreateType() argument
1060 return getOrCreateType(CGM.getContext().getObjCIdType(), Unit); in CreateType()
1063 Ty->getPointeeType(), Unit); in CreateType()
1067 llvm::DIFile *Unit) { in CreateType() argument
1069 Ty->getPointeeType(), Unit); in CreateType()
1210 llvm::DIFile *Unit) { in CreatePointerLikeType() argument
1239 return DBuilder.createReferenceType(Tag, getOrCreateType(PointeeTy, Unit), in CreatePointerLikeType()
1242 return DBuilder.createPointerType(getOrCreateType(PointeeTy, Unit), Size, in CreatePointerLikeType()
1259 const BlockPointerType *Ty, llvm::DIFile *Unit, llvm::DIDerivedType *DescTy, in collectDefaultElementTypesForBlockPointer() argument
1272 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1273 EltTys.push_back(CreateMemberType(Unit, FType, "__align", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1276 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1278 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1279 EltTys.push_back(CreateMemberType(Unit, FType, "__reserved", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1281 EltTys.push_back(CreateMemberType(Unit, FType, "__FuncPtr", &FieldOffset)); in collectDefaultElementTypesForBlockPointer()
1286 Unit, "__descriptor", nullptr, LineNo, FieldSize, FieldAlign, in collectDefaultElementTypesForBlockPointer()
1295 llvm::DIFile *Unit) { in CreateType() argument
1303 EltTys.push_back(CreateMemberType(Unit, FType, "reserved", &FieldOffset)); in CreateType()
1304 EltTys.push_back(CreateMemberType(Unit, FType, "Size", &FieldOffset)); in CreateType()
1312 DBuilder.createStructType(Unit, "__block_descriptor", nullptr, 0, in CreateType()
1320 FieldOffset = collectDefaultElementTypesForBlockPointer(Ty, Unit, DescTy, in CreateType()
1329 EltTy = DBuilder.createStructType(Unit, "", nullptr, 0, FieldOffset, 0, in CreateType()
1374 llvm::DIFile *Unit) { in CreateType() argument
1376 llvm::DIType *Src = getOrCreateType(Ty->getAliasedType(), Unit); in CreateType()
1434 getDeclContextDescriptor(AliasDecl), CollectTemplateParams(Args, Unit)); in CreateType()
1482 llvm::DIFile *Unit) { in CreateType() argument
1484 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit); in CreateType()
1571 llvm::DIFile *Unit) { in CreateType() argument
1574 if (llvm::DIType *QTy = CreateQualifiedType(FPT, Unit)) in CreateType()
1583 EltTys.push_back(getOrCreateType(Ty->getReturnType(), Unit)); in CreateType()
1593 EltTys.push_back(getOrCreateType(ParamType, Unit)); in CreateType()
1940 llvm::DIFile *Unit) { in getOrCreateMethodType() argument
1944 getOrCreateType(QualType(Func, 0), Unit)); in getOrCreateMethodType()
1945 return getOrCreateInstanceMethodType(Method->getThisType(), Func, Unit); in getOrCreateMethodType()
1949 QualType ThisPtr, const FunctionProtoType *Func, llvm::DIFile *Unit) { in getOrCreateInstanceMethodType() argument
1967 Unit)); in getOrCreateInstanceMethodType()
1984 getOrCreateType(ThisPtrTy->getPointeeType(), Unit); in getOrCreateInstanceMethodType()
1994 llvm::DIType *ThisPtrType = getOrCreateType(ThisPtr, Unit); in getOrCreateInstanceMethodType()
2021 const CXXMethodDecl *Method, llvm::DIFile *Unit, llvm::DIType *RecordTy) { in CreateCXXMemberFunction() argument
2026 llvm::DISubroutineType *MethodTy = getOrCreateMethodType(Method, Unit); in CreateCXXMemberFunction()
2127 llvm::DINodeArray TParamsArray = CollectFunctionTemplateParams(Method, Unit); in CreateCXXMemberFunction()
2139 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXMemberFunctions() argument
2171 ? CreateCXXMemberFunction(Method, Unit, RecordTy) in CollectCXXMemberFunctions()
2176 void CGDebugInfo::CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBases() argument
2180 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->bases(), SeenTypes, in CollectCXXBases()
2186 CollectCXXBasesAux(RD, Unit, EltTys, RecordTy, RD->vbases(), SeenTypes, in CollectCXXBases()
2192 const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectCXXBasesAux() argument
2203 auto *BaseTy = getOrCreateType(BI.getType(), Unit); in CollectCXXBasesAux()
2240 llvm::DIFile *Unit) { in CollectTemplateParams() argument
2254 llvm::DIType *TTy = getOrCreateType(TA.getAsType(), Unit); in CollectTemplateParams()
2260 llvm::DIType *TTy = getOrCreateType(TA.getIntegralType(), Unit); in CollectTemplateParams()
2268 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2313 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2332 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2350 CollectTemplateParams({{nullptr, TA.getPackAsArray()}}, Unit))); in CollectTemplateParams()
2359 llvm::DIType *TTy = getOrCreateType(T, Unit); in CollectTemplateParams()
2413 llvm::DIFile *Unit) { in CollectFunctionTemplateParams() argument
2414 return CollectTemplateParams(GetTemplateArgs(FD), Unit); in CollectFunctionTemplateParams()
2418 llvm::DIFile *Unit) { in CollectVarTemplateParams() argument
2419 return CollectTemplateParams(GetTemplateArgs(VL), Unit); in CollectVarTemplateParams()
2423 llvm::DIFile *Unit) { in CollectCXXTemplateParams() argument
2424 return CollectTemplateParams(GetTemplateArgs(RD), Unit); in CollectCXXTemplateParams()
2441 llvm::DIType *CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile *Unit) { in getOrCreateVTablePtrType() argument
2448 llvm::Metadata *STy = getOrCreateType(Context.IntTy, Unit); in getOrCreateVTablePtrType()
2521 void CGDebugInfo::CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile *Unit, in CollectVTableInfo() argument
2567 VPtrTy = getOrCreateVTablePtrType(Unit); in CollectVTableInfo()
2571 DBuilder.createMemberType(Unit, getVTableName(RD), Unit, 0, Size, 0, 0, in CollectVTableInfo()
2827 llvm::DIFile *Unit) { in GetPreferredNameType() argument
2835 return getOrCreateType(PNA->getTypedefType(), Unit); in GetPreferredNameType()
2903 llvm::DIFile *Unit) { in CreateType() argument
2905 return getOrCreateType(Ty->getBaseType(), Unit); in CreateType()
2909 llvm::DIFile *Unit) { in CreateType() argument
2915 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit), in CreateType()
2945 llvm::DIFile *Unit) { in CreateType() argument
2957 getDeclContextDescriptor(ID), Unit, 0); in CreateType()
2973 ObjCInterfaceCache.push_back(ObjCInterfaceCacheEntry(Ty, FwdDecl, Unit)); in CreateType()
2977 return CreateTypeDefinition(Ty, Unit); in CreateType()
3079 llvm::DIFile *Unit) { in CreateTypeDefinition() argument
3095 Mod ? Mod : Unit, ID->getName(), DefUnit, Line, Size, Align, Flags, in CreateTypeDefinition()
3111 getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit); in CreateTypeDefinition()
3166 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CreateTypeDefinition()
3256 llvm::DIFile *Unit) { in CreateType() argument
3271 return CreateType(CharVecTy->getAs<VectorType>(), Unit); in CreateType()
3274 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
3301 llvm::DIFile *Unit) { in CreateType() argument
3305 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit); in CreateType()
3327 llvm::DIType *CGDebugInfo::CreateType(const ArrayType *Ty, llvm::DIFile *Unit) { in CreateType() argument
3393 return DBuilder.createArrayType(Size, Align, getOrCreateType(EltTy, Unit), in CreateType()
3398 llvm::DIFile *Unit) { in CreateType() argument
3400 Ty->getPointeeType(), Unit); in CreateType()
3404 llvm::DIFile *Unit) { in CreateType() argument
3411 return CreatePointerLikeType(Tag, Ty, Ty->getPointeeType(), Unit); in CreateType()
3676 llvm::DIType *CGDebugInfo::getOrCreateType(QualType Ty, llvm::DIFile *Unit) { in getOrCreateType() argument
3693 llvm::DIType *Res = CreateTypeNode(Ty, Unit); in getOrCreateType()
3737 llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit) { in CreateTypeNode() argument
3740 return CreateQualifiedType(Ty, Unit); in CreateTypeNode()
3753 return CreateType(cast<VectorType>(Ty), Unit); in CreateTypeNode()
3755 return CreateType(cast<ConstantMatrixType>(Ty), Unit); in CreateTypeNode()
3757 return CreateType(cast<ObjCObjectPointerType>(Ty), Unit); in CreateTypeNode()
3759 return CreateType(cast<ObjCObjectType>(Ty), Unit); in CreateTypeNode()
3761 return CreateType(cast<ObjCTypeParamType>(Ty), Unit); in CreateTypeNode()
3763 return CreateType(cast<ObjCInterfaceType>(Ty), Unit); in CreateTypeNode()
3769 return CreateType(cast<PointerType>(Ty), Unit); in CreateTypeNode()
3771 return CreateType(cast<BlockPointerType>(Ty), Unit); in CreateTypeNode()
3773 return CreateType(cast<TypedefType>(Ty), Unit); in CreateTypeNode()
3780 return CreateType(cast<FunctionType>(Ty), Unit); in CreateTypeNode()
3785 return CreateType(cast<ArrayType>(Ty), Unit); in CreateTypeNode()
3788 return CreateType(cast<LValueReferenceType>(Ty), Unit); in CreateTypeNode()
3790 return CreateType(cast<RValueReferenceType>(Ty), Unit); in CreateTypeNode()
3793 return CreateType(cast<MemberPointerType>(Ty), Unit); in CreateTypeNode()
3796 return CreateType(cast<AtomicType>(Ty), Unit); in CreateTypeNode()
3801 return CreateType(cast<PipeType>(Ty), Unit); in CreateTypeNode()
3804 return CreateType(cast<TemplateSpecializationType>(Ty), Unit); in CreateTypeNode()
3975 llvm::DIType *CGDebugInfo::CreateMemberType(llvm::DIFile *Unit, QualType FType, in CreateMemberType() argument
3977 llvm::DIType *FieldTy = CGDebugInfo::getOrCreateType(FType, Unit); in CreateMemberType()
3981 DBuilder.createMemberType(Unit, Name, Unit, 0, FieldSize, FieldAlign, in CreateMemberType()
3987 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit, in collectFunctionDeclProps() argument
4030 TParamsArray = CollectFunctionTemplateParams(FD, Unit); in collectFunctionDeclProps()
4034 void CGDebugInfo::collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit, in collectVarDeclProps() argument
4039 Unit = getOrCreateFile(VD->getLocation()); in collectVarDeclProps()
4062 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VD, &*Unit); in collectVarDeclProps()
4096 llvm::DIFile *Unit = getOrCreateFile(Loc); in getFunctionFwdDeclOrStub() local
4097 llvm::DIScope *DContext = Unit; in getFunctionFwdDeclOrStub()
4099 collectFunctionDeclProps(GD, Unit, Name, LinkageName, DContext, TParamsArray, in getFunctionFwdDeclOrStub()
4120 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
4121 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
4126 DContext, Name, LinkageName, Unit, Line, in getFunctionFwdDeclOrStub()
4127 getOrCreateFunctionType(GD.getDecl(), FnType, Unit), 0, Flags, SPFlags, in getFunctionFwdDeclOrStub()
4149 llvm::DIFile *Unit = getOrCreateFile(Loc); in getGlobalVariableForwardDeclaration() local
4150 llvm::DIScope *DContext = Unit; in getGlobalVariableForwardDeclaration()
4154 collectVarDeclProps(VD, Unit, Line, T, Name, LinkageName, TemplateParameters, in getGlobalVariableForwardDeclaration()
4158 DContext, Name, LinkageName, Unit, Line, getOrCreateType(T, Unit), in getGlobalVariableForwardDeclaration()
4379 llvm::DIFile *Unit = getOrCreateFile(Loc); in emitFunctionStart() local
4380 llvm::DIScope *FDContext = Unit; in emitFunctionStart()
4396 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in emitFunctionStart()
4442 llvm::DISubroutineType *DIFnType = getOrCreateFunctionType(D, FnType, Unit); in emitFunctionStart()
4458 FDContext, Name, LinkageName, Unit, LineNo, DIFnType, ScopeLine, in emitFunctionStart()
4489 llvm::DIFile *Unit = getOrCreateFile(Loc); in EmitFunctionDecl() local
4492 IsDeclForCallSite ? Unit : getDeclContextDescriptor(D); in EmitFunctionDecl()
4496 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext, in EmitFunctionDecl()
4520 llvm::DISubroutineType *STy = getOrCreateFunctionType(D, FnType, Unit); in EmitFunctionDecl()
4522 FDContext, Name, LinkageName, Unit, LineNo, STy, ScopeLine, Flags, in EmitFunctionDecl()
4535 SP, PD->getName(), ArgNo, Unit, LineNo, ParamTypes[ArgNo], true, in EmitFunctionDecl()
4683 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitTypeForVarWithBlocksAttr() local
4688 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4689 EltTys.push_back(CreateMemberType(Unit, FType, "__forwarding", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4691 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4692 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4698 CreateMemberType(Unit, FType, "__copy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4700 CreateMemberType(Unit, FType, "__destroy_helper", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4709 CreateMemberType(Unit, FType, "__byref_variable_layout", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4724 EltTys.push_back(CreateMemberType(Unit, FType, "", &FieldOffset)); in EmitTypeForVarWithBlocksAttr()
4729 llvm::DIType *WrappedTy = getOrCreateType(FType, Unit); in EmitTypeForVarWithBlocksAttr()
4735 Unit, VD->getName(), Unit, 0, FieldSize, FieldAlign, FieldOffset, in EmitTypeForVarWithBlocksAttr()
4741 return {DBuilder.createStructType(Unit, "", Unit, 0, FieldOffset, 0, in EmitTypeForVarWithBlocksAttr()
4759 llvm::DIFile *Unit = nullptr; in EmitDeclare() local
4761 Unit = getOrCreateFile(VD->getLocation()); in EmitDeclare()
4767 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclare()
4835 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in EmitDeclare()
4845 Scope, FieldName, Unit, Line, FieldTy, CGM.getLangOpts().Optimize, in EmitDeclare()
4871 D = DBuilder.createParameterVariable(Scope, Name, *ArgNo, Unit, Line, Ty, in EmitDeclare()
4914 D = DBuilder.createAutoVariable(Scope, Name, Unit, Line, Ty, in EmitDeclare()
4940 llvm::DIFile *Unit = getOrCreateFile(BD->getLocation()); in EmitDeclare() local
4941 llvm::DIType *Ty = getOrCreateType(BD->getType(), Unit); in EmitDeclare()
4969 Scope, Name, Unit, Line, Ty, CGM.getLangOpts().Optimize, in EmitDeclare()
5059 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); in EmitLabel() local
5069 DBuilder.createLabel(Scope, Name, Unit, Line, CGM.getLangOpts().Optimize); in EmitLabel()
5100 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitDeclareOfBlockDeclRefVariable() local
5105 Ty = getOrCreateType(VD->getType(), Unit); in EmitDeclareOfBlockDeclRefVariable()
5145 cast<llvm::DILocalScope>(LexicalBlockStack.back()), VD->getName(), Unit, in EmitDeclareOfBlockDeclRefVariable()
5178 const llvm::StructLayout &BlockLayout, llvm::DIFile *Unit, in collectDefaultFieldsForBlockLiteralDeclare() argument
5186 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5189 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5193 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5196 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5199 BlockLayout.getElementOffsetInBits(2), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5204 Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5210 Loc, AS_public, BlockLayout.getElementOffsetInBits(4), Unit, Unit)); in collectDefaultFieldsForBlockLiteralDeclare()
5360 const RecordDecl *RD, llvm::DIFile *Unit, unsigned LineNo, in CollectAnonRecordDecls() argument
5365 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CollectAnonRecordDecls()
5371 GVE = CollectAnonRecordDecls(RT->getDecl(), Unit, LineNo, LinkageName, in CollectAnonRecordDecls()
5377 DContext, FieldName, LinkageName, Unit, LineNo, FieldTy, in CollectAnonRecordDecls()
5637 llvm::DIFile *Unit = nullptr; in EmitGlobalVariable() local
5643 collectVarDeclProps(D, Unit, LineNo, T, DeclName, LinkageName, in EmitGlobalVariable()
5657 GVE = CollectAnonRecordDecls(RD, Unit, LineNo, LinkageName, Var, DContext); in EmitGlobalVariable()
5675 DContext, DeclName, LinkageName, Unit, LineNo, getOrCreateType(T, Unit), in EmitGlobalVariable()
5695 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation()); in EmitGlobalVariable() local
5697 llvm::DIType *Ty = getOrCreateType(VD->getType(), Unit); in EmitGlobalVariable()
5715 getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit); in EmitGlobalVariable()
5751 llvm::DINodeArray parameterNodes = CollectVarTemplateParams(VarD, &*Unit); in EmitGlobalVariable()
5756 DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty, in EmitGlobalVariable()
5768 llvm::DIFile *Unit = getOrCreateFile(D->getLocation()); in EmitExternalVariable() local
5770 llvm::DIType *Ty = getOrCreateType(D->getType(), Unit); in EmitExternalVariable()
5775 DContext, Name, StringRef(), Unit, getLineNumber(D->getLocation()), in EmitExternalVariable()
5792 llvm::DIFile *Unit = DIL->getFile(); in EmitPseudoVariable() local
5793 llvm::DIType *Type = getOrCreateType(Ty, Unit); in EmitPseudoVariable()
6012 ? CreateTypeDefinition(E.Type, E.Unit) in finalize()