Lines Matching refs:APInt
96 Expected<std::string> getMatchingString(APInt Value) const;
100 APInt valueFromStringRepr(StringRef StrVal, const SourceMgr &SM) const;
118 Expected<APInt> exprAdd(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
119 Expected<APInt> exprSub(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
120 Expected<APInt> exprMul(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
121 Expected<APInt> exprDiv(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
122 Expected<APInt> exprMax(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
123 Expected<APInt> exprMin(const APInt &Lhs, const APInt &Rhs, bool &Overflow);
139 virtual Expected<APInt> eval() const = 0;
155 APInt Value;
158 explicit ExpressionLiteral(StringRef ExpressionStr, APInt Val) in ExpressionLiteral()
162 Expected<APInt> eval() const override { return Value; } in eval()
221 std::optional<APInt> Value;
248 std::optional<APInt> getValue() const { return Value; } in getValue()
260 void setValue(APInt NewValue,
289 Expected<APInt> eval() const override;
299 using binop_eval_t = Expected<APInt> (*)(const APInt &, const APInt &, bool &);
326 Expected<APInt> eval() const override;