Home
last modified time | relevance | path

Searched refs:VariableReference (Results 1 – 25 of 47) 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
/third_party/flutter/skia/src/sksl/ir/
DSkSLVariableReference.cpp17 VariableReference::VariableReference(int offset, const Variable& variable, RefKind refKind) in VariableReference() function in SkSL::VariableReference
29 VariableReference::~VariableReference() { in ~VariableReference()
38 void VariableReference::setRefKind(RefKind refKind) { in setRefKind()
54 std::unique_ptr<Expression> VariableReference::copy_constant(const IRGenerator& irGenerator, in copy_constant()
91 std::unique_ptr<Expression> VariableReference::constantPropagate(const IRGenerator& irGenerator, in constantPropagate()
DSkSLVariableReference.h24 struct VariableReference : public Expression { struct
34 VariableReference(int offset, const Variable& variable, RefKind refKind = kRead_RefKind); argument
36 ~VariableReference() override;
53 return std::unique_ptr<Expression>(new VariableReference(fOffset, fVariable, fRefKind)); in clone() argument
DSkSLSetting.cpp17 return VariableReference::copy_constant(irGenerator, fValue.get()); in constantPropagate()
/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()
/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);
/third_party/flutter/skia/src/sksl/
DSkSLIRGenerator.cpp643 std::unique_ptr<Expression>(new VariableReference(-1, *loopIdx)), in applyInvocationIDWorkaround()
649 new VariableReference(-1, in applyInvocationIDWorkaround()
651 VariableReference::kReadWrite_RefKind)), in applyInvocationIDWorkaround()
668 std::unique_ptr<Expression>(new VariableReference(-1, *loopIdx)), in applyInvocationIDWorkaround()
691 new VariableReference(-1, *var, VariableReference::kRead_RefKind)) in getNormalizeSkPositionCode()
1020 const Variable& var = ((VariableReference&) value).fVariable; in getConstantInt()
1208 return std::unique_ptr<VariableReference>(new VariableReference( in convertIdentifier()
1211 VariableReference::kRead_RefKind)); in convertIdentifier()
1215 VariableReference* base = new VariableReference(identifier.fOffset, field->fOwner, in convertIdentifier()
1216 VariableReference::kRead_RefKind); in convertIdentifier()
[all …]
DSkSLCompiler.cpp269 const Variable& var = ((VariableReference*) lvalue)->fVariable; in addDefinition()
371 const VariableReference* v = (VariableReference*) expr; in addDefinitions()
372 if (v->fRefKind != VariableReference::kRead_RefKind) { in addDefinitions()
466 return ((VariableReference&) lvalue).fVariable.dead(); in is_dead()
696 ((VariableReference&) expr).setRefKind(VariableReference::kRead_RefKind); in clear_write()
736 const VariableReference& ref = (VariableReference&) *expr; in simplifyExpression()
738 if (ref.refKind() != VariableReference::kWrite_RefKind && in simplifyExpression()
739 ref.refKind() != VariableReference::kPointer_RefKind && in simplifyExpression()
DSkSLPipelineStageCodeGenerator.h43 void writeVariableReference(const VariableReference& ref) override;
DSkSLJIT.h174 LLVMValueRef compileVariableReference(LLVMBuilderRef builder, const VariableReference& v);
233 bool compileVectorVariableReference(LLVMBuilderRef builder, const VariableReference& v,
DSkSLPipelineStageCodeGenerator.cpp94 if (decl.fVar == &((VariableReference&) *c.fArguments[0]).fVariable) { in writeFunctionCall()
120 void PipelineStageCodeGenerator::writeVariableReference(const VariableReference& ref) { in writeVariableReference()
DSkSLCPPCodeGenerator.cpp86 var = &((VariableReference&) *b.fLeft).fVariable; in writeBinaryExpression()
89 var = &((VariableReference&) *b.fRight).fVariable; in writeBinaryExpression()
115 int builtin = ((VariableReference&) base).fVariable.fModifiers.fLayout.fBuiltin; in writeIndexExpression()
284 void CPPCodeGenerator::writeVariableReference(const VariableReference& ref) { in writeVariableReference()
369 const Variable& var = ((const VariableReference&) *access.fBase).fVariable; in writeFieldAccess()
427 const Variable& child = ((const VariableReference&) *c.fArguments[0]).fVariable; in writeFunctionCall()
477 String sampler = this->getSamplerHandle(((VariableReference&) *c.fArguments[0]).fVariable); in writeFunctionCall()
DSkSLCPPCodeGenerator.h48 void writeVariableReference(const VariableReference& ref) override;
/third_party/skia/include/private/
DSkSLIRNode.h32 class VariableReference; variable

12