Home
last modified time | relevance | path

Searched refs:ProgramUsage (Results 1 – 14 of 14) sorted by relevance

/third_party/skia/src/sksl/analysis/
DSkSLProgramUsage.cpp24 ProgramUsageVisitor(ProgramUsage* usage, int delta) : fUsage(usage), fDelta(delta) {} in ProgramUsageVisitor()
45 ProgramUsage::VariableCounts& counts = fUsage->fVariableCounts[&vd.var()]; in visitStatement()
63 ProgramUsage::VariableCounts& counts = fUsage->fVariableCounts[ref.variable()]; in visitExpression()
85 ProgramUsage* fUsage;
92 std::unique_ptr<ProgramUsage> Analysis::GetUsage(const Program& program) { in GetUsage()
93 auto usage = std::make_unique<ProgramUsage>(); in GetUsage()
99 std::unique_ptr<ProgramUsage> Analysis::GetUsage(const LoadedModule& module) { in GetUsage()
100 auto usage = std::make_unique<ProgramUsage>(); in GetUsage()
108 ProgramUsage::VariableCounts ProgramUsage::get(const Variable& v) const { in get()
114 bool ProgramUsage::isDead(const Variable& v) const { in isDead()
[all …]
/third_party/skia/src/sksl/transform/
DSkSLTransform.h19 class ProgramUsage; variable
32 void EliminateUnreachableCode(Program& program, ProgramUsage* usage = nullptr);
37 bool EliminateDeadFunctions(Program& program, ProgramUsage* usage);
43 bool EliminateDeadLocalVariables(Program& program, ProgramUsage* usage);
44 bool EliminateDeadGlobalVariables(Program& program, ProgramUsage* usage);
DSkSLEliminateDeadLocalVariables.cpp19 bool Transform::EliminateDeadLocalVariables(Program& program, ProgramUsage* usage) { in EliminateDeadLocalVariables()
22 DeadLocalVariableEliminator(const Context& context, ProgramUsage* usage) in EliminateDeadLocalVariables()
37 ProgramUsage::VariableCounts* counts = fUsage->fVariableCounts.find(var); in EliminateDeadLocalVariables()
60 static bool CanEliminate(const Variable* var, const ProgramUsage::VariableCounts& counts) { in EliminateDeadLocalVariables()
74 ProgramUsage* fUsage; in EliminateDeadLocalVariables()
DSkSLEliminateUnreachableCode.cpp20 void Transform::EliminateUnreachableCode(Program& program, ProgramUsage* usage) { in EliminateUnreachableCode()
23 UnreachableCodeEliminator(ProgramUsage* usage) in EliminateUnreachableCode()
128 ProgramUsage* fUsage; in EliminateUnreachableCode()
DSkSLEliminateDeadGlobalVariables.cpp18 bool Transform::EliminateDeadGlobalVariables(Program& program, ProgramUsage* usage) { in EliminateDeadGlobalVariables()
DSkSLEliminateDeadFunctions.cpp18 bool Transform::EliminateDeadFunctions(Program& program, ProgramUsage* usage) { in EliminateDeadFunctions()
/third_party/skia/src/sksl/
DSkSLInliner.h47 ProgramUsage* usage);
61 std::shared_ptr<SymbolTable> symbols, ProgramUsage* usage,
88 const ProgramUsage& usage,
105 const ProgramUsage&,
112 bool isSafeToInline(const FunctionDefinition* functionDef, const ProgramUsage& usage);
DSkSLAnalysis.h28 class ProgramUsage; variable
87 std::unique_ptr<ProgramUsage> GetUsage(const Program& program);
88 std::unique_ptr<ProgramUsage> GetUsage(const LoadedModule& module);
DSkSLCompiler.h50 class ProgramUsage; variable
111 ProgramUsage* fUsage = nullptr;
237 ProgramUsage* usage);
DSkSLInliner.cpp609 const ProgramUsage& usage, in inlineCall()
664 const ProgramUsage::VariableCounts& paramUsage = usage.get(*param); in inlineCall()
720 bool Inliner::isSafeToInline(const FunctionDefinition* functionDef, const ProgramUsage& usage) { in isSafeToInline()
745 ProgramUsage::VariableCounts counts = usage.get(*param); in isSafeToInline()
1054 const ProgramUsage& usage, in candidateCanBeInlined()
1077 std::shared_ptr<SymbolTable> symbols, ProgramUsage* usage, in buildCandidateList()
1141 ProgramUsage* usage) { in analyze()
DSkSLCompiler.cpp518 std::unique_ptr<ProgramUsage> usage = Analysis::GetUsage(module); in optimize()
536 ProgramUsage* usage = program.fUsage.get(); in optimize()
561 ProgramUsage* usage) { in runInliner()
/third_party/skia/src/sksl/ir/
DSkSLProgram.h39 class ProgramUsage {
182 const ProgramUsage* usage() const { return fUsage.get(); } in usage()
200 std::unique_ptr<ProgramUsage> fUsage;
/third_party/skia/src/core/
DSkRuntimeEffect.cpp262 const SkSL::ProgramUsage::VariableCounts sampleCoordsUsage = in MakeInternal()
264 : SkSL::ProgramUsage::VariableCounts{}; in MakeInternal()
/third_party/skia/src/sksl/codegen/
DSkSLSPIRVCodeGenerator.cpp3089 ProgramUsage::VariableCounts counts = fProgram.usage()->get(var); in isDead()