Home
last modified time | relevance | path

Searched refs:fArguments (Results 1 – 9 of 9) sorted by relevance

/external/skia/src/sksl/ir/
DSkSLConstructor.h31 , fArguments(std::move(arguments)) {} in Constructor()
35 if (fArguments.size() == 1 && fArguments[0]->fKind == Expression::kIntLiteral_Kind) { in constantPropagate()
38 int64_t intValue = ((IntLiteral&) *fArguments[0]).fValue; in constantPropagate()
44 int64_t intValue = ((IntLiteral&) *fArguments[0]).fValue; in constantPropagate()
55 for (const auto& arg : fArguments) { in hasSideEffects()
66 for (size_t i = 0; i < fArguments.size(); i++) { in description()
68 result += fArguments[i]->description(); in description()
76 for (size_t i = 0; i < fArguments.size(); i++) { in isConstant()
77 if (!fArguments[i]->isConstant()) { in isConstant()
124 if (fArguments.size() == 1 && fArguments[0]->fType.kind() == Type::kScalar_Kind) { in getVecComponent()
[all …]
DSkSLFunctionCall.h24 , fArguments(std::move(arguments)) {} in FunctionCall()
27 for (const auto& arg : fArguments) { in hasSideEffects()
38 for (size_t i = 0; i < fArguments.size(); i++) { in description()
40 result += fArguments[i]->description(); in description()
48 std::vector<std::unique_ptr<Expression>> fArguments; member
DSkSLVariableReference.h102 for (const auto& arg : c->fArguments) { in copy_constant()
/external/skia/src/sksl/ast/
DSkSLASTCallSuffix.h22 , fArguments(std::move(arguments)) {} in ASTCallSuffix()
27 for (size_t i = 0; i < fArguments.size(); ++i) { in description()
30 result += fArguments[i]->description(); in description()
36 std::vector<std::unique_ptr<ASTExpression>> fArguments; member
/external/skia/src/sksl/
DSkSLGLSLCodeGenerator.cpp156 ASSERT(c.fArguments.size() == 2); in writeFunctionCall()
157 if (is_abs(*c.fArguments[0])) { in writeFunctionCall()
158 this->writeMinAbsHack(*c.fArguments[0], *c.fArguments[1]); in writeFunctionCall()
161 if (is_abs(*c.fArguments[1])) { in writeFunctionCall()
164 this->writeMinAbsHack(*c.fArguments[1], *c.fArguments[0]); in writeFunctionCall()
170 c.fFunction.fBuiltin && c.fArguments.size() == 2 && in writeFunctionCall()
171 c.fArguments[1]->fKind == Expression::kPrefix_Kind) { in writeFunctionCall()
172 const PrefixExpression& p = (PrefixExpression&) *c.fArguments[1]; in writeFunctionCall()
175 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeFunctionCall()
193 switch (c.fArguments[0]->fType.dimensions()) { in writeFunctionCall()
[all …]
DSkSLSPIRVCodeGenerator.cpp1241 const Type& type = c.fArguments[0]->fType; in writeIntrinsicCall()
1259 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeIntrinsicCall()
1260 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeIntrinsicCall()
1275 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeIntrinsicCall()
1276 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeIntrinsicCall()
1299 for (size_t i = 0; i < c.fArguments.size(); i++) { in writeSpecialIntrinsic()
1300 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeSpecialIntrinsic()
1313 SpvId img = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
1319 if (1 == c.fArguments.size()) { in writeSpecialIntrinsic()
1327 ASSERT(2 == c.fArguments.size()); in writeSpecialIntrinsic()
[all …]
DSkSLCPPCodeGenerator.cpp246 ASSERT(c.fArguments.size() == 2); in writeFunctionCall()
249 this->writeExpression(*c.fArguments[0], kTopLevel_Precedence); in writeFunctionCall()
250 ASSERT(c.fArguments[1]->fKind == Expression::kVariableReference_Kind); in writeFunctionCall()
260 ASSERT(c.fArguments.size() >= 1); in writeFunctionCall()
261 ASSERT(c.fArguments[0]->fKind == Expression::kVariableReference_Kind); in writeFunctionCall()
262 String sampler = this->getSamplerHandle(((VariableReference&) *c.fArguments[0]).fVariable); in writeFunctionCall()
DSkSLCFGGenerator.cpp197 for (auto& arg : c->fArguments) { in tryRemoveExpression()
208 for (auto& arg : f->fArguments) { in tryRemoveExpression()
270 for (auto& arg : c->fArguments) { in tryInsertExpression()
335 for (auto& arg : c->fArguments) { in addExpression()
344 for (auto& arg : c->fArguments) { in addExpression()
DSkSLIRGenerator.cpp1815 auto rawArguments = &((ASTCallSuffix&) *expression.fSuffix).fArguments; in convertSuffixExpression()