Home
last modified time | relevance | path

Searched refs:PrefixExpression (Results 1 – 25 of 32) sorted by relevance

12

/third_party/skia/src/sksl/ir/
DSkSLPrefixExpression.cpp42 const PrefixExpression& prefix = value->as<PrefixExpression>(); in simplify_negation()
104 replacement.push_back(std::make_unique<PrefixExpression>(Token::Kind::TK_MINUS, in negate_operands()
119 return std::make_unique<PrefixExpression>(Token::Kind::TK_MINUS, std::move(value)); in negate_operand()
134 PrefixExpression& prefix = operand->as<PrefixExpression>(); in logical_not_operand()
145 return std::make_unique<PrefixExpression>(Token::Kind::TK_LOGICALNOT, std::move(operand)); in logical_not_operand()
148 std::unique_ptr<Expression> PrefixExpression::Convert(const Context& context, in Convert()
219 return PrefixExpression::Make(context, op, std::move(base)); in Convert()
222 std::unique_ptr<Expression> PrefixExpression::Make(const Context& context, Operator op, in Make()
256 return std::make_unique<PrefixExpression>(op, std::move(base)); in Make()
DSkSLPrefixExpression.h22 class PrefixExpression final : public Expression {
27 PrefixExpression(Operator op, std::unique_ptr<Expression> operand) in PrefixExpression() function
62 return std::make_unique<PrefixExpression>(this->getOperator(), this->operand()->clone()); in clone()
/third_party/flutter/skia/src/sksl/ir/
DSkSLPrefixExpression.h22 struct PrefixExpression : public Expression { struct
23 PrefixExpression(Token::Kind op, std::unique_ptr<Expression> operand) in PrefixExpression() function
65 return std::unique_ptr<Expression>(new PrefixExpression(fOperator, fOperand->clone())); in clone() argument
DSkSLConstructor.h152 const PrefixExpression& p = (PrefixExpression&) *arg; in getVecComponent()
/third_party/skia/src/sksl/codegen/
DSkSLGLSLCodeGenerator.h36 class PrefixExpression; variable
144 void writePrefixExpression(const PrefixExpression& p, Precedence parentPrecedence);
DSkSLMetalCodeGenerator.h39 class PrefixExpression; variable
227 void writePrefixExpression(const PrefixExpression& p, Precedence parentPrecedence);
DSkSLGLSLCodeGenerator.cpp203 this->writePrefixExpression(expr.as<PrefixExpression>(), parentPrecedence); in writeExpression()
471 const PrefixExpression& p = (PrefixExpression&) *arguments[1]; in writeFunctionCall()
485 arguments[1]->is<PrefixExpression>()) { in writeFunctionCall()
486 const PrefixExpression& p = arguments[1]->as<PrefixExpression>(); in writeFunctionCall()
964 void GLSLCodeGenerator::writePrefixExpression(const PrefixExpression& p, in writePrefixExpression()
DSkSLPipelineStageCodeGenerator.cpp93 void writePrefixExpression(const PrefixExpression& p, Precedence parentPrecedence);
491 this->writePrefixExpression(expr.as<PrefixExpression>(), parentPrecedence); in writeExpression()
588 void PipelineStageCodeGenerator::writePrefixExpression(const PrefixExpression& p, in writePrefixExpression()
DSkSLSPIRVCodeGenerator.h45 class PrefixExpression; variable
383 SpvId writePrefixExpression(const PrefixExpression& p, OutputStream& out);
DSkSLMetalCodeGenerator.cpp168 this->writePrefixExpression(expr.as<PrefixExpression>(), parentPrecedence); in writeExpression()
1680 void MetalCodeGenerator::writePrefixExpression(const PrefixExpression& p, in writePrefixExpression()
2599 return this->requirements(e->as<PrefixExpression>().operand().get()); in requirements()
/third_party/skia/src/sksl/analysis/
DSkSLGetLoopUnrollInfo.cpp142 const PrefixExpression& next = loopNext->as<PrefixExpression>(); in get_es2_loop_unroll_info()
/third_party/flutter/skia/src/sksl/
DSkSLCFGGenerator.cpp230 ((PrefixExpression*) expr)->fOperand.get())) { in tryRemoveExpression()
237 ((PrefixExpression*) expr)->fOperand.get())) { in tryRemoveExpression()
383 PrefixExpression* p = (PrefixExpression*) e->get(); in addExpression()
DSkSLByteCodeGenerator.h213 bool writePrefixExpression(const PrefixExpression& p, bool discard);
DSkSLGLSLCodeGenerator.h168 void writePrefixExpression(const PrefixExpression& p, Precedence parentPrecedence);
DSkSLMetalCodeGenerator.h212 void writePrefixExpression(const PrefixExpression& p, Precedence parentPrecedence);
DSkSLGLSLCodeGenerator.cpp215 this->writePrefixExpression((PrefixExpression&) expr, parentPrecedence); in writeExpression()
509 const PrefixExpression& p = (PrefixExpression&) *c.fArguments[1]; in writeFunctionCall()
993 void GLSLCodeGenerator::writePrefixExpression(const PrefixExpression& p, in writeFunctionCall()
DSkSLJIT.h170 LLVMValueRef compilePrefix(LLVMBuilderRef builder, const PrefixExpression& p);
DSkSLMetalCodeGenerator.cpp140 this->writePrefixExpression((PrefixExpression&) expr, parentPrecedence); in writeExpression()
733 void MetalCodeGenerator::writePrefixExpression(const PrefixExpression& p, in writePrefixExpression()
1548 return this->requirements(*((const PrefixExpression&) e).fOperand); in requirements()
DSkSLSPIRVCodeGenerator.h293 SpvId writePrefixExpression(const PrefixExpression& p, OutputStream& out);
DSkSLByteCodeGenerator.cpp1010 bool ByteCodeGenerator::writePrefixExpression(const PrefixExpression& p, bool discard) { in writePrefixExpression()
1169 discard = this->writePrefixExpression((PrefixExpression&) e, discard); in writeExpression()
/third_party/skia/src/sksl/
DSkSLInliner.cpp419 const PrefixExpression& p = expression.as<PrefixExpression>(); in inlineExpression()
420 return PrefixExpression::Make(*fContext, p.getOperator(), expr(p.operand())); in inlineExpression()
1017 PrefixExpression& prefixExpr = (*expr)->as<PrefixExpression>(); in visitExpression()
DSkSLDehydrator.cpp393 const PrefixExpression& p = e->as<PrefixExpression>(); in write()
DSkSLConstantFolder.cpp267 return PrefixExpression::Make(context, Token::Kind::TK_MINUS, std::move(val)); in simplify_no_op_arithmetic()
DSkSLRehydrator.cpp506 return PrefixExpression::Make(fContext, op, std::move(operand)); in expression()
/third_party/skia/src/sksl/dsl/
DDSLExpression.cpp205 return PrefixExpression::Convert(ThreadContext::Context(), SkSL::Token::Kind::token, \

12