Home
last modified time | relevance | path

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

/external/skqp/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
/external/skia/src/sksl/ir/
DSkSLVariable.cpp16 if (fDeclaration) { in ~Variable()
17 fDeclaration->setVar(nullptr); in ~Variable()
22 return fDeclaration ? fDeclaration->value().get() : nullptr; in initialValue()
DSkSLVariable.h74 SkASSERT(!fDeclaration); in setDeclaration()
75 fDeclaration = declaration; in setDeclaration()
81 const_cast<Variable*>(this)->fDeclaration = nullptr; in detachDeadVarDeclaration()
89 VarDeclaration* fDeclaration = nullptr;
DSkSLFunctionPrototype.h28 , fDeclaration(declaration) in FunctionPrototype()
32 return *fDeclaration; in declaration()
49 const FunctionDeclaration* fDeclaration;
DSkSLVarDeclarations.h110 , fDeclaration(std::move(decl)) { in GlobalVarDeclaration()
115 return fDeclaration; in declaration()
119 return fDeclaration; in declaration()
131 std::unique_ptr<Statement> fDeclaration;
DSkSLFunctionDefinition.h31 , fDeclaration(declaration) in INHERITED()
38 return *fDeclaration; in declaration()
76 const FunctionDeclaration* fDeclaration;
/external/skqp/src/sksl/
DSkSLInterpreter.cpp34 if ("appendStages" == f.fDeclaration.fName) { in run()
50 for (int i = f.fDeclaration.fParameters.size() - 1; i >= 0; --i) { in run()
51 current -= SizeOf(f.fDeclaration.fParameters[i]->fType); in run()
52 fVars.back()[f.fDeclaration.fParameters[i]] = current; in run()
163 for (const auto& decl :((const VarDeclarationsStatement&) stmt).fDeclaration->fVars) { in runStatement()
249 if (&f.fDeclaration == in appendStage()
DSkSLMetalCodeGenerator.cpp627 if ("main" == f.fDeclaration.fName) { in writeFunction()
708 this->writeType(f.fDeclaration.fReturnType); in writeFunction()
710 this->writeName(f.fDeclaration.fName); in writeFunction()
712 if (this->requirements(f.fDeclaration) & kInputs_Requirement) { in writeFunction()
716 if (this->requirements(f.fDeclaration) & kOutputs_Requirement) { in writeFunction()
721 if (this->requirements(f.fDeclaration) & kUniforms_Requirement) { in writeFunction()
726 if (this->requirements(f.fDeclaration) & kGlobals_Requirement) { in writeFunction()
732 for (const auto& param : f.fDeclaration.fParameters) { in writeFunction()
760 if ("main" == f.fDeclaration.fName) { in writeFunction()
803 if ("main" == f.fDeclaration.fName) { in writeFunction()
[all …]
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 …]
DSkSLGLSLCodeGenerator.cpp1020 this->writeTypePrecision(f.fDeclaration.fReturnType); in writeFunctionCall()
1021 this->writeType(f.fDeclaration.fReturnType); in writeFunctionCall()
1022 this->write(" " + f.fDeclaration.fName + "("); in writeFunctionCall()
1024 for (const auto& param : f.fDeclaration.fParameters) { in writeFunctionCall()
1271 this->writeVarDeclarations(*((VarDeclarationsStatement&) s).fDeclaration, false); in writeFunctionCall()
DSkSLPipelineStageCodeGenerator.cpp181 if (f.fDeclaration.fName == "main") { in writeFunction()
DSkSLCompiler.cpp435 for (const auto& decl : vd->fDeclaration->fVars) { in compute_start_state()
1201 VarDeclarations& decls = *((VarDeclarationsStatement&) s).fDeclaration; in scanCFG()
1227 if (f.fDeclaration.fReturnType != *fContext->fVoid_Type) { in scanCFG()
DSkSLCFGGenerator.cpp488 for (auto& stmt : decls.fDeclaration->fVars) { in addStatement()
DSkSLSPIRVCodeGenerator.cpp2524 SpvId result = this->writeFunctionStart(f.fDeclaration, out); in writeFunction()
2529 if (f.fDeclaration.fName == "main") { in writeFunction()
2534 if (f.fDeclaration.fReturnType == *fContext.fVoid_Type) { in writeFunction()
2797 this->writeVarDeclarations(*((VarDeclarationsStatement&) s).fDeclaration, out); in writeStatement()
3091 fFunctionMap[&f.fDeclaration] = this->nextId(); in writeInstructions()
DSkSLCPPCodeGenerator.cpp434 if (f.fDeclaration.fName == "main") { in writeFunction()
DSkSLIRGenerator.cpp2076 if (f.fDeclaration.fName == name) { in convertAppend()
2078 std::vector<const FunctionDeclaration*> functions = { &f.fDeclaration }; in convertAppend()
/external/skia/src/sksl/dsl/
DDSLVar.cpp122 std::swap(fDeclaration, other.fDeclaration); in swap()
DDSLFunction.cpp67 param->fDeclaration = nullptr; in init()
/external/skia/include/sksl/
DDSLVar.h140 std::unique_ptr<SkSL::Statement> fDeclaration; variable
/external/skia/src/sksl/dsl/priv/
DDSLWriter.cpp241 var.fDeclaration = DSLWriter::IRGenerator().convertVarDeclaration( in Var()
259 return std::move(var.fDeclaration); in Declaration()