Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCExpr.cpp580 MCValue LHSValue, RHSValue; in evaluateAsRelocatableImpl() local
582 if (!ABE->getLHS()->evaluateAsRelocatableImpl(LHSValue, Asm, InSet) || in evaluateAsRelocatableImpl()
605 int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant(); in evaluateAsRelocatableImpl()
606 if (!LHSValue.isAbsolute() || !RHSValue.isAbsolute()) { in evaluateAsRelocatableImpl()
617 LHSValue.Cst += RHSValue.Cst; in evaluateAsRelocatableImpl()
618 Res = LHSValue; in evaluateAsRelocatableImpl()
621 if (LHSValue.isAbsolute()) { in evaluateAsRelocatableImpl()
622 RHSValue.Cst += LHSValue.Cst; in evaluateAsRelocatableImpl()
626 if (LHSValue.SymB && LHSValue.Specifier) in evaluateAsRelocatableImpl()
630 return evaluateSymbolicAdd(Asm, InSet, LHSValue, RHSValue, Res); in evaluateAsRelocatableImpl()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp59 Value *LHSValue = Env.getValue(LHS); in evaluateBooleanEquality() local
64 if (LHSValue == RHSValue && LHSValue) in evaluateBooleanEquality()
72 if (auto *LHSBool = dyn_cast_or_null<BoolValue>(LHSValue)) in evaluateBooleanEquality()
76 if (auto *LHSPtr = dyn_cast_or_null<PointerValue>(LHSValue)) in evaluateBooleanEquality()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp527 llvm::APSInt LHSValue = lhs.castAs<nonloc::ConcreteInt>().getValue(); in evalBinOpNN() local
536 APSIntType CompareType = std::max(APSIntType(LHSValue), in evalBinOpNN()
538 CompareType.apply(LHSValue); in evalBinOpNN()
542 IntType.apply(LHSValue); in evalBinOpNN()
547 BasicVals.evalAPSInt(op, LHSValue, RHSValue); in evalBinOpNN()
589 if (LHSValue.isAllOnes() && LHSValue.isSigned()) in evalBinOpNN()
594 if (LHSValue == 0) in evalBinOpNN()
601 if (LHSValue == 0) in evalBinOpNN()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp3097 static bool handleLogicalOpForVector(const APInt &LHSValue, in handleLogicalOpForVector() argument
3100 bool LHS = (LHSValue != 0); in handleLogicalOpForVector()
3109 static bool handleLogicalOpForVector(const APFloat &LHSValue, in handleLogicalOpForVector() argument
3112 bool LHS = !LHSValue.isZero(); in handleLogicalOpForVector()
3122 static bool handleLogicalOpForVector(const APValue &LHSValue, in handleLogicalOpForVector() argument
3126 if (LHSValue.getKind() == APValue::Int) in handleLogicalOpForVector()
3127 return handleLogicalOpForVector(LHSValue.getInt(), Opcode, in handleLogicalOpForVector()
3129 assert(LHSValue.getKind() == APValue::Float && "Should be no other options"); in handleLogicalOpForVector()
3130 return handleLogicalOpForVector(LHSValue.getFloat(), Opcode, in handleLogicalOpForVector()
3136 handleCompareOpForVectorHelper(const APTy &LHSValue, BinaryOperatorKind Opcode, in handleCompareOpForVectorHelper() argument
[all …]
H A DASTContext.cpp11782 QualType LHSValue = LHS->castAs<AtomicType>()->getValueType(); in mergeTypes() local
11785 LHSValue = LHSValue.getUnqualifiedType(); in mergeTypes()
11788 QualType ResultType = mergeTypes(LHSValue, RHSValue, false, in mergeTypes()
11792 if (getCanonicalType(LHSValue) == getCanonicalType(ResultType)) in mergeTypes()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp11369 std::optional<llvm::APSInt> LHSValue = in AnalyzeComparison() local
11373 if (RHSValue && LHSValue) in AnalyzeComparison()
11377 if ((bool)RHSValue ^ (bool)LHSValue) { in AnalyzeComparison()
11382 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
H A DSemaExpr.cpp1608 llvm::APSInt LHSValue(32); in CheckUnicodeArithmeticConversions() local
1609 LHSValue = LHSRes.Val.getInt(); in CheckUnicodeArithmeticConversions()
1613 bool LHSSafe = IsSingleCodeUnitCP(LHSType, LHSValue); in CheckUnicodeArithmeticConversions()
1620 << FormatUTFCodeUnitAsCodepoint(LHSValue.getExtValue(), LHSType) in CheckUnicodeArithmeticConversions()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp3720 Value *LHSValue = Builder.CreateLoad(RI.ElementType, LHS, "final.lhs"); in createReductionsGPU() local
3724 RI.ReductionGen(Builder.saveIP(), RHSValue, LHSValue, Reduced); in createReductionsGPU()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp11155 for (auto &LHSValue : LHSValues) in handleCmp() local
11157 if (!CheckPair(*LHSValue.getValue(), *RHSValue.getValue())) in handleCmp()