Home
last modified time | relevance | path

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

/third_party/skia/src/sksl/ir/
DSkSLConstructorCompound.cpp17 std::unique_ptr<Expression> ConstructorCompound::Make(const Context& context, in Make()
54 fields += arg->is<ConstructorCompound>() in Make()
55 ? arg->as<ConstructorCompound>().arguments().size() in Make()
66 if (!arg->is<ConstructorCompound>()) { in Make()
71 ConstructorCompound& compositeCtor = arg->as<ConstructorCompound>(); in Make()
86 return std::make_unique<ConstructorCompound>(line, type, std::move(args)); in Make()
DSkSLConstructorCompound.h27 class ConstructorCompound final : public MultiArgumentConstructor {
31 ConstructorCompound(int line, const Type& type, ExpressionArray args) in ConstructorCompound() function
40 return std::make_unique<ConstructorCompound>(fLine, this->type(), this->cloneArguments()); in clone()
DSkSLPrefixExpression.cpp84 const ConstructorCompound& ctor = value->as<ConstructorCompound>(); in simplify_negation()
85 return ConstructorCompound::Make(context, originalExpr.fLine, ctor.type(), in simplify_negation()
DSkSLConstructor.cpp104 ConstructorCompound::Make(context, line, vectorType, std::move(args)); in convert_compound_constructor()
147 return ConstructorCompound::Make(context, line, type, std::move(args)); in convert_compound_constructor()
DSkSLConstructorCompoundCast.cpp64 return ConstructorCompound::Make(context, constCtor->fLine, destType, in cast_constant_composite()
DSkSLIndexExpression.cpp146 return ConstructorCompound::Make(context, line, vecType, std::move(ctorArgs)); in Make()
DSkSLFunctionCall.cpp71 return ConstructorCompound::Make(context, line, returnType, std::move(array)); in assemble_compound()
/third_party/skia/src/sksl/codegen/
DSkSLMetalCodeGenerator.h23 class ConstructorCompound; variable
164 bool matrixConstructHelperIsNeeded(const ConstructorCompound& c);
193 void writeConstructorCompound(const ConstructorCompound& c, Precedence parentPrecedence);
195 void writeConstructorCompoundVector(const ConstructorCompound& c, Precedence parentPrecedence);
197 void writeConstructorCompoundMatrix(const ConstructorCompound& c, Precedence parentPrecedence);
DSkSLSPIRVCodeGenerator.h25 class ConstructorCompound; variable
309 SpvId writeConstructorCompound(const ConstructorCompound& c, OutputStream& out);
311 SpvId writeMatrixConstructor(const ConstructorCompound& c, OutputStream& out);
313 SpvId writeVectorConstructor(const ConstructorCompound& c, OutputStream& out);
DSkSLMetalCodeGenerator.cpp144 this->writeConstructorCompound(expr.as<ConstructorCompound>(), parentPrecedence); in writeExpression()
1076 bool MetalCodeGenerator::matrixConstructHelperIsNeeded(const ConstructorCompound& c) { in matrixConstructHelperIsNeeded()
1130 void MetalCodeGenerator::writeConstructorCompound(const ConstructorCompound& c, in writeConstructorCompound()
1192 void MetalCodeGenerator::writeConstructorCompoundVector(const ConstructorCompound& c, in writeConstructorCompoundVector()
1212 void MetalCodeGenerator::writeConstructorCompoundMatrix(const ConstructorCompound& c, in writeConstructorCompoundMatrix()
DSkSLSPIRVCodeGenerator.cpp783 return this->writeConstructorCompound(expr.as<ConstructorCompound>(), out); in writeExpression()
1011 ConstructorCompound ctor(/*line=*/-1, *fContext.fTypes.fInt2, std::move(args)); in writeSpecialIntrinsic()
1597 SpvId SPIRVCodeGenerator::writeMatrixConstructor(const ConstructorCompound& c, OutputStream& out) { in writeMatrixConstructor()
1657 SpvId SPIRVCodeGenerator::writeConstructorCompound(const ConstructorCompound& c, in writeConstructorCompound()
1663 SpvId SPIRVCodeGenerator::writeVectorConstructor(const ConstructorCompound& c, OutputStream& out) { in writeVectorConstructor()
/third_party/skia/src/sksl/
DSkSLInliner.cpp350 const ConstructorCompound& ctor = expression.as<ConstructorCompound>(); in inlineExpression()
351 return ConstructorCompound::Make(*fContext, line, in inlineExpression()
DSkSLDehydrator.cpp295 this->writeExpressionSpan(e->as<ConstructorCompound>().argumentSpan()); in write()
DSkSLConstantFolder.cpp128 return ConstructorCompound::Make(context, left.fLine, type, std::move(args)); in simplify_vector()
DSkSLRehydrator.cpp429 return ConstructorCompound::Make(fContext, /*line=*/-1, *type, in expression()