| /freebsd/contrib/llvm-project/openmp/runtime/src/ |
| H A D | kmp_atomic.h | 53 std::complex<type_lhs> __kmp_lhs_div_rhs(const std::complex<type_lhs> &lhs, in __kmp_lhs_div_rhs() argument 55 type_lhs a = lhs.real(); in __kmp_lhs_div_rhs() 56 type_lhs b = lhs.imag(); in __kmp_lhs_div_rhs() 74 std::complex<double> lhs = *this; member 75 *this = __kmp_lhs_div_rhs(lhs, rhs); 79 std::complex<double> lhs = *this; member 80 return __kmp_lhs_div_rhs(lhs, rhs); 93 std::complex<float> lhs = *this; member 95 return (lhs + rhs); 98 std::complex<float> lhs = *this; member [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | KnownBits.cpp | 21 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 D | Z3Solver.cpp | 253 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/lib/Target/WebAssembly/ |
| H A D | WebAssemblyInstrFloat.td | 27 defm _F32 : I<(outs F32:$dst), (ins F32:$lhs, F32:$rhs), (outs), (ins), 28 [(set F32:$dst, (node F32:$lhs, F32:$rhs))], 29 !strconcat("f32.", !strconcat(name, "\t$dst, $lhs, $rhs")), 31 defm _F64 : I<(outs F64:$dst), (ins F64:$lhs, F64:$rhs), (outs), (ins), 32 [(set F64:$dst, (node F64:$lhs, F64:$rhs))], 33 !strconcat("f64.", !strconcat(name, "\t$dst, $lhs, $rhs")), 37 defm _F32 : I<(outs I32:$dst), (ins F32:$lhs, F32:$rhs), (outs), (ins), 38 [(set I32:$dst, (setcc F32:$lhs, F32:$rhs, cond))], 39 !strconcat("f32.", !strconcat(name, "\t$dst, $lhs, $rhs")), 41 defm _F64 : I<(outs I32:$dst), (ins F64:$lhs, F64:$rhs), (outs), (ins), [all …]
|
| H A D | WebAssemblyInstrInteger.td | 27 defm _I32 : I<(outs I32:$dst), (ins I32:$lhs, I32:$rhs), (outs), (ins), 28 [(set I32:$dst, (node I32:$lhs, I32:$rhs))], 29 !strconcat("i32.", !strconcat(name, "\t$dst, $lhs, $rhs")), 31 defm _I64 : I<(outs I64:$dst), (ins I64:$lhs, I64:$rhs), (outs), (ins), 32 [(set I64:$dst, (node I64:$lhs, I64:$rhs))], 33 !strconcat("i64.", !strconcat(name, "\t$dst, $lhs, $rhs")), 37 defm _I32 : I<(outs I32:$dst), (ins I32:$lhs, I32:$rhs), (outs), (ins), 38 [(set I32:$dst, (setcc I32:$lhs, I32:$rhs, cond))], 39 !strconcat("i32.", !strconcat(name, "\t$dst, $lhs, $rhs")), 41 defm _I64 : I<(outs I32:$dst), (ins I64:$lhs, I64:$rhs), (outs), (ins), [all …]
|
| /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 | KnownBits.h | 314 /// Return true if LHS and RHS have no common bits set. 315 static bool haveNoCommonBitsSet(const KnownBits &LHS, const KnownBits &RHS) { in haveNoCommonBitsSet() 316 return (LHS.Zero | RHS.Zero).isAllOnes(); in haveNoCommonBitsSet() 319 /// Compute known bits resulting from adding LHS, RHS and a 1-bit Carry. 321 const KnownBits &LHS, const KnownBits &RHS, const KnownBits &Carry); 323 /// Compute known bits resulting from adding LHS and RHS. 325 const KnownBits &LHS, const KnownBits &RHS); 327 /// Compute known bits results from subtracting RHS from LHS with 1-bit 329 static KnownBits computeForSubBorrow(const KnownBits &LHS, KnownBits RHS, 332 /// Compute knownbits resulting from llvm.sadd.sat(LHS, RHS) [all …]
|
| H A D | TypeSize.h | 100 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 D | SMTAPI.h | 67 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 D | MatrixBuilder.h | 37 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() 43 "LHS Assumed to be fixed width"); 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() [all …]
|
| H A D | PatternMatch.h | 1027 // The LHS is always matched first. 1028 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() 1075 // The LHS is always matched first. 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() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Remarks/ |
| H A D | Remark.h | 148 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/CodeGen/GlobalISel/ |
| H A D | MIPatternMatch.h | 396 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/sys/ddb/ |
| H A D | db_expr.c | 160 db_expr_t lhs, rhs; in db_mult_expr() local 163 if (!db_unary(&lhs)) in db_mult_expr() 178 lhs *= rhs; in db_mult_expr() 181 lhs &= rhs; in db_mult_expr() 189 lhs /= rhs; in db_mult_expr() 191 lhs %= rhs; in db_mult_expr() 193 lhs = roundup(lhs, rhs); in db_mult_expr() 198 *valuep = lhs; in db_mult_expr() 205 db_expr_t lhs, rhs; in db_add_expr() local 208 if (!db_mult_expr(&lhs)) in db_add_expr() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | SDPatternMatch.h | 481 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/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
| H A D | ExecutorAddress.h | 111 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 D | Types.h | 120 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/lib/DebugInfo/LogicalView/Core/ |
| H A D | LVSort.cpp | 27 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/processor-trace/libipt/test/src/ |
| H A D | ptunit-asid.c | 264 struct pt_asid lhs, rhs; in match_default() local 267 pt_asid_init(&lhs); in match_default() 270 errcode = pt_asid_match(&lhs, &rhs); in match_default() 273 lhs.cr3 = 0x2300ull; in match_default() 274 lhs.vmcs = 0x42000ull; in match_default() 276 errcode = pt_asid_match(&lhs, &rhs); in match_default() 279 errcode = pt_asid_match(&rhs, &lhs); in match_default() 287 struct pt_asid lhs, rhs; in match_default_mixed() local 290 pt_asid_init(&lhs); in match_default_mixed() 293 errcode = pt_asid_match(&lhs, &rhs); in match_default_mixed() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | SMTConv.h | 91 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/llvm/include/llvm/ADT/ |
| H A D | Twine.h | 160 /// 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...] |
| /freebsd/contrib/llvm-project/lldb/include/lldb/Utility/ |
| H A D | Scalar.h | 205 static Type PromoteToMaxType(Scalar &lhs, Scalar &rhs); 213 friend const Scalar operator+(const Scalar &lhs, const Scalar &rhs); 214 friend const Scalar operator-(Scalar lhs, Scalar rhs); 215 friend const Scalar operator/(Scalar lhs, Scalar rhs); 216 friend const Scalar operator*(Scalar lhs, Scalar rhs); 217 friend const Scalar operator&(Scalar lhs, Scalar rhs); 218 friend const Scalar operator|(Scalar lhs, Scalar rhs); 219 friend const Scalar operator%(Scalar lhs, Scalar rhs); 220 friend const Scalar operator^(Scalar lhs, Scalar rhs); 221 friend const Scalar operator<<(const Scalar &lhs, const Scalar &rhs); [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | GUID.h | 25 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/Basic/ |
| H A D | Thunk.h | 72 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 …]
|
| /freebsd/contrib/ntp/libntp/ |
| H A D | vint64ops.c | 111 const vint64 * lhs, in icmpv64() 118 res = (lhs->q_s > rhs->q_s) in icmpv64() 119 - (lhs->q_s < rhs->q_s); in icmpv64() 121 res = (lhs->d_s.hi > rhs->d_s.hi) in icmpv64() 122 - (lhs->d_s.hi < rhs->d_s.hi); in icmpv64() 124 res = (lhs->D_s.lo > rhs->D_s.lo) in icmpv64() 125 - (lhs->D_s.lo < rhs->D_s.lo); in icmpv64() 135 const vint64 * lhs, in ucmpv64() 142 res = (lhs->Q_s > rhs->Q_s) in ucmpv64() 143 - (lhs in ucmpv64() 110 icmpv64(const vint64 * lhs,const vint64 * rhs) icmpv64() argument 134 ucmpv64(const vint64 * lhs,const vint64 * rhs) ucmpv64() argument 157 addv64(const vint64 * lhs,const vint64 * rhs) addv64() argument 176 subv64(const vint64 * lhs,const vint64 * rhs) subv64() argument 195 addv64i32(const vint64 * lhs,int32_t rhs) addv64i32() argument 214 subv64i32(const vint64 * lhs,int32_t rhs) subv64i32() argument 233 addv64u32(const vint64 * lhs,uint32_t rhs) addv64u32() argument 252 subv64u32(const vint64 * lhs,uint32_t rhs) subv64u32() argument [all...] |