Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:Unit

455   // Create new compile unit.
618 llvm::DIFile *Unit) {
641 return getOrCreateType(QualType(T, 0), Unit);
644 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit);
652 llvm::DIFile *Unit) {
658 return getOrCreateType(CGM.getContext().getObjCIdType(), Unit);
661 Ty->getPointeeType(), Unit);
665 llvm::DIFile *Unit) {
667 Ty->getPointeeType(), Unit);
749 llvm::DIFile *Unit) {
759 return DBuilder.createReferenceType(Tag, getOrCreateType(PointeeTy, Unit),
762 return DBuilder.createPointerType(getOrCreateType(PointeeTy, Unit), Size,
778 llvm::DIFile *Unit) {
787 EltTys.push_back(CreateMemberType(Unit, FType, "reserved", &FieldOffset));
788 EltTys.push_back(CreateMemberType(Unit, FType, "Size", &FieldOffset));
797 DBuilder.createStructType(Unit, "__block_descriptor", nullptr, LineNo,
807 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset));
809 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset));
810 EltTys.push_back(CreateMemberType(Unit, FType, "__reserved", &FieldOffset));
812 EltTys.push_back(CreateMemberType(Unit, FType, "__FuncPtr", &FieldOffset));
817 EltTys.push_back(DBuilder.createMemberType(Unit, "__descriptor", nullptr, LineNo,
829 DBuilder.createStructType(Unit, "", nullptr, LineNo,
836 llvm::DIFile *Unit) {
838 llvm::DIType *Src = getOrCreateType(Ty->getAliasedType(), Unit);
859 llvm::DIFile *Unit) {
866 getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit),
905 llvm::DIFile *Unit) {
909 EltTys.push_back(getOrCreateType(Ty->getReturnType(), Unit));
917 EltTys.push_back(getOrCreateType(FPT->getParamType(i), Unit));
1138 llvm::DIFile *Unit) {
1142 getOrCreateType(QualType(Func, 0), Unit));
1144 Func, Unit);
1148 QualType ThisPtr, const FunctionProtoType *Func, llvm::DIFile *Unit) {
1151 cast<llvm::DISubroutineType>(getOrCreateType(QualType(Func, 0), Unit))
1169 llvm::DIType *PointeeType = getOrCreateType(PointeeTy, Unit);
1179 llvm::DIType *ThisPtrType = getOrCreateType(ThisPtr, Unit);
1212 const CXXMethodDecl *Method, llvm::DIFile *Unit, llvm::DIType *RecordTy) {
1217 llvm::DISubroutineType *MethodTy = getOrCreateMethodType(Method, Unit);
1301 llvm::DINodeArray TParamsArray = CollectFunctionTemplateParams(Method, Unit);
1314 const CXXRecordDecl *RD, llvm::DIFile *Unit,
1325 // unit.
1346 ? CreateCXXMemberFunction(Method, Unit, RecordTy)
1351 void CGDebugInfo::CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile *Unit,
1383 RecordTy, getOrCreateType(BI.getType(), Unit), BaseOffset, BFlags);
1391 llvm::DIFile *Unit) {
1400 llvm::DIType *TTy = getOrCreateType(TA.getAsType(), Unit);
1405 llvm::DIType *TTy = getOrCreateType(TA.getIntegralType(), Unit);
1413 llvm::DIType *TTy = getOrCreateType(T, Unit);
1443 llvm::DIType *TTy = getOrCreateType(T, Unit);
1469 CollectTemplateParams(nullptr, TA.getPackAsArray(), Unit)));
1478 llvm::DIType *TTy = getOrCreateType(T, Unit);
1494 llvm::DIFile *Unit) {
1501 TList, FD->getTemplateSpecializationArgs()->asArray(), Unit);
1507 const ClassTemplateSpecializationDecl *TSpecial, llvm::DIFile *Unit) {
1513 return CollectTemplateParams(TPList, TAList.asArray(), Unit);
1516 llvm::DIType *CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile *Unit) {
1523 llvm::Metadata *STy = getOrCreateType(Context.IntTy, Unit);
1538 void CGDebugInfo::CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile *Unit,
1552 Unit, getVTableName(RD), Unit, 0, Size, 0, 0,
1553 llvm::DINode::FlagArtificial, getOrCreateVTablePtrType(Unit));
1764 llvm::DIFile *Unit) {
1766 return getOrCreateType(Ty->getBaseType(), Unit);
1794 llvm::DIFile *Unit) {
1800 // and this is not the compile unit with the implementation of the type (which
1806 getDeclContextDescriptor(ID), Unit, 0);
1822 ObjCInterfaceCache.push_back(ObjCInterfaceCacheEntry(Ty, FwdDecl, Unit));
1826 return CreateTypeDefinition(Ty, Unit);
1888 llvm::DIFile *Unit) {
1904 Mod ? Mod : Unit, ID->getName(), DefUnit, Line, Size, Align, Flags,
1920 getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit);
1964 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit);
2049 llvm::DIFile *Unit) {
2050 llvm::DIType *ElementTy = getOrCreateType(Ty->getElementType(), Unit);
2066 llvm::DIType *CGDebugInfo::CreateType(const ArrayType *Ty, llvm::DIFile *Unit) {
2114 return DBuilder.createArrayType(Size, Align, getOrCreateType(EltTy, Unit),
2119 llvm::DIFile *Unit) {
2121 Ty->getPointeeType(), Unit);
2125 llvm::DIFile *Unit) {
2127 Ty->getPointeeType(), Unit);
2339 llvm::DIType *CGDebugInfo::getOrCreateType(QualType Ty, llvm::DIFile *Unit) {
2349 llvm::DIType *Res = CreateTypeNode(Ty, Unit);
2394 llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit) {
2397 return CreateQualifiedType(Ty, Unit);
2410 return CreateType(cast<VectorType>(Ty), Unit);
2412 return CreateType(cast<ObjCObjectPointerType>(Ty), Unit);
2414 return CreateType(cast<ObjCObjectType>(Ty), Unit);
2416 return CreateType(cast<ObjCInterfaceType>(Ty), Unit);
2422 return CreateType(cast<PointerType>(Ty), Unit);
2427 cast<PointerType>(cast<AdjustedType>(Ty)->getAdjustedType()), Unit);
2429 return CreateType(cast<BlockPointerType>(Ty), Unit);
2431 return CreateType(cast<TypedefType>(Ty), Unit);
2438 return CreateType(cast<FunctionType>(Ty), Unit);
2442 return CreateType(cast<ArrayType>(Ty), Unit);
2445 return CreateType(cast<LValueReferenceType>(Ty), Unit);
2447 return CreateType(cast<RValueReferenceType>(Ty), Unit);
2450 return CreateType(cast<MemberPointerType>(Ty), Unit);
2453 return CreateType(cast<AtomicType>(Ty), Unit);
2456 return CreateType(cast<PipeType>(Ty), Unit);
2459 return CreateType(cast<TemplateSpecializationType>(Ty), Unit);
2478 llvm::DIFile *Unit) {
2593 llvm::DIType *CGDebugInfo::CreateMemberType(llvm::DIFile *Unit, QualType FType,
2595 llvm::DIType *FieldTy = CGDebugInfo::getOrCreateType(FType, Unit);
2598 llvm::DIType *Ty = DBuilder.createMemberType(Unit, Name, Unit, 0, FieldSize,
2604 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
2635 TParamsArray = CollectFunctionTemplateParams(FD, Unit);
2639 void CGDebugInfo::collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit,
2643 Unit = getOrCreateFile(VD->getLocation());
2692 llvm::DIFile *Unit = getOrCreateFile(Loc);
2693 llvm::DIScope *DContext = Unit;
2696 collectFunctionDeclProps(FD, Unit, Name, LinkageName, DContext,
2706 DContext, Name, LinkageName, Unit, Line,
2707 getOrCreateFunctionType(FD, FnType, Unit), !FD->isExternallyVisible(),
2722 llvm::DIFile *Unit = getOrCreateFile(Loc);
2723 llvm::DIScope *DContext = Unit;
2726 collectVarDeclProps(VD, Unit, Line, T, Name, LinkageName, DContext);
2728 DContext, Name, LinkageName, Unit, Line, getOrCreateType(T, Unit),
2878 llvm::DIFile *Unit = getOrCreateFile(Loc);
2879 llvm::DIScope *FDContext = Unit;
2895 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext,
2923 FDContext, Name, LinkageName, Unit, LineNo,
2924 getOrCreateFunctionType(D, FnType, Unit), Fn->hasLocalLinkage(),
2951 llvm::DIFile *Unit = getOrCreateFile(Loc);
2956 collectFunctionDeclProps(GD, Unit, Name, LinkageName, FDContext,
2977 FDContext, Name, LinkageName, Unit, LineNo,
2978 getOrCreateFunctionType(D, FnType, Unit), false /*internalLinkage*/,
3055 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation());
3060 EltTys.push_back(CreateMemberType(Unit, FType, "__isa", &FieldOffset));
3061 EltTys.push_back(CreateMemberType(Unit, FType, "__forwarding", &FieldOffset));
3063 EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset));
3064 EltTys.push_back(CreateMemberType(Unit, FType, "__size", &FieldOffset));
3070 CreateMemberType(Unit, FType, "__copy_helper", &FieldOffset));
3072 CreateMemberType(Unit, FType, "__destroy_helper", &FieldOffset));
3081 CreateMemberType(Unit, FType, "__byref_variable_layout", &FieldOffset));
3096 EltTys.push_back(CreateMemberType(Unit, FType, "", &FieldOffset));
3101 llvm::DIType *FieldTy = getOrCreateType(FType, Unit);
3106 FieldTy = DBuilder.createMemberType(Unit, VD->getName(), Unit, 0, FieldSize,
3115 return DBuilder.createStructType(Unit, "", Unit, 0, FieldOffset, 0, Flags,
3130 llvm::DIFile *Unit = nullptr;
3132 Unit = getOrCreateFile(VD->getLocation());
3138 Ty = getOrCreateType(VD->getType(), Unit);
3188 *ArgNo, Unit, Line, Ty)
3189 : DBuilder.createAutoVariable(Scope, VD->getName(), Unit,
3212 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit);
3221 Scope, FieldName, Unit, Line, FieldTy, CGM.getLangOpts().Optimize,
3235 ? DBuilder.createParameterVariable(Scope, Name, *ArgNo, Unit, Line,
3238 : DBuilder.createAutoVariable(Scope, Name, Unit, Line, Ty,
3276 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation());
3281 Ty = getOrCreateType(VD->getType(), Unit);
3319 cast<llvm::DILocalScope>(LexicalBlockStack.back()), VD->getName(), Unit,
3519 const RecordDecl *RD, llvm::DIFile *Unit, unsigned LineNo,
3524 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit);
3531 GV = CollectAnonRecordDecls(RT->getDecl(), Unit, LineNo, LinkageName,
3536 GV = DBuilder.createGlobalVariable(DContext, FieldName, LinkageName, Unit,
3549 llvm::DIFile *Unit = nullptr;
3554 collectVarDeclProps(D, Unit, LineNo, T, DeclName, LinkageName, DContext);
3567 GV = CollectAnonRecordDecls(RD, Unit, LineNo, LinkageName, Var, DContext);
3570 DContext, DeclName, LinkageName, Unit, LineNo, getOrCreateType(T, Unit),
3583 llvm::DIFile *Unit = getOrCreateFile(VD->getLocation());
3585 llvm::DIType *Ty = getOrCreateType(VD->getType(), Unit);
3589 Ty = getOrCreateType(QualType(ED->getTypeForDecl(), 0), Unit);
3619 DContext, Name, StringRef(), Unit, getLineNumber(VD->getLocation()), Ty,
3711 assert(TheCU && "no main compile unit");
3722 ? CreateTypeDefinition(E.Type, E.Unit)