| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Alignment.h | 46 friend bool operator==(Align Lhs, Align Rhs); 47 friend bool operator!=(Align Lhs, Align Rhs); 48 friend bool operator<=(Align Lhs, Align Rhs); 49 friend bool operator>=(Align Lhs, Align Rhs); 50 friend bool operator<(Align Lhs, Align Rhs); 51 friend bool operator>(Align Lhs, Align Rhs); 145 inline bool isAligned(Align Lhs, uint64_t SizeInBytes) { in isAligned() argument 146 return SizeInBytes % Lhs.value() == 0; in isAligned() 150 inline bool isAddrAligned(Align Lhs, const void *Addr) { in isAddrAligned() argument 151 return isAligned(Lhs, reinterpret_cast<uintptr_t>(Addr)); in isAddrAligned() [all …]
|
| H A D | Parallel.h | 284 [](LLVMErrorRef Lhs, LLVMErrorRef Rhs) { in parallelForEachError() 285 return wrap(joinErrors(unwrap(Lhs), unwrap(Rhs))); in parallelForEachError()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | Availability.h | 110 friend bool operator==(const AvailabilityInfo &Lhs, 117 inline bool operator==(const AvailabilityInfo &Lhs, 119 return std::tie(Lhs.Introduced, Lhs.Deprecated, Lhs.Obsoleted, 120 Lhs.Unavailable, Lhs.UnconditionallyDeprecated, 121 Lhs.UnconditionallyUnavailable) ==
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/InterfaceStub/ |
| H A D | IFSStub.h | 76 inline bool operator==(const IFSTarget &Lhs, const IFSTarget &Rhs) { 77 if (Lhs.Arch != Rhs.Arch || Lhs.BitWidth != Rhs.BitWidth || 78 Lhs.Endianness != Rhs.Endianness || 79 Lhs.ObjectFormat != Rhs.ObjectFormat || Lhs.Triple != Rhs.Triple) 84 inline bool operator!=(const IFSTarget &Lhs, const IFSTarget &Rhs) { 85 return !(Lhs == Rhs);
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | MergeICmps.cpp | 185 BCEAtom Lhs; member 191 : Lhs(std::move(L)), Rhs(std::move(R)), SizeBits(SizeBits), CmpI(CmpI) { in BCECmp() 192 if (Rhs < Lhs) std::swap(Rhs, Lhs); in BCECmp() 208 const BCEAtom &Lhs() const { return Cmp.Lhs; } in Lhs() function in __anonde3b773f0111::BCECmpBlock 254 if (MayClobber(Cmp.Lhs.LoadI) || MayClobber(Cmp.Rhs.LoadI)) in canSinkBCECmpInst() 322 auto Lhs = visitICmpLoadOperand(CmpI->getOperand(0), BaseId); in visitICmp() local 323 if (!Lhs.BaseId) in visitICmp() 329 return BCECmp(std::move(Lhs), std::move(Rhs), in visitICmp() 379 {Result->Lhs.LoadI, Result->Rhs.LoadI, Result->CmpI, BranchI}); in visitCmpBlock() 380 if (Result->Lhs.GEP) in visitCmpBlock() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
| H A D | MsgPackDocument.h | 156 friend bool operator<(const DocNode &Lhs, const DocNode &Rhs) { 161 if (Lhs.KindAndDoc != Rhs.KindAndDoc) { 162 if (Lhs.isEmpty()) 164 return (unsigned)Lhs.getKind() < (unsigned)Rhs.getKind(); 166 switch (Lhs.getKind()) { 168 return Lhs.Int < Rhs.Int; 170 return Lhs.UInt < Rhs.UInt; 174 return Lhs.Bool < Rhs.Bool; 176 return Lhs.Float < Rhs.Float; 179 return Lhs.Raw < Rhs.Raw; [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/MCA/HardwareUnits/ |
| H A D | Scheduler.h | 37 virtual bool compare(const InstRef &Lhs, const InstRef &Rhs) const = 0; 44 int computeRank(const InstRef &Lhs) const { in computeRank() argument 45 return Lhs.getSourceIndex() - Lhs.getInstruction()->getNumUsers(); in computeRank() 52 bool compare(const InstRef &Lhs, const InstRef &Rhs) const override { in compare() argument 53 int LhsRank = computeRank(Lhs); in compare() 59 return Lhs.getSourceIndex() < Rhs.getSourceIndex(); in compare()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
| H A D | MachOUniversalWriter.h | 88 friend bool operator<(const Slice &Lhs, const Slice &Rhs) { 89 if (Lhs.CPUType == Rhs.CPUType) 90 return Lhs.CPUSubType < Rhs.CPUSubType; 93 if (Lhs.CPUType == MachO::CPU_TYPE_ARM64) 98 return Lhs.P2Alignment < Rhs.P2Alignment;
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExpandMemCmp.cpp | 120 Value *Lhs = nullptr; member 338 Value *Lhs = nullptr; in getLoadPair() local 340 Lhs = ConstantFoldLoadFromConstPtr(C, LoadSizeType, DL); in getLoadPair() 341 if (!Lhs) in getLoadPair() 342 Lhs = Builder.CreateAlignedLoad(LoadSizeType, LhsSource, LhsAlign); in getLoadPair() 352 Lhs = Builder.CreateZExt(Lhs, BSwapSizeType); in getLoadPair() 360 Lhs = Builder.CreateCall(Bswap, Lhs); in getLoadPair() 365 if (CmpSizeType != nullptr && CmpSizeType != Lhs->getType()) { in getLoadPair() 366 Lhs = Builder.CreateZExt(Lhs, CmpSizeType); in getLoadPair() 369 return {Lhs, Rhs}; in getLoadPair() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ImportedFunctionsInliningStatistics.cpp | 204 llvm::sort(SortedNodes, [&](const SortedNodesTy::value_type &Lhs, in getSortedNodes() 206 if (Lhs->second->NumberOfInlines != Rhs->second->NumberOfInlines) in getSortedNodes() 207 return Lhs->second->NumberOfInlines > Rhs->second->NumberOfInlines; in getSortedNodes() 208 if (Lhs->second->NumberOfRealInlines != Rhs->second->NumberOfRealInlines) in getSortedNodes() 209 return Lhs->second->NumberOfRealInlines > in getSortedNodes() 211 return Lhs->first() < Rhs->first(); in getSortedNodes()
|
| /freebsd/contrib/llvm-project/clang/lib/CrossTU/ |
| H A D | CrossTranslationUnit.cpp | 61 bool hasEqualKnownFields(const llvm::Triple &Lhs, const llvm::Triple &Rhs) { in hasEqualKnownFields() argument 63 if (Lhs.getArch() != Triple::UnknownArch && in hasEqualKnownFields() 64 Rhs.getArch() != Triple::UnknownArch && Lhs.getArch() != Rhs.getArch()) 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() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | MCSymbolXCOFF.h | 34 StringRef Lhs, Rhs; in getUnqualifiedName() local 35 std::tie(Lhs, Rhs) = Name.rsplit('['); in getUnqualifiedName() 37 return Lhs; in getUnqualifiedName()
|
| /freebsd/contrib/llvm-project/llvm/lib/FileCheck/ |
| H A D | FileCheckImpl.h | 120 LLVM_ABI_FOR_TEST Expected<APInt> exprAdd(const APInt &Lhs, const APInt &Rhs, 122 LLVM_ABI_FOR_TEST Expected<APInt> exprSub(const APInt &Lhs, const APInt &Rhs, 124 LLVM_ABI_FOR_TEST Expected<APInt> exprMul(const APInt &Lhs, const APInt &Rhs, 126 LLVM_ABI_FOR_TEST Expected<APInt> exprDiv(const APInt &Lhs, const APInt &Rhs, 128 Expected<APInt> exprMax(const APInt &Lhs, const APInt &Rhs, bool &Overflow); 129 Expected<APInt> exprMin(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaTypeTraits.cpp | 1200 const TypeSourceInfo *Lhs, 1205 Sema &Self, const TypeSourceInfo *Lhs, const TypeSourceInfo *Rhs, in CheckConvertibilityForTypeTraits() argument 1208 QualType LhsT = Lhs->getType(); in CheckConvertibilityForTypeTraits() 1637 const TypeSourceInfo *Lhs, in EvaluateBinaryTypeTrait() argument 1640 QualType LhsT = Lhs->getType(); in EvaluateBinaryTypeTrait() 1655 DiagnoseVLAInCXXTypeTrait(Self, Lhs, in EvaluateBinaryTypeTrait() 1681 QualType Lhs = Self.getASTContext().getUnqualifiedArrayType(LhsT, LhsQuals); in EvaluateBinaryTypeTrait() local 1683 return Self.Context.typesAreCompatible(Lhs, Rhs); in EvaluateBinaryTypeTrait() 1691 ExprResult Result = CheckConvertibilityForTypeTraits(Self, Lhs, Rhs, KeyLoc, in EvaluateBinaryTypeTrait() 1718 Lhs->getTypeLoc().getBeginLoc(), LhsT, in EvaluateBinaryTypeTrait() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | NullabilityChecker.cpp | 51 Nullability getMostNullable(Nullability Lhs, Nullability Rhs) { in getMostNullable() argument 53 std::min(static_cast<char>(Lhs), static_cast<char>(Rhs))); in getMostNullable() 231 bool operator==(NullabilityState Lhs, NullabilityState Rhs) { in operator ==() argument 232 return Lhs.getValue() == Rhs.getValue() && in operator ==() 233 Lhs.getNullabilitySource() == Rhs.getNullabilitySource(); in operator ==() 259 bool operator==(const ConstrainedPropertyVal &Lhs, in operator ==() argument 261 return Lhs.Value == Rhs.Value && in operator ==() 262 Lhs.isConstrainedNonnull == Rhs.isConstrainedNonnull; in operator ==()
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/ |
| H A D | CheckerRegistryData.h | 167 bool operator()(const T &Lhs, const T &Rhs) { in operator() 168 return Lhs.FullName < Rhs.FullName; in operator()
|
| /freebsd/contrib/llvm-project/libc/src/__support/CPP/ |
| H A D | string_view.h | 33 LIBC_INLINE static int compareMemory(const char *Lhs, const char *Rhs, in compareMemory() argument 36 if (int Diff = (int)Lhs[i] - (int)Rhs[i]) in compareMemory()
|
| /freebsd/contrib/llvm-project/clang/lib/Format/ |
| H A D | UsingDeclarationsSorter.cpp | 154 auto Comp = [SortUsingDeclarations](const UsingDeclaration &Lhs, in endUsingDeclarationBlock() 156 return compareLabels(Lhs.Label, Rhs.Label, SortUsingDeclarations) < 0; in endUsingDeclarationBlock()
|
| /freebsd/contrib/llvm-project/llvm/lib/MCA/HardwareUnits/ |
| H A D | ResourceManager.cpp | 395 sort(Worklist, [&](const ResourceWithUsage &Lhs, in issueInstructionImpl() 397 const ResourceState &LhsRS = *Resources[getResourceStateIndex(Lhs.first)]; in issueInstructionImpl() 402 return Lhs.first < Rhs.first; in issueInstructionImpl()
|
| /freebsd/contrib/googletest/googletest/include/gtest/ |
| H A D | gtest-matchers.h | 698 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/contrib/llvm-project/llvm/lib/TargetParser/ |
| H A D | AArch64TargetParser.cpp | 232 [](const ExtensionInfo &Lhs, const ExtensionInfo &Rhs) { in printEnabledExtensions() argument 233 return Lhs.ArchFeatureName < Rhs.ArchFeatureName; in printEnabledExtensions()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZShortenInst.cpp | 187 MachineOperand Lhs(LHSMO); in shortenFusedFPOp() local 196 .add(Lhs) in shortenFusedFPOp()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 682 auto Or = [&](auto Lhs, auto Rhs) -> std::pair<Value *, uint8_t> { in simplifyTernarylogic() argument 683 return {Builder.CreateOr(Lhs.first, Rhs.first), Lhs.second | Rhs.second}; in simplifyTernarylogic() 685 auto Xor = [&](auto Lhs, auto Rhs) -> std::pair<Value *, uint8_t> { in simplifyTernarylogic() argument 686 return {Builder.CreateXor(Lhs.first, Rhs.first), Lhs.second ^ Rhs.second}; in simplifyTernarylogic() 688 auto And = [&](auto Lhs, auto Rhs) -> std::pair<Value *, uint8_t> { in simplifyTernarylogic() argument 689 return {Builder.CreateAnd(Lhs.first, Rhs.first), Lhs.second & Rhs.second}; in simplifyTernarylogic() 694 auto Nor = [&](auto Lhs, auto Rhs) { return Not(Or(Lhs, Rhs)); }; in simplifyTernarylogic() argument 695 auto Xnor = [&](auto Lhs, auto Rhs) { return Not(Xor(Lhs, Rhs)); }; in simplifyTernarylogic() argument 696 auto Nand = [&](auto Lhs, auto Rhs) { return Not(And(Lhs, Rhs)); }; in simplifyTernarylogic() argument
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/nsan/ |
| H A D | nsan.cpp | 663 void fCmpFailFT(const FT Lhs, const FT Rhs, ShadowFT LhsShadow, in fCmpFailFT() argument 705 FTInfo<FT>::kCppTypeName, ValuePrinter::dec(Lhs).Buffer, PredicateName, in fCmpFailFT() 712 FTInfo<FT>::kCppTypeName, ValuePrinter::hex(Lhs).Buffer, PredicateName, in fCmpFailFT()
|
| /freebsd/contrib/llvm-project/llvm/lib/TextAPI/ |
| H A D | InterfaceFile.cpp | 97 [](std::shared_ptr<InterfaceFile> &Lhs, const StringRef Rhs) { in inlineLibrary() argument 98 return Lhs->getInstallName() < Rhs; in inlineLibrary()
|