Home
last modified time | relevance | path

Searched refs:fOperator (Results 1 – 25 of 34) sorted by relevance

12

/external/skqp/src/sksl/ir/
DSkSLPrefixExpression.h25 , fOperator(op) {} in PrefixExpression()
28 return fOperator == Token::MINUS && fOperand->isConstant(); in isConstant()
32 return fOperator == Token::PLUSPLUS || fOperator == Token::MINUSMINUS || in hasSideEffects()
49 return std::unique_ptr<Expression>(new PrefixExpression(fOperator, fOperand->clone())); in clone()
53 return Compiler::OperatorName(fOperator) + fOperand->description(); in description()
57 const Token::Kind fOperator; member
DSkSLBinaryExpression.h26 , fOperator(op) in BinaryExpression()
32 fOperator, in constantPropagate()
37 return Compiler::IsAssignment(fOperator) || fLeft->hasSideEffects() || in hasSideEffects()
42 return std::unique_ptr<Expression>(new BinaryExpression(fOffset, fLeft->clone(), fOperator, in clone()
47 return "(" + fLeft->description() + " " + Compiler::OperatorName(fOperator) + " " + in description()
52 const Token::Kind fOperator; member
DSkSLPostfixExpression.h23 , fOperator(op) {} in PostfixExpression()
30 return std::unique_ptr<Expression>(new PostfixExpression(fOperand->clone(), fOperator)); in clone()
34 return fOperand->description() + Compiler::OperatorName(fOperator); in description()
38 const Token::Kind fOperator; member
/external/skia/src/sksl/ir/
DSkSLPrefixExpression.h25 , fOperator(op) {} in PrefixExpression()
28 return fOperator == Token::MINUS && fOperand->isConstant(); in isConstant()
32 return fOperator == Token::PLUSPLUS || fOperator == Token::MINUSMINUS || in hasSideEffects()
49 return std::unique_ptr<Expression>(new PrefixExpression(fOperator, fOperand->clone())); in clone()
53 return Compiler::OperatorName(fOperator) + fOperand->description(); in description()
57 const Token::Kind fOperator; member
DSkSLBinaryExpression.h26 , fOperator(op) in BinaryExpression()
32 fOperator, in constantPropagate()
37 return Compiler::IsAssignment(fOperator) || fLeft->hasSideEffects() || in hasSideEffects()
42 return std::unique_ptr<Expression>(new BinaryExpression(fOffset, fLeft->clone(), fOperator, in clone()
47 return "(" + fLeft->description() + " " + Compiler::OperatorName(fOperator) + " " + in description()
52 const Token::Kind fOperator; member
DSkSLPostfixExpression.h23 , fOperator(op) {} in PostfixExpression()
30 return std::unique_ptr<Expression>(new PostfixExpression(fOperand->clone(), fOperator)); in clone()
34 return fOperand->description() + Compiler::OperatorName(fOperator); in description()
38 const Token::Kind fOperator; member
/external/skqp/src/sksl/ast/
DSkSLASTPrefixExpression.h23 , fOperator(op.fKind) in ASTPrefixExpression()
27 return Compiler::OperatorName(fOperator) + fOperand->description(); in description()
30 const Token::Kind fOperator; member
DSkSLASTBinaryExpression.h25 , fOperator(op.fKind) in ASTBinaryExpression()
29 return "(" + fLeft->description() + " " + Compiler::OperatorName(fOperator) + " " + in description()
34 const Token::Kind fOperator; member
/external/skia/src/sksl/ast/
DSkSLASTPrefixExpression.h23 , fOperator(op.fKind) in ASTPrefixExpression()
27 return Compiler::OperatorName(fOperator) + fOperand->description(); in description()
30 const Token::Kind fOperator; member
DSkSLASTBinaryExpression.h25 , fOperator(op.fKind) in ASTBinaryExpression()
29 return "(" + fLeft->description() + " " + Compiler::OperatorName(fOperator) + " " + in description()
34 const Token::Kind fOperator; member
/external/skqp/src/sksl/
DSkSLInterpreter.cpp339 switch (b.fOperator) { in evaluate()
403 switch (p.fOperator) { in evaluate()
429 if (Token::PLUSPLUS == p.fOperator) { in evaluate()
432 SkASSERT(Token::MINUSMINUS == p.fOperator); in evaluate()
437 if (Token::PLUSPLUS == p.fOperator) { in evaluate()
440 SkASSERT(Token::MINUSMINUS == p.fOperator); in evaluate()
DSkSLGLSLCodeGenerator.cpp514 if (p.fOperator == Token::MINUS) { in writeFunctionCall()
895 (b.fOperator == Token::LOGICALAND || b.fOperator == Token::LOGICALOR)) { in writeFunctionCall()
900 Precedence precedence = GetBinaryPrecedence(b.fOperator); in writeFunctionCall()
905 Compiler::IsAssignment(b.fOperator) && in writeFunctionCall()
915 this->write(Compiler::OperatorName(b.fOperator)); in writeFunctionCall()
937 if (b.fOperator == Token::LOGICALAND) { in writeFunctionCall()
944 if (b.fOperator == Token::LOGICALAND) { in writeFunctionCall()
975 this->write(Compiler::OperatorName(p.fOperator)); in writeFunctionCall()
988 this->write(Compiler::OperatorName(p.fOperator)); in writeFunctionCall()
DSkSLCFGGenerator.cpp159 if (b->fOperator == Token::EQ) { in tryRemoveExpression()
299 switch (b->fOperator) { in addExpression()
331 this->addExpression(cfg, &b->fLeft, !Compiler::IsAssignment(b->fOperator)); in addExpression()
374 p->fOperator != Token::PLUSPLUS && in addExpression()
375 p->fOperator != Token::MINUSMINUS); in addExpression()
DSkSLPipelineStageCodeGenerator.cpp62 if (b.fOperator == Token::PERCENT) { in writeBinaryExpression()
64 Precedence precedence = GetBinaryPrecedence(b.fOperator); in writeBinaryExpression()
DSkSLCompiler.cpp314 if (b->fOperator == Token::EQ) { in addDefinitions()
316 } else if (Compiler::IsAssignment(b->fOperator)) { in addDefinitions()
339 if (p->fOperator == Token::MINUSMINUS || p->fOperator == Token::PLUSPLUS) { in addDefinitions()
349 if (p->fOperator == Token::MINUSMINUS || p->fOperator == Token::PLUSPLUS) { in addDefinitions()
476 if (!Compiler::IsAssignment(b.fOperator)) { in dead_assignment()
554 if (bin.fOperator == Token::EQ) { in delete_left()
755 switch (bin->fOperator) { in simplifyExpression()
DSkSLMetalCodeGenerator.cpp529 Precedence precedence = GetBinaryPrecedence(b.fOperator); in writeBinaryExpression()
533 if (Compiler::IsAssignment(b.fOperator) && in writeBinaryExpression()
542 if (b.fOperator != Token::EQ && Compiler::IsAssignment(b.fOperator) && in writeBinaryExpression()
553 String op = Compiler::OperatorName(b.fOperator); in writeBinaryExpression()
558 this->write(String(" ") + Compiler::OperatorName(b.fOperator) + " "); in writeBinaryExpression()
586 this->write(Compiler::OperatorName(p.fOperator)); in writePrefixExpression()
599 this->write(Compiler::OperatorName(p.fOperator)); in writePostfixExpression()
DSkSLIRGenerator.cpp1479 if (!determine_binary_type(fContext, expression.fOperator, *rawLeftType, *rawRightType, in convertBinaryExpression()
1481 !Compiler::IsAssignment(expression.fOperator))) { in convertBinaryExpression()
1483 Compiler::OperatorName(expression.fOperator) + in convertBinaryExpression()
1488 if (Compiler::IsAssignment(expression.fOperator)) { in convertBinaryExpression()
1489 this->setRefKind(*left, expression.fOperator != Token::EQ ? in convertBinaryExpression()
1498 std::unique_ptr<Expression> result = this->constantFold(*left.get(), expression.fOperator, in convertBinaryExpression()
1503 expression.fOperator, in convertBinaryExpression()
1808 switch (expression.fOperator) { in convertPrefixExpression()
1835 String("'") + Compiler::OperatorName(expression.fOperator) + in convertPrefixExpression()
1844 String("'") + Compiler::OperatorName(expression.fOperator) + in convertPrefixExpression()
[all …]
DSkSLSPIRVCodeGenerator.cpp1949 switch (b.fOperator) { in writeBinaryExpression()
1967 if (is_assignment(b.fOperator)) { in writeBinaryExpression()
1975 if (b.fOperator == Token::COMMA) { in writeBinaryExpression()
2023 if (b.fOperator == Token::STAREQ) { in writeBinaryExpression()
2026 SkASSERT(b.fOperator == Token::STAR); in writeBinaryExpression()
2039 if (b.fOperator == Token::STAREQ) { in writeBinaryExpression()
2042 SkASSERT(b.fOperator == Token::STAR); in writeBinaryExpression()
2053 switch (b.fOperator) { in writeBinaryExpression()
2272 SkASSERT(a.fOperator == Token::LOGICALAND); in writeLogicalAnd()
2293 SkASSERT(o.fOperator == Token::LOGICALOR); in writeLogicalOr()
[all …]
/external/skia/src/sksl/
DSkSLInterpreter.cpp339 switch (b.fOperator) { in evaluate()
403 switch (p.fOperator) { in evaluate()
429 if (Token::PLUSPLUS == p.fOperator) { in evaluate()
432 SkASSERT(Token::MINUSMINUS == p.fOperator); in evaluate()
437 if (Token::PLUSPLUS == p.fOperator) { in evaluate()
440 SkASSERT(Token::MINUSMINUS == p.fOperator); in evaluate()
DSkSLGLSLCodeGenerator.cpp510 if (p.fOperator == Token::MINUS) { in writeFunctionCall()
914 (b.fOperator == Token::LOGICALAND || b.fOperator == Token::LOGICALOR)) { in writeFunctionCall()
919 Precedence precedence = GetBinaryPrecedence(b.fOperator); in writeFunctionCall()
924 Compiler::IsAssignment(b.fOperator) && in writeFunctionCall()
934 this->write(Compiler::OperatorName(b.fOperator)); in writeFunctionCall()
956 if (b.fOperator == Token::LOGICALAND) { in writeFunctionCall()
963 if (b.fOperator == Token::LOGICALAND) { in writeFunctionCall()
994 this->write(Compiler::OperatorName(p.fOperator)); in writeFunctionCall()
1007 this->write(Compiler::OperatorName(p.fOperator)); in writeFunctionCall()
DSkSLMetalCodeGenerator.cpp654 Precedence precedence = GetBinaryPrecedence(b.fOperator); in writeBinaryExpression()
656 switch (b.fOperator) { in writeBinaryExpression()
675 if (Compiler::IsAssignment(b.fOperator) && in writeBinaryExpression()
683 if (b.fOperator == Token::STAREQ && b.fLeft->fType.kind() == Type::kMatrix_Kind && in writeBinaryExpression()
688 if (b.fOperator != Token::EQ && Compiler::IsAssignment(b.fOperator) && in writeBinaryExpression()
699 String op = Compiler::OperatorName(b.fOperator); in writeBinaryExpression()
704 this->write(String(" ") + Compiler::OperatorName(b.fOperator) + " "); in writeBinaryExpression()
732 this->write(Compiler::OperatorName(p.fOperator)); in writePrefixExpression()
745 this->write(Compiler::OperatorName(p.fOperator)); in writePostfixExpression()
DSkSLCFGGenerator.cpp159 if (b->fOperator == Token::EQ) { in tryRemoveExpression()
299 switch (b->fOperator) { in addExpression()
331 this->addExpression(cfg, &b->fLeft, !Compiler::IsAssignment(b->fOperator)); in addExpression()
374 p->fOperator != Token::PLUSPLUS && in addExpression()
375 p->fOperator != Token::MINUSMINUS); in addExpression()
DSkSLPipelineStageCodeGenerator.cpp63 if (b.fOperator == Token::PERCENT) { in writeBinaryExpression()
65 Precedence precedence = GetBinaryPrecedence(b.fOperator); in writeBinaryExpression()
DSkSLCompiler.cpp314 if (b->fOperator == Token::EQ) { in addDefinitions()
316 } else if (Compiler::IsAssignment(b->fOperator)) { in addDefinitions()
339 if (p->fOperator == Token::MINUSMINUS || p->fOperator == Token::PLUSPLUS) { in addDefinitions()
349 if (p->fOperator == Token::MINUSMINUS || p->fOperator == Token::PLUSPLUS) { in addDefinitions()
476 if (!Compiler::IsAssignment(b.fOperator)) { in dead_assignment()
554 if (bin.fOperator == Token::EQ) { in delete_left()
755 switch (bin->fOperator) { in simplifyExpression()
DSkSLIRGenerator.cpp1528 if (!determine_binary_type(fContext, expression.fOperator, *rawLeftType, *rawRightType, in convertBinaryExpression()
1530 !Compiler::IsAssignment(expression.fOperator))) { in convertBinaryExpression()
1532 Compiler::OperatorName(expression.fOperator) + in convertBinaryExpression()
1537 if (Compiler::IsAssignment(expression.fOperator)) { in convertBinaryExpression()
1538 this->setRefKind(*left, expression.fOperator != Token::EQ ? in convertBinaryExpression()
1547 std::unique_ptr<Expression> result = this->constantFold(*left.get(), expression.fOperator, in convertBinaryExpression()
1552 expression.fOperator, in convertBinaryExpression()
1857 switch (expression.fOperator) { in convertPrefixExpression()
1885 String("'") + Compiler::OperatorName(expression.fOperator) + in convertPrefixExpression()
1894 String("'") + Compiler::OperatorName(expression.fOperator) + in convertPrefixExpression()
[all …]

12