Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DAlignment.h46 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 DParallel.h282 [](LLVMErrorRef Lhs, LLVMErrorRef Rhs) { in parallelForEachError()
283 return wrap(joinErrors(unwrap(Lhs), unwrap(Rhs))); in parallelForEachError()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DAvailability.h106 friend bool operator==(const AvailabilityInfo &Lhs,
113 inline bool operator==(const AvailabilityInfo &Lhs,
115 return std::tie(Lhs.Introduced, Lhs.Deprecated, Lhs.Obsoleted,
116 Lhs.Unavailable, Lhs.UnconditionallyDeprecated,
117 Lhs.UnconditionallyUnavailable) ==
/freebsd/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/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DMergeICmps.cpp185 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 DMsgPackDocument.h155 friend bool operator<(const DocNode &Lhs, const DocNode &Rhs) {
160 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;
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MCA/HardwareUnits/
H A DScheduler.h32 /// Returns true if Lhs should take priority over Rhs.
36 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/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/contrib/llvm-project/llvm/lib/Analysis/
H A DImportedFunctionsInliningStatistics.cpp205 llvm::sort(SortedNodes, [&](const SortedNodesTy::value_type &Lhs, in getSortedNodes()
207 if (Lhs->second->NumberOfInlines != Rhs->second->NumberOfInlines) in getSortedNodes()
208 return Lhs->second->NumberOfInlines > Rhs->second->NumberOfInlines; in getSortedNodes()
209 if (Lhs->second->NumberOfRealInlines != Rhs->second->NumberOfRealInlines) in getSortedNodes()
210 return Lhs->second->NumberOfRealInlines > in getSortedNodes()
212 return Lhs->first() < Rhs->first(); in getSortedNodes()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandMemCmp.cpp120 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/include/llvm/MC/
H A DMCSymbolXCOFF.h34 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 DFileCheckImpl.h118 Expected<APInt> exprAdd(const APInt &Lhs, const APInt &Rhs, bool &Overflow); in log()
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/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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/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/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/contrib/llvm-project/llvm/lib/TargetParser/
H A DAArch64TargetParser.cpp194 [](const ExtensionInfo &Lhs, const ExtensionInfo &Rhs) { in printEnabledExtensions() argument
195 return Lhs.ArchFeatureName < Rhs.ArchFeatureName; in printEnabledExtensions()
/freebsd/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/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp686 auto Or = [&](auto Lhs, auto Rhs) -> std::pair<Value *, uint8_t> { in simplifyTernarylogic() argument
687 return {Builder.CreateOr(Lhs.first, Rhs.first), Lhs.second | Rhs.second}; in simplifyTernarylogic()
689 auto Xor = [&](auto Lhs, auto Rhs) -> std::pair<Value *, uint8_t> { in simplifyTernarylogic() argument
690 return {Builder.CreateXor(Lhs.first, Rhs.first), Lhs.second ^ Rhs.second}; in simplifyTernarylogic()
692 auto And = [&](auto Lhs, auto Rhs) -> std::pair<Value *, uint8_t> { in simplifyTernarylogic() argument
693 return {Builder.CreateAnd(Lhs.first, Rhs.first), Lhs.second & Rhs.second}; in simplifyTernarylogic()
698 auto Nor = [&](auto Lhs, auto Rhs) { return Not(Or(Lhs, Rhs)); }; in simplifyTernarylogic() argument
699 auto Xnor = [&](auto Lhs, auto Rhs) { return Not(Xor(Lhs, Rhs)); }; in simplifyTernarylogic() argument
700 auto Nand = [&](auto Lhs, auto Rhs) { return Not(And(Lhs, Rhs)); }; in simplifyTernarylogic() argument
/freebsd/contrib/llvm-project/compiler-rt/lib/nsan/
H A Dnsan.cpp611 void fCmpFailFT(const FT Lhs, const FT Rhs, ShadowFT LhsShadow, in fCmpFailFT() argument
653 FTInfo<FT>::kCppTypeName, ValuePrinter::dec(Lhs).Buffer, PredicateName, in fCmpFailFT()
660 FTInfo<FT>::kCppTypeName, ValuePrinter::hex(Lhs).Buffer, PredicateName, in fCmpFailFT()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZShortenInst.cpp190 MachineOperand Lhs(LHSMO); in shortenFusedFPOp() local
199 .add(Lhs) in shortenFusedFPOp()
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/
H A DInterfaceFile.cpp99 [](std::shared_ptr<InterfaceFile> &Lhs, const StringRef Rhs) { in inlineLibrary() argument
100 return Lhs->getInstallName() < Rhs; in inlineLibrary()
/freebsd/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/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.h561 bool operator()(const SectionBase *Lhs, const SectionBase *Rhs) const { in operator()
565 if (Lhs->OriginalOffset == Rhs->OriginalOffset) in operator()
566 return Lhs->OriginalIndex < Rhs->OriginalIndex; in operator()
567 return Lhs->OriginalOffset < Rhs->OriginalOffset; in operator()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRISelDAGToDAG.cpp520 SDValue Lhs = N->getOperand(0); in selectMultiplication() local
522 SDNode *Mul = CurDAG->getMachineNode(MachineOp, DL, MVT::Glue, Lhs, Rhs); in selectMultiplication()
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/Views/
H A DBottleneckAnalysis.cpp274 llvm::max_element(Nodes, [](const DGNode &Lhs, const DGNode &Rhs) { in getCriticalSequence() argument
275 return Lhs.Cost < Rhs.Cost; in getCriticalSequence()

12