Lines Matching full:rhs

88   static bool isEqual(const APFloat &LHS, const APFloat &RHS) {
89 return LHS.bitwiseIsEqual(RHS);
130 static bool isEqual(const KeyTy &LHS, const StructType *RHS) {
131 if (RHS == getEmptyKey() || RHS == getTombstoneKey())
133 return LHS == KeyTy(RHS);
136 static bool isEqual(const StructType *LHS, const StructType *RHS) {
137 return LHS == RHS;
183 static bool isEqual(const KeyTy &LHS, const FunctionType *RHS) {
184 if (RHS == getEmptyKey() || RHS == getTombstoneKey())
186 return LHS == KeyTy(RHS);
189 static bool isEqual(const FunctionType *LHS, const FunctionType *RHS) {
190 return LHS == RHS;
232 static bool isEqual(const KeyTy &LHS, const TargetExtType *RHS) {
233 if (RHS == getEmptyKey() || RHS == getTombstoneKey())
235 return LHS == KeyTy(RHS);
238 static bool isEqual(const TargetExtType *LHS, const TargetExtType *RHS) {
239 return LHS == RHS;
258 bool compareOps(const NodeTy *RHS, unsigned Offset = 0) const {
259 if (getHash() != RHS->getHash())
263 return RawOps.empty() ? compareOps(Ops, RHS, Offset)
264 : compareOps(RawOps, RHS, Offset);
271 static bool compareOps(ArrayRef<T> Ops, const MDNode *RHS, unsigned Offset) {
272 if (Ops.size() != RHS->getNumOperands() - Offset)
274 return std::equal(Ops.begin(), Ops.end(), RHS->op_begin() + Offset);
289 static bool isSubsetEqual(const KeyTy &LHS, const NodeTy *RHS) {
293 static bool isSubsetEqual(const NodeTy *LHS, const NodeTy *RHS) {
306 bool isKeyOf(const MDTuple *RHS) const { return compareOps(RHS); }
331 bool isKeyOf(const DILocation *RHS) const {
332 return Line == RHS->getLine() && Column == RHS->getColumn() &&
333 Scope == RHS->getRawScope() && InlinedAt == RHS->getRawInlinedAt() &&
334 ImplicitCode == RHS->isImplicitCode();
352 bool isKeyOf(const GenericDINode *RHS) const {
353 return Tag == RHS->getTag() && Header == RHS->getRawHeader() &&
354 compareOps(RHS, 1);
378 bool isKeyOf(const DISubrange *RHS) const {
394 return BoundsEqual(CountNode, RHS->getRawCountNode()) &&
395 BoundsEqual(LowerBound, RHS->getRawLowerBound()) &&
396 BoundsEqual(UpperBound, RHS->getRawUpperBound()) &&
397 BoundsEqual(Stride, RHS->getRawStride());
423 bool isKeyOf(const DIGenericSubrange *RHS) const {
424 return (CountNode == RHS->getRawCountNode()) &&
425 (LowerBound == RHS->getRawLowerBound()) &&
426 (UpperBound == RHS->getRawUpperBound()) &&
427 (Stride == RHS->getRawStride());
453 bool isKeyOf(const DIEnumerator *RHS) const {
454 return Value.getBitWidth() == RHS->getValue().getBitWidth() &&
455 Value == RHS->getValue() && IsUnsigned == RHS->isUnsigned() &&
456 Name == RHS->getRawName();
483 bool isKeyOf(const DIBasicType *RHS) const {
484 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
485 SizeInBits == RHS->getSizeInBits() &&
486 AlignInBits == RHS->getAlignInBits() &&
487 Encoding == RHS->getEncoding() &&
488 NumExtraInhabitants == RHS->getNumExtraInhabitants() &&
489 Flags == RHS->getFlags();
521 bool isKeyOf(const DIStringType *RHS) const {
522 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
523 StringLength == RHS->getRawStringLength() &&
524 StringLengthExp == RHS->getRawStringLengthExp() &&
525 StringLocationExp == RHS->getRawStringLocationExp() &&
526 SizeInBits == RHS->getSizeInBits() &&
527 AlignInBits == RHS->getAlignInBits() &&
528 Encoding == RHS->getEncoding();
575 bool isKeyOf(const DIDerivedType *RHS) const {
576 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
577 File == RHS->getRawFile() && Line == RHS->getLine() &&
578 Scope == RHS->getRawScope() && BaseType == RHS->getRawBaseType() &&
579 SizeInBits == RHS->getSizeInBits() &&
580 AlignInBits == RHS->getAlignInBits() &&
581 OffsetInBits == RHS->getOffsetInBits() &&
582 DWARFAddressSpace == RHS->getDWARFAddressSpace() &&
583 PtrAuthData == RHS->getPtrAuthData() && Flags == RHS->getFlags() &&
584 ExtraData == RHS->getRawExtraData() &&
585 Annotations == RHS->getRawAnnotations();
608 static bool isSubsetEqual(const KeyTy &LHS, const DIDerivedType *RHS) {
609 return isODRMember(LHS.Tag, LHS.Scope, LHS.Name, RHS);
613 const DIDerivedType *RHS) {
615 RHS);
621 const MDString *Name, const DIDerivedType *RHS) {
630 // Compare to the RHS.
631 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
632 Scope == RHS->getRawScope();
695 bool isKeyOf(const DICompositeType *RHS) const {
696 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
697 File == RHS->getRawFile() && Line == RHS->getLine() &&
698 Scope == RHS->getRawScope() && BaseType == RHS->getRawBaseType() &&
699 SizeInBits == RHS->getSizeInBits() &&
700 AlignInBits == RHS->getAlignInBits() &&
701 OffsetInBits == RHS->getOffsetInBits() && Flags == RHS->getFlags() &&
702 Elements == RHS->getRawElements() &&
703 RuntimeLang == RHS->getRuntimeLang() &&
704 VTableHolder == RHS->getRawVTableHolder() &&
705 TemplateParams == RHS->getRawTemplateParams() &&
706 Identifier == RHS->getRawIdentifier() &&
707 Discriminator == RHS->getRawDiscriminator() &&
708 DataLocation == RHS->getRawDataLocation() &&
709 Associated == RHS->getRawAssociated() &&
710 Allocated == RHS->getRawAllocated() && Rank == RHS->getRawRank() &&
711 Annotations == RHS->getRawAnnotations() &&
712 Specification == RHS->getSpecification() &&
713 NumExtraInhabitants == RHS->getNumExtraInhabitants();
736 bool isKeyOf(const DISubroutineType *RHS) const {
737 return Flags == RHS->getFlags() && CC == RHS->getCC() &&
738 TypeArray == RHS->getRawTypeArray();
759 bool isKeyOf(const DIFile *RHS) const {
760 return Filename == RHS->getRawFilename() &&
761 Directory == RHS->getRawDirectory() &&
762 Checksum == RHS->getRawChecksum() && Source == RHS->getRawSource();
822 bool isKeyOf(const DISubprogram *RHS) const {
823 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
824 LinkageName == RHS->getRawLinkageName() &&
825 File == RHS->getRawFile() && Line == RHS->getLine() &&
826 Type == RHS->getRawType() && ScopeLine == RHS->getScopeLine() &&
827 ContainingType == RHS->getRawContainingType() &&
828 VirtualIndex == RHS->getVirtualIndex() &&
829 ThisAdjustment == RHS->getThisAdjustment() &&
830 Flags == RHS->getFlags() && SPFlags == RHS->getSPFlags() &&
831 Unit == RHS->getUnit() &&
832 TemplateParams == RHS->getRawTemplateParams() &&
833 Declaration == RHS->getRawDeclaration() &&
834 RetainedNodes == RHS->getRawRetainedNodes() &&
835 ThrownTypes == RHS->getRawThrownTypes() &&
836 Annotations == RHS->getRawAnnotations() &&
837 TargetFuncName == RHS->getRawTargetFuncName();
869 static bool isSubsetEqual(const KeyTy &LHS, const DISubprogram *RHS) {
871 LHS.LinkageName, LHS.TemplateParams, RHS);
874 static bool isSubsetEqual(const DISubprogram *LHS, const DISubprogram *RHS) {
877 LHS->getRawTemplateParams(), RHS);
885 const DISubprogram *RHS) {
894 // Compare to the RHS.
900 return IsDefinition == RHS->isDefinition() && Scope == RHS->getRawScope() &&
901 LinkageName == RHS->getRawLinkageName() &&
902 TemplateParams == RHS->getRawTemplateParams();
918 bool isKeyOf(const DILexicalBlock *RHS) const {
919 return Scope == RHS->getRawScope() && File == RHS->getRawFile() &&
920 Line == RHS->getLine() && Column == RHS->getColumn();
939 bool isKeyOf(const DILexicalBlockFile *RHS) const {
940 return Scope == RHS->getRawScope() && File == RHS->getRawFile() &&
941 Discriminator == RHS->getDiscriminator();
960 bool isKeyOf(const DINamespace *RHS) const {
961 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
962 ExportSymbols == RHS->getExportSymbols();
982 bool isKeyOf(const DICommonBlock *RHS) const {
983 return Scope == RHS->getRawScope() && Decl == RHS->getRawDecl() &&
984 Name == RHS->getRawName() && File == RHS->getRawFile() &&
985 LineNo == RHS->getLineNo();
1016 bool isKeyOf(const DIModule *RHS) const {
1017 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
1018 ConfigurationMacros == RHS->getRawConfigurationMacros() &&
1019 IncludePath == RHS->getRawIncludePath() &&
1020 APINotesFile == RHS->getRawAPINotesFile() &&
1021 File == RHS->getRawFile() && LineNo == RHS->getLineNo() &&
1022 IsDecl == RHS->getIsDecl();
1041 bool isKeyOf(const DITemplateTypeParameter *RHS) const {
1042 return Name == RHS->getRawName() && Type == RHS->getRawType() &&
1043 IsDefault == RHS->isDefault();
1063 bool isKeyOf(const DITemplateValueParameter *RHS) const {
1064 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
1065 Type == RHS->getRawType() && IsDefault == RHS->isDefault() &&
1066 Value == RHS->getValue();
1108 bool isKeyOf(const DIGlobalVariable *RHS) const {
1109 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
1110 LinkageName == RHS->getRawLinkageName() &&
1111 File == RHS->getRawFile() && Line == RHS->getLine() &&
1112 Type == RHS->getRawType() && IsLocalToUnit == RHS->isLocalToUnit() &&
1113 IsDefinition == RHS->isDefinition() &&
1115 RHS->getRawStaticDataMemberDeclaration() &&
1116 TemplateParams == RHS->getRawTemplateParams() &&
1117 AlignInBits == RHS->getAlignInBits() &&
1118 Annotations == RHS->getRawAnnotations();
1157 bool isKeyOf(const DILocalVariable *RHS) const {
1158 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
1159 File == RHS->getRawFile() && Line == RHS->getLine() &&
1160 Type == RHS->getRawType() && Arg == RHS->getArg() &&
1161 Flags == RHS->getFlags() && AlignInBits == RHS->getAlignInBits() &&
1162 Annotations == RHS->getRawAnnotations();
1189 bool isKeyOf(const DILabel *RHS) const {
1190 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
1191 File == RHS->getRawFile() && Line == RHS->getLine();
1204 bool isKeyOf(const DIExpression *RHS) const {
1205 return Elements == RHS->getElements();
1222 bool isKeyOf(const DIGlobalVariableExpression *RHS) const {
1223 return Variable == RHS->getRawVariable() &&
1224 Expression == RHS->getRawExpression();
1249 bool isKeyOf(const DIObjCProperty *RHS) const {
1250 return Name == RHS->getRawName() && File == RHS->getRawFile() &&
1251 Line == RHS->getLine() && GetterName == RHS->getRawGetterName() &&
1252 SetterName == RHS->getRawSetterName() &&
1253 Attributes == RHS->getAttributes() && Type == RHS->getRawType();
1280 bool isKeyOf(const DIImportedEntity *RHS) const {
1281 return Tag == RHS->getTag() && Scope == RHS->getRawScope() &&
1282 Entity == RHS->getRawEntity() && File == RHS->getFile() &&
1283 Line == RHS->getLine() && Name == RHS->getRawName() &&
1284 Elements == RHS->getRawElements();
1304 bool isKeyOf(const DIMacro *RHS) const {
1305 return MIType == RHS->getMacinfoType() && Line == RHS->getLine() &&
1306 Name == RHS->getRawName() && Value == RHS->getRawValue();
1327 bool isKeyOf(const DIMacroFile *RHS) const {
1328 return MIType == RHS->getMacinfoType() && Line == RHS->getLine() &&
1329 File == RHS->getRawFile() && Elements == RHS->getRawElements();
1345 bool isKeyOf(const DIArgList *RHS) const { return Args == RHS->getArgs(); }
1370 static bool isEqual(const KeyTy &LHS, const DIArgList *RHS) {
1371 if (RHS == getEmptyKey() || RHS == getTombstoneKey())
1373 return LHS.isKeyOf(RHS);
1376 static bool isEqual(const DIArgList *LHS, const DIArgList *RHS) {
1377 return LHS == RHS;
1400 static bool isEqual(const KeyTy &LHS, const NodeTy *RHS) {
1401 if (RHS == getEmptyKey() || RHS == getTombstoneKey())
1403 return SubsetEqualTy::isSubsetEqual(LHS, RHS) || LHS.isKeyOf(RHS);
1406 static bool isEqual(const NodeTy *LHS, const NodeTy *RHS) {
1407 if (LHS == RHS)
1409 if (RHS == getEmptyKey() || RHS == getTombstoneKey())
1411 return SubsetEqualTy::isSubsetEqual(LHS, RHS);