Lines Matching defs:expr
368 std::unique_ptr<Expression> expr = Swizzle::Make(context, std::move(base), maskComponents);
372 return expr;
381 // The constructor will have at most three arguments: { base expr, constant 0, constant 1 }
384 constructorArgs.push_back(std::move(expr));
426 expr = Constructor::Convert(context, line,
429 if (!expr) {
433 return Swizzle::Make(context, std::move(expr), swizzleComponents);
437 std::unique_ptr<Expression> expr,
439 const Type& exprType = expr->type();
455 int line = expr->fLine;
458 std::move(expr));
471 return expr;
476 if (expr->is<Swizzle>()) {
477 Swizzle& base = expr->as<Swizzle>();
490 const Expression* value = ConstantFolder::GetConstantValueForVariable(*expr);
512 return std::make_unique<Swizzle>(context, std::move(expr), components);