Lines Matching refs:Scope
259 Metadata *Scope;
263 MDNodeKeyImpl(unsigned Line, unsigned Column, Metadata *Scope,
265 : Line(Line), Column(Column), Scope(Scope), InlinedAt(InlinedAt),
268 : Line(L->getLine()), Column(L->getColumn()), Scope(L->getRawScope()),
273 Scope == RHS->getRawScope() && InlinedAt == RHS->getRawInlinedAt() &&
278 return hash_combine(Line, Column, Scope, InlinedAt, ImplicitCode);
466 Metadata *Scope;
476 Metadata *Scope, Metadata *BaseType, uint64_t SizeInBits,
480 : Tag(Tag), Name(Name), File(File), Line(Line), Scope(Scope),
486 Line(N->getLine()), Scope(N->getRawScope()),
495 Scope == RHS->getRawScope() && BaseType == RHS->getRawBaseType() &&
509 if (auto *CT = dyn_cast_or_null<DICompositeType>(Scope))
511 return hash_combine(Name, Scope);
517 return hash_combine(Tag, Name, File, Line, Scope, BaseType, Flags);
525 return isODRMember(LHS.Tag, LHS.Scope, LHS.Name, RHS);
535 static bool isODRMember(unsigned Tag, const Metadata *Scope,
541 auto *CT = dyn_cast_or_null<DICompositeType>(Scope);
547 Scope == RHS->getRawScope();
556 Metadata *Scope;
574 Metadata *Scope, Metadata *BaseType, uint64_t SizeInBits,
581 : Tag(Tag), Name(Name), File(File), Line(Line), Scope(Scope),
590 Line(N->getLine()), Scope(N->getRawScope()),
605 Scope == RHS->getRawScope() && BaseType == RHS->getRawBaseType() &&
625 return hash_combine(Name, File, Line, BaseType, Scope, Elements,
678 Metadata *Scope;
696 MDNodeKeyImpl(Metadata *Scope, MDString *Name, MDString *LinkageName,
703 : Scope(Scope), Name(Name), LinkageName(LinkageName), File(File),
710 : Scope(N->getRawScope()), Name(N->getRawName()),
723 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
745 if (auto *CT = dyn_cast_or_null<DICompositeType>(Scope))
747 return hash_combine(LinkageName, Scope);
753 return hash_combine(Name, Scope, File, Type, Line);
761 return isDeclarationOfODRMember(LHS.isDefinition(), LHS.Scope,
773 static bool isDeclarationOfODRMember(bool IsDefinition, const Metadata *Scope,
778 if (IsDefinition || !Scope || !LinkageName)
781 auto *CT = dyn_cast_or_null<DICompositeType>(Scope);
791 return IsDefinition == RHS->isDefinition() && Scope == RHS->getRawScope() &&
798 Metadata *Scope;
803 MDNodeKeyImpl(Metadata *Scope, Metadata *File, unsigned Line, unsigned Column)
804 : Scope(Scope), File(File), Line(Line), Column(Column) {}
806 : Scope(N->getRawScope()), File(N->getRawFile()), Line(N->getLine()),
810 return Scope == RHS->getRawScope() && File == RHS->getRawFile() &&
815 return hash_combine(Scope, File, Line, Column);
820 Metadata *Scope;
824 MDNodeKeyImpl(Metadata *Scope, Metadata *File, unsigned Discriminator)
825 : Scope(Scope), File(File), Discriminator(Discriminator) {}
827 : Scope(N->getRawScope()), File(N->getRawFile()),
831 return Scope == RHS->getRawScope() && File == RHS->getRawFile() &&
836 return hash_combine(Scope, File, Discriminator);
841 Metadata *Scope;
845 MDNodeKeyImpl(Metadata *Scope, MDString *Name, bool ExportSymbols)
846 : Scope(Scope), Name(Name), ExportSymbols(ExportSymbols) {}
848 : Scope(N->getRawScope()), Name(N->getRawName()),
852 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
857 return hash_combine(Scope, Name);
862 Metadata *Scope;
868 MDNodeKeyImpl(Metadata *Scope, Metadata *Decl, MDString *Name,
870 : Scope(Scope), Decl(Decl), Name(Name), File(File), LineNo(LineNo) {}
872 : Scope(N->getRawScope()), Decl(N->getRawDecl()), Name(N->getRawName()),
876 return Scope == RHS->getRawScope() && Decl == RHS->getRawDecl() &&
882 return hash_combine(Scope, Decl, Name, File, LineNo);
888 Metadata *Scope;
896 MDNodeKeyImpl(Metadata *File, Metadata *Scope, MDString *Name,
899 : File(File), Scope(Scope), Name(Name),
903 : File(N->getRawFile()), Scope(N->getRawScope()), Name(N->getRawName()),
910 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
919 return hash_combine(Scope, Name, ConfigurationMacros, IncludePath);
968 Metadata *Scope;
980 MDNodeKeyImpl(Metadata *Scope, MDString *Name, MDString *LinkageName,
985 : Scope(Scope), Name(Name), LinkageName(LinkageName), File(File),
991 : Scope(N->getRawScope()), Name(N->getRawName()),
1000 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
1019 return hash_combine(Scope, Name, LinkageName, File, Line, Type,
1026 Metadata *Scope;
1035 MDNodeKeyImpl(Metadata *Scope, MDString *Name, Metadata *File, unsigned Line,
1038 : Scope(Scope), Name(Name), File(File), Line(Line), Type(Type), Arg(Arg),
1041 : Scope(N->getRawScope()), Name(N->getRawName()), File(N->getRawFile()),
1046 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
1060 return hash_combine(Scope, Name, File, Line, Type, Arg, Flags);
1065 Metadata *Scope;
1070 MDNodeKeyImpl(Metadata *Scope, MDString *Name, Metadata *File, unsigned Line)
1071 : Scope(Scope), Name(Name), File(File), Line(Line) {}
1073 : Scope(N->getRawScope()), Name(N->getRawName()), File(N->getRawFile()),
1077 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
1083 return hash_combine(Scope, Name, Line);
1153 Metadata *Scope;
1159 MDNodeKeyImpl(unsigned Tag, Metadata *Scope, Metadata *Entity, Metadata *File,
1161 : Tag(Tag), Scope(Scope), Entity(Entity), File(File), Line(Line),
1164 : Tag(N->getTag()), Scope(N->getRawScope()), Entity(N->getRawEntity()),
1168 return Tag == RHS->getTag() && Scope == RHS->getRawScope() &&
1174 return hash_combine(Tag, Scope, Entity, File, Line, Name);