Home
last modified time | relevance | path

Searched refs:Lhs (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DAlignment.h235 return Lhs.value() == Rhs;
251 return Lhs.value() < Rhs;
255 return Lhs.value() > Rhs;
295 inline bool operator==(MaybeAlign Lhs, Align Rhs) { return Lhs && *Lhs == Rhs; }
296 inline bool operator!=(MaybeAlign Lhs, Align Rhs) { return !(Lhs == Rhs); }
297 inline bool operator==(Align Lhs, MaybeAlign Rhs) { return Rhs == Lhs; }
298 inline bool operator!=(Align Lhs, MaybeAlign Rhs) { return !(Rhs == Lhs); }
301 return (Lhs && Rhs && (*Lhs == *Rhs)) || (!Lhs && !Rhs);
303 inline bool operator!=(MaybeAlign Lhs, MaybeAlign Rhs) { return !(Lhs == Rhs); }
305 inline bool operator==(MaybeAlign Lhs, std::nullopt_t) { return !bool(Lhs); }
[all …]
H A DParallel.h282 [](LLVMErrorRef Lhs, LLVMErrorRef Rhs) { in parallelForEachError()
283 return wrap(joinErrors(unwrap(Lhs), unwrap(Rhs))); in parallelForEachError()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DAvailabilityInfo.h56 friend bool operator==(const AvailabilityInfo &Lhs,
63 inline bool operator==(const AvailabilityInfo &Lhs,
65 return std::tie(Lhs.Introduced, Lhs.Deprecated, Lhs.Obsoleted,
66 Lhs.UnconditionallyDeprecated,
67 Lhs.UnconditionallyUnavailable) ==
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/InterfaceStub/
H A DIFSStub.h75 inline bool operator==(const IFSTarget &Lhs, const IFSTarget &Rhs) {
76 if (Lhs.Arch != Rhs.Arch || Lhs.BitWidth != Rhs.BitWidth ||
77 Lhs.Endianness != Rhs.Endianness ||
78 Lhs.ObjectFormat != Rhs.ObjectFormat || Lhs.Triple != Rhs.Triple)
83 inline bool operator!=(const IFSTarget &Lhs, const IFSTarget &Rhs) {
84 return !(Lhs == Rhs);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DMergeICmps.cpp185 BCEAtom Lhs; member
192 if (Rhs < Lhs) std::swap(Rhs, Lhs); in BCECmp()
208 const BCEAtom &Lhs() const { return Cmp.Lhs; } in Lhs() function in __anon9202c2f50111::BCECmpBlock
323 if (!Lhs.BaseId) in visitICmp()
380 if (Result->Lhs.GEP) in visitCmpBlock()
425 return First.Lhs().BaseId == Second.Lhs().BaseId && in areContiguous()
427 First.Lhs().Offset + First.SizeBits() / 8 == Second.Lhs().Offset && in areContiguous()
618 Value *Lhs, *Rhs; in mergeComparisons() local
620 Lhs = Builder.Insert(FirstCmp.Lhs().GEP->clone()); in mergeComparisons()
622 Lhs = FirstCmp.Lhs().LoadI->getPointerOperand(); in mergeComparisons()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMsgPackDocument.h160 if (Lhs.KindAndDoc != Rhs.KindAndDoc) {
161 if (Lhs.isEmpty())
163 return (unsigned)Lhs.getKind() < (unsigned)Rhs.getKind();
165 switch (Lhs.getKind()) {
167 return Lhs.Int < Rhs.Int;
169 return Lhs.UInt < Rhs.UInt;
173 return Lhs.Bool < Rhs.Bool;
175 return Lhs.Float < Rhs.Float;
178 return Lhs.Raw < Rhs.Raw;
186 return !(Lhs < Rhs) && !(Rhs < Lhs);
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MCA/HardwareUnits/
H A DScheduler.h36 virtual bool compare(const InstRef &Lhs, const InstRef &Rhs) const = 0;
43 int computeRank(const InstRef &Lhs) const { in computeRank() argument
44 return Lhs.getSourceIndex() - Lhs.getInstruction()->getNumUsers(); in computeRank()
51 bool compare(const InstRef &Lhs, const InstRef &Rhs) const override { in compare() argument
52 int LhsRank = computeRank(Lhs); in compare()
58 return Lhs.getSourceIndex() < Rhs.getSourceIndex(); in compare()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Object/
H A DMachOUniversalWriter.h86 friend bool operator<(const Slice &Lhs, const Slice &Rhs) {
87 if (Lhs.CPUType == Rhs.CPUType)
88 return Lhs.CPUSubType < Rhs.CPUSubType;
91 if (Lhs.CPUType == MachO::CPU_TYPE_ARM64)
96 return Lhs.P2Alignment < Rhs.P2Alignment;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DImportedFunctionsInliningStatistics.cpp206 llvm::sort(SortedNodes, [&](const SortedNodesTy::value_type &Lhs, in getSortedNodes()
208 if (Lhs->second->NumberOfInlines != Rhs->second->NumberOfInlines) in getSortedNodes()
209 return Lhs->second->NumberOfInlines > Rhs->second->NumberOfInlines; in getSortedNodes()
210 if (Lhs->second->NumberOfRealInlines != Rhs->second->NumberOfRealInlines) in getSortedNodes()
211 return Lhs->second->NumberOfRealInlines > in getSortedNodes()
213 return Lhs->first() < Rhs->first(); in getSortedNodes()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandMemCmp.cpp120 Value *Lhs = nullptr; member
338 Value *Lhs = nullptr; in getLoadPair() local
341 if (!Lhs) in getLoadPair()
352 Lhs = Builder.CreateZExt(Lhs, BSwapSizeType); in getLoadPair()
360 Lhs = Builder.CreateCall(Bswap, Lhs); in getLoadPair()
366 Lhs = Builder.CreateZExt(Lhs, CmpSizeType); in getLoadPair()
369 return {Lhs, Rhs}; in getLoadPair()
383 Value *Diff = Builder.CreateSub(Loads.Lhs, Loads.Rhs); in emitLoadCompareByteBlock()
444 Diff = Builder.CreateXor(Loads.Lhs, Loads.Rhs); in getCompareLoadPairs()
449 Cmp = Builder.CreateICmpNE(Loads.Lhs, Loads.Rhs); in getCompareLoadPairs()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCSymbolXCOFF.h31 StringRef Lhs, Rhs; in getUnqualifiedName() local
32 std::tie(Lhs, Rhs) = Name.rsplit('['); in getUnqualifiedName()
34 return Lhs; in getUnqualifiedName()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DFunctionId.h48 static int compareMemory(const char *Lhs, const char *Rhs, uint64_t Length) { in compareMemory() argument
49 if (Lhs == Rhs) in compareMemory()
51 if (!Lhs) in compareMemory()
55 return ::memcmp(Lhs, Rhs, (size_t)Length); in compareMemory()
/freebsd-14.2/contrib/llvm-project/clang/lib/CrossTU/
H A DCrossTranslationUnit.cpp63 if (Lhs.getArch() != Triple::UnknownArch && in hasEqualKnownFields()
66 if (Lhs.getSubArch() != Triple::NoSubArch && in hasEqualKnownFields()
68 Lhs.getSubArch() != Rhs.getSubArch()) in hasEqualKnownFields()
70 if (Lhs.getVendor() != Triple::UnknownVendor && in hasEqualKnownFields()
72 Lhs.getVendor() != Rhs.getVendor()) in hasEqualKnownFields()
74 if (!Lhs.isOSUnknown() && !Rhs.isOSUnknown() && in hasEqualKnownFields()
75 Lhs.getOS() != Rhs.getOS()) in hasEqualKnownFields()
77 if (Lhs.getEnvironment() != Triple::UnknownEnvironment && in hasEqualKnownFields()
79 Lhs.getEnvironment() != Rhs.getEnvironment()) in hasEqualKnownFields()
81 if (Lhs.getObjectFormat() != Triple::UnknownObjectFormat && in hasEqualKnownFields()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPointerArithChecker.cpp317 const Expr *Lhs = BOp->getLHS(); in checkPreStmt() local
321 if (Rhs->getType()->isIntegerType() && Lhs->getType()->isPointerType()) { in checkPreStmt()
325 reportPointerArithMisuse(Lhs, C, !BOp->isAdditiveOp()); in checkPreStmt()
328 if (Lhs->getType()->isIntegerType() && Rhs->getType()->isPointerType()) { in checkPreStmt()
329 SVal LHSVal = C.getSVal(Lhs); in checkPreStmt()
H A DNullabilityChecker.cpp51 Nullability getMostNullable(Nullability Lhs, Nullability Rhs) { in getMostNullable() argument
53 std::min(static_cast<char>(Lhs), static_cast<char>(Rhs))); in getMostNullable()
234 bool operator==(NullabilityState Lhs, NullabilityState Rhs) { in operator ==() argument
235 return Lhs.getValue() == Rhs.getValue() && in operator ==()
236 Lhs.getNullabilitySource() == Rhs.getNullabilitySource(); in operator ==()
262 bool operator==(const ConstrainedPropertyVal &Lhs, in operator ==() argument
264 return Lhs.Value == Rhs.Value && in operator ==()
265 Lhs.isConstrainedNonnull == Rhs.isConstrainedNonnull; in operator ==()
/freebsd-14.2/contrib/llvm-project/llvm/lib/FileCheck/
H A DFileCheckImpl.h118 Expected<APInt> exprAdd(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
119 Expected<APInt> exprSub(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
120 Expected<APInt> exprMul(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
121 Expected<APInt> exprDiv(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
122 Expected<APInt> exprMax(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
123 Expected<APInt> exprMin(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/
H A DCheckerRegistryData.h167 bool operator()(const T &Lhs, const T &Rhs) { in operator()
168 return Lhs.FullName < Rhs.FullName; in operator()
/freebsd-14.2/contrib/llvm-project/clang/lib/Format/
H A DUsingDeclarationsSorter.cpp154 auto Comp = [SortUsingDeclarations](const UsingDeclaration &Lhs, in endUsingDeclarationBlock()
156 return compareLabels(Lhs.Label, Rhs.Label, SortUsingDeclarations) < 0; in endUsingDeclarationBlock()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp573 auto Or = [&](auto Lhs, auto Rhs) -> std::pair<Value *, uint8_t> { in simplifyTernarylogic() argument
574 return {Builder.CreateOr(Lhs.first, Rhs.first), Lhs.second | Rhs.second}; in simplifyTernarylogic()
576 auto Xor = [&](auto Lhs, auto Rhs) -> std::pair<Value *, uint8_t> { in simplifyTernarylogic() argument
577 return {Builder.CreateXor(Lhs.first, Rhs.first), Lhs.second ^ Rhs.second}; in simplifyTernarylogic()
579 auto And = [&](auto Lhs, auto Rhs) -> std::pair<Value *, uint8_t> { in simplifyTernarylogic() argument
580 return {Builder.CreateAnd(Lhs.first, Rhs.first), Lhs.second & Rhs.second}; in simplifyTernarylogic()
585 auto Nor = [&](auto Lhs, auto Rhs) { return Not(Or(Lhs, Rhs)); }; in simplifyTernarylogic() argument
586 auto Xnor = [&](auto Lhs, auto Rhs) { return Not(Xor(Lhs, Rhs)); }; in simplifyTernarylogic() argument
587 auto Nand = [&](auto Lhs, auto Rhs) { return Not(And(Lhs, Rhs)); }; in simplifyTernarylogic() argument
/freebsd-14.2/contrib/googletest/googletest/include/gtest/
H A Dgtest-matchers.h698 template <typename Lhs>
699 bool MatchAndExplain(const Lhs& lhs, std::ostream*) const {
885 template <typename Lhs, typename Rhs>
886 inline Matcher<Lhs> TypedEq(const Rhs& rhs) {
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZShortenInst.cpp190 MachineOperand Lhs(LHSMO); in shortenFusedFPOp() local
199 .add(Lhs) in shortenFusedFPOp()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.h376 bool operator()(const SectionBase *Lhs, const SectionBase *Rhs) const;
445 bool operator()(const SectionBase *Lhs, const SectionBase *Rhs) const { in operator()
449 if (Lhs->OriginalOffset == Rhs->OriginalOffset) in operator()
450 return Lhs->OriginalIndex < Rhs->OriginalIndex; in operator()
451 return Lhs->OriginalOffset < Rhs->OriginalOffset; in operator()
/freebsd-14.2/contrib/llvm-project/llvm/lib/TextAPI/
H A DInterfaceFile.cpp98 [](std::shared_ptr<InterfaceFile> &Lhs, const StringRef Rhs) { in inlineLibrary() argument
99 return Lhs->getInstallName() < Rhs; in inlineLibrary()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DStringRef.h67 static int compareMemory(const char *Lhs, const char *Rhs, size_t Length) { in compareMemory() argument
69 return ::memcmp(Lhs,Rhs,Length); in compareMemory()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DProgramState.cpp376 ConditionTruthVal ProgramState::areEqual(SVal Lhs, SVal Rhs) const { in areEqual() argument
377 return stateMgr->getSValBuilder().areEqual(this, Lhs, Rhs); in areEqual()

12