| /llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/ |
| H A D | less_comp.pass.cpp | 28 void do_test(int *LHSVal, int *RHSVal) { in do_test() argument 29 const C LHS = C::from_address(LHSVal); in do_test() 31 assert((LHS < RHS) == (LHSVal < RHSVal)); in do_test() 32 assert((RHS < LHS) == (RHSVal < LHSVal)); in do_test() 33 assert((LHS > RHS) == (LHSVal > RHSVal)); in do_test() 34 assert((RHS > LHS) == (RHSVal > LHSVal)); in do_test() 35 assert((LHS <= RHS) == (LHSVal <= RHSVal)); in do_test() 36 assert((RHS <= LHS) == (RHSVal <= LHSVal)); in do_test() 37 assert((LHS >= RHS) == (LHSVal >= RHSVal)); in do_test() 38 assert((RHS >= LHS) == (RHSVal >= LHSVal)); in do_test()
|
| H A D | equal_comp.pass.cpp | 28 void do_test(int *LHSVal, int *RHSVal) { in do_test() argument 29 const C LHS = C::from_address(LHSVal); in do_test() 31 const bool ExpectIsEqual = (LHSVal == RHSVal); in do_test()
|
| /llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/ |
| H A D | less_comp.pass.cpp | 32 void do_test(uintptr_t LHSVal, uintptr_t RHSVal) { in do_test() argument 33 const C LHS = C::from_address(reinterpret_cast<void*>(LHSVal)); in do_test() 35 assert((LHS < RHS) == (LHSVal < RHSVal)); in do_test() 36 assert((RHS < LHS) == (RHSVal < LHSVal)); in do_test() 37 assert((LHS > RHS) == (LHSVal > RHSVal)); in do_test() 38 assert((RHS > LHS) == (RHSVal > LHSVal)); in do_test() 39 assert((LHS <= RHS) == (LHSVal <= RHSVal)); in do_test() 40 assert((RHS <= LHS) == (RHSVal <= LHSVal)); in do_test() 41 assert((LHS >= RHS) == (LHSVal >= RHSVal)); in do_test() 42 assert((RHS >= LHS) == (RHSVal >= LHSVal)); in do_test()
|
| H A D | equal_comp.pass.cpp | 30 void do_test(uintptr_t LHSVal, uintptr_t RHSVal) { in do_test() argument 31 const C LHS = C::from_address(reinterpret_cast<void*>(LHSVal)); in do_test() 33 const bool ExpectIsEqual = (LHSVal == RHSVal); in do_test()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | CheckerContext.cpp | 125 static bool evalComparison(SVal LHSVal, BinaryOperatorKind ComparisonOp, in evalComparison() argument 127 if (LHSVal.isUnknownOrUndef()) in evalComparison() 130 if (!isa<NonLoc>(LHSVal)) { in evalComparison() 131 LHSVal = Mgr.getStoreManager().getBinding(State->getStore(), in evalComparison() 132 LHSVal.castAs<Loc>()); in evalComparison() 133 if (LHSVal.isUnknownOrUndef() || !isa<NonLoc>(LHSVal)) in evalComparison() 138 SVal Eval = Bldr.evalBinOp(State, ComparisonOp, LHSVal, RHSVal, in evalComparison()
|
| H A D | ExprEngineC.cpp | 163 SVal LHSVal; in VisitBinaryOperator() local 169 LHSVal = svalBuilder.conjureSymbolVal(nullptr, B->getRHS(), LCtx, LTy, in VisitBinaryOperator() 172 Result = svalBuilder.evalCast(LHSVal, CTy, LTy); in VisitBinaryOperator() 177 LHSVal = svalBuilder.evalCast(Result, LTy, CTy); in VisitBinaryOperator() 187 evalStore(Tmp2, B, LHS, *I, state, location, LHSVal); in VisitBinaryOperator()
|
| /llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/ |
| H A D | hash.pass.cpp | 33 void do_test(uintptr_t LHSVal, uintptr_t RHSVal) { in do_test() argument 34 const size_t ExpectLHS = std::hash<void*>{}(reinterpret_cast<void*>(LHSVal)); in do_test() 36 const C LHS = C::from_address(reinterpret_cast<void*>(LHSVal)); in do_test() 43 assert((h(LHS) == h(RHS)) == (LHSVal == RHSVal)); in do_test()
|
| /llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/ |
| H A D | hash.pass.cpp | 32 void do_test(int *LHSVal, int *RHSVal) { in do_test() argument 33 [[maybe_unused]] const size_t ExpectLHS = std::hash<void*>{}(LHSVal); in do_test() 35 const C LHS = C::from_address(LHSVal); in do_test() 41 assert((h(LHS) == h(RHS)) == (LHSVal == RHSVal)); in do_test()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelDAGToDAG.h | 59 uint32_t LHSVal, RHSVal; variable 60 if (getConstantValue(N->getOperand(0), LHSVal) && 63 uint32_t K = Negate ? (-LHSVal & 0xffff) | (-RHSVal << 16) 64 : (LHSVal & 0xffff) | (RHSVal << 16);
|
| /llvm-project-15.0.7/compiler-rt/lib/ubsan/ |
| H A D | ubsan_handlers.cpp | 289 Value LHSVal(Data->Type, LHS); in handleDivremOverflowImpl() local 309 << LHSVal << Data->Type; in handleDivremOverflowImpl() 334 Value LHSVal(Data->LHSType, LHS); in handleShiftOutOfBoundsImpl() local 357 if (LHSVal.isNegative()) in handleShiftOutOfBoundsImpl() 358 Diag(Loc, DL_Error, ET, "left shift of negative value %0") << LHSVal; in handleShiftOutOfBoundsImpl() 362 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombinePHI.cpp | 404 Value *LHSVal = FirstInst->getOperand(0); in foldPHIArgBinOpIntoPHI() local 407 Type *LHSType = LHSVal->getType(); in foldPHIArgBinOpIntoPHI() 426 if (I->getOperand(0) != LHSVal) LHSVal = nullptr; in foldPHIArgBinOpIntoPHI() 434 if (!LHSVal && !RHSVal) in foldPHIArgBinOpIntoPHI() 442 if (!LHSVal) { in foldPHIArgBinOpIntoPHI() 447 LHSVal = NewLHS; in foldPHIArgBinOpIntoPHI() 477 LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI() 484 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/ |
| H A D | move_convert.single.pass.cpp | 44 void checkDeleter(LHS& lhs, RHS& rhs, int LHSVal, int RHSVal) { in checkDeleter() argument 45 assert(lhs.get_deleter().state() == LHSVal); in checkDeleter()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PointerArithChecker.cpp | 335 SVal LHSVal = C.getSVal(Lhs); in checkPreStmt() local 336 if (State->isNull(LHSVal).isConstrainedTrue()) in checkPreStmt()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprComplex.cpp | 934 ComplexPairTy LHSVal = EmitLoadOfLValue(LHS, Loc); in EmitCompoundAssignLValue() local 935 OpInfo.LHS = EmitComplexToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue() 937 llvm::Value *LHSVal = CGF.EmitLoadOfScalar(LHS, Loc); in EmitCompoundAssignLValue() local 942 LHSVal = CGF.EmitScalarConversion(LHSVal, LHSTy, ComplexElementTy, Loc); in EmitCompoundAssignLValue() 943 OpInfo.LHS = ComplexPairTy(LHSVal, nullptr); in EmitCompoundAssignLValue() 945 OpInfo.LHS = EmitScalarToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | JumpThreading.cpp | 754 for (const auto &LHSVal : LHSVals) in computeValueKnownInPredecessorsImpl() local 755 if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) { in computeValueKnownInPredecessorsImpl() 756 Result.emplace_back(InterestingVal, LHSVal.second); in computeValueKnownInPredecessorsImpl() 757 LHSKnownBBs.insert(LHSVal.second); in computeValueKnownInPredecessorsImpl() 797 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local 798 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl() 803 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl() 932 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local 933 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl() 936 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl()
|
| /llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/ |
| H A D | Transfer.cpp | 81 BoolValue &LHSVal = getLogicOperatorSubExprValue(*LHS); in VisitBinaryOperator() local 87 Env.setValue(Loc, Env.makeAnd(LHSVal, RHSVal)); in VisitBinaryOperator() 89 Env.setValue(Loc, Env.makeOr(LHSVal, RHSVal)); in VisitBinaryOperator()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/AsmParser/ |
| H A D | PPCAsmParser.cpp | 75 int64_t LHSVal = EvaluateCRExpr(BE->getLHS()); in EvaluateCRExpr() local 79 if (LHSVal < 0 || RHSVal < 0) in EvaluateCRExpr() 84 case MCBinaryExpr::Add: Res = LHSVal + RHSVal; break; in EvaluateCRExpr() 85 case MCBinaryExpr::Mul: Res = LHSVal * RHSVal; break; in EvaluateCRExpr()
|
| /llvm-project-15.0.7/llvm/include/llvm/TableGen/ |
| H A D | Record.h | 2073 unsigned LHSVal, RHSVal; in operator() local 2075 bool LHSFailed = LHSPart.second.getAsInteger(10, LHSVal); (void)LHSFailed; in operator() 2080 if (LHSVal != RHSVal) in operator() 2081 return LHSVal < RHSVal; in operator()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaStmt.cpp | 510 Sema::ActOnCaseStmt(SourceLocation CaseLoc, ExprResult LHSVal, in ActOnCaseStmt() argument 513 assert((LHSVal.isInvalid() || LHSVal.get()) && "missing LHS value"); in ActOnCaseStmt() 523 if (LHSVal.isInvalid() || RHSVal.isInvalid()) { in ActOnCaseStmt() 528 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 3268 SDValue LHSVal = getValue(I.getOperand(1)); in visitSelect() local 3359 LHSVal = getValue(LHS); in visitSelect() 3366 LHSVal = getValue(LHS); in visitSelect() 3374 EVT VT = LHSVal.getNode()->getValueType(LHSVal.getResNo() + i); in visitSelect() 3376 DAG.getNode(OpCode, dl, VT, LHSVal.getValue(LHSVal.getResNo() + i)); in visitSelect() 3384 Ops.push_back(SDValue(LHSVal.getNode(), LHSVal.getResNo() + i)); in visitSelect() 3388 LHSVal.getNode()->getValueType(LHSVal.getResNo() + i), Ops, Flags); in visitSelect()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 12637 const APValue &LHSVal = LHSResult.Val; in VisitBinOp() local 12641 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp() 12642 Result = LHSVal; in VisitBinOp() 12649 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp() 12651 addOrSubLValueAsInteger(Result, LHSVal.getInt(), /*IsSub*/false); in VisitBinOp() 12655 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp() 12657 if (!LHSVal.getLValueOffset().isZero() || in VisitBinOp() 12660 const Expr *LHSExpr = LHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp() 12677 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp() 12685 if (!handleIntIntBinOp(Info, E, LHSVal.getInt(), E->getOpcode(), in VisitBinOp()
|