Flutter Engine
The Flutter Engine
Namespaces | Functions
SkSLTransform.h File Reference
#include "include/core/SkSpan.h"
#include "src/sksl/ir/SkSLModifierFlags.h"
#include <memory>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  SkSL
 
namespace  SkSL::Transform
 

Functions

ModifierFlags SkSL::Transform::AddConstToVarModifiers (const Variable &var, const Expression *initialValue, const ProgramUsage *usage)
 
std::unique_ptr< Expression > SkSL::Transform::RewriteIndexedSwizzle (const Context &context, const IndexExpression &swizzle)
 
void SkSL::Transform::FindAndDeclareBuiltinFunctions (Program &program)
 
void SkSL::Transform::FindAndDeclareBuiltinStructs (Program &program)
 
void SkSL::Transform::FindAndDeclareBuiltinVariables (Program &program)
 
void SkSL::Transform::EliminateUnreachableCode (Module &module, ProgramUsage *usage)
 
void SkSL::Transform::EliminateUnreachableCode (Program &program)
 
void SkSL::Transform::EliminateEmptyStatements (Module &module)
 
void SkSL::Transform::EliminateUnnecessaryBraces (Module &module)
 
bool SkSL::Transform::EliminateDeadFunctions (const Context &context, Module &module, ProgramUsage *usage)
 
bool SkSL::Transform::EliminateDeadFunctions (Program &program)
 
bool SkSL::Transform::EliminateDeadLocalVariables (const Context &context, Module &module, ProgramUsage *usage)
 
bool SkSL::Transform::EliminateDeadLocalVariables (Program &program)
 
bool SkSL::Transform::EliminateDeadGlobalVariables (const Context &context, Module &module, ProgramUsage *usage, bool onlyPrivateGlobals)
 
bool SkSL::Transform::EliminateDeadGlobalVariables (Program &program)
 
void SkSL::Transform::RenamePrivateSymbols (Context &context, Module &module, ProgramUsage *usage, ProgramKind kind)
 
void SkSL::Transform::ReplaceConstVarsWithLiterals (Module &module, ProgramUsage *usage)
 
std::unique_ptr< Statement > SkSL::Transform::HoistSwitchVarDeclarationsAtTopLevel (const Context &, std::unique_ptr< SwitchStatement >)