Home
last modified time | relevance | path

Searched refs:LHS (Results 1 – 25 of 677) sorted by relevance

12345678910>>...28

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp21 static KnownBits computeForAddCarry(const KnownBits &LHS, const KnownBits &RHS, in computeForAddCarry() argument
24 APInt PossibleSumZero = LHS.getMaxValue() + RHS.getMaxValue() + !CarryZero; in computeForAddCarry()
25 APInt PossibleSumOne = LHS.getMinValue() + RHS.getMinValue() + CarryOne; in computeForAddCarry()
28 APInt CarryKnownZero = ~(PossibleSumZero ^ LHS.Zero ^ RHS.Zero); in computeForAddCarry()
29 APInt CarryKnownOne = PossibleSumOne ^ LHS.One ^ RHS.One; in computeForAddCarry()
32 APInt LHSKnownUnion = LHS.Zero | LHS.One; in computeForAddCarry()
45 const KnownBits &LHS, const KnownBits &RHS, const KnownBits &Carry) { in computeForAddCarry() argument
48 LHS, RHS, Carry.Zero.getBoolValue(), Carry.One.getBoolValue()); in computeForAddCarry()
52 const KnownBits &LHS, in computeForAddSub() argument
54 unsigned BitWidth = LHS.getBitWidth(); in computeForAddSub()
[all …]
H A DZ3Solver.cpp253 static bool areEquivalent(const llvm::fltSemantics &LHS, in areEquivalent() argument
255 return (llvm::APFloat::semanticsPrecision(LHS) == in areEquivalent()
257 (llvm::APFloat::semanticsMinExponent(LHS) == in areEquivalent()
259 (llvm::APFloat::semanticsMaxExponent(LHS) == in areEquivalent()
261 (llvm::APFloat::semanticsSizeInBits(LHS) == in areEquivalent()
363 SMTExprRef mkBVAdd(const SMTExprRef &LHS, const SMTExprRef &RHS) override { in mkBVAdd() argument
365 Z3Expr(Context, Z3_mk_bvadd(Context.Context, toZ3Expr(*LHS).AST, in mkBVAdd()
369 SMTExprRef mkBVSub(const SMTExprRef &LHS, const SMTExprRef &RHS) override { in mkBVSub() argument
371 Z3Expr(Context, Z3_mk_bvsub(Context.Context, toZ3Expr(*LHS).AST, in mkBVSub()
375 SMTExprRef mkBVMul(const SMTExprRef &LHS, const SMTExprRef &RHS) override { in mkBVMul() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Remarks/
H A DRemark.h148 bool operator<(const std::optional<T> &LHS, const std::optional<T> &RHS) {
152 if (!LHS && !RHS)
154 if (!LHS && RHS)
156 if (LHS && !RHS)
158 return *LHS < *RHS;
161 inline bool operator==(const RemarkLocation &LHS, const RemarkLocation &RHS) {
162 return LHS.SourceFilePath == RHS.SourceFilePath &&
163 LHS.SourceLine == RHS.SourceLine &&
164 LHS.SourceColumn == RHS.SourceColumn;
167 inline bool operator!=(const RemarkLocation &LHS, cons
[all...]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DTwine.h160 /// LHS - The prefix in the concatenation, which may be uninitialized for
162 Child LHS;
180 explicit Twine(const Twine &LHS, const Twine &RHS) in Twine()
182 this->LHS.twine = &LHS;
188 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind)
189 : LHS(LHS), RHS(RHS), LHSKind(LHSKind), RHSKind(RHSKind) {
229 // The RHS cannot be non-empty if the LHS is empty. in isValid()
235 !LHS in isValid()
158 Child LHS; global() variable
176 Twine(const Twine & LHS,const Twine & RHS) Twine() argument
184 Twine(Child LHS,NodeKind LHSKind,Child RHS,NodeKind RHSKind) Twine() argument
372 Twine(const char * LHS,const StringRef & RHS) Twine() argument
381 Twine(const StringRef & LHS,const char * RHS) Twine() argument
405 Child LHS, RHS; utohexstr() local
[all...]
H A DDenseMapInfo.h89 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
98 static bool isEqual(const char &LHS, const char &RHS) {
99 return LHS == RHS;
109 static bool isEqual(const unsigned char &LHS, const unsigned char &RHS) {
110 return LHS == RHS;
120 static bool isEqual(const unsigned short &LHS, const unsigned short &RHS) {
121 return LHS == RHS;
131 static bool isEqual(const unsigned& LHS, const unsigned& RHS) {
132 return LHS == RHS;
148 static bool isEqual(const unsigned long& LHS, const unsigned long& RHS) {
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h315 static bool haveNoCommonBitsSet(const KnownBits &LHS, const KnownBits &RHS) { in haveNoCommonBitsSet()
316 return (LHS.Zero | RHS.Zero).isAllOnes(); in haveNoCommonBitsSet()
321 const KnownBits &LHS, const KnownBits &RHS, const KnownBits &Carry);
325 const KnownBits &LHS, const KnownBits &RHS);
329 static KnownBits computeForSubBorrow(const KnownBits &LHS, KnownBits RHS,
333 static KnownBits sadd_sat(const KnownBits &LHS, const KnownBits &RHS);
336 static KnownBits uadd_sat(const KnownBits &LHS, const KnownBits &RHS);
339 static KnownBits ssub_sat(const KnownBits &LHS, const KnownBits &RHS);
342 static KnownBits usub_sat(const KnownBits &LHS, const KnownBits &RHS);
345 static KnownBits avgFloorS(const KnownBits &LHS, const KnownBits &RHS);
[all …]
H A DTypeSize.h100 friend constexpr LeafTy &operator+=(LeafTy &LHS, const LeafTy &RHS) {
101 assert((LHS.Quantity == 0 || RHS.Quantity == 0 ||
102 LHS.Scalable == RHS.Scalable) &&
104 LHS.Quantity += RHS.Quantity;
106 LHS.Scalable = RHS.Scalable;
107 return LHS;
110 friend constexpr LeafTy &operator-=(LeafTy &LHS, const LeafTy &RHS) {
111 assert((LHS.Quantity == 0 || RHS.Quantity == 0 ||
112 LHS.Scalable == RHS.Scalable) &&
114 LHS.Quantity -= RHS.Quantity;
[all …]
H A DSMTAPI.h67 friend bool operator==(SMTSort const &LHS, SMTSort const &RHS) {
68 return LHS.equal_to(RHS);
114 friend bool operator==(SMTExpr const &LHS, SMTExpr const &RHS) {
115 return LHS.equal_to(RHS);
197 virtual SMTExprRef mkBVAdd(const SMTExprRef &LHS, const SMTExprRef &RHS) = 0;
200 virtual SMTExprRef mkBVSub(const SMTExprRef &LHS, const SMTExprRef &RHS) = 0;
203 virtual SMTExprRef mkBVMul(const SMTExprRef &LHS, const SMTExprRef &RHS) = 0;
206 virtual SMTExprRef mkBVSRem(const SMTExprRef &LHS, const SMTExprRef &RHS) = 0;
209 virtual SMTExprRef mkBVURem(const SMTExprRef &LHS, const SMTExprRef &RHS) = 0;
212 virtual SMTExprRef mkBVSDiv(const SMTExprRef &LHS, const SMTExprRef &RHS) = 0;
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMatrixBuilder.h37 std::pair<Value *, Value *> splatScalarOperandIfNeeded(Value *LHS, in splatScalarOperandIfNeeded() argument
39 assert((LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()) && in splatScalarOperandIfNeeded()
41 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in splatScalarOperandIfNeeded()
42 assert(!isa<ScalableVectorType>(LHS->getType()) && in splatScalarOperandIfNeeded()
45 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in splatScalarOperandIfNeeded()
47 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in splatScalarOperandIfNeeded()
50 LHS = B.CreateVectorSplat( in splatScalarOperandIfNeeded()
51 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in splatScalarOperandIfNeeded()
54 return {LHS, RHS}; in splatScalarOperandIfNeeded()
126 CallInst *CreateMatrixMultiply(Value *LHS, Value *RHS, unsigned LHSRows,
[all …]
H A DPatternMatch.h1028 AnyBinaryOp_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} in AnyBinaryOp_match()
1039 template <typename LHS, typename RHS>
1040 inline AnyBinaryOp_match<LHS, RHS> m_BinOp(const LHS &L, const RHS &R) { in m_BinOp()
1041 return AnyBinaryOp_match<LHS, RHS>(L, R); in m_BinOp()
1076 BinaryOp_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} in BinaryOp_match()
1091 template <typename LHS, typename RHS>
1092 inline BinaryOp_match<LHS, RHS, Instruction::Add> m_Add(const LHS &L, in m_Add()
1094 return BinaryOp_match<LHS, RHS, Instruction::Add>(L, R); in m_Add()
1097 template <typename LHS, typename RHS>
1098 inline BinaryOp_match<LHS, RHS, Instruction::FAdd> m_FAdd(const LHS &L, in m_FAdd()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/
H A DLVSort.cpp27 LVSortValue llvm::logicalview::compareKind(const LVObject *LHS, in compareKind() argument
29 return std::string(LHS->kind()) < std::string(RHS->kind()); in compareKind()
33 LVSortValue llvm::logicalview::compareLine(const LVObject *LHS, in compareLine() argument
35 return LHS->getLineNumber() < RHS->getLineNumber(); in compareLine()
39 LVSortValue llvm::logicalview::compareName(const LVObject *LHS, in compareName() argument
41 return LHS->getName() < RHS->getName(); in compareName()
45 LVSortValue llvm::logicalview::compareOffset(const LVObject *LHS, in compareOffset() argument
47 return LHS->getOffset() < RHS->getOffset(); in compareOffset()
51 LVSortValue llvm::logicalview::compareRange(const LVObject *LHS, in compareRange() argument
53 if (LHS->getLowerAddress() < RHS->getLowerAddress()) in compareRange()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DExecutorAddress.h111 friend bool operator==(const ExecutorAddr &LHS, const ExecutorAddr &RHS) {
112 return LHS.Addr == RHS.Addr;
115 friend bool operator!=(const ExecutorAddr &LHS, const ExecutorAddr &RHS) {
116 return LHS.Addr != RHS.Addr;
119 friend bool operator<(const ExecutorAddr &LHS, const ExecutorAddr &RHS) {
120 return LHS.Addr < RHS.Addr;
123 friend bool operator<=(const ExecutorAddr &LHS, const ExecutorAddr &RHS) {
124 return LHS.Addr <= RHS.Addr;
127 friend bool operator>(const ExecutorAddr &LHS, const ExecutorAddr &RHS) {
128 return LHS.Addr > RHS.Addr;
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/APINotes/
H A DTypes.h120 inline bool operator==(const CommonEntityInfo &LHS,
122 return LHS.UnavailableMsg == RHS.UnavailableMsg &&
123 LHS.Unavailable == RHS.Unavailable &&
124 LHS.UnavailableInSwift == RHS.UnavailableInSwift &&
125 LHS.SwiftPrivateSpecified == RHS.SwiftPrivateSpecified &&
126 LHS.SwiftPrivate == RHS.SwiftPrivate && LHS.SwiftName == RHS.SwiftName;
129 inline bool operator!=(const CommonEntityInfo &LHS,
131 return !(LHS == RHS);
185 inline bool operator==(const CommonTypeInfo &LHS, const CommonTypeInfo &RHS) {
186 return static_cast<const CommonEntityInfo &>(LHS) == RHS &&
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMIPatternMatch.h396 BinaryOp_match(const LHS_P &LHS, const RHS_P &RHS) : L(LHS), R(RHS) {}
419 BinaryOpc_match(unsigned Opcode, const LHS_P &LHS, const RHS_P &RHS)
420 : Opc(Opcode), L(LHS), R(RHS) {}
437 template <typename LHS, typename RHS>
438 inline BinaryOpc_match<LHS, RHS, false> m_BinOp(unsigned Opcode, const LHS &L,
440 return BinaryOpc_match<LHS, RHS, false>(Opcode, L, R);
443 template <typename LHS, typename RHS>
444 inline BinaryOpc_match<LHS, RHS, true>
445 m_CommutativeBinOp(unsigned Opcode, const LHS &L, const RHS &R) {
446 return BinaryOpc_match<LHS, RHS, true>(Opcode, L, R);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSDPatternMatch.h481 m_SetCC(const T0_P &LHS, const T1_P &RHS, const T2_P &CC) {
482 return TernaryOpc_match<T0_P, T1_P, T2_P, false, false>(ISD::SETCC, LHS, RHS,
488 m_c_SetCC(const T0_P &LHS, const T1_P &RHS, const T2_P &CC) {
489 return TernaryOpc_match<T0_P, T1_P, T2_P, true, false>(ISD::SETCC, LHS, RHS,
498 LHS_P LHS;
502 : Opcode(Opc), LHS(L), RHS(R) {}
509 return (LHS.match(Ctx, N->getOperand(EO.FirstIndex)) &&
511 (Commutable && LHS.match(Ctx, N->getOperand(EO.FirstIndex + 1)) &&
519 template <typename LHS, typename RHS>
520 inline BinaryOpc_match<LHS, RHS, false> m_BinOp(unsigned Opc, const LHS &L,
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DThunk.h72 friend bool operator==(const ReturnAdjustment &LHS,
74 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Equals(RHS.Virtual);
77 friend bool operator!=(const ReturnAdjustment &LHS,
79 return !(LHS == RHS);
82 friend bool operator<(const ReturnAdjustment &LHS,
84 if (LHS.NonVirtual < RHS.NonVirtual)
87 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Less(RHS.Virtual);
139 friend bool operator==(const ThisAdjustment &LHS, const ThisAdjustment &RHS) {
140 return LHS.NonVirtual == RHS.NonVirtual && LHS.Virtual.Equals(RHS.Virtual);
143 friend bool operator!=(const ThisAdjustment &LHS, const ThisAdjustment &RHS) {
[all …]
H A DFileEntry.h84 friend bool operator==(const FileEntryRef &LHS, const FileEntryRef &RHS) {
85 return &LHS.getFileEntry() == &RHS.getFileEntry();
87 friend bool operator==(const FileEntry *LHS, const FileEntryRef &RHS) {
88 return LHS == &RHS.getFileEntry();
90 friend bool operator==(const FileEntryRef &LHS, const FileEntry *RHS) {
91 return &LHS.getFileEntry() == RHS;
93 friend bool operator!=(const FileEntryRef &LHS, const FileEntryRef &RHS) {
94 return !(LHS == RHS);
96 friend bool operator!=(const FileEntry *LHS, const FileEntryRef &RHS) {
97 return !(LHS == RHS);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DGUID.h25 inline bool operator==(const GUID &LHS, const GUID &RHS) {
26 return 0 == ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid));
29 inline bool operator<(const GUID &LHS, const GUID &RHS) {
30 return ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid)) < 0;
33 inline bool operator<=(const GUID &LHS, const GUID &RHS) {
34 return ::memcmp(LHS.Guid, RHS.Guid, sizeof(LHS.Guid)) <= 0;
37 inline bool operator>(const GUID &LHS, const GUID &RHS) {
38 return !(LHS <= RHS);
41 inline bool operator>=(const GUID &LHS, const GUID &RHS) {
42 return !(LHS < RHS);
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConv.h91 const llvm::SMTExprRef &LHS, in fromBinOp() argument
95 assert(*Solver->getSort(LHS) == *Solver->getSort(RHS) && in fromBinOp()
101 return Solver->mkBVMul(LHS, RHS); in fromBinOp()
104 return isSigned ? Solver->mkBVSDiv(LHS, RHS) : Solver->mkBVUDiv(LHS, RHS); in fromBinOp()
107 return isSigned ? Solver->mkBVSRem(LHS, RHS) : Solver->mkBVURem(LHS, RHS); in fromBinOp()
111 return Solver->mkBVAdd(LHS, RHS); in fromBinOp()
114 return Solver->mkBVSub(LHS, RHS); in fromBinOp()
118 return Solver->mkBVShl(LHS, RHS); in fromBinOp()
121 return isSigned ? Solver->mkBVAshr(LHS, RHS) : Solver->mkBVLshr(LHS, RHS); in fromBinOp()
125 return isSigned ? Solver->mkBVSlt(LHS, RHS) : Solver->mkBVUlt(LHS, RHS); in fromBinOp()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclID.h135 friend bool operator==(const DeclIDBase &LHS, const DeclID &RHS) {
136 return LHS.ID == RHS;
138 friend bool operator!=(const DeclIDBase &LHS, const DeclID &RHS) {
139 return !operator==(LHS, RHS);
141 friend bool operator<(const DeclIDBase &LHS, const DeclID &RHS) {
142 return LHS.ID < RHS;
144 friend bool operator<=(const DeclIDBase &LHS, const DeclID &RHS) {
145 return LHS.ID <= RHS;
147 friend bool operator>(const DeclIDBase &LHS, const DeclID &RHS) {
148 return LHS.ID > RHS;
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_dense_map_info.h99 static constexpr bool isEqual(const T *LHS, const T *RHS) {
100 return LHS == RHS;
111 static constexpr bool isEqual(const char &LHS, const char &RHS) {
112 return LHS == RHS;
125 static constexpr bool isEqual(const unsigned char &LHS,
127 return LHS == RHS;
140 static constexpr bool isEqual(const unsigned short &LHS,
142 return LHS == RHS;
155 static constexpr bool isEqual(const unsigned &LHS, const unsigned &RHS) {
156 return LHS == RHS;
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Edit/
H A DFileOffset.h37 friend bool operator==(FileOffset LHS, FileOffset RHS) {
38 return LHS.FID == RHS.FID && LHS.Offs == RHS.Offs;
41 friend bool operator!=(FileOffset LHS, FileOffset RHS) {
42 return !(LHS == RHS);
45 friend bool operator<(FileOffset LHS, FileOffset RHS) {
46 return std::tie(LHS.FID, LHS.Offs) < std::tie(RHS.FID, RHS.Offs);
49 friend bool operator>(FileOffset LHS, FileOffset RHS) {
50 return RHS < LHS;
53 friend bool operator>=(FileOffset LHS, FileOffset RHS) {
54 return !(LHS < RHS);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCExpr.h518 const MCExpr *LHS, *RHS;
520 MCBinaryExpr(Opcode Op, const MCExpr *LHS, const MCExpr *RHS,
522 : MCExpr(MCExpr::Binary, Loc, Op), LHS(LHS), RHS(RHS) {} in MCExpr()
528 static const MCBinaryExpr *create(Opcode Op, const MCExpr *LHS,
532 static const MCBinaryExpr *createAdd(const MCExpr *LHS, const MCExpr *RHS, in createAdd() argument
534 return create(Add, LHS, RHS, Ctx); in createAdd()
537 static const MCBinaryExpr *createAnd(const MCExpr *LHS, const MCExpr *RHS, in createAnd() argument
539 return create(And, LHS, RHS, Ctx); in createAnd()
542 static const MCBinaryExpr *createDiv(const MCExpr *LHS, const MCExpr *RHS, in createDiv() argument
544 return create(Div, LHS, RHS, Ctx); in createDiv()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafetyLogical.cpp19 static bool implies(const LExpr *LHS, bool LNeg, const LExpr *RHS, bool RNeg) { in implies() argument
28 return implies(LHS, LNeg, A->left(), RNeg) && in implies()
29 implies(LHS, LNeg, A->right(), RNeg); in implies()
38 return implies(LHS, LNeg, A->left(), RNeg) || in implies()
39 implies(LHS, LNeg, A->right(), RNeg); in implies()
61 return implies(LHS, LNeg, cast<Not>(RHS)->exp(), !RNeg); in implies()
68 switch (LHS->kind()) { in implies()
74 return LNeg ? LeftAndOperator(cast<And>(LHS)) in implies()
75 : LeftOrOperator(cast<And>(LHS)); in implies()
81 return LNeg ? LeftOrOperator(cast<Or>(LHS)) in implies()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPExpressions.cpp75 static bool EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec,
576 static void diagnoseUnexpectedOperator(Preprocessor &PP, PPValue &LHS, in diagnoseUnexpectedOperator() argument
578 if (Tok.is(tok::l_paren) && LHS.getIdentifier()) in diagnoseUnexpectedOperator()
579 PP.Diag(LHS.getRange().getBegin(), diag::err_pp_expr_bad_token_lparen) in diagnoseUnexpectedOperator()
580 << LHS.getIdentifier(); in diagnoseUnexpectedOperator()
583 << LHS.getRange(); in diagnoseUnexpectedOperator()
592 static bool EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec, in EvaluateDirectiveSubExpr() argument
599 diagnoseUnexpectedOperator(PP, LHS, PeekTok); in EvaluateDirectiveSubExpr()
617 if (Operator == tok::ampamp && LHS.Val == 0) in EvaluateDirectiveSubExpr()
619 else if (Operator == tok::pipepipe && LHS.Val != 0) in EvaluateDirectiveSubExpr()
[all …]

12345678910>>...28