Searched refs:ProgramUsage (Results 1 – 14 of 14) sorted by relevance
/third_party/skia/src/sksl/analysis/ |
D | SkSLProgramUsage.cpp | 24 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/ |
D | SkSLTransform.h | 19 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);
|
D | SkSLEliminateDeadLocalVariables.cpp | 19 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()
|
D | SkSLEliminateUnreachableCode.cpp | 20 void Transform::EliminateUnreachableCode(Program& program, ProgramUsage* usage) { in EliminateUnreachableCode() 23 UnreachableCodeEliminator(ProgramUsage* usage) in EliminateUnreachableCode() 128 ProgramUsage* fUsage; in EliminateUnreachableCode()
|
D | SkSLEliminateDeadGlobalVariables.cpp | 18 bool Transform::EliminateDeadGlobalVariables(Program& program, ProgramUsage* usage) { in EliminateDeadGlobalVariables()
|
D | SkSLEliminateDeadFunctions.cpp | 18 bool Transform::EliminateDeadFunctions(Program& program, ProgramUsage* usage) { in EliminateDeadFunctions()
|
/third_party/skia/src/sksl/ |
D | SkSLInliner.h | 47 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);
|
D | SkSLAnalysis.h | 28 class ProgramUsage; variable 87 std::unique_ptr<ProgramUsage> GetUsage(const Program& program); 88 std::unique_ptr<ProgramUsage> GetUsage(const LoadedModule& module);
|
D | SkSLCompiler.h | 50 class ProgramUsage; variable 111 ProgramUsage* fUsage = nullptr; 237 ProgramUsage* usage);
|
D | SkSLInliner.cpp | 609 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()
|
D | SkSLCompiler.cpp | 518 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/ |
D | SkSLProgram.h | 39 class ProgramUsage { 182 const ProgramUsage* usage() const { return fUsage.get(); } in usage() 200 std::unique_ptr<ProgramUsage> fUsage;
|
/third_party/skia/src/core/ |
D | SkRuntimeEffect.cpp | 262 const SkSL::ProgramUsage::VariableCounts sampleCoordsUsage = in MakeInternal() 264 : SkSL::ProgramUsage::VariableCounts{}; in MakeInternal()
|
/third_party/skia/src/sksl/codegen/ |
D | SkSLSPIRVCodeGenerator.cpp | 3089 ProgramUsage::VariableCounts counts = fProgram.usage()->get(var); in isDead()
|