Lines Matching refs:value
121 double value = foldFn(*left.getConstantValue(i), *right.getConstantValue(i));
122 if (value < minimumValue || value > maximumValue) {
126 args.push_back(Literal::Make(left.fLine, value, &componentType));
139 bool ConstantFolder::GetConstantInt(const Expression& value, SKSL_INT* out) {
140 const Expression* expr = GetConstantValueForVariable(value);
148 bool ConstantFolder::GetConstantValue(const Expression& value, double* out) {
149 const Expression* expr = GetConstantValueForVariable(value);
153 *out = expr->as<Literal>().value();
168 static bool is_constant_value(const Expression& expr, double value) {
172 if (!slotVal.has_value() || *slotVal != value) {
211 // Function parameters can be const but won't have an initial value.
310 if constexpr (!std::is_same<T, bool>::value) {
324 if constexpr (!std::is_same<T, bool>::value) {
392 return Literal::MakeBool(context, leftExpr.fLine, /*value=*/true);
398 return Literal::MakeBool(context, leftExpr.fLine, /*value=*/false);
461 // Left-shifting a negative (or really, any signed) value is undefined behavior
465 context.fErrors->error(line, "shift value out of range");
471 context.fErrors->error(line, "shift value out of range");