Home
last modified time | relevance | path

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

/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp525 llvm::APSInt LHSValue = lhs.castAs<nonloc::ConcreteInt>().getValue(); in evalBinOpNN() local
534 APSIntType CompareType = std::max(APSIntType(LHSValue), in evalBinOpNN()
536 CompareType.apply(LHSValue); in evalBinOpNN()
540 IntType.apply(LHSValue); in evalBinOpNN()
545 BasicVals.evalAPSInt(op, LHSValue, RHSValue); in evalBinOpNN()
587 if (LHSValue.isAllOnes() && LHSValue.isSigned()) in evalBinOpNN()
592 if (LHSValue == 0) in evalBinOpNN()
599 if (LHSValue == 0) in evalBinOpNN()
/src/contrib/llvm-project/llvm/lib/MC/
H A DMCExpr.cpp917 MCValue LHSValue, RHSValue; in evaluateAsRelocatableImpl() local
919 if (!ABE->getLHS()->evaluateAsRelocatableImpl(LHSValue, Asm, Fixup, Addrs, in evaluateAsRelocatableImpl()
943 if (!LHSValue.isAbsolute() || !RHSValue.isAbsolute()) { in evaluateAsRelocatableImpl()
951 Asm, Addrs, InSet, LHSValue, in evaluateAsRelocatableImpl()
959 Asm, Addrs, InSet, LHSValue, in evaluateAsRelocatableImpl()
969 int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant(); in evaluateAsRelocatableImpl()
/src/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp61 Value *LHSValue = Env.getValue(LHS); in evaluateBooleanEquality() local
64 if (LHSValue == RHSValue) in evaluateBooleanEquality()
67 if (auto *LHSBool = dyn_cast_or_null<BoolValue>(LHSValue)) in evaluateBooleanEquality()
71 if (auto *LHSPtr = dyn_cast_or_null<PointerValue>(LHSValue)) in evaluateBooleanEquality()
/src/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp2955 static bool handleLogicalOpForVector(const APInt &LHSValue, in handleLogicalOpForVector() argument
2958 bool LHS = (LHSValue != 0); in handleLogicalOpForVector()
2967 static bool handleLogicalOpForVector(const APFloat &LHSValue, in handleLogicalOpForVector() argument
2970 bool LHS = !LHSValue.isZero(); in handleLogicalOpForVector()
2980 static bool handleLogicalOpForVector(const APValue &LHSValue, in handleLogicalOpForVector() argument
2984 if (LHSValue.getKind() == APValue::Int) in handleLogicalOpForVector()
2985 return handleLogicalOpForVector(LHSValue.getInt(), Opcode, in handleLogicalOpForVector()
2987 assert(LHSValue.getKind() == APValue::Float && "Should be no other options"); in handleLogicalOpForVector()
2988 return handleLogicalOpForVector(LHSValue.getFloat(), Opcode, in handleLogicalOpForVector()
2994 handleCompareOpForVectorHelper(const APTy &LHSValue, BinaryOperatorKind Opcode, in handleCompareOpForVectorHelper() argument
[all …]
H A DASTContext.cpp11192 QualType LHSValue = LHS->castAs<AtomicType>()->getValueType(); in mergeTypes() local
11195 LHSValue = LHSValue.getUnqualifiedType(); in mergeTypes()
11198 QualType ResultType = mergeTypes(LHSValue, RHSValue, false, in mergeTypes()
11202 if (getCanonicalType(LHSValue) == getCanonicalType(ResultType)) in mergeTypes()
/src/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp10128 std::optional<llvm::APSInt> LHSValue = in AnalyzeComparison() local
10132 if (RHSValue && LHSValue) in AnalyzeComparison()
10136 if ((bool)RHSValue ^ (bool)LHSValue) { in AnalyzeComparison()
10141 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
/src/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp11077 for (auto &LHSValue : LHSValues) in handleCmp() local
11079 if (!CheckPair(*LHSValue.getValue(), *RHSValue.getValue())) in handleCmp()