Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DAlignment.h147 return SizeInBytes % Lhs.value() == 0; in isAligned()
236 return Lhs.value() == Rhs;
240 return Lhs.value() != Rhs;
244 return Lhs.value() <= Rhs;
248 return Lhs.value() >= Rhs;
252 return Lhs.value() < Rhs;
256 return Lhs.value() > Rhs;
261 return Lhs.ShiftValue == Rhs.ShiftValue;
264 return Lhs.ShiftValue != Rhs.ShiftValue;
273 return Lhs.ShiftValue < Rhs.ShiftValue;
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DNarrowingConversionsCheck.cpp338 << getUnqualifiedType(Lhs); in diagNarrowIntegerConstant()
347 << getUnqualifiedType(Lhs); in diagNarrowIntegerConstantToSignedInt()
371 return diagNarrowConstant(SourceLoc, Lhs, Rhs); in diagNarrowTypeOrConstant()
372 return diagNarrowType(SourceLoc, Lhs, Rhs); in diagNarrowTypeOrConstant()
438 diagNarrowType(SourceLoc, Lhs, Rhs); in handleIntegralToFloating()
457 const BuiltinType *ToType = getBuiltinType(Lhs); in handleFloatingToIntegral()
496 diagNarrowConstant(SourceLoc, Lhs, Rhs); in handleFloatingCast()
501 diagNarrowType(SourceLoc, Lhs, Rhs); in handleFloatingCast()
550 const Expr &Lhs = Cast; in handleImplicitCast() local
556 SourceLocation SourceLoc = Lhs.getExprLoc(); in handleImplicitCast()
[all …]
H A DNarrowingConversionsCheck.h34 void diagNarrowType(SourceLocation SourceLoc, const Expr &Lhs,
37 void diagNarrowTypeToSignedInt(SourceLocation SourceLoc, const Expr &Lhs,
40 void diagNarrowIntegerConstant(SourceLocation SourceLoc, const Expr &Lhs,
48 void diagNarrowConstant(SourceLocation SourceLoc, const Expr &Lhs,
51 void diagConstantCast(SourceLocation SourceLoc, const Expr &Lhs,
55 SourceLocation SourceLoc, const Expr &Lhs,
59 const Expr &Lhs, const Expr &Rhs);
62 SourceLocation SourceLoc, const Expr &Lhs,
74 SourceLocation SourceLoc, const Expr &Lhs,
82 const Expr &Lhs, const Expr &Rhs);
[all …]
/llvm-project-15.0.7/clang/include/clang/ExtractAPI/
H A DAvailabilityInfo.h61 friend bool operator==(const AvailabilityInfo &Lhs,
65 inline bool operator==(const AvailabilityInfo &Lhs,
67 return std::tie(Lhs.Introduced, Lhs.Deprecated, Lhs.Obsoleted,
68 Lhs.Unavailable, Lhs.UnconditionallyDeprecated,
69 Lhs.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.cpp183 BCEAtom Lhs; member
190 if (Rhs < Lhs) std::swap(Rhs, Lhs); in BCECmp()
206 const BCEAtom &Lhs() const { return Cmp.Lhs; } in Lhs() function in __anon2691366f0111::BCECmpBlock
321 if (!Lhs.BaseId) in visitICmp()
373 if (Result->Lhs.GEP) in visitCmpBlock()
418 return First.Lhs().BaseId == Second.Lhs().BaseId && in areContiguous()
611 Value *Lhs, *Rhs; in mergeComparisons() local
613 Lhs = Builder.Insert(FirstCmp.Lhs().GEP->clone()); in mergeComparisons()
615 Lhs = FirstCmp.Lhs().LoadI->getPointerOperand(); in mergeComparisons()
638 Builder.CreateLoad(FirstCmp.Lhs().LoadI->getType(), Lhs); in mergeComparisons()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/
H A DMsgPackDocument.h155 if (Lhs.KindAndDoc != Rhs.KindAndDoc) {
156 if (Lhs.isEmpty())
158 return (unsigned)Lhs.getKind() < (unsigned)Rhs.getKind();
160 switch (Lhs.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/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()
/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;
91 if (Lhs.CPUType == MachO::CPU_TYPE_ARM64)
96 return Lhs.P2Alignment < Rhs.P2Alignment;
/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/llvm/lib/Analysis/
H A DImportedFunctionsInliningStatistics.cpp204 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()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DExpandMemCmp.cpp116 Value *Lhs = nullptr; member
303 Value *Lhs = nullptr; in getLoadPair() local
305 Lhs = ConstantFoldLoadFromConstPtr(C, LoadSizeType, DL); in getLoadPair()
306 if (!Lhs) in getLoadPair()
319 Lhs = Builder.CreateCall(Bswap, Lhs); in getLoadPair()
325 Lhs = Builder.CreateZExt(Lhs, 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 …]
/llvm-project-15.0.7/libcxx/benchmarks/
H A Dstring.bench.cpp403 auto Lhs = makeString(RHLength()); in run() local
406 benchmark::DoNotOptimize(Lhs); in run()
410 benchmark::DoNotOptimize(Lhs == Rhs); in run()
413 benchmark::DoNotOptimize(Lhs < Rhs); in run()
416 benchmark::DoNotOptimize(Lhs.compare(Rhs)); in run()
444 auto Lhs = makeString(LHLength(), DiffType()); in run() local
446 benchmark::DoNotOptimize(Lhs); in run()
454 benchmark::DoNotOptimize(Lhs == Literal); in run()
457 benchmark::DoNotOptimize(Lhs < Literal); in run()
541 const auto LhsString = makeString(Lhs); in sanityCheckGeneratedStrings()
[all …]
/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()
32 return Lhs; in getUnqualifiedName()
/llvm-project-15.0.7/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 …]
/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 ==()
70 friend bool operator==(const ConstantPropagationLattice &Lhs, in operator ==() argument
72 return Lhs.Data == Rhs.Data; in operator ==()
H A DMultiVarConstantPropagationTest.cpp75 friend bool operator==(const ValueLattice &Lhs, const ValueLattice &Rhs) { in operator ==() argument
76 return Lhs.State == Rhs.State && Lhs.Value == Rhs.Value; in operator ==()
78 friend bool operator!=(const ValueLattice &Lhs, const ValueLattice &Rhs) { in operator !=() argument
79 return !(Lhs == Rhs); in operator !=()
/llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/
H A Dgtest-matchers.h532 template <typename Lhs>
533 operator Matcher<Lhs>() const {
534 return Matcher<Lhs>(new Impl<const Lhs&>(rhs_));
543 template <typename Lhs, typename = Rhs>
544 class Impl : public MatcherInterface<Lhs> {
547 bool MatchAndExplain(Lhs lhs, in MatchAndExplain()
714 template <typename Lhs, typename Rhs>
715 inline Matcher<Lhs> TypedEq(const Rhs& rhs) { return Eq(rhs); } in TypedEq()
/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()
647 if (Lhs) in CheckRelation()
648 EXPECT_EQ(Expected, OperatorT::apply(*Lhs, Rhs)); in CheckRelation()
653 EXPECT_EQ(Expected, OperatorT::apply(Lhs, *Rhs)); in CheckRelation()
655 EXPECT_EQ(Expected, OperatorT::apply(Lhs, None)); in CheckRelation()
663 bool operator==(const EqualityMock &Lhs, const EqualityMock &Rhs) { in operator ==() argument
664 EXPECT_EQ(&*EqualityLhs, &Lhs); in operator ==()
696 bool operator<(const InequalityMock &Lhs, const InequalityMock &Rhs) { in operator <() argument
697 EXPECT_EQ(&*InequalityLhs, &Lhs); in operator <()
/llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/Mips/
H A DBenchmarkResultTest.cpp42 const std::string Lhs = Dump(get<0>(arg)); variable
44 if (Lhs != Rhs) {
45 *result_listener << Lhs << " <=> " << Rhs;
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DPointerArithChecker.cpp323 const Expr *Lhs = BOp->getLHS(); in checkPreStmt() local
327 if (Rhs->getType()->isIntegerType() && Lhs->getType()->isPointerType()) { in checkPreStmt()
331 reportPointerArithMisuse(Lhs, C, !BOp->isAdditiveOp()); in checkPreStmt()
334 if (Lhs->getType()->isIntegerType() && Rhs->getType()->isPointerType()) { in checkPreStmt()
335 SVal LHSVal = C.getSVal(Lhs); in checkPreStmt()
/llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/X86/
H A DBenchmarkResultTest.cpp39 const std::string Lhs = Dump(get<0>(arg)); variable
41 if (Lhs != Rhs) {
42 *result_listener << Lhs << " <=> " << Rhs;
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/
H A Dsystem-header-simulation.h38 bool operator()(T &&Lhs, U &&Rhs) const { in operator()
39 return static_cast<T &&>(Lhs) < static_cast<U &&>(Rhs); in operator()
/llvm-project-15.0.7/llvm/lib/FileCheck/
H A DFileCheckImpl.h159 Expected<ExpressionValue> operator+(const ExpressionValue &Lhs,
161 Expected<ExpressionValue> operator-(const ExpressionValue &Lhs,
163 Expected<ExpressionValue> operator*(const ExpressionValue &Lhs,
165 Expected<ExpressionValue> operator/(const ExpressionValue &Lhs,
167 Expected<ExpressionValue> max(const ExpressionValue &Lhs,
169 Expected<ExpressionValue> min(const ExpressionValue &Lhs,
/llvm-project-15.0.7/bolt/include/bolt/Passes/
H A DCallGraph.h57 friend bool operator==(const Arc &Lhs, const Arc &Rhs) {
58 return Lhs.Src == Rhs.Src && Lhs.Dst == Rhs.Dst;

123