Home
last modified time | relevance | path

Searched refs:fKind (Results 1 – 25 of 29) sorted by relevance

12

/external/skia/src/sksl/
DSkSLCFGGenerator.h31 : fKind(kind) in Node()
37 ASSERT(fKind == kExpression_Kind); in expression()
42 ASSERT(fKind == kExpression_Kind); in setExpression()
47 ASSERT(fKind == kStatement_Kind); in statement()
52 ASSERT(fKind == kStatement_Kind); in setStatement()
57 if (fKind == kStatement_Kind) { in description()
60 ASSERT(fKind == kExpression_Kind); in description()
65 Kind fKind; member
DSkSLParser.cpp116 switch (this->peek().fKind) { in file()
152 if (fPushback.fKind != Token::INVALID_TOKEN) { in nextRawToken()
154 fPushback.fKind = Token::INVALID_TOKEN; in nextRawToken()
167 } while (token.fKind == Token::WHITESPACE); in nextToken()
172 ASSERT(fPushback.fKind == Token::INVALID_TOKEN); in pushback()
183 if (next.fKind == kind) { in checkNext()
199 if (next.fKind == kind) { in expect()
234 switch (p.fKind) { in precision()
301 if (this->peek().fKind == Token::LPAREN) { in section()
319 switch (next.fKind) { in section()
[all …]
DSkSLCompiler.cpp183 switch (lvalue->fKind) { in addDefinition()
223 switch (node.fKind) { in addDefinitions()
227 switch (expr->fKind) { in addDefinitions()
277 if (stmt->fKind == Statement::kVarDeclaration_Kind) { in addDefinitions()
331 if (node.fKind == BasicBlock::Node::kStatement_Kind) { in compute_start_state()
334 if (s->fKind == Statement::kVarDeclarations_Kind) { in compute_start_state()
337 if (decl->fKind == Statement::kVarDeclaration_Kind) { in compute_start_state()
352 switch (lvalue.fKind) { in is_dead()
415 switch (expr.fKind) { in is_constant()
447 ASSERT((*target)->fKind == Expression::kBinary_Kind); in delete_left()
[all …]
DSkSLIRGenerator.cpp169 switch (statement.fKind) { in convertStatement()
195 ABORT("unsupported statement type: %d\n", statement.fKind); in convertStatement()
239 if (size->fKind == Expression::kIntLiteral_Kind) { in convertVarDeclarations()
273 (*fSymbolTable)[varDecl.fName]->fKind == Symbol::kVariable_Kind && in convertVarDeclarations()
328 if (test->fKind == Expression::kBoolLiteral_Kind) { in convertIf()
441 ASSERT(caseValue->fKind == Expression::kIntLiteral_Kind); in convertSwitch()
613 switch (entry->fKind) { in convertFunction()
755 if (converted->fKind == Expression::kIntLiteral_Kind) { in convertInterfaceBlock()
796 if (result && result->fKind == Symbol::kType_Kind) { in convertType()
813 switch (expr.fKind) { in convertExpression()
[all …]
DSkSLCFGGenerator.cpp71 printf("Node %d (%p): %s\n", (int) j, &n, n.fKind == BasicBlock::Node::kExpression_Kind in dump()
87 if (e->fKind == Expression::kTernary_Kind) { in tryRemoveExpressionBefore()
91 if ((*iter)->fKind == BasicBlock::Node::kExpression_Kind) { in tryRemoveExpressionBefore()
99 } while ((*iter)->fKind != BasicBlock::Node::kExpression_Kind || in tryRemoveExpressionBefore()
102 while ((*iter)->fKind != BasicBlock::Node::kExpression_Kind || in tryRemoveExpressionBefore()
114 } while ((*iter)->fKind != BasicBlock::Node::kExpression_Kind || in tryRemoveExpressionBefore()
117 while ((*iter)->fKind != BasicBlock::Node::kStatement_Kind || in tryRemoveExpressionBefore()
128 switch (lvalue->fKind) { in tryRemoveLValueBefore()
147 switch (expr->fKind) { in tryRemoveExpression()
245 switch ((*expr)->fKind) { in tryInsertExpression()
[all …]
DSkSLCPPCodeGenerator.cpp78 if (base.fKind == Expression::kVariableReference_Kind) { in writeIndexExpression()
82 if (i.fIndex->fKind != Expression::kIntLiteral_Kind) { in writeIndexExpression()
99 if (i.fIndex->fKind != Expression::kIntLiteral_Kind) { in writeIndexExpression()
250 ASSERT(c.fArguments[1]->fKind == Expression::kVariableReference_Kind); in writeFunctionCall()
261 ASSERT(c.fArguments[0]->fKind == Expression::kVariableReference_Kind); in writeFunctionCall()
305 if (p.fKind == ProgramElement::kSection_Kind) { in writeProgramElement()
308 if (p.fKind == ProgramElement::kVar_Kind) { in writeProgramElement()
362 if (ProgramElement::kVar_Kind == p->fKind) { in writePrivateVars()
378 if (ProgramElement::kVar_Kind == p->fKind) { in writePrivateVarValues()
470 if (ProgramElement::kVar_Kind == p->fKind) { in writeSetData()
[all …]
DSkSLGLSLCodeGenerator.cpp83 switch (expr.fKind) { in writeExpression()
132 if (expr.fKind != Expression::kFunctionCall_Kind) { in is_abs()
171 c.fArguments[1]->fKind == Expression::kPrefix_Kind) { in writeFunctionCall()
671 switch (s.fKind) { in writeStatement()
815 if (e->fKind == ProgramElement::kExtension_Kind) { in writeHeader()
843 switch (e.fKind) { in writeProgramElement()
884 fProgramKind = fProgram.fKind; in generateCode()
DSkSLToken.h194 , fKind(kind) in Token()
220 Kind fKind; member
/external/skia/src/sksl/ir/
DSkSLProgram.h35 : fKind(kBool_Kind) in Value()
39 : fKind(kInt_Kind) in Value()
43 switch (fKind) { in literal()
61 } fKind; member
112 : fKind(kind) in Program()
120 Kind fKind; member
DSkSLSymbolTable.cpp14 switch (s.fKind) { in GetFunctions()
76 } else if (symbol->fKind == Symbol::kFunctionDeclaration_Kind) { in addWithoutOwnership()
78 if (oldSymbol->fKind == Symbol::kFunctionDeclaration_Kind) { in addWithoutOwnership()
85 } else if (oldSymbol->fKind == Symbol::kUnresolvedFunction_Kind) { in addWithoutOwnership()
103 switch (pair.second->fKind) { in markAllFunctionsBuiltin()
DSkSLConstructor.h35 if (fArguments.size() == 1 && fArguments[0]->fKind == Expression::kIntLiteral_Kind) { in constantPropagate()
85 ASSERT(other.fKind == Expression::kConstructor_Kind && other.fType == fType); in compareConstant()
137 ASSERT(arg->fKind == Expression::kConstructor_Kind); in getVecComponent()
149 ASSERT(c.fKind == Expression::kFloatLiteral_Kind); in getFVecComponent()
155 ASSERT(c.fKind == Expression::kIntLiteral_Kind); in getIVecComponent()
174 ASSERT(fArguments[0]->fKind == Expression::kConstructor_Kind); in getMatComponent()
195 ASSERT(arg->fKind == Expression::kConstructor_Kind); in getMatComponent()
DSkSLProgramElement.h30 , fKind(kind) {} in ProgramElement()
32 Kind fKind; member
DSkSLSymbol.h29 , fKind(kind) in Symbol()
32 const Kind fKind; member
DSkSLStatement.h40 , fKind(kind) {} in Statement()
46 const Kind fKind; member
DSkSLExpression.h49 , fKind(kind) in Expression()
88 const Kind fKind; member
DSkSLSwizzle.h76 if (fBase->fKind == Expression::kConstructor_Kind && fBase->isConstant()) { in constantPropagate()
78 ASSERT(fBase->fKind == Expression::kConstructor_Kind); in constantPropagate()
DSkSLPrefixExpression.h38 if (fOperand->fKind == Expression::kFloatLiteral_Kind) { in constantPropagate()
/external/skia/bench/
DHardStopGradientBench_SpecialHardStops.cpp41 fKind = kind; in HardStopGradientBench_SpecialHardStops()
43 fName.printf("hardstop_special_%03dx%03d_%s", fW, fH, kindstr(fKind)); in HardStopGradientBench_SpecialHardStops()
86 SkScalar* positions = fKind == Kind::k001 ? pos_001 : in onPreDraw()
87 fKind == Kind::k011 ? pos_011 : in onPreDraw()
90 int count = fKind == Kind::kCentered ? 4 : 3; in onPreDraw()
111 Kind fKind; member in HardStopGradientBench_SpecialHardStops
/external/skia/src/sksl/ast/
DSkSLASTSuffix.h31 , fKind(kind) {} in ASTSuffix()
34 switch (fKind) { in description()
44 Kind fKind; member
DSkSLASTDeclaration.h31 , fKind(kind) {} in ASTDeclaration()
33 Kind fKind; member
DSkSLASTExpression.h32 , fKind(kind) {} in ASTExpression()
34 const Kind fKind; member
DSkSLASTStatement.h38 , fKind(kind) {} in ASTStatement()
40 Kind fKind; member
DSkSLASTType.h27 , fKind(kind) in ASTType()
36 const Kind fKind; member
DSkSLASTPrefixExpression.h22 , fOperator(op.fKind) in ASTPrefixExpression()
DSkSLASTBinaryExpression.h24 , fOperator(op.fKind) in ASTBinaryExpression()

12