Home
last modified time | relevance | path

Searched refs:fDeclaration (Results 1 – 21 of 21) sorted by relevance

/third_party/flutter/skia/src/sksl/ir/
DSkSLVarDeclarationsStatement.h22 , fDeclaration(std::move(decl)) {} in VarDeclarationsStatement()
25 for (const auto& s : fDeclaration->fVars) { in isEmpty()
34 std::unique_ptr<VarDeclarations> cloned((VarDeclarations*) fDeclaration->clone().release()); in clone()
39 return fDeclaration->description() + ";"; in description()
42 std::unique_ptr<VarDeclarations> fDeclaration; member
DSkSLFunctionDefinition.h24 , fDeclaration(declaration) in FunctionDefinition()
28 return std::unique_ptr<ProgramElement>(new FunctionDefinition(fOffset, fDeclaration, in clone()
33 return fDeclaration.description() + " " + fBody->description(); in description()
36 const FunctionDeclaration& fDeclaration; member
/third_party/skia/src/sksl/ir/
DSkSLFunctionPrototype.h28 , fDeclaration(declaration) in FunctionPrototype()
32 return *fDeclaration; in declaration()
48 const FunctionDeclaration* fDeclaration;
DSkSLVariable.h95 SkASSERT(!fDeclaration); in setDeclaration()
96 fDeclaration = declaration; in setDeclaration()
102 const_cast<Variable*>(this)->fDeclaration = nullptr; in detachDeadVarDeclaration()
110 VarDeclaration* fDeclaration = nullptr;
DSkSLVarDeclarations.h118 , fDeclaration(std::move(decl)) { in GlobalVarDeclaration()
123 return fDeclaration; in declaration()
127 return fDeclaration; in declaration()
139 std::unique_ptr<Statement> fDeclaration;
DSkSLVariable.cpp22 if (fDeclaration) { in ~Variable()
23 fDeclaration->setVar(nullptr); in ~Variable()
28 return fDeclaration ? fDeclaration->value().get() : nullptr; in initialValue()
DSkSLFunctionDefinition.h31 , fDeclaration(declaration) in FunctionDefinition()
55 return *fDeclaration; in declaration()
93 const FunctionDeclaration* fDeclaration;
/third_party/skia/src/sksl/dsl/priv/
DDSLWriter.cpp57 var.fDeclaration = VarDeclaration::Convert(ThreadContext::Context(), std::move(skslvar), in Var()
59 if (var.fDeclaration) { in Var()
80 if (!var.fDeclaration) { in Declaration()
86 return std::move(var.fDeclaration); in Declaration()
/third_party/skia/src/sksl/dsl/
DDSLVar.cpp74 if (fDeclaration && !fDeclared) { in ~DSLVarBase()
87 std::swap(fDeclaration, other.fDeclaration); in swap()
DDSLFunction.cpp46 SkASSERT(!param->fDeclaration); in init()
/third_party/flutter/skia/src/sksl/
DSkSLJIT.cpp852 if (&def.fDeclaration == &functionDecl) { in appendStage()
1072 for (const auto& declStatement : decls.fDeclaration->fVars) { in compileVarDeclarations()
1277 fVariables[f.fDeclaration.fParameters[1]] = LLVMBuildTrunc(builder, params.get()[3], fInt32Type, in compileStageFunctionLoop()
1279 fVariables[f.fDeclaration.fParameters[2]] = color; in compileStageFunctionLoop()
1285 fVariables[f.fDeclaration.fParameters[0]] = LLVMBuildAdd(builder, in compileStageFunctionLoop()
1735 (String(f.fDeclaration.fName) + "$stage").c_str(), in compileStageFunction()
1737 fColorParam = f.fDeclaration.fParameters[2]; in compileStageFunction()
1757 if (this->hasStageSignature(f.fDeclaration)) { in compileFunction()
1763 LLVMTypeRef returnType = this->getType(f.fDeclaration.fReturnType); in compileFunction()
1765 for (const auto& p : f.fDeclaration.fParameters) { in compileFunction()
[all …]
DSkSLMetalCodeGenerator.cpp780 if ("main" == f.fDeclaration.fName) { in writeFunction()
860 this->writeType(f.fDeclaration.fReturnType); in writeFunction()
862 this->writeName(f.fDeclaration.fName); in writeFunction()
864 Requirements requirements = this->requirements(f.fDeclaration); in writeFunction()
890 for (const auto& param : f.fDeclaration.fParameters) { in writeFunction()
918 if ("main" == f.fDeclaration.fName) { in writeFunction()
961 if ("main" == f.fDeclaration.fName) { in writeFunction()
1156 this->writeVarDeclarations(*((VarDeclarationsStatement&) s).fDeclaration, false); in writeStatement()
1599 const VarDeclarations& decls = *((const VarDeclarationsStatement&) s).fDeclaration; in requirements()
1662 if (&def.fDeclaration == &f) { in requirements()
DSkSLPipelineStageCodeGenerator.cpp185 fCurrentFunction = &f.fDeclaration; in writeFunction()
186 if (f.fDeclaration.fName == "main") { in writeFunction()
DSkSLGLSLCodeGenerator.cpp1045 this->writeTypePrecision(f.fDeclaration.fReturnType); in writeFunctionCall()
1046 this->writeType(f.fDeclaration.fReturnType); in writeFunctionCall()
1047 this->write(" " + f.fDeclaration.fName + "("); in writeFunctionCall()
1049 for (const auto& param : f.fDeclaration.fParameters) { in writeFunctionCall()
1302 this->writeVarDeclarations(*((VarDeclarationsStatement&) s).fDeclaration, false); in writeFunctionCall()
DSkSLByteCodeGenerator.cpp88 std::unique_ptr<ByteCodeFunction> result(new ByteCodeFunction(&f.fDeclaration)); in writeFunction()
109 const Type& returnType = f.fDeclaration.fReturnType; in writeFunction()
393 for (const auto& p : fFunction->fDeclaration.fParameters) { in getLocation()
930 if (f.fFunction.matches(fFunctions[idx]->fDeclaration)) { in writeFunctionCall()
1520 this->writeVarDeclarations(*((VarDeclarationsStatement&) s).fDeclaration); in writeStatement()
DSkSLCompiler.cpp448 for (const auto& decl : vd->fDeclaration->fVars) { in compute_start_state()
1222 VarDeclarations& decls = *((VarDeclarationsStatement&) s).fDeclaration; in scanCFG()
1248 if (f.fDeclaration.fReturnType != *fContext->fVoid_Type) { in scanCFG()
DSkSLSPIRVCodeGenerator.cpp2554 SpvId result = this->writeFunctionStart(f.fDeclaration, out); in writeFunction()
2559 if (f.fDeclaration.fName == "main") { in writeFunction()
2564 if (f.fDeclaration.fReturnType == *fContext.fVoid_Type) { in writeFunction()
2832 this->writeVarDeclarations(*((VarDeclarationsStatement&) s).fDeclaration, out); in writeStatement()
3124 fFunctionMap[&f.fDeclaration] = this->nextId(); in writeInstructions()
DSkSLCFGGenerator.cpp506 for (auto& stmt : decls.fDeclaration->fVars) { in addStatement()
DSkSLCPPCodeGenerator.cpp484 if (f.fDeclaration.fName == "main") { in writeFunction()
DSkSLIRGenerator.cpp2325 if (f.fDeclaration.fName == name) { in convertAppend()
2327 std::vector<const FunctionDeclaration*> functions = { &f.fDeclaration }; in convertAppend()
/third_party/skia/include/sksl/
DDSLVar.h128 std::unique_ptr<SkSL::Statement> fDeclaration; variable