Home
last modified time | relevance | path

Searched refs:writeExpression (Results 1 – 19 of 19) sorted by relevance

/external/skqp/src/sksl/
DSkSLGLSLCodeGenerator.cpp195 void GLSLCodeGenerator::writeExpression(const Expression& expr, Precedence parentPrecedence) { in writeExpression() function in SkSL::GLSLCodeGenerator
262 this->writeExpression(absExpr, kTopLevel_Precedence); in writeMinAbsHack()
264 this->writeExpression(otherExpr, kAssignment_Precedence); in writeMinAbsHack()
270 this->writeExpression(x, kTopLevel_Precedence); in writeInverseSqrtHack()
335 this->writeExpression(mat, kTopLevel_Precedence); in writeDeterminantHack()
422 this->writeExpression(mat, kTopLevel_Precedence); in writeInverseHack()
449 this->writeExpression(mat, kTopLevel_Precedence); in writeTransposeHack()
516 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeFunctionCall()
518 this->writeExpression(*p.fOperand, kMultiplicative_Precedence); in writeFunctionCall()
543 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeFunctionCall()
[all …]
DSkSLMetalCodeGenerator.cpp114 void MetalCodeGenerator::writeExpression(const Expression& expr, Precedence parentPrecedence) { in writeExpression() function in SkSL::MetalCodeGenerator
173 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeIntrinsicCall()
190 this->writeExpression(*c.fArguments[1], kSequence_Precedence); in writeIntrinsicCall()
245 this->writeExpression(arg, kSequence_Precedence); in writeFunctionCall()
269 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeSpecialIntrinsic()
271 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeSpecialIntrinsic()
274 this->writeExpression(*c.fArguments[1], kSequence_Precedence); in writeSpecialIntrinsic()
285 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeSpecialIntrinsic()
287 this->writeExpression(*c.fArguments[1], kSequence_Precedence); in writeSpecialIntrinsic()
289 this->writeExpression(*c.fArguments[0], kSequence_Precedence); in writeSpecialIntrinsic()
[all …]
DSkSLSPIRVCodeGenerator.cpp636 SpvId SPIRVCodeGenerator::writeExpression(const Expression& expr, OutputStream& out) { in writeExpression() function in SkSL::SPIRVCodeGenerator
698 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeIntrinsicCall()
718 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeIntrinsicCall()
756 SpvId raw = this->writeExpression(*a, out); in vectorize()
803 arguments.push_back(this->writeExpression(*c.fArguments[i], out)); in writeSpecialIntrinsic()
816 SpvId img = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
831 SpvId sample = this->writeExpression(*c.fArguments[1], out); in writeSpecialIntrinsic()
874 SpvId sampler = this->writeExpression(*c.fArguments[0], out); in writeSpecialIntrinsic()
875 SpvId uv = this->writeExpression(*c.fArguments[1], out); in writeSpecialIntrinsic()
879 this->writeExpression(*c.fArguments[2], out), in writeSpecialIntrinsic()
[all …]
DSkSLPipelineStageCodeGenerator.cpp68 this->writeExpression(*b.fLeft, precedence); in writeBinaryExpression()
70 this->writeExpression(*b.fRight, precedence); in writeBinaryExpression()
DSkSLCPPCodeGenerator.cpp74 this->writeExpression(*b.fLeft, precedence); in writeBinaryExpression()
76 this->writeExpression(*b.fRight, precedence); in writeBinaryExpression()
215 this->writeExpression(value, kTopLevel_Precedence); in writeVarInitializer()
239 this->writeExpression(*swizzle.fBase, kPostfix_Precedence); in writeSwizzle()
590 this->writeExpression(*decl.fValue, kAssignment_Precedence); in writePrivateVarValues()
753 this->writeExpression(e, Precedence::kTopLevel_Precedence); in convertSKSLExpressionToCPP()
DSkSLGLSLCodeGenerator.h136 void writeExpression(const Expression& expr, Precedence parentPrecedence);
DSkSLMetalCodeGenerator.h177 void writeExpression(const Expression& expr, Precedence parentPrecedence);
DSkSLSPIRVCodeGenerator.h150 SpvId writeExpression(const Expression& expr, OutputStream& out);
/external/skia/src/sksl/codegen/
DSkSLGLSLCodeGenerator.cpp185 void GLSLCodeGenerator::writeExpression(const Expression& expr, Precedence parentPrecedence) { in writeExpression() function in SkSL::GLSLCodeGenerator
262 this->writeExpression(absExpr, Precedence::kTopLevel); in writeMinAbsHack()
264 this->writeExpression(otherExpr, Precedence::kAssignment); in writeMinAbsHack()
270 this->writeExpression(x, Precedence::kTopLevel); in writeInverseSqrtHack()
336 this->writeExpression(mat, Precedence::kTopLevel); in writeDeterminantHack()
424 this->writeExpression(mat, Precedence::kTopLevel); in writeInverseHack()
452 this->writeExpression(mat, Precedence::kTopLevel); in writeTransposeHack()
490 this->writeExpression(*arguments[0], Precedence::kSequence); in writeFunctionCall()
492 this->writeExpression(*p.operand(), Precedence::kMultiplicative); in writeFunctionCall()
524 this->writeExpression(*arguments[0], Precedence::kSequence); in writeFunctionCall()
[all …]
DSkSLPipelineStageCodeGenerator.cpp76 void writeExpression(const Expression& expr, Precedence parentPrecedence);
175 this->writeExpression(*arguments.back(), Precedence::kSequence); in writeFunctionCall()
204 this->writeExpression(*arg, Precedence::kSequence); in writeFunctionCall()
234 this->writeExpression(*stmt.test(), Precedence::kTopLevel); in writeIfStatement()
250 this->writeExpression(*r.expression(), Precedence::kTopLevel); in writeReturnStatement()
322 this->writeExpression(*decl.value(), Precedence::kTopLevel); in writeGlobalVarDeclaration()
393 void PipelineStageCodeGenerator::writeExpression(const Expression& expr, in writeExpression() function in SkSL::PipelineStage::PipelineStageCodeGenerator
453 this->writeExpression(*arg, Precedence::kSequence); in writeAnyConstructor()
459 this->writeExpression(*expr.base(), Precedence::kPostfix); in writeIndexExpression()
461 this->writeExpression(*expr.index(), Precedence::kTopLevel); in writeIndexExpression()
[all …]
DSkSLMetalCodeGenerator.cpp131 void MetalCodeGenerator::writeExpression(const Expression& expr, Precedence parentPrecedence) { in writeExpression() function in SkSL::MetalCodeGenerator
273 this->writeExpression(*arguments[index], Precedence::kAssignment); in getOutParamHelper()
307 this->writeExpression(*arguments[index], Precedence::kAssignment); in getOutParamHelper()
381 this->writeExpression(*outVars[i], Precedence::kSequence); in writeFunctionCall()
383 this->writeExpression(*arguments[i], Precedence::kSequence); in writeFunctionCall()
513 this->writeExpression(*arg, Precedence::kSequence); in writeArgumentList()
522 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
524 this->writeExpression(*arguments[0], Precedence::kSequence); in writeIntrinsicCall()
532 this->writeExpression(*arguments[1], Precedence::kSequence); in writeIntrinsicCall()
536 this->writeExpression(*arguments[1], Precedence::kSequence); in writeIntrinsicCall()
[all …]
DSkSLDSLCPPCodeGenerator.cpp233 this->writeExpression(*swizzle.base(), Precedence::kPostfix); in writeSwizzle()
243 this->writeExpression(*swizzle.base(), Precedence::kPostfix); in writeSwizzle()
252 this->writeExpression(*swizzle.base(), Precedence::kSequence); in writeSwizzle()
272 this->writeExpression(*t.test(), Precedence::kSequence); in writeTernaryExpression()
274 this->writeExpression(*t.ifTrue(), Precedence::kSequence); in writeTernaryExpression()
276 this->writeExpression(*t.ifFalse(), Precedence::kSequence); in writeTernaryExpression()
343 this->writeExpression(*arguments[index], Precedence::kSequence); in writeFunctionCall()
413 this->writeExpression(*argument, Precedence::kSequence); in writeFunctionCall()
499 this->writeExpression(*r.expression(), Precedence::kTopLevel); in writeReturnStatement()
506 this->writeExpression(*stmt.test(), Precedence::kTopLevel); in writeIfStatement()
[all …]
DSkSLVMCodeGenerator.cpp249 Value writeExpression(const Expression& expr);
406 Value val = this->writeExpression(*decl.value()); in SkVMGenerator()
475 return this->writeStore(left, this->writeExpression(right)); in writeBinaryExpression()
493 skvm::I32 lVal = i32(this->writeExpression(left)); in writeBinaryExpression()
495 skvm::I32 rVal = i32(this->writeExpression(right)); in writeBinaryExpression()
501 skvm::I32 lVal = i32(this->writeExpression(left)); in writeBinaryExpression()
503 skvm::I32 rVal = i32(this->writeExpression(right)); in writeBinaryExpression()
509 this->writeExpression(left); in writeBinaryExpression()
510 return this->writeExpression(right); in writeBinaryExpression()
516 Value lVal = this->writeExpression(left), in writeBinaryExpression()
[all …]
DSkSLSPIRVCodeGenerator.cpp711 SpvId SPIRVCodeGenerator::writeExpression(const Expression& expr, OutputStream& out) { in writeExpression() function in SkSL::SPIRVCodeGenerator
794 argumentIds.push_back(this->writeExpression(*arguments[i], out)); in writeIntrinsicCall()
819 argumentIds.push_back(this->writeExpression(*arguments[i], out)); in writeIntrinsicCall()
858 SpvId raw = this->writeExpression(*arg, out); in vectorize()
907 argumentIds.push_back(this->writeExpression(*arg, out)); in writeSpecialIntrinsic()
921 SpvId img = this->writeExpression(*arguments[0], out); in writeSpecialIntrinsic()
922 SpvId sampler = this->writeExpression(*arguments[1], out); in writeSpecialIntrinsic()
932 SpvId img = this->writeExpression(*arguments[0], out); in writeSpecialIntrinsic()
948 SpvId sample = this->writeExpression(*arguments[1], out); in writeSpecialIntrinsic()
992 SpvId sampler = this->writeExpression(*arguments[0], out); in writeSpecialIntrinsic()
[all …]
DSkSLCPPCodeGenerator.cpp82 this->writeExpression(left, precedence); in writeBinaryExpression()
84 this->writeExpression(right, precedence); in writeBinaryExpression()
241 this->writeExpression(value, Precedence::kTopLevel); in writeVarInitializer()
266 this->writeExpression(*swizzle.base(), Precedence::kPostfix); in writeSwizzle()
432 this->writeExpression(*arg, Precedence::kSequence); in writeFunctionCall()
687 this->writeExpression(*decl.value(), Precedence::kAssignment); in writePrivateVarValues()
854 this->writeExpression(e, Precedence::kTopLevel); in convertSKSLExpressionToCPP()
1270 this->writeExpression(*decl.value(), Precedence::kAssignment); in writeGetKey()
DSkSLGLSLCodeGenerator.h122 void writeExpression(const Expression& expr, Precedence parentPrecedence);
DSkSLMetalCodeGenerator.h160 void writeExpression(const Expression& expr, Precedence parentPrecedence);
DSkSLSPIRVCodeGenerator.h229 SpvId writeExpression(const Expression& expr, OutputStream& out);
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
DJavaSourceWriter.java201 writeExpression(expression); in startIfBlock()
234 writeExpression(expression); in startIterableForLoop()
242 writeExpression(start); in startForLoop()
244 writeExpression(end); in startForLoop()
246 writeExpression(increment); in startForLoop()
258 writeExpression(expression); in writeStatement()
263 public void writeExpression(JavaExpression expression) { in writeExpression() method in JavaSourceWriter