Home
last modified time | relevance | path

Searched refs:FunctionDefinition (Results 1 – 25 of 57) sorted by relevance

123

/third_party/skia/src/sksl/ir/
DSkSLFunctionDefinition.h22 class FunctionDefinition final : public ProgramElement {
28 FunctionDefinition(int line, const FunctionDeclaration* declaration, bool builtin, in FunctionDefinition() function
48 static std::unique_ptr<FunctionDefinition> Convert(const Context& context,
83 return std::make_unique<FunctionDefinition>(fLine, &this->declaration(), in clone()
DSkSLFunctionDeclaration.h23 class FunctionDefinition; variable
59 const FunctionDefinition* definition() const { in definition()
63 void setDefinition(const FunctionDefinition* definition) const { in setDefinition()
119 mutable const FunctionDefinition* fDefinition;
DSkSLFunctionDefinition.cpp72 std::unique_ptr<FunctionDefinition> FunctionDefinition::Convert(const Context& context, in Convert()
93 const FunctionDefinition& original = found->as<FunctionDefinition>(); in Convert()
265 return std::make_unique<FunctionDefinition>(line, &function, builtin, std::move(body), in Convert()
/third_party/skia/src/sksl/codegen/
DSkSLVMCodeGenerator.h22 class FunctionDefinition; variable
50 const FunctionDefinition& function,
82 const FunctionDefinition& function,
88 const FunctionDefinition* Program_GetFunction(const Program& program, const char* function);
DSkSLGLSLCodeGenerator.h29 class FunctionDefinition; variable
86 virtual void writeFunction(const FunctionDefinition& f);
DSkSLPipelineStageCodeGenerator.cpp71 void writeFunction(const FunctionDefinition& f);
321 void PipelineStageCodeGenerator::writeFunction(const FunctionDefinition& f) { in writeFunction()
418 this->writeFunctionDeclaration(e.as<FunctionDefinition>().declaration()); in writeProgramElementFirstPass()
438 if (e.is<FunctionDefinition>()) { in writeProgramElementSecondPass()
439 this->writeFunction(e.as<FunctionDefinition>()); in writeProgramElementSecondPass()
DSkSLMetalCodeGenerator.h31 class FunctionDefinition; variable
130 void writeFunction(const FunctionDefinition& f);
/third_party/flutter/skia/src/sksl/ir/
DSkSLFunctionDefinition.h20 struct FunctionDefinition : public ProgramElement { struct
21 FunctionDefinition(int offset, const FunctionDeclaration& declaration, in FunctionDefinition() function
28 return std::unique_ptr<ProgramElement>(new FunctionDefinition(fOffset, fDeclaration, in clone() argument
/third_party/skia/src/sksl/transform/
DSkSLEliminateDeadFunctions.cpp23 if (!element->is<FunctionDefinition>()) { in EliminateDeadFunctions()
26 const FunctionDefinition& fn = element->as<FunctionDefinition>(); in EliminateDeadFunctions()
DSkSLBuiltinVariableScanner.cpp42 if (pe.is<FunctionDefinition>()) { in FindAndDeclareBuiltinVariables()
43 const FunctionDefinition& funcDef = pe.as<FunctionDefinition>(); in FindAndDeclareBuiltinVariables()
DSkSLEliminateUnreachableCode.cpp136 if (pe->is<FunctionDefinition>()) { in EliminateUnreachableCode()
138 visitor.visitStatementPtr(pe->as<FunctionDefinition>().body()); in EliminateUnreachableCode()
/third_party/skia/src/sksl/analysis/
DSkSLCheckProgramUnrolledSize.cpp54 if (pe.is<FunctionDefinition>()) { in CheckProgramUnrolledSize()
57 const FunctionDeclaration* decl = &pe.as<FunctionDefinition>().declaration(); in CheckProgramUnrolledSize()
194 if (element->is<FunctionDefinition>()) { in CheckProgramUnrolledSize()
200 element->as<FunctionDefinition>().declaration().isMain()) { in CheckProgramUnrolledSize()
DSkSLProgramUsage.cpp27 if (pe.is<FunctionDefinition>()) { in visitProgramElement()
28 for (const Variable* param : pe.as<FunctionDefinition>().declaration().parameters()) { in visitProgramElement()
/third_party/skia/src/sksl/
DSkSLInliner.h24 class FunctionDefinition; variable
84 static ReturnComplexity GetReturnComplexity(const FunctionDefinition& funcDef);
112 bool isSafeToInline(const FunctionDefinition* functionDef, const ProgramUsage& usage);
DSkSLAnalysis.h24 class FunctionDefinition; variable
73 int NodeCountUpToLimit(const FunctionDefinition& function, int limit);
DSkSLInliner.cpp66 static int count_returns_at_end_of_control_flow(const FunctionDefinition& funcDef) { in count_returns_at_end_of_control_flow()
69 CountReturnsAtEndOfControlFlow(const FunctionDefinition& funcDef) { in count_returns_at_end_of_control_flow()
169 CountReturnsWithLimit(const FunctionDefinition& funcDef, int limit) : fLimit(limit) { in CountReturnsWithLimit()
238 Inliner::ReturnComplexity Inliner::GetReturnComplexity(const FunctionDefinition& funcDef) { in GetReturnComplexity()
628 const FunctionDefinition& function = *call->function().definition(); in inlineCall()
720 bool Inliner::isSafeToInline(const FunctionDefinition* functionDef, const ProgramUsage& usage) { in isSafeToInline()
762 FunctionDefinition* fEnclosingFunction; // the Function containing the candidate
782 FunctionDefinition* fEnclosingFunction = nullptr;
801 FunctionDefinition& funcDef = pe->as<FunctionDefinition>(); in visitProgramElement()
/third_party/flutter/skia/src/sksl/
DSkSLJIT.h262 bool compileStageFunctionVector(const FunctionDefinition& f, LLVMValueRef newFunc);
269 void compileStageFunctionLoop(const FunctionDefinition& f, LLVMValueRef newFunc);
279 LLVMValueRef compileStageFunction(const FunctionDefinition& f);
286 LLVMValueRef compileFunction(const FunctionDefinition& f);
DSkSLByteCodeGenerator.h181 std::unique_ptr<ByteCodeFunction> writeFunction(const FunctionDefinition& f);
273 const FunctionDefinition* fFunction;
283 std::vector<const FunctionDefinition*> fFunctions;
DSkSLPipelineStageCodeGenerator.h49 void writeFunction(const FunctionDefinition& f) override;
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DNodeType.h29 FunctionDefinition, enumerator
112 nodeType = NodeType::FunctionDefinition; in visitFunctionDefinition()
/third_party/skia/tests/
DSkSLInterpreterTest.cpp86 const SkSL::FunctionDefinition* main = SkSL::Program_GetFunction(*program, "main"); in test()
117 const SkSL::FunctionDefinition* main = SkSL::Program_GetFunction(*program, "main"); in test()
528 auto build = [&](const SkSL::FunctionDefinition* fn) { in DEF_TEST()
650 const SkSL::FunctionDefinition* main = SkSL::Program_GetFunction(*program, "main"); in DEF_TEST()
672 const SkSL::FunctionDefinition* main = SkSL::Program_GetFunction(*program, "main"); in DEF_TEST()
716 auto test_fn = [&](const SkSL::FunctionDefinition* fn, float in, float expected) { in DEF_TEST()
905 const SkSL::FunctionDefinition* main = SkSL::Program_GetFunction(*program, "main"); in DEF_TEST()
964 const SkSL::FunctionDefinition* main = SkSL::Program_GetFunction(*program, "main"); in DEF_TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DCOFFEmitter.cpp285 if (i->FunctionDefinition) in layoutCOFF()
545 if (i->FunctionDefinition) { in writeCOFF()
546 OS << binary_le(i->FunctionDefinition->TagIndex) in writeCOFF()
547 << binary_le(i->FunctionDefinition->TotalSize) in writeCOFF()
548 << binary_le(i->FunctionDefinition->PointerToLinenumber) in writeCOFF()
549 << binary_le(i->FunctionDefinition->PointerToNextFunction) in writeCOFF()
550 << zeros(i->FunctionDefinition->unused); in writeCOFF()
/third_party/skia/src/sksl/dsl/
DDSLFunction.cpp99 std::unique_ptr<FunctionDefinition> function = FunctionDefinition::Convert( in define()
/third_party/skia/include/effects/
DSkRuntimeEffect.h33 class FunctionDefinition; variable
240 const SkSL::FunctionDefinition& main,
280 const SkSL::FunctionDefinition& fMain;
/third_party/skia/include/private/
DSkSLIRNode.h26 class FunctionDefinition; variable

123