Home
last modified time | relevance | path

Searched refs:ConstructorCompound (Results 1 – 17 of 17) sorted by relevance

/aosp_15_r20/external/skia/src/sksl/ir/
H A DSkSLConstructorCompound.cpp78 std::unique_ptr<Expression> ConstructorCompound::Make(const Context& context, in Make()
117 fields += arg->is<ConstructorCompound>() in Make()
118 ? arg->as<ConstructorCompound>().arguments().size() in Make()
129 if (!arg->is<ConstructorCompound>()) { in Make()
134 ConstructorCompound& compositeCtor = arg->as<ConstructorCompound>(); in Make()
156 return std::make_unique<ConstructorCompound>(pos, type, std::move(args)); in Make()
159 std::unique_ptr<Expression> ConstructorCompound::MakeFromConstants(const Context& context, in MakeFromConstants()
169 return ConstructorCompound::Make(context, pos, returnType, std::move(array)); in MakeFromConstants()
H A DSkSLConstructorCompound.h33 class ConstructorCompound final : public MultiArgumentConstructor {
37 ConstructorCompound(Position pos, const Type& type, ExpressionArray args) in ConstructorCompound() function
51 return std::make_unique<ConstructorCompound>(pos, this->type(), this->arguments().clone()); in clone()
H A DSkSLFunctionCall.cpp201 return ConstructorCompound::MakeFromConstants(context, left->fPosition, bvecType, array); in optimize_comparison()
260 return ConstructorCompound::MakeFromConstants(context, arg0->fPosition, returnType, array); in evaluate_n_way_intrinsic()
594 return ConstructorCompound::MakeFromConstants(context, I->fPosition, I->type(), kZero); in evaluate_refract()
813 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call()
823 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call()
832 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call()
841 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call()
850 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call()
859 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call()
880 return ConstructorCompound::MakeFromConstants(context, arguments[0]->fPosition, in optimize_intrinsic_call()
[all …]
H A DSkSLSwizzle.cpp122 const ConstructorCompound& base, in optimize_constructor_swizzle()
240 return ConstructorCompound::Make(context, in optimize_constructor_swizzle()
433 expr = ConstructorCompound::Make(context, pos, in Convert()
522 if (value->is<ConstructorCompound>()) { in Make()
523 const ConstructorCompound& ctor = value->as<ConstructorCompound>(); in Make()
H A DSkSLConstructor.cpp107 ConstructorCompound::Make(context, pos, vectorType, std::move(args)); in convert_compound_constructor()
148 return ConstructorCompound::Make(context, pos, type, std::move(args)); in convert_compound_constructor()
H A DSkSLConstructorCompoundCast.cpp69 return ConstructorCompound::MakeFromConstants(context, pos, destType, typecastArgs); in cast_constant_composite()
H A DSkSLIRHelpers.h98 return ConstructorCompound::Make(fContext, Position(), *fContext.fTypes.fFloat4, in CtorXYZW()
H A DSkSLIndexExpression.cpp163 return ConstructorCompound::MakeFromConstants(context, pos, vecType, ctorArgs); in Make()
H A DSkSLPrefixExpression.cpp68 return ConstructorCompound::MakeFromConstants(context, pos, expr.type(), values); in apply_to_elements()
/aosp_15_r20/external/skia/src/sksl/
H A DSkSLConstantFolder.cpp167 return ConstructorCompound::MakeFromConstants(context, pos, resultType, args); in simplify_matrix_multiplication()
257 return ConstructorCompound::MakeFromConstants(context, pos, type, args); in simplify_componentwise()
273 return ConstructorCompound::Make(context, scalar.fPosition, type, std::move(splatMatrix)); in splat_scalar()
420 return ConstructorCompound::MakeFromConstants(context, right.fPosition, right.type(), values); in make_reciprocal_expression()
H A DSkSLInliner.cpp245 const ConstructorCompound& ctor = expression.as<ConstructorCompound>(); in inlineExpression()
246 return ConstructorCompound::Make( in inlineExpression()
/aosp_15_r20/external/skia/src/sksl/codegen/
H A DSkSLMetalCodeGenerator.cpp216 bool matrixConstructHelperIsNeeded(const ConstructorCompound& c);
245 void writeConstructorCompound(const ConstructorCompound& c, Precedence parentPrecedence);
247 void writeConstructorCompoundVector(const ConstructorCompound& c, Precedence parentPrecedence);
249 void writeConstructorCompoundMatrix(const ConstructorCompound& c, Precedence parentPrecedence);
499 this->writeConstructorCompound(expr.as<ConstructorCompound>(), parentPrecedence); in writeExpression()
1497 bool MetalCodeGenerator::matrixConstructHelperIsNeeded(const ConstructorCompound& c) { in matrixConstructHelperIsNeeded()
1551 void MetalCodeGenerator::writeConstructorCompound(const ConstructorCompound& c, in writeConstructorCompound()
1613 void MetalCodeGenerator::writeConstructorCompoundVector(const ConstructorCompound& c, in writeConstructorCompoundVector()
1633 void MetalCodeGenerator::writeConstructorCompoundMatrix(const ConstructorCompound& c, in writeConstructorCompoundMatrix()
H A DSkSLWGSLCodeGenerator.cpp294 std::string assembleConstructorCompound(const ConstructorCompound& c);
295 std::string assembleConstructorCompoundVector(const ConstructorCompound& c);
296 std::string assembleConstructorCompoundMatrix(const ConstructorCompound& c);
2476 return this->assembleConstructorCompound(e.as<ConstructorCompound>()); in assembleExpression()
3872 std::string WGSLCodeGenerator::assembleConstructorCompound(const ConstructorCompound& c) { in assembleConstructorCompound()
3883 std::string WGSLCodeGenerator::assembleConstructorCompoundVector(const ConstructorCompound& c) { in assembleConstructorCompoundVector()
3903 std::string WGSLCodeGenerator::assembleConstructorCompoundMatrix(const ConstructorCompound& ctor) { in assembleConstructorCompoundMatrix()
H A DSkSLGLSLCodeGenerator.cpp168 void writeConstructorCompound(const ConstructorCompound& c, Precedence parentPrecedence);
426 this->writeConstructorCompound(expr.as<ConstructorCompound>(), parentPrecedence); in writeExpression()
977 void GLSLCodeGenerator::writeConstructorCompound(const ConstructorCompound& c, in writeConstructorCompound()
H A DSkSLSPIRVCodeGenerator.cpp380 SpvId writeConstructorCompound(const ConstructorCompound& c, OutputStream& out);
382 SpvId writeMatrixConstructor(const ConstructorCompound& c, OutputStream& out);
384 SpvId writeVectorConstructor(const ConstructorCompound& c, OutputStream& out);
1945 return this->writeConstructorCompound(expr.as<ConstructorCompound>(), out); in writeExpression()
2136 ConstructorCompound ctor(Position(), *fContext.fTypes.fInt2, std::move(args)); in writeSpecialIntrinsic()
2868 SpvId SPIRVCodeGenerator::writeMatrixConstructor(const ConstructorCompound& c, OutputStream& out) { in writeMatrixConstructor()
2921 SpvId SPIRVCodeGenerator::writeConstructorCompound(const ConstructorCompound& c, in writeConstructorCompound()
2927 SpvId SPIRVCodeGenerator::writeVectorConstructor(const ConstructorCompound& c, OutputStream& out) { in writeVectorConstructor()
5128 args.push_back(ConstructorCompound::MakeFromConstants(fContext, Position{}, in writeEntrypointAdapter()
/aosp_15_r20/external/skia/src/sksl/transform/
H A DSkSLRewriteIndexedSwizzle.cpp40 ConstructorCompound::MakeFromConstants(context, indexExpr.fPosition, vecType, vecArray); in RewriteIndexedSwizzle()
/aosp_15_r20/external/skia/src/sksl/analysis/
H A DSkSLReturnsInputAlpha.cpp85 if (expr.is<ConstructorSplat>() || expr.is<ConstructorCompound>()) { in returnsInputAlpha()