Home
last modified time | relevance | path

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

12

/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/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/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombinePHI.cpp28 Value *LHSVal = FirstInst->getOperand(0); in FoldPHIArgBinOpIntoPHI() local
31 Type *LHSType = LHSVal->getType(); in FoldPHIArgBinOpIntoPHI()
66 if (I->getOperand(0) != LHSVal) LHSVal = 0; in FoldPHIArgBinOpIntoPHI()
74 if (!LHSVal && !RHSVal) in FoldPHIArgBinOpIntoPHI()
82 if (LHSVal == 0) { in FoldPHIArgBinOpIntoPHI()
87 LHSVal = NewLHS; in FoldPHIArgBinOpIntoPHI()
115 LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
122 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
/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/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp288 Value *LHSVal = FirstInst->getOperand(0); in FoldPHIArgBinOpIntoPHI() local
291 Type *LHSType = LHSVal->getType(); in FoldPHIArgBinOpIntoPHI()
310 if (I->getOperand(0) != LHSVal) LHSVal = nullptr; in FoldPHIArgBinOpIntoPHI()
318 if (!LHSVal && !RHSVal) in FoldPHIArgBinOpIntoPHI()
326 if (!LHSVal) { in FoldPHIArgBinOpIntoPHI()
331 LHSVal = NewLHS; in FoldPHIArgBinOpIntoPHI()
359 LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
366 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
/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/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-7.0/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp693 for (const auto &LHSVal : LHSVals) in ComputeValueKnownInPredecessors() local
694 if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) { in ComputeValueKnownInPredecessors()
695 Result.emplace_back(InterestingVal, LHSVal.second); in ComputeValueKnownInPredecessors()
696 LHSKnownBBs.insert(LHSVal.second); in ComputeValueKnownInPredecessors()
735 for (const auto &LHSVal : LHSVals) { in ComputeValueKnownInPredecessors() local
736 Constant *V = LHSVal.first; in ComputeValueKnownInPredecessors()
740 Result.push_back(std::make_pair(KC, LHSVal.second)); in ComputeValueKnownInPredecessors()
880 for (const auto &LHSVal : LHSVals) { in ComputeValueKnownInPredecessors() local
881 Constant *V = LHSVal.first; in ComputeValueKnownInPredecessors()
884 Result.push_back(std::make_pair(KC, LHSVal.second)); in ComputeValueKnownInPredecessors()
/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/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/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DLazyValueInfo.cpp993 ValueLatticeElement LHSVal = getBlockValue(CI->getOperand(0), BB); in solveBlockValueCast() local
994 intersectAssumeOrGuardBlockValueConstantRange(CI->getOperand(0), LHSVal, in solveBlockValueCast()
996 if (LHSVal.isConstantRange()) in solveBlockValueCast()
997 LHSRange = LHSVal.getConstantRange(); in solveBlockValueCast()
1052 ValueLatticeElement LHSVal = getBlockValue(BO->getOperand(0), BB); in solveBlockValueBinaryOp() local
1053 intersectAssumeOrGuardBlockValueConstantRange(BO->getOperand(0), LHSVal, in solveBlockValueBinaryOp()
1055 if (LHSVal.isConstantRange()) in solveBlockValueBinaryOp()
1056 LHSRange = LHSVal.getConstantRange(); in solveBlockValueBinaryOp()
/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/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/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()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DLazyValueInfo.cpp723 LVILatticeVal LHSVal = getBlockValue(BBI->getOperand(0), BB); in solveBlockValueConstantRange() local
724 if (!LHSVal.isConstantRange()) { in solveBlockValueConstantRange()
729 ConstantRange LHSRange = LHSVal.getConstantRange(); in solveBlockValueConstantRange()
/external/llvm/include/llvm/TableGen/
DRecord.h1646 unsigned LHSVal, RHSVal; in operator() local
1648 bool LHSFailed = LHSPart.second.getAsInteger(10, LHSVal); (void)LHSFailed; in operator()
1653 if (LHSVal != RHSVal) in operator()
1654 return LHSVal < RHSVal; in operator()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/TableGen/
DRecord.h1752 unsigned LHSVal, RHSVal; in operator() local
1754 bool LHSFailed = LHSPart.second.getAsInteger(10, LHSVal); (void)LHSFailed; in operator()
1759 if (LHSVal != RHSVal) in operator()
1760 return LHSVal < RHSVal; in operator()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/AsmParser/
DPPCAsmParser.cpp239 int64_t LHSVal = EvaluateCRExpr(BE->getLHS()); in EvaluateCRExpr() local
243 if (LHSVal < 0 || RHSVal < 0) in EvaluateCRExpr()
248 case MCBinaryExpr::Add: Res = LHSVal + RHSVal; break; in EvaluateCRExpr()
249 case MCBinaryExpr::Mul: Res = LHSVal * RHSVal; break; in EvaluateCRExpr()
/external/llvm/lib/Target/PowerPC/AsmParser/
DPPCAsmParser.cpp219 int64_t LHSVal = EvaluateCRExpr(BE->getLHS()); in EvaluateCRExpr() local
223 if (LHSVal < 0 || RHSVal < 0) in EvaluateCRExpr()
228 case MCBinaryExpr::Add: Res = LHSVal + RHSVal; break; in EvaluateCRExpr()
229 case MCBinaryExpr::Mul: Res = LHSVal * RHSVal; break; in EvaluateCRExpr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUISelDAGToDAG.cpp507 uint32_t LHSVal, RHSVal; in Select() local
508 if (getConstantValue(N->getOperand(0), LHSVal) && in Select()
510 uint32_t K = LHSVal | (RHSVal << 16); in Select()
/external/clang/lib/AST/
DExprConstant.cpp7354 const APValue &LHSVal = LHSResult.Val; in VisitBinOp() local
7358 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp()
7359 Result = LHSVal; in VisitBinOp()
7371 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp()
7374 CharUnits::fromQuantity(LHSVal.getInt().getZExtValue()); in VisitBinOp()
7378 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp()
7380 if (!LHSVal.getLValueOffset().isZero() || in VisitBinOp()
7383 const Expr *LHSExpr = LHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp()
7400 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp()
7408 if (!handleIntIntBinOp(Info, E, LHSVal.getInt(), E->getOpcode(), in VisitBinOp()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2749 SDValue LHSVal = getValue(I.getOperand(1)); in visitSelect() local
2827 LHSVal = getValue(LHS); in visitSelect()
2835 Ops.push_back(SDValue(LHSVal.getNode(), LHSVal.getResNo() + i)); in visitSelect()
2838 LHSVal.getNode()->getValueType(LHSVal.getResNo()+i), in visitSelect()
5996 SDValue LHSVal = getMemCmpLoad(LHS, LoadVT, LoadTy, *this); in visitMemCmpCall() local
5999 SDValue Res = DAG.getSetCC(getCurSDLoc(), MVT::i1, LHSVal, RHSVal, in visitMemCmpCall()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2928 SDValue LHSVal = getValue(I.getOperand(1)); in visitSelect() local
3006 LHSVal = getValue(LHS); in visitSelect()
3014 Ops.push_back(SDValue(LHSVal.getNode(), LHSVal.getResNo() + i)); in visitSelect()
3017 LHSVal.getNode()->getValueType(LHSVal.getResNo()+i), in visitSelect()

12