Home
last modified time | relevance | path

Searched refs:VarDeclaration (Results 1 – 25 of 45) sorted by relevance

12

/third_party/flutter/skia/src/sksl/ir/
DSkSLVarDeclarations.h23 struct VarDeclaration : public Statement { struct
24 VarDeclaration(const Variable* var, in VarDeclaration() argument
41 return std::unique_ptr<Statement>(new VarDeclaration(fVar, std::move(sizesClone), in clone() argument
72 std::vector<std::unique_ptr<VarDeclaration>> vars) in VarDeclarations() argument
81 std::vector<std::unique_ptr<VarDeclaration>> cloned; in clone()
83 cloned.push_back(std::unique_ptr<VarDeclaration>( in clone()
84 (VarDeclaration*) v->clone().release())); in clone()
94 String result = ((VarDeclaration&) *fVars[0]).fVar->fModifiers.description() + in description()
/third_party/skia/src/sksl/ir/
DSkSLVarDeclarations.cpp19 std::unique_ptr<Statement> VarDeclaration::clone() const { in clone()
20 return std::make_unique<VarDeclaration>(&this->var(), in clone()
26 String VarDeclaration::description() const { in description()
39 void VarDeclaration::ErrorCheck(const Context& context, int line, const Modifiers& modifiers, in ErrorCheck()
96 bool VarDeclaration::ErrorCheckAndCoerce(const Context& context, const Variable& var, in ErrorCheckAndCoerce()
157 std::unique_ptr<Statement> VarDeclaration::Convert(const Context& context, in Convert()
168 std::unique_ptr<Statement> varDecl = VarDeclaration::Make(context, var.get(), baseType, in Convert()
204 std::unique_ptr<Statement> VarDeclaration::Make(const Context& context, Variable* var, in Make()
228 auto result = std::make_unique<VarDeclaration>(var, baseType, arraySize, std::move(value)); in Make()
DSkSLVarDeclarations.h27 class VarDeclaration final : public Statement {
31 VarDeclaration(const Variable* var, in VarDeclaration() function
41 ~VarDeclaration() override { in ~VarDeclaration()
119 SkASSERT(this->declaration()->is<VarDeclaration>()); in GlobalVarDeclaration()
DSkSLVariable.h20 class VarDeclaration; variable
94 void setDeclaration(VarDeclaration* declaration) { in setDeclaration()
110 VarDeclaration* fDeclaration = nullptr;
DSkSLForStatement.cpp33 if (!child->is<SkSL::VarDeclaration>()) { in is_vardecl_block_initializer()
41 return !stmt || stmt->isEmpty() || stmt->is<SkSL::VarDeclaration>() || in is_simple_initializer()
DSkSLFunctionDefinition.cpp153 fSlotsUsed, stmt.as<VarDeclaration>().var().type().slotCount()); in Convert()
158 stmt.as<VarDeclaration>().var().name() + in Convert()
DSkSLVariable.cpp96 result.fVarDecl = VarDeclaration::Make(context, var.get(), type, arraySize, in MakeScratchVariable()
/third_party/skia/src/sksl/transform/
DSkSLEliminateDeadLocalVariables.cpp34 if (stmt->is<VarDeclaration>()) { in EliminateDeadLocalVariables()
35 VarDeclaration& varDecl = stmt->as<VarDeclaration>(); in EliminateDeadLocalVariables()
DSkSLEliminateDeadGlobalVariables.cpp27 const VarDeclaration& varDecl = global.declaration()->as<VarDeclaration>(); in EliminateDeadGlobalVariables()
/third_party/skia/src/sksl/codegen/
DSkSLPipelineStageCodeGenerator.h18 class VarDeclaration; variable
31 virtual String declareUniform(const VarDeclaration*) = 0;
DSkSLPipelineStageCodeGenerator.cpp80 void writeVarDeclaration(const VarDeclaration& var);
155 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in writeChildCall()
375 const VarDeclaration& decl = g.declaration()->as<VarDeclaration>(); in writeGlobalVarDeclaration()
639 void PipelineStageCodeGenerator::writeVarDeclaration(const VarDeclaration& var) { in writeVarDeclaration()
680 this->writeVarDeclaration(s.as<VarDeclaration>()); in writeStatement()
DSkSLGLSLCodeGenerator.h43 class VarDeclaration; variable
100 void writeVarDeclaration(const VarDeclaration& var, bool global);
DSkSLSPIRVCodeGenerator.h52 class VarDeclaration; variable
220 void writeGlobalVar(ProgramKind kind, const VarDeclaration& v);
222 void writeVarDeclaration(const VarDeclaration& var, OutputStream& out);
507 std::vector<const VarDeclaration*> fTopLevelUniforms;
DSkSLMetalCodeGenerator.h46 class VarDeclaration; variable
142 void writeVarDeclaration(const VarDeclaration& decl);
DSkSLMetalCodeGenerator.cpp1828 const VarDeclaration& var = decls.declaration()->as<VarDeclaration>(); in writeFunctionDeclaration()
2077 void MetalCodeGenerator::writeVarDeclaration(const VarDeclaration& varDecl) { in writeVarDeclaration()
2102 this->writeVarDeclaration(s.as<VarDeclaration>()); in writeStatement()
2273 const Variable& var = decls.declaration()->as<VarDeclaration>().var(); in writeUniformStruct()
2304 const Variable& var = decls.declaration()->as<VarDeclaration>().var(); in writeInputStruct()
2337 const Variable& var = decls.declaration()->as<VarDeclaration>().var(); in writeOutputStruct()
2402 const VarDeclaration& decl = global.declaration()->as<VarDeclaration>(); in visitGlobalStruct()
2645 const VarDeclaration& var = s->as<VarDeclaration>(); in requirements()
/third_party/flutter/skia/src/sksl/
DSkSLMetalCodeGenerator.cpp811 VarDeclaration& var = (VarDeclaration&) *stmt; in writeFunction()
1113 VarDeclaration& var = (VarDeclaration&) *stmt; in writeVarDeclarations()
1297 const Variable& first = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeUniformStruct()
1316 VarDeclaration& var = (VarDeclaration&) *stmt; in writeUniformStruct()
1336 const Variable& first = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeInputStruct()
1343 VarDeclaration& var = (VarDeclaration&) *stmt; in writeInputStruct()
1375 const Variable& first = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeOutputStruct()
1382 VarDeclaration& var = (VarDeclaration&) *stmt; in writeOutputStruct()
1444 const Variable& first = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeGlobalStruct()
1456 VarDeclaration& var = (VarDeclaration&) *stmt; in writeGlobalStruct()
[all …]
DSkSLPipelineStageCodeGenerator.cpp93 VarDeclaration& decl = (VarDeclaration&) *raw; in writeFunctionCall()
150 const Variable& var = *((VarDeclaration&) *decl).fVar; in writeVariableReference()
225 const Variable& var = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeProgramElement()
DSkSLCPPCodeGenerator.cpp391 const VarDeclaration& decl = (VarDeclaration&) *raw; in getChildFPIndex()
532 const Variable& var = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeProgramElement()
586 VarDeclaration& decl = (VarDeclaration&) *raw; in writePrivateVars()
626 VarDeclaration& decl = (VarDeclaration&) *raw; in writePrivateVarValues()
852 VarDeclaration& decl = (VarDeclaration&) *raw; in writeEmitCode()
968 VarDeclaration& decl = (VarDeclaration&) *raw; in writeSetData()
1110 const VarDeclaration& decl = (VarDeclaration&) *raw; in writeGetKey()
1196 VarDeclaration& decl = (VarDeclaration&) *raw; in generateCode()
DSkSLSectionAndParameterHelper.h47 const VarDeclaration& decl = (VarDeclaration&) *raw; in SectionAndParameterHelper()
DSkSLMetalCodeGenerator.h168 void writeGlobalVars(const VarDeclaration& vs);
253 std::vector<const VarDeclaration*> fInitNonConstGlobalVars;
/third_party/skia/src/sksl/analysis/
DSkSLProgramUsage.cpp42 if (s.is<VarDeclaration>()) { in visitStatement()
44 const VarDeclaration& vd = s.as<VarDeclaration>(); in visitStatement()
DSkSLGetLoopUnrollInfo.cpp59 if (!loopInitializer->is<VarDeclaration>()) { in get_es2_loop_unroll_info()
62 const VarDeclaration& initDecl = loopInitializer->as<VarDeclaration>(); in get_es2_loop_unroll_info()
/third_party/skia/src/sksl/
DSkSLAnalysis.cpp343 if (stmt.is<VarDeclaration>()) { in DetectVarDeclarationWithoutScope()
345 var = &stmt.as<VarDeclaration>().var(); in DetectVarDeclarationWithoutScope()
354 if (!innerStmt.is<VarDeclaration>()) { in DetectVarDeclarationWithoutScope()
357 var = &innerStmt.as<VarDeclaration>().var(); in DetectVarDeclarationWithoutScope()
488 SkASSERT(f.initializer() && f.initializer()->is<VarDeclaration>()); in visitStatement()
489 const Variable* var = &f.initializer()->as<VarDeclaration>().var(); in visitStatement()
530 const VarDeclaration& decl = in VerifyStaticTestsAndExpressions()
531 pe.as<GlobalVarDeclaration>().declaration()->as<VarDeclaration>(); in VerifyStaticTestsAndExpressions()
766 auto& v = s.template as<VarDeclaration>(); in visitStatement()
/third_party/skia/src/sksl/dsl/priv/
DDSLWriter.cpp57 var.fDeclaration = VarDeclaration::Convert(ThreadContext::Context(), std::move(skslvar), in Var()
103 } else if (existing.fStatement->is<VarDeclaration>()) { in AddVarDeclaration()
/third_party/skia/fuzz/oss_fuzz/
DFuzzSKSL2Pipeline.cpp32 String declareUniform(const SkSL::VarDeclaration* decl) override { in FuzzSKSL2Pipeline()

12