Lines Matching refs:Scope
247 Metadata *Scope;
250 MDNodeKeyImpl(unsigned Line, unsigned Column, Metadata *Scope,
252 : Line(Line), Column(Column), Scope(Scope), InlinedAt(InlinedAt) {}
255 : Line(L->getLine()), Column(L->getColumn()), Scope(L->getRawScope()),
260 Scope == RHS->getRawScope() && InlinedAt == RHS->getRawInlinedAt();
263 return hash_combine(Line, Column, Scope, InlinedAt);
348 Metadata *Scope;
357 Metadata *Scope, Metadata *BaseType, uint64_t SizeInBits,
360 : Tag(Tag), Name(Name), File(File), Line(Line), Scope(Scope),
365 Line(N->getLine()), Scope(N->getRawScope()),
373 Scope == RHS->getRawScope() && BaseType == RHS->getRawBaseType() &&
384 if (auto *CT = dyn_cast_or_null<DICompositeType>(Scope))
386 return hash_combine(Name, Scope);
392 return hash_combine(Tag, Name, File, Line, Scope, BaseType, Flags);
399 return isODRMember(LHS.Tag, LHS.Scope, LHS.Name, RHS);
408 static bool isODRMember(unsigned Tag, const Metadata *Scope,
414 auto *CT = dyn_cast_or_null<DICompositeType>(Scope);
420 Scope == RHS->getRawScope();
429 Metadata *Scope;
442 Metadata *Scope, Metadata *BaseType, uint64_t SizeInBits,
447 : Tag(Tag), Name(Name), File(File), Line(Line), Scope(Scope),
454 Line(N->getLine()), Scope(N->getRawScope()),
465 Scope == RHS->getRawScope() && BaseType == RHS->getRawBaseType() &&
480 return hash_combine(Name, File, Line, BaseType, Scope, Elements,
519 Metadata *Scope;
539 MDNodeKeyImpl(Metadata *Scope, MDString *Name, MDString *LinkageName,
546 : Scope(Scope), Name(Name), LinkageName(LinkageName), File(File),
555 : Scope(N->getRawScope()), Name(N->getRawName()),
567 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
588 if (auto *CT = dyn_cast_or_null<DICompositeType>(Scope))
590 return hash_combine(LinkageName, Scope);
596 return hash_combine(Name, Scope, File, Type, Line);
603 return isDeclarationOfODRMember(LHS.IsDefinition, LHS.Scope,
613 static bool isDeclarationOfODRMember(bool IsDefinition, const Metadata *Scope,
617 if (IsDefinition || !Scope || !LinkageName)
620 auto *CT = dyn_cast_or_null<DICompositeType>(Scope);
625 return IsDefinition == RHS->isDefinition() && Scope == RHS->getRawScope() &&
631 Metadata *Scope;
636 MDNodeKeyImpl(Metadata *Scope, Metadata *File, unsigned Line, unsigned Column)
637 : Scope(Scope), File(File), Line(Line), Column(Column) {}
639 : Scope(N->getRawScope()), File(N->getRawFile()), Line(N->getLine()),
643 return Scope == RHS->getRawScope() && File == RHS->getRawFile() &&
647 return hash_combine(Scope, File, Line, Column);
652 Metadata *Scope;
656 MDNodeKeyImpl(Metadata *Scope, Metadata *File, unsigned Discriminator)
657 : Scope(Scope), File(File), Discriminator(Discriminator) {}
659 : Scope(N->getRawScope()), File(N->getRawFile()),
663 return Scope == RHS->getRawScope() && File == RHS->getRawFile() &&
667 return hash_combine(Scope, File, Discriminator);
672 Metadata *Scope;
677 MDNodeKeyImpl(Metadata *Scope, Metadata *File, MDString *Name, unsigned Line)
678 : Scope(Scope), File(File), Name(Name), Line(Line) {}
680 : Scope(N->getRawScope()), File(N->getRawFile()), Name(N->getRawName()),
684 return Scope == RHS->getRawScope() && File == RHS->getRawFile() &&
688 return hash_combine(Scope, File, Name, Line);
693 Metadata *Scope;
698 MDNodeKeyImpl(Metadata *Scope, MDString *Name, MDString *ConfigurationMacros,
700 : Scope(Scope), Name(Name), ConfigurationMacros(ConfigurationMacros),
703 : Scope(N->getRawScope()), Name(N->getRawName()),
708 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
714 return hash_combine(Scope, Name,
753 Metadata *Scope;
764 MDNodeKeyImpl(Metadata *Scope, MDString *Name, MDString *LinkageName,
768 : Scope(Scope), Name(Name), LinkageName(LinkageName), File(File),
773 : Scope(N->getRawScope()), Name(N->getRawName()),
781 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
791 return hash_combine(Scope, Name, LinkageName, File, Line, Type,
798 Metadata *Scope;
806 MDNodeKeyImpl(Metadata *Scope, MDString *Name, Metadata *File, unsigned Line,
808 : Scope(Scope), Name(Name), File(File), Line(Line), Type(Type), Arg(Arg),
811 : Scope(N->getRawScope()), Name(N->getRawName()), File(N->getRawFile()),
816 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
822 return hash_combine(Scope, Name, File, Line, Type, Arg, Flags);
873 Metadata *Scope;
878 MDNodeKeyImpl(unsigned Tag, Metadata *Scope, Metadata *Entity, unsigned Line,
880 : Tag(Tag), Scope(Scope), Entity(Entity), Line(Line), Name(Name) {}
882 : Tag(N->getTag()), Scope(N->getRawScope()), Entity(N->getRawEntity()),
886 return Tag == RHS->getTag() && Scope == RHS->getRawScope() &&
891 return hash_combine(Tag, Scope, Entity, Line, Name);
1153 int getOrAddScopeInlinedAtIdxEntry(MDNode *Scope, MDNode *IA,int ExistingIdx);