Home
last modified time | relevance | path

Searched refs:LHSValue (Results 1 – 11 of 11) sorted by relevance

/external/clang/lib/StaticAnalyzer/Core/
DSimpleSValBuilder.cpp364 llvm::APSInt LHSValue = lhs.castAs<nonloc::ConcreteInt>().getValue(); in evalBinOpNN() local
373 APSIntType CompareType = std::max(APSIntType(LHSValue), in evalBinOpNN()
375 CompareType.apply(LHSValue); in evalBinOpNN()
379 IntType.apply(LHSValue); in evalBinOpNN()
384 BasicVals.evalAPSInt(op, LHSValue, RHSValue); in evalBinOpNN()
413 if (LHSValue.isAllOnesValue() && LHSValue.isSigned()) in evalBinOpNN()
418 if (LHSValue == 0) in evalBinOpNN()
/external/llvm/lib/MC/
DMCExpr.cpp686 MCValue LHSValue, RHSValue; in evaluateAsRelocatableImpl() local
688 if (!ABE->getLHS()->evaluateAsRelocatableImpl(LHSValue, Asm, Layout, Fixup, in evaluateAsRelocatableImpl()
696 if (!LHSValue.isAbsolute() || !RHSValue.isAbsolute()) { in evaluateAsRelocatableImpl()
703 return EvaluateSymbolicAdd(Asm, Layout, Addrs, InSet, LHSValue, in evaluateAsRelocatableImpl()
708 return EvaluateSymbolicAdd(Asm, Layout, Addrs, InSet, LHSValue, in evaluateAsRelocatableImpl()
717 int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant(); in evaluateAsRelocatableImpl()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCExpr.cpp784 MCValue LHSValue, RHSValue; in evaluateAsRelocatableImpl() local
786 if (!ABE->getLHS()->evaluateAsRelocatableImpl(LHSValue, Asm, Layout, Fixup, in evaluateAsRelocatableImpl()
808 if (!LHSValue.isAbsolute() || !RHSValue.isAbsolute()) { in evaluateAsRelocatableImpl()
815 return EvaluateSymbolicAdd(Asm, Layout, Addrs, InSet, LHSValue, in evaluateAsRelocatableImpl()
820 return EvaluateSymbolicAdd(Asm, Layout, Addrs, InSet, LHSValue, in evaluateAsRelocatableImpl()
829 int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant(); in evaluateAsRelocatableImpl()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DSimpleSValBuilder.cpp598 llvm::APSInt LHSValue = lhs.castAs<nonloc::ConcreteInt>().getValue(); in evalBinOpNN() local
607 APSIntType CompareType = std::max(APSIntType(LHSValue), in evalBinOpNN()
609 CompareType.apply(LHSValue); in evalBinOpNN()
613 IntType.apply(LHSValue); in evalBinOpNN()
618 BasicVals.evalAPSInt(op, LHSValue, RHSValue); in evalBinOpNN()
647 if (LHSValue.isAllOnesValue() && LHSValue.isSigned()) in evalBinOpNN()
652 if (LHSValue == 0) in evalBinOpNN()
657 if (LHSValue == 0) in evalBinOpNN()
/external/llvm-project/llvm/lib/MC/
DMCExpr.cpp893 MCValue LHSValue, RHSValue; in evaluateAsRelocatableImpl() local
895 if (!ABE->getLHS()->evaluateAsRelocatableImpl(LHSValue, Asm, Layout, Fixup, in evaluateAsRelocatableImpl()
917 if (!LHSValue.isAbsolute() || !RHSValue.isAbsolute()) { in evaluateAsRelocatableImpl()
924 return EvaluateSymbolicAdd(Asm, Layout, Addrs, InSet, LHSValue, in evaluateAsRelocatableImpl()
929 return EvaluateSymbolicAdd(Asm, Layout, Addrs, InSet, LHSValue, in evaluateAsRelocatableImpl()
938 int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant(); in evaluateAsRelocatableImpl()
/external/llvm-project/clang/lib/AST/
DExprConstant.cpp2867 static bool handleLogicalOpForVector(const APInt &LHSValue, in handleLogicalOpForVector() argument
2870 bool LHS = (LHSValue != 0); in handleLogicalOpForVector()
2879 static bool handleLogicalOpForVector(const APFloat &LHSValue, in handleLogicalOpForVector() argument
2882 bool LHS = !LHSValue.isZero(); in handleLogicalOpForVector()
2892 static bool handleLogicalOpForVector(const APValue &LHSValue, in handleLogicalOpForVector() argument
2896 if (LHSValue.getKind() == APValue::Int) in handleLogicalOpForVector()
2897 return handleLogicalOpForVector(LHSValue.getInt(), Opcode, in handleLogicalOpForVector()
2899 assert(LHSValue.getKind() == APValue::Float && "Should be no other options"); in handleLogicalOpForVector()
2900 return handleLogicalOpForVector(LHSValue.getFloat(), Opcode, in handleLogicalOpForVector()
2906 handleCompareOpForVectorHelper(const APTy &LHSValue, BinaryOperatorKind Opcode, in handleCompareOpForVectorHelper() argument
[all …]
DASTContext.cpp9683 QualType LHSValue = LHS->castAs<AtomicType>()->getValueType(); in mergeTypes() local
9686 LHSValue = LHSValue.getUnqualifiedType(); in mergeTypes()
9689 QualType ResultType = mergeTypes(LHSValue, RHSValue, false, in mergeTypes()
9693 if (getCanonicalType(LHSValue) == getCanonicalType(ResultType)) in mergeTypes()
/external/clang/lib/AST/
DExprConstant.cpp7589 LValue LHSValue, RHSValue; in VisitBinaryOperator() local
7591 bool LHSOK = EvaluatePointer(E->getLHS(), LHSValue, Info); in VisitBinaryOperator()
7600 if (!HasSameBase(LHSValue, RHSValue)) { in VisitBinaryOperator()
7603 if (!LHSValue.Offset.isZero() || !RHSValue.Offset.isZero()) in VisitBinaryOperator()
7605 const Expr *LHSExpr = LHSValue.Base.dyn_cast<const Expr*>(); in VisitBinaryOperator()
7626 if ((!LHSValue.Base && !LHSValue.Offset.isZero()) || in VisitBinaryOperator()
7633 if ((IsLiteralLValue(LHSValue) || IsLiteralLValue(RHSValue)) && in VisitBinaryOperator()
7634 LHSValue.Base && RHSValue.Base) in VisitBinaryOperator()
7638 if (IsWeakLValue(LHSValue) || IsWeakLValue(RHSValue)) in VisitBinaryOperator()
7642 if ((LHSValue.Base && LHSValue.Offset.isZero() && in VisitBinaryOperator()
[all …]
DASTContext.cpp7798 QualType LHSValue = LHS->getAs<AtomicType>()->getValueType(); in mergeTypes() local
7801 LHSValue = LHSValue.getUnqualifiedType(); in mergeTypes()
7804 QualType ResultType = mergeTypes(LHSValue, RHSValue, false, in mergeTypes()
7807 if (getCanonicalType(LHSValue) == getCanonicalType(ResultType)) in mergeTypes()
7906 QualType LHSValue = LHS->getAs<PipeType>()->getElementType(); in mergeTypes() local
7909 LHSValue = LHSValue.getUnqualifiedType(); in mergeTypes()
7912 QualType ResultType = mergeTypes(LHSValue, RHSValue, false, in mergeTypes()
7915 if (getCanonicalType(LHSValue) == getCanonicalType(ResultType)) in mergeTypes()
/external/clang/lib/Sema/
DSemaChecking.cpp7672 llvm::APSInt LHSValue; in AnalyzeComparison() local
7674 LHS->isIntegerConstantExpr(LHSValue, S.Context); in AnalyzeComparison()
7678 DiagnoseOutOfRangeComparison(S, E, LHS, RHS, LHSValue, false); in AnalyzeComparison()
/external/llvm-project/clang/lib/Sema/
DSemaChecking.cpp11265 Optional<llvm::APSInt> LHSValue = LHS->getIntegerConstantExpr(S.Context); in AnalyzeComparison() local
11268 if (RHSValue && LHSValue) in AnalyzeComparison()
11272 if ((bool)RHSValue ^ (bool)LHSValue) { in AnalyzeComparison()
11277 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()