Home
last modified time | relevance | path

Searched refs:Rhs (Results 1 – 25 of 60) sorted by relevance

123

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DAlignment.h235 ALIGN_CHECK_ISPOSITIVE(Rhs);
236 return Lhs.value() == Rhs;
239 ALIGN_CHECK_ISPOSITIVE(Rhs);
240 return Lhs.value() != Rhs;
243 ALIGN_CHECK_ISPOSITIVE(Rhs);
244 return Lhs.value() <= Rhs;
247 ALIGN_CHECK_ISPOSITIVE(Rhs);
248 return Lhs.value() >= Rhs;
251 ALIGN_CHECK_ISPOSITIVE(Rhs);
252 return Lhs.value() < Rhs;
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DNarrowingConversionsCheck.cpp366 const Expr &Rhs) { in diagNarrowTypeOrConstant() argument
414 const Expr &Rhs) { in handleIntegralToBoolean() argument
424 const Expr &Rhs) { in handleIntegralToFloating() argument
438 diagNarrowType(SourceLoc, Lhs, Rhs); in handleIntegralToFloating()
444 const Expr &Rhs) { in handleFloatingToIntegral() argument
465 const Expr &Rhs) { in handleFloatingToBoolean() argument
471 const Expr &Rhs) { in handleBooleanToSignedIntegral() argument
501 diagNarrowType(SourceLoc, Lhs, Rhs); in handleFloatingCast()
551 const Expr &Rhs = *Cast.getSubExpr(); in handleImplicitCast() local
582 const Expr &Rhs = *Op.getRHS(); in handleBinaryOperator() local
[all …]
H A DNarrowingConversionsCheck.h35 const Expr &Rhs);
38 const Expr &Rhs);
49 const Expr &Rhs);
52 const Expr &Rhs);
56 const Expr &Rhs);
63 const Expr &Rhs);
67 const Expr &Rhs);
71 const Expr &Rhs);
75 const Expr &Rhs);
79 const Expr &Rhs);
[all …]
/llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/
H A Dgtest-matchers.h561 Rhs rhs_;
563 Rhs rhs_;
570 : ComparisonBase<EqMatcher<Rhs>, Rhs, AnyEq>(rhs) { } in EqMatcher()
578 : ComparisonBase<NeMatcher<Rhs>, Rhs, AnyNe>(rhs) { } in NeMatcher()
586 : ComparisonBase<LtMatcher<Rhs>, Rhs, AnyLt>(rhs) { } in LtMatcher()
594 : ComparisonBase<GtMatcher<Rhs>, Rhs, AnyGt>(rhs) { } in GtMatcher()
719 inline internal::GeMatcher<Rhs> Ge(Rhs x) { in Ge()
725 inline internal::GtMatcher<Rhs> Gt(Rhs x) { in Gt()
731 inline internal::LeMatcher<Rhs> Le(Rhs x) { in Le()
737 inline internal::LtMatcher<Rhs> Lt(Rhs x) { in Lt()
[all …]
/llvm-project-15.0.7/clang/include/clang/ExtractAPI/
H A DAvailabilityInfo.h62 const AvailabilityInfo &Rhs);
66 const AvailabilityInfo &Rhs) {
70 std::tie(Rhs.Introduced, Rhs.Deprecated, Rhs.Obsoleted,
71 Rhs.Unavailable, Rhs.UnconditionallyDeprecated,
72 Rhs.UnconditionallyUnavailable);
/llvm-project-15.0.7/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);
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DMergeICmps.cpp184 BCEAtom Rhs; member
190 if (Rhs < Lhs) std::swap(Rhs, Lhs); in BCECmp()
207 const BCEAtom &Rhs() const { return Cmp.Rhs; } in Rhs() function in __anon2691366f0111::BCECmpBlock
324 if (!Rhs.BaseId) in visitICmp()
375 if (Result->Rhs.GEP) in visitCmpBlock()
419 First.Rhs().BaseId == Second.Rhs().BaseId && in areContiguous()
611 Value *Lhs, *Rhs; in mergeComparisons() local
617 Rhs = Builder.Insert(FirstCmp.Rhs().GEP->clone()); in mergeComparisons()
619 Rhs = FirstCmp.Rhs().LoadI->getPointerOperand(); in mergeComparisons()
640 Builder.CreateLoad(FirstCmp.Rhs().LoadI->getType(), Rhs); in mergeComparisons()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/
H A DMsgPackDocument.h150 friend bool operator<(const DocNode &Lhs, const DocNode &Rhs) {
153 if (Rhs.isEmpty())
155 if (Lhs.KindAndDoc != Rhs.KindAndDoc) {
158 return (unsigned)Lhs.getKind() < (unsigned)Rhs.getKind();
162 return Lhs.Int < Rhs.Int;
164 return Lhs.UInt < Rhs.UInt;
168 return Lhs.Bool < Rhs.Bool;
170 return Lhs.Float < Rhs.Float;
173 return Lhs.Raw < Rhs.Raw;
181 return !(Lhs < Rhs) && !(Rhs < Lhs);
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-rc/
H A DResourceScriptStmt.h43 std::tie(Val, Long) = std::make_pair(Val + Rhs.Val, Long | Rhs.Long);
48 std::tie(Val, Long) = std::make_pair(Val - Rhs.Val, Long | Rhs.Long);
53 std::tie(Val, Long) = std::make_pair(Val | Rhs.Val, Long | Rhs.Long);
58 std::tie(Val, Long) = std::make_pair(Val & Rhs.Val, Long | Rhs.Long);
88 Value &= ~Rhs.NotMask;
89 Value += Rhs.Value;
95 Value &= ~Rhs.NotMask;
96 Value -= Rhs.Value;
102 Value &= ~Rhs.NotMask;
103 Value |= Rhs.Value;
[all …]
/llvm-project-15.0.7/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;
93 if (Rhs.CPUType == MachO::CPU_TYPE_ARM64)
96 return Lhs.P2Alignment < Rhs.P2Alignment;
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DScopeExit.h34 scope_exit(scope_exit &&Rhs) in scope_exit() argument
35 : ExitFunction(std::move(Rhs.ExitFunction)), Engaged(Rhs.Engaged) { in scope_exit()
36 Rhs.release(); in scope_exit()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Duse-transparent-functors.cpp15 constexpr T operator()(const T &Lhs, const T &Rhs) const;
21 constexpr auto operator()(T &&Lhs, U &&Rhs) const ->
22 decltype(forward<T>(Lhs) + forward<U>(Rhs));
27 constexpr bool operator()(const T &Lhs, const T &Rhs) const;
33 constexpr bool operator()(T &&Lhs, U &&Rhs) const;
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DCleanupInfo.h38 void mergeFrom(CleanupInfo Rhs) { in mergeFrom() argument
39 ExprNeedsCleanups |= Rhs.ExprNeedsCleanups; in mergeFrom()
40 CleanupsHaveSideEffects |= Rhs.CleanupsHaveSideEffects; in mergeFrom()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DImportedFunctionsInliningStatistics.cpp205 const SortedNodesTy::value_type &Rhs) { in getSortedNodes() argument
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()
210 Rhs->second->NumberOfRealInlines; in getSortedNodes()
211 return Lhs->first() < Rhs->first(); in getSortedNodes()
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/
H A DCheckerRegistryData.h126 bool operator==(const CheckerInfo &Rhs) const {
127 return FullName == Rhs.FullName;
152 bool operator==(const PackageInfo &Rhs) const {
153 return FullName == Rhs.FullName;
167 bool operator()(const T &Lhs, const T &Rhs) { in operator()
168 return Lhs.FullName < Rhs.FullName; in operator()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DExpandMemCmp.cpp117 Value *Rhs = nullptr; member
309 Value *Rhs = nullptr; in getLoadPair() local
311 Rhs = ConstantFoldLoadFromConstPtr(C, LoadSizeType, DL); in getLoadPair()
312 if (!Rhs) in getLoadPair()
320 Rhs = Builder.CreateCall(Bswap, Rhs); in getLoadPair()
326 Rhs = Builder.CreateZExt(Rhs, CmpSizeType); in getLoadPair()
328 return {Lhs, Rhs}; in getLoadPair()
342 Value *Diff = Builder.CreateSub(Loads.Lhs, Loads.Rhs); in emitLoadCompareByteBlock()
402 Diff = Builder.CreateXor(Loads.Lhs, Loads.Rhs); in getCompareLoadPairs()
407 Cmp = Builder.CreateICmpNE(Loads.Lhs, Loads.Rhs); in getCompareLoadPairs()
[all …]
H A DCalcSpillWeights.cpp202 bool operator<(const CopyHint &Rhs) const { in weightCalcHelper()
204 if (Reg.isPhysical() != Rhs.Reg.isPhysical()) in weightCalcHelper()
206 if (Weight != Rhs.Weight) in weightCalcHelper()
207 return (Weight > Rhs.Weight); in weightCalcHelper()
208 return Reg.id() < Rhs.Reg.id(); // Tie-breaker. in weightCalcHelper()
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DMCSymbolXCOFF.h29 StringRef Lhs, Rhs; in getUnqualifiedName() local
30 std::tie(Lhs, Rhs) = Name.rsplit('['); in getUnqualifiedName()
31 assert(!Rhs.empty() && "Invalid SMC format in XCOFF symbol."); in getUnqualifiedName()
/llvm-project-15.0.7/llvm/include/llvm/MCA/HardwareUnits/
H A DScheduler.h36 virtual bool compare(const InstRef &Lhs, const InstRef &Rhs) const = 0;
51 bool compare(const InstRef &Lhs, const InstRef &Rhs) const override { in compare() argument
53 int RhsRank = computeRank(Rhs); in compare()
58 return Lhs.getSourceIndex() < Rhs.getSourceIndex(); in compare()
/llvm-project-15.0.7/clang/lib/CrossTU/
H A DCrossTranslationUnit.cpp64 Rhs.getArch() != Triple::UnknownArch && Lhs.getArch() != Rhs.getArch()) in hasEqualKnownFields()
67 Rhs.getSubArch() != Triple::NoSubArch && in hasEqualKnownFields()
68 Lhs.getSubArch() != Rhs.getSubArch()) in hasEqualKnownFields()
71 Rhs.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()
78 Rhs.getEnvironment() != Triple::UnknownEnvironment && in hasEqualKnownFields()
79 Lhs.getEnvironment() != Rhs.getEnvironment()) in hasEqualKnownFields()
82 Rhs.getObjectFormat() != Triple::UnknownObjectFormat && in hasEqualKnownFields()
[all …]
/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DSingleVarConstantPropagationTest.cpp58 friend bool operator==(VarValue Lhs, VarValue Rhs) { in operator ==()
59 return Lhs.Var == Rhs.Var && Lhs.Value == Rhs.Value; in operator ==()
71 const ConstantPropagationLattice &Rhs) { in operator ==() argument
72 return Lhs.Data == Rhs.Data; in operator ==()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DOptionalTest.cpp643 void CheckRelation(const Optional<T> &Lhs, const Optional<T> &Rhs, in CheckRelation() argument
645 EXPECT_EQ(Expected, OperatorT::apply(Lhs, Rhs)); in CheckRelation()
648 EXPECT_EQ(Expected, OperatorT::apply(*Lhs, Rhs)); in CheckRelation()
650 EXPECT_EQ(Expected, OperatorT::apply(None, Rhs)); in CheckRelation()
652 if (Rhs) in CheckRelation()
653 EXPECT_EQ(Expected, OperatorT::apply(Lhs, *Rhs)); in CheckRelation()
663 bool operator==(const EqualityMock &Lhs, const EqualityMock &Rhs) { in operator ==() argument
665 EXPECT_EQ(&*EqualityRhs, &Rhs); in operator ==()
696 bool operator<(const InequalityMock &Lhs, const InequalityMock &Rhs) { in operator <() argument
698 EXPECT_EQ(&*InequalityRhs, &Rhs); in operator <()
/llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/Mips/
H A DBenchmarkResultTest.cpp43 const std::string Rhs = Dump(get<1>(arg)); variable
44 if (Lhs != Rhs) {
45 *result_listener << Lhs << " <=> " << Rhs;
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DPointerArithChecker.cpp324 const Expr *Rhs = BOp->getRHS(); in checkPreStmt() local
327 if (Rhs->getType()->isIntegerType() && Lhs->getType()->isPointerType()) { in checkPreStmt()
328 SVal RHSVal = C.getSVal(Rhs); in checkPreStmt()
334 if (Lhs->getType()->isIntegerType() && Rhs->getType()->isPointerType()) { in checkPreStmt()
338 reportPointerArithMisuse(Rhs, C); in checkPreStmt()
/llvm-project-15.0.7/libcxx/benchmarks/
H A Dstring.bench.cpp404 auto Rhs = makeString(LHLength(), DiffType()); in run() local
407 benchmark::DoNotOptimize(Rhs); in run()
410 benchmark::DoNotOptimize(Lhs == Rhs); in run()
413 benchmark::DoNotOptimize(Lhs < Rhs); in run()
416 benchmark::DoNotOptimize(Lhs.compare(Rhs)); in run()
542 for (auto Rhs : in sanityCheckGeneratedStrings()
544 if (Lhs > Rhs) in sanityCheckGeneratedStrings()
546 const auto RhsString = makeString(Rhs); in sanityCheckGeneratedStrings()
551 static_cast<int>(Lhs), static_cast<int>(Rhs)); in sanityCheckGeneratedStrings()

123