Home
last modified time | relevance | path

Searched refs:VariableReference (Results 1 – 25 of 28) sorted by relevance

12

/third_party/skia/src/sksl/ir/
DSkSLVariableReference.h34 class VariableReference final : public Expression {
40 VariableReference(int line, const Variable* variable, RefKind refKind);
48 return std::make_unique<VariableReference>(line, variable, refKind);
51 VariableReference(const VariableReference&) = delete;
52 VariableReference& operator=(const VariableReference&) = delete;
70 return std::make_unique<VariableReference>(fLine, this->variable(), this->refKind()); in clone()
DSkSLVariableReference.cpp17 VariableReference::VariableReference(int line, const Variable* variable, RefKind refKind) in VariableReference() function in SkSL::VariableReference
24 bool VariableReference::hasProperty(Property property) const { in hasProperty()
34 bool VariableReference::isConstantOrUniform() const { in isConstantOrUniform()
38 String VariableReference::description() const { in description()
42 void VariableReference::setRefKind(RefKind refKind) { in setRefKind()
46 void VariableReference::setVariable(const Variable* variable) { in setVariable()
DSkSLBinaryExpression.cpp89 ? VariableReference::RefKind::kReadWrite in Convert()
90 : VariableReference::RefKind::kWrite, in Convert()
227 const VariableReference& ref = expr.as<VariableReference>(); in CheckRef()
DSkSLVariable.h119 friend class VariableReference; variable
DSkSLFunctionDefinition.cpp46 return VariableReference::Make(/*line=*/-1, var); in append_rtadjust_fixup_to_vertex_main()
DSkSLFunctionCall.cpp983 ? VariableReference::RefKind::kReadWrite in Convert()
984 : VariableReference::RefKind::kPointer; in Convert()
994 const Variable& child = *arguments.back()->as<VariableReference>().variable(); in Convert()
DSkSLPrefixExpression.cpp177 if (!Analysis::UpdateVariableRefKind(base.get(), VariableReference::RefKind::kReadWrite, in Convert()
/third_party/skia/src/sksl/
DSkSLAnalysis.cpp104 if (!fWritesToSampleCoords && maybeCoords->is<VariableReference>() && in visitExpression()
105 maybeCoords->as<VariableReference>().variable()->modifiers().fLayout.fBuiltin == in visitExpression()
130 if (e.is<VariableReference>()) { in visitExpression()
131 const VariableReference& var = e.as<VariableReference>(); in visitExpression()
205 if (e.is<VariableReference>()) { in visitExpression()
206 const VariableReference& ref = e.as<VariableReference>(); in visitExpression()
208 (ref.refKind() == VariableReference::RefKind::kWrite || in visitExpression()
209 ref.refKind() == VariableReference::RefKind::kReadWrite || in visitExpression()
210 ref.refKind() == VariableReference::RefKind::kPointer)) { in visitExpression()
249 VariableReference& varRef = expr.as<VariableReference>(); in visitExpression()
[all …]
DSkSLAnalysis.h32 class VariableReference; variable
93 VariableReference* fAssignedVar = nullptr;
DSkSLInliner.cpp161 VariableReference::RefKind refKind) { in clone_with_ref_kind()
230 if (!expr->is<VariableReference>()) { in RemapVariable()
235 return expr->as<VariableReference>().variable(); in RemapVariable()
440 const VariableReference& v = expression.as<VariableReference>(); in inlineExpression()
592 (*varMap)[&variable] = VariableReference::Make(line, clonedVar.get()); in inlineStatement()
654 resultExpr = VariableReference::Make(/*line=*/-1, var.fVarSymbol); in inlineCall()
682 varMap[param] = VariableReference::Make(/*line=*/-1, var.fVarSymbol); in inlineCall()
DSkSLCompiler.cpp86 using RefKind = VariableReference::RefKind;
484 return VariableReference::Make(line, var, VariableReference::RefKind::kRead); in convertIdentifier()
488 auto base = VariableReference::Make(line, &field->owner(), in convertIdentifier()
489 VariableReference::RefKind::kRead); in convertIdentifier()
DSkSLConstantFolder.cpp198 if (!expr->is<VariableReference>()) { in GetConstantValueForVariable()
201 const VariableReference& varRef = expr->as<VariableReference>(); in GetConstantValueForVariable()
DSkSLRehydrator.cpp530 VariableReference::RefKind refKind = (VariableReference::RefKind) this->readU8(); in expression()
531 return VariableReference::Make(/*line=*/-1, var, refKind); in expression()
DSkSLDehydrator.cpp424 const VariableReference& v = e->as<VariableReference>(); in write()
/third_party/skia/src/sksl/transform/
DSkSLBuiltinVariableScanner.cpp55 if (e.is<VariableReference>() && e.as<VariableReference>().variable()->isBuiltin()) { in FindAndDeclareBuiltinVariables()
56 this->addDeclaringElement(String(e.as<VariableReference>().variable()->name())); in FindAndDeclareBuiltinVariables()
/third_party/skia/src/sksl/analysis/
DSkSLProgramUsage.cpp61 } else if (e.is<VariableReference>()) { in visitExpression()
62 const VariableReference& ref = e.as<VariableReference>(); in visitExpression()
DSkSLGetLoopUnrollInfo.cpp79 return expr->is<VariableReference>() && in get_es2_loop_unroll_info()
80 expr->as<VariableReference>().variable() == loopInfo.fIndex; in get_es2_loop_unroll_info()
DSkSLIsConstantExpression.cpp40 const Variable* v = e.as<VariableReference>().variable(); in visitExpression()
/third_party/skia/src/sksl/codegen/
DSkSLMetalCodeGenerator.h47 class VariableReference; variable
146 void writeVariableReference(const VariableReference& ref);
154 const SkTArray<VariableReference*>& outVars);
DSkSLGLSLCodeGenerator.h44 class VariableReference; variable
104 virtual void writeVariableReference(const VariableReference& ref);
DSkSLPipelineStageCodeGenerator.cpp95 void writeVariableReference(const VariableReference& ref);
232 void PipelineStageCodeGenerator::writeVariableReference(const VariableReference& ref) { in writeVariableReference()
500 this->writeVariableReference(expr.as<VariableReference>()); in writeExpression()
DSkSLMetalCodeGenerator.cpp180 this->writeVariableReference(expr.as<VariableReference>()); in writeExpression()
196 const SkTArray<VariableReference*>& outVars) { in getOutParamHelper()
344 SkSTArray<16, VariableReference*> outVars; in writeFunctionCall()
345 outVars.push_back_n(arguments.count(), (VariableReference*)nullptr); in writeFunctionCall()
1294 void MetalCodeGenerator::writeVariableReference(const VariableReference& ref) { in writeVariableReference()
2608 const VariableReference& v = e->as<VariableReference>(); in requirements()
DSkSLSPIRVCodeGenerator.h53 class VariableReference; variable
224 SpvId writeVariableReference(const VariableReference& ref, OutputStream& out);
/third_party/skia/include/private/
DSkSLIRNode.h32 class VariableReference; variable
/third_party/skia/src/sksl/dsl/
DDSLExpression.cpp78 fExpression = std::make_unique<SkSL::VariableReference>(pos.line(), DSLWriter::Var(var), in DSLExpression()
79 SkSL::VariableReference::RefKind::kRead); in DSLExpression()

12