Home
last modified time | relevance | path

Searched refs:LHSVal (Results 1 – 25 of 40) sorted by relevance

12

/external/llvm-project/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/
Dless_comp.pass.cpp33 void do_test(uintptr_t LHSVal, uintptr_t RHSVal) { in do_test() argument
34 const C LHS = C::from_address(reinterpret_cast<void*>(LHSVal)); in do_test()
36 assert((LHS < RHS) == (LHSVal < RHSVal)); in do_test()
37 assert((RHS < LHS) == (RHSVal < LHSVal)); in do_test()
38 assert((LHS > RHS) == (LHSVal > RHSVal)); in do_test()
39 assert((RHS > LHS) == (RHSVal > LHSVal)); in do_test()
40 assert((LHS <= RHS) == (LHSVal <= RHSVal)); in do_test()
41 assert((RHS <= LHS) == (RHSVal <= LHSVal)); in do_test()
42 assert((LHS >= RHS) == (LHSVal >= RHSVal)); in do_test()
43 assert((RHS >= LHS) == (RHSVal >= LHSVal)); in do_test()
Dequal_comp.pass.cpp31 void do_test(uintptr_t LHSVal, uintptr_t RHSVal) { in do_test() argument
32 const C LHS = C::from_address(reinterpret_cast<void*>(LHSVal)); in do_test()
34 const bool ExpectIsEqual = (LHSVal == RHSVal); in do_test()
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/
Dless_comp.pass.cpp34 void do_test(uintptr_t LHSVal, uintptr_t RHSVal) { in do_test() argument
35 const C LHS = C::from_address(reinterpret_cast<void*>(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()
43 assert((LHS >= RHS) == (LHSVal >= RHSVal)); in do_test()
44 assert((RHS >= LHS) == (RHSVal >= LHSVal)); in do_test()
Dequal_comp.pass.cpp32 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 const bool ExpectIsEqual = (LHSVal == RHSVal); in do_test()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp101 static bool evalComparison(SVal LHSVal, BinaryOperatorKind ComparisonOp, in evalComparison() argument
103 if (LHSVal.isUnknownOrUndef()) in evalComparison()
106 if (!LHSVal.getAs<NonLoc>()) { in evalComparison()
107 LHSVal = Mgr.getStoreManager().getBinding(State->getStore(), in evalComparison()
108 LHSVal.castAs<Loc>()); in evalComparison()
109 if (LHSVal.isUnknownOrUndef() || !LHSVal.getAs<NonLoc>()) in evalComparison()
114 SVal Eval = Bldr.evalBinOp(State, ComparisonOp, LHSVal, RHSVal, in evalComparison()
DExprEngineC.cpp164 SVal LHSVal; in VisitBinaryOperator() local
170 LHSVal = svalBuilder.conjureSymbolVal(nullptr, B->getRHS(), LCtx, LTy, in VisitBinaryOperator()
173 Result = svalBuilder.evalCast(LHSVal, CTy, LTy); in VisitBinaryOperator()
178 LHSVal = svalBuilder.evalCast(Result, LTy, CTy); in VisitBinaryOperator()
188 evalStore(Tmp2, B, LHS, *I, state, location, LHSVal); in VisitBinaryOperator()
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/
Dhash.pass.cpp34 void do_test(uintptr_t LHSVal, uintptr_t RHSVal) { in do_test() argument
35 const size_t ExpectLHS = std::hash<void*>{}(reinterpret_cast<void*>(LHSVal)); in do_test()
37 const C LHS = C::from_address(reinterpret_cast<void*>(LHSVal)); in do_test()
44 assert((h(LHS) == h(RHS)) == (LHSVal == RHSVal)); in do_test()
/external/llvm-project/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/
Dhash.pass.cpp33 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()
/external/compiler-rt/lib/ubsan/
Dubsan_handlers.cc179 Value LHSVal(Data->Type, LHS); in handleDivremOverflowImpl() local
198 << LHSVal << Data->Type; in handleDivremOverflowImpl()
223 Value LHSVal(Data->LHSType, LHS); in handleShiftOutOfBoundsImpl() local
245 if (LHSVal.isNegative()) in handleShiftOutOfBoundsImpl()
246 Diag(Loc, DL_Error, "left shift of negative value %0") << LHSVal; in handleShiftOutOfBoundsImpl()
250 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp32 Value *LHSVal = FirstInst->getOperand(0); in FoldPHIArgBinOpIntoPHI() local
35 Type *LHSType = LHSVal->getType(); in FoldPHIArgBinOpIntoPHI()
54 if (I->getOperand(0) != LHSVal) LHSVal = nullptr; in FoldPHIArgBinOpIntoPHI()
62 if (!LHSVal && !RHSVal) in FoldPHIArgBinOpIntoPHI()
70 if (!LHSVal) { in FoldPHIArgBinOpIntoPHI()
75 LHSVal = NewLHS; in FoldPHIArgBinOpIntoPHI()
103 LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
110 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp299 Value *LHSVal = FirstInst->getOperand(0); in FoldPHIArgBinOpIntoPHI() local
302 Type *LHSType = LHSVal->getType(); in FoldPHIArgBinOpIntoPHI()
321 if (I->getOperand(0) != LHSVal) LHSVal = nullptr; in FoldPHIArgBinOpIntoPHI()
329 if (!LHSVal && !RHSVal) in FoldPHIArgBinOpIntoPHI()
337 if (!LHSVal) { in FoldPHIArgBinOpIntoPHI()
342 LHSVal = NewLHS; in FoldPHIArgBinOpIntoPHI()
370 LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
377 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp385 Value *LHSVal = FirstInst->getOperand(0); in foldPHIArgBinOpIntoPHI() local
388 Type *LHSType = LHSVal->getType(); in foldPHIArgBinOpIntoPHI()
407 if (I->getOperand(0) != LHSVal) LHSVal = nullptr; in foldPHIArgBinOpIntoPHI()
415 if (!LHSVal && !RHSVal) in foldPHIArgBinOpIntoPHI()
423 if (!LHSVal) { in foldPHIArgBinOpIntoPHI()
428 LHSVal = NewLHS; in foldPHIArgBinOpIntoPHI()
456 LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
463 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
/external/llvm-project/compiler-rt/lib/ubsan/
Dubsan_handlers.cpp289 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()
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp490 for (const auto &LHSVal : LHSVals) in ComputeValueKnownInPredecessors() local
491 if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) { in ComputeValueKnownInPredecessors()
492 Result.emplace_back(InterestingVal, LHSVal.second); in ComputeValueKnownInPredecessors()
493 LHSKnownBBs.insert(LHSVal.second); in ComputeValueKnownInPredecessors()
532 for (const auto &LHSVal : LHSVals) { in ComputeValueKnownInPredecessors() local
533 Constant *V = LHSVal.first; in ComputeValueKnownInPredecessors()
537 Result.push_back(std::make_pair(KC, LHSVal.second)); in ComputeValueKnownInPredecessors()
608 for (const auto &LHSVal : LHSVals) { in ComputeValueKnownInPredecessors() local
609 Constant *V = LHSVal.first; in ComputeValueKnownInPredecessors()
613 Result.push_back(std::make_pair(KC, LHSVal.second)); in ComputeValueKnownInPredecessors()
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/
Dmove_convert.single.pass.cpp45 void checkDeleter(LHS& lhs, RHS& rhs, int LHSVal, int RHSVal) { in checkDeleter() argument
46 assert(lhs.get_deleter().state() == LHSVal); in checkDeleter()
/external/llvm-project/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/
Dmove_convert.single.pass.cpp44 void checkDeleter(LHS& lhs, RHS& rhs, int LHSVal, int RHSVal) { in checkDeleter() argument
45 assert(lhs.get_deleter().state() == LHSVal); in checkDeleter()
/external/llvm/lib/Analysis/
DLazyValueInfo.cpp1043 LVILatticeVal LHSVal = getBlockValue(BBI->getOperand(0), BB); in solveBlockValueCast() local
1044 intersectAssumeBlockValueConstantRange(BBI->getOperand(0), LHSVal, BBI); in solveBlockValueCast()
1045 if (LHSVal.isConstantRange()) in solveBlockValueCast()
1046 LHSRange = LHSVal.getConstantRange(); in solveBlockValueCast()
1120 LVILatticeVal LHSVal = getBlockValue(BBI->getOperand(0), BB); in solveBlockValueBinaryOp() local
1121 intersectAssumeBlockValueConstantRange(BBI->getOperand(0), LHSVal, BBI); in solveBlockValueBinaryOp()
1122 if (LHSVal.isConstantRange()) in solveBlockValueBinaryOp()
1123 LHSRange = LHSVal.getConstantRange(); in solveBlockValueBinaryOp()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp713 for (const auto &LHSVal : LHSVals) in ComputeValueKnownInPredecessorsImpl() local
714 if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) { in ComputeValueKnownInPredecessorsImpl()
715 Result.emplace_back(InterestingVal, LHSVal.second); in ComputeValueKnownInPredecessorsImpl()
716 LHSKnownBBs.insert(LHSVal.second); in ComputeValueKnownInPredecessorsImpl()
755 for (const auto &LHSVal : LHSVals) { in ComputeValueKnownInPredecessorsImpl() local
756 Constant *V = LHSVal.first; in ComputeValueKnownInPredecessorsImpl()
760 Result.push_back(std::make_pair(KC, LHSVal.second)); in ComputeValueKnownInPredecessorsImpl()
900 for (const auto &LHSVal : LHSVals) { in ComputeValueKnownInPredecessorsImpl() local
901 Constant *V = LHSVal.first; in ComputeValueKnownInPredecessorsImpl()
904 Result.push_back(std::make_pair(KC, LHSVal.second)); in ComputeValueKnownInPredecessorsImpl()
/external/clang/lib/CodeGen/
DCGExprComplex.cpp858 ComplexPairTy LHSVal = EmitLoadOfLValue(LHS, Loc); in EmitCompoundAssignLValue() local
859 OpInfo.LHS = EmitComplexToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue()
861 llvm::Value *LHSVal = CGF.EmitLoadOfScalar(LHS, Loc); in EmitCompoundAssignLValue() local
866 LHSVal = CGF.EmitScalarConversion(LHSVal, LHSTy, ComplexElementTy, Loc); in EmitCompoundAssignLValue()
867 OpInfo.LHS = ComplexPairTy(LHSVal, nullptr); in EmitCompoundAssignLValue()
869 OpInfo.LHS = EmitScalarToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DPointerArithChecker.cpp335 SVal LHSVal = C.getSVal(Lhs); in checkPreStmt() local
336 if (State->isNull(LHSVal).isConstrainedTrue()) in checkPreStmt()
/external/llvm-project/clang/lib/CodeGen/
DCGExprComplex.cpp933 ComplexPairTy LHSVal = EmitLoadOfLValue(LHS, Loc); in EmitCompoundAssignLValue() local
934 OpInfo.LHS = EmitComplexToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue()
936 llvm::Value *LHSVal = CGF.EmitLoadOfScalar(LHS, Loc); in EmitCompoundAssignLValue() local
941 LHSVal = CGF.EmitScalarConversion(LHSVal, LHSTy, ComplexElementTy, Loc); in EmitCompoundAssignLValue()
942 OpInfo.LHS = ComplexPairTy(LHSVal, nullptr); in EmitCompoundAssignLValue()
944 OpInfo.LHS = EmitScalarToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp751 for (const auto &LHSVal : LHSVals) in computeValueKnownInPredecessorsImpl() local
752 if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) { in computeValueKnownInPredecessorsImpl()
753 Result.emplace_back(InterestingVal, LHSVal.second); in computeValueKnownInPredecessorsImpl()
754 LHSKnownBBs.insert(LHSVal.second); in computeValueKnownInPredecessorsImpl()
793 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local
794 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl()
798 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl()
926 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local
927 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl()
930 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl()
/external/clang/lib/StaticAnalyzer/Checkers/
DPointerArithChecker.cpp335 SVal LHSVal = State->getSVal(Lhs, C.getLocationContext()); in checkPreStmt() local
336 if (State->isNull(LHSVal).isConstrainedTrue()) in checkPreStmt()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineC.cpp155 SVal LHSVal; in VisitBinaryOperator() local
161 LHSVal = svalBuilder.conjureSymbolVal(nullptr, B->getRHS(), LCtx, LTy, in VisitBinaryOperator()
164 Result = svalBuilder.evalCast(LHSVal, CTy, LTy); in VisitBinaryOperator()
169 LHSVal = svalBuilder.evalCast(Result, LTy, CTy); in VisitBinaryOperator()
179 evalStore(Tmp2, B, LHS, *I, state, location, LHSVal); in VisitBinaryOperator()
/external/clang/lib/Sema/
DSemaStmt.cpp376 Sema::ActOnCaseStmt(SourceLocation CaseLoc, Expr *LHSVal, in ActOnCaseStmt() argument
379 assert(LHSVal && "missing expression in case statement"); in ActOnCaseStmt()
387 CorrectDelayedTyposInExpr(LHSVal, [this](class Expr *E) { in ActOnCaseStmt()
401 LHSVal = LHS.get(); in ActOnCaseStmt()
406 if (!LHSVal->isTypeDependent() && !LHSVal->isValueDependent()) { in ActOnCaseStmt()
407 LHSVal = VerifyIntegerConstantExpression(LHSVal).get(); in ActOnCaseStmt()
408 if (!LHSVal) in ActOnCaseStmt()
420 LHS = ActOnFinishFullExpr(LHSVal, LHSVal->getExprLoc(), false, in ActOnCaseStmt()

12