Lines Matching refs: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();
479 bool isKeyOf(const DIBasicType *RHS) const {
480 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
481 SizeInBits == RHS->getSizeInBits() &&
482 AlignInBits == RHS->getAlignInBits() &&
483 Encoding == RHS->getEncoding() && Flags == RHS->getFlags();
515 bool isKeyOf(const DIStringType *RHS) const {
516 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
517 StringLength == RHS->getRawStringLength() &&
518 StringLengthExp == RHS->getRawStringLengthExp() &&
519 StringLocationExp == RHS->getRawStringLocationExp() &&
520 SizeInBits == RHS->getSizeInBits() &&
521 AlignInBits == RHS->getAlignInBits() &&
522 Encoding == RHS->getEncoding();
569 bool isKeyOf(const DIDerivedType *RHS) const {
570 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
571 File == RHS->getRawFile() && Line == RHS->getLine() &&
572 Scope == RHS->getRawScope() && BaseType == RHS->getRawBaseType() &&
573 SizeInBits == RHS->getSizeInBits() &&
574 AlignInBits == RHS->getAlignInBits() &&
575 OffsetInBits == RHS->getOffsetInBits() &&
576 DWARFAddressSpace == RHS->getDWARFAddressSpace() &&
577 PtrAuthData == RHS->getPtrAuthData() && Flags == RHS->getFlags() &&
578 ExtraData == RHS->getRawExtraData() &&
579 Annotations == RHS->getRawAnnotations();
602 static bool isSubsetEqual(const KeyTy &LHS, const DIDerivedType *RHS) {
603 return isODRMember(LHS.Tag, LHS.Scope, LHS.Name, RHS);
607 const DIDerivedType *RHS) {
609 RHS);
615 const MDString *Name, const DIDerivedType *RHS) {
625 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
626 Scope == RHS->getRawScope();
683 bool isKeyOf(const DICompositeType *RHS) const {
684 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
685 File == RHS->getRawFile() && Line == RHS->getLine() &&
686 Scope == RHS->getRawScope() && BaseType == RHS->getRawBaseType() &&
687 SizeInBits == RHS->getSizeInBits() &&
688 AlignInBits == RHS->getAlignInBits() &&
689 OffsetInBits == RHS->getOffsetInBits() && Flags == RHS->getFlags() &&
690 Elements == RHS->getRawElements() &&
691 RuntimeLang == RHS->getRuntimeLang() &&
692 VTableHolder == RHS->getRawVTableHolder() &&
693 TemplateParams == RHS->getRawTemplateParams() &&
694 Identifier == RHS->getRawIdentifier() &&
695 Discriminator == RHS->getRawDiscriminator() &&
696 DataLocation == RHS->getRawDataLocation() &&
697 Associated == RHS->getRawAssociated() &&
698 Allocated == RHS->getRawAllocated() && Rank == RHS->getRawRank() &&
699 Annotations == RHS->getRawAnnotations();
722 bool isKeyOf(const DISubroutineType *RHS) const {
723 return Flags == RHS->getFlags() && CC == RHS->getCC() &&
724 TypeArray == RHS->getRawTypeArray();
745 bool isKeyOf(const DIFile *RHS) const {
746 return Filename == RHS->getRawFilename() &&
747 Directory == RHS->getRawDirectory() &&
748 Checksum == RHS->getRawChecksum() && Source == RHS->getRawSource();
808 bool isKeyOf(const DISubprogram *RHS) const {
809 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
810 LinkageName == RHS->getRawLinkageName() &&
811 File == RHS->getRawFile() && Line == RHS->getLine() &&
812 Type == RHS->getRawType() && ScopeLine == RHS->getScopeLine() &&
813 ContainingType == RHS->getRawContainingType() &&
814 VirtualIndex == RHS->getVirtualIndex() &&
815 ThisAdjustment == RHS->getThisAdjustment() &&
816 Flags == RHS->getFlags() && SPFlags == RHS->getSPFlags() &&
817 Unit == RHS->getUnit() &&
818 TemplateParams == RHS->getRawTemplateParams() &&
819 Declaration == RHS->getRawDeclaration() &&
820 RetainedNodes == RHS->getRawRetainedNodes() &&
821 ThrownTypes == RHS->getRawThrownTypes() &&
822 Annotations == RHS->getRawAnnotations() &&
823 TargetFuncName == RHS->getRawTargetFuncName();
855 static bool isSubsetEqual(const KeyTy &LHS, const DISubprogram *RHS) {
857 LHS.LinkageName, LHS.TemplateParams, RHS);
860 static bool isSubsetEqual(const DISubprogram *LHS, const DISubprogram *RHS) {
863 LHS->getRawTemplateParams(), RHS);
871 const DISubprogram *RHS) {
886 return IsDefinition == RHS->isDefinition() && Scope == RHS->getRawScope() &&
887 LinkageName == RHS->getRawLinkageName() &&
888 TemplateParams == RHS->getRawTemplateParams();
904 bool isKeyOf(const DILexicalBlock *RHS) const {
905 return Scope == RHS->getRawScope() && File == RHS->getRawFile() &&
906 Line == RHS->getLine() && Column == RHS->getColumn();
925 bool isKeyOf(const DILexicalBlockFile *RHS) const {
926 return Scope == RHS->getRawScope() && File == RHS->getRawFile() &&
927 Discriminator == RHS->getDiscriminator();
946 bool isKeyOf(const DINamespace *RHS) const {
947 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
948 ExportSymbols == RHS->getExportSymbols();
968 bool isKeyOf(const DICommonBlock *RHS) const {
969 return Scope == RHS->getRawScope() && Decl == RHS->getRawDecl() &&
970 Name == RHS->getRawName() && File == RHS->getRawFile() &&
971 LineNo == RHS->getLineNo();
1002 bool isKeyOf(const DIModule *RHS) const {
1003 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
1004 ConfigurationMacros == RHS->getRawConfigurationMacros() &&
1005 IncludePath == RHS->getRawIncludePath() &&
1006 APINotesFile == RHS->getRawAPINotesFile() &&
1007 File == RHS->getRawFile() && LineNo == RHS->getLineNo() &&
1008 IsDecl == RHS->getIsDecl();
1027 bool isKeyOf(const DITemplateTypeParameter *RHS) const {
1028 return Name == RHS->getRawName() && Type == RHS->getRawType() &&
1029 IsDefault == RHS->isDefault();
1049 bool isKeyOf(const DITemplateValueParameter *RHS) const {
1050 return Tag == RHS->getTag() && Name == RHS->getRawName() &&
1051 Type == RHS->getRawType() && IsDefault == RHS->isDefault() &&
1052 Value == RHS->getValue();
1094 bool isKeyOf(const DIGlobalVariable *RHS) const {
1095 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
1096 LinkageName == RHS->getRawLinkageName() &&
1097 File == RHS->getRawFile() && Line == RHS->getLine() &&
1098 Type == RHS->getRawType() && IsLocalToUnit == RHS->isLocalToUnit() &&
1099 IsDefinition == RHS->isDefinition() &&
1101 RHS->getRawStaticDataMemberDeclaration() &&
1102 TemplateParams == RHS->getRawTemplateParams() &&
1103 AlignInBits == RHS->getAlignInBits() &&
1104 Annotations == RHS->getRawAnnotations();
1143 bool isKeyOf(const DILocalVariable *RHS) const {
1144 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
1145 File == RHS->getRawFile() && Line == RHS->getLine() &&
1146 Type == RHS->getRawType() && Arg == RHS->getArg() &&
1147 Flags == RHS->getFlags() && AlignInBits == RHS->getAlignInBits() &&
1148 Annotations == RHS->getRawAnnotations();
1175 bool isKeyOf(const DILabel *RHS) const {
1176 return Scope == RHS->getRawScope() && Name == RHS->getRawName() &&
1177 File == RHS->getRawFile() && Line == RHS->getLine();
1190 bool isKeyOf(const DIExpression *RHS) const {
1191 return Elements == RHS->getElements();
1208 bool isKeyOf(const DIGlobalVariableExpression *RHS) const {
1209 return Variable == RHS->getRawVariable() &&
1210 Expression == RHS->getRawExpression();
1235 bool isKeyOf(const DIObjCProperty *RHS) const {
1236 return Name == RHS->getRawName() && File == RHS->getRawFile() &&
1237 Line == RHS->getLine() && GetterName == RHS->getRawGetterName() &&
1238 SetterName == RHS->getRawSetterName() &&
1239 Attributes == RHS->getAttributes() && Type == RHS->getRawType();
1266 bool isKeyOf(const DIImportedEntity *RHS) const {
1267 return Tag == RHS->getTag() && Scope == RHS->getRawScope() &&
1268 Entity == RHS->getRawEntity() && File == RHS->getFile() &&
1269 Line == RHS->getLine() && Name == RHS->getRawName() &&
1270 Elements == RHS->getRawElements();
1290 bool isKeyOf(const DIMacro *RHS) const {
1291 return MIType == RHS->getMacinfoType() && Line == RHS->getLine() &&
1292 Name == RHS->getRawName() && Value == RHS->getRawValue();
1313 bool isKeyOf(const DIMacroFile *RHS) const {
1314 return MIType == RHS->getMacinfoType() && Line == RHS->getLine() &&
1315 File == RHS->getRawFile() && Elements == RHS->getRawElements();
1331 bool isKeyOf(const DIArgList *RHS) const { return Args == RHS->getArgs(); }
1356 static bool isEqual(const KeyTy &LHS, const DIArgList *RHS) {
1357 if (RHS == getEmptyKey() || RHS == getTombstoneKey())
1359 return LHS.isKeyOf(RHS);
1362 static bool isEqual(const DIArgList *LHS, const DIArgList *RHS) {
1363 return LHS == RHS;
1386 static bool isEqual(const KeyTy &LHS, const NodeTy *RHS) {
1387 if (RHS == getEmptyKey() || RHS == getTombstoneKey())
1389 return SubsetEqualTy::isSubsetEqual(LHS, RHS) || LHS.isKeyOf(RHS);
1392 static bool isEqual(const NodeTy *LHS, const NodeTy *RHS) {
1393 if (LHS == RHS)
1395 if (RHS == getEmptyKey() || RHS == getTombstoneKey())
1397 return SubsetEqualTy::isSubsetEqual(LHS, RHS);