Lines Matching +defs:Variable +defs:Value

204 static bool convertArgumentToType(Sema &S, Expr *&Value, QualType Ty) {
205 if (Value->isTypeDependent())
211 S.PerformCopyInitialization(Entity, SourceLocation(), Value);
214 Value = Result.get();
1509 // Value-dependent expressions are okay; wait for template instantiation.
1528 llvm::SmallString<32> Value;
1530 llvm::raw_svector_ostream Str(Value);
1535 << Value << Arg->getSourceRange();
5392 static bool IsShiftedByte(llvm::APSInt Value) {
5393 if (Value.isNegative())
5399 if (Value < 0x100)
5404 if ((Value & 0xFF) != 0)
5410 Value >>= 8;
9856 ComparisonResult compare(const llvm::APSInt &Value) const {
9857 assert(Value.getBitWidth() == PromotedMin.getBitWidth() &&
9858 Value.isUnsigned() == PromotedMin.isUnsigned());
9860 assert(Value.isUnsigned() && "discontiguous range for signed compare");
9861 if (Value.isMinValue()) return Min;
9862 if (Value.isMaxValue()) return Max;
9863 if (Value >= PromotedMin) return InRange;
9864 if (Value <= PromotedMax) return InRange;
9868 switch (llvm::APSInt::compareValues(Value, PromotedMin)) {
9872 switch (llvm::APSInt::compareValues(Value, PromotedMax)) {
9949 const llvm::APSInt &Value,
9993 PromotedRange OtherPromotedValueRange(OtherValueRange, Value.getBitWidth(),
9994 Value.isUnsigned());
9995 auto Cmp = OtherPromotedValueRange.compare(Value);
10004 PromotedRange OtherPromotedTypeRange(OtherTypeRange, Value.getBitWidth(),
10005 Value.isUnsigned());
10006 auto TypeCmp = OtherPromotedTypeRange.compare(Value);
10032 if (Other->refersToBitField() && InRange && Value == 0 &&
10046 OS << '\'' << *ED << "' (" << Value << ")";
10051 OS << Value;
10084 (isKnownToHaveUnsignedValue(OriginalOther) && Value == 0)
10141 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue;
10145 if (CheckTautologicalComparison(S, E, Const, Other, Value, RhsConstant))
10318 llvm::APSInt Value = Result.Val.getInt();
10320 unsigned OriginalWidth = Value.getBitWidth();
10326 bool OneAssignedToOneBitBitfield = FieldWidth == 1 && Value == 1;
10334 if (!Value.isSigned() || Value.isNegative())
10337 OriginalWidth = Value.getSignificantBits();
10343 llvm::APSInt TruncatedValue = Value.trunc(FieldWidth);
10348 if (llvm::APSInt::isSameValue(Value, TruncatedValue))
10351 std::string PrettyValue = toString(Value, 10);
10424 llvm::APFloat Value(0.0);
10426 E->EvaluateAsFloat(Value, S.Context, Expr::SE_AllowSideEffects);
10442 llvm::APFloat::opStatus Result = Value.convertToInteger(
10451 unsigned precision = llvm::APFloat::semanticsPrecision(Value.getSemantics());
10453 Value.toString(PrettySourceValue, precision);
10481 if (Value.isZero()) { // Skip -0.0 to 0 conversion.
10506 PrettyTargetValue = Value.isZero() ? "false" : "true";
10561 static std::string PrettyPrintInRange(const llvm::APSInt &Value,
10565 llvm::APSInt ValueInRange = Value;
10894 // Value might be a float, a float vector, or a float complex.
10958 llvm::APFixedPoint Value = Result.Val.getFixedPoint();
10961 if (Value > MaxVal || Value < MinVal) {
10964 << Value.toString() << T
10996 llvm::APSInt Value = Result.Val.getInt();
11000 Value, Context.getFixedPointSemantics(T), &Overflowed);
11005 << toString(Value, /*Radix=*/10) << T
11099 llvm::APSInt Value(32);
11100 Value = Result.Val.getInt();
11105 std::string PrettySourceValue = toString(Value, 10);
11106 std::string PrettyTargetValue = PrettyPrintInRange(Value, TargetRange);
11150 llvm::APSInt Value = Result.Val.getInt();
11152 std::string PrettySourceValue = toString(Value, 10);
11153 std::string PrettyTargetValue = PrettyPrintInRange(Value, TargetRange);
11785 struct Value {
11786 explicit Value(unsigned Parent) : Parent(Parent), Merged(false) {}
11791 SmallVector<Value, 8> Values;
11807 SequenceTree() { Values.push_back(Value(0)); }
11814 Values.push_back(Value(Parent.Index));
13945 // Variable declaration that has type_tag_for_datatype attribute.
14431 std::optional<llvm::APSInt> Value =
14433 if (!Value) {
14438 uint64_t Dim = Value->getZExtValue();
14544 if (std::optional<llvm::APSInt> Value =
14546 uint64_t Stride = Value->getZExtValue();
14644 if (std::optional<llvm::APSInt> Value =
14646 uint64_t Stride = Value->getZExtValue();