Home
last modified time | relevance | path

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

123

/external/skia/src/sksl/ir/
DSkSLVariableReference.cpp17 VariableReference::VariableReference(int offset, 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()
DSkSLVariableReference.h34 class VariableReference final : public Expression {
40 VariableReference(int offset, const Variable* variable, RefKind refKind);
48 return std::make_unique<VariableReference>(offset, variable, refKind);
51 VariableReference(const VariableReference&) = delete;
52 VariableReference& operator=(const VariableReference&) = delete;
70 return std::make_unique<VariableReference>(fOffset, this->variable(), this->refKind()); in clone()
DSkSLBinaryExpression.cpp93 ? VariableReference::RefKind::kReadWrite in Convert()
94 : VariableReference::RefKind::kWrite, in Convert()
226 const VariableReference& ref = expr.as<VariableReference>(); in CheckRef()
DSkSLVariable.h98 friend class VariableReference; variable
/external/skqp/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()
/external/skia/src/sksl/
DSkSLAnalysis.cpp70 fc.arguments()[0]->is<VariableReference>() && in is_sample_call_to_fp()
71 fc.arguments()[0]->as<VariableReference>().variable() == &fp; in is_sample_call_to_fp()
104 if (!fWritesToSampleCoords && coords->is<VariableReference>() && in visitExpression()
105 coords->as<VariableReference>() in visitExpression()
138 if (e.is<VariableReference>()) { in visitExpression()
139 const VariableReference& var = e.as<VariableReference>(); in visitExpression()
221 } else if (e.is<VariableReference>()) { in visitExpression()
222 const VariableReference& ref = e.as<VariableReference>(); in visitExpression()
260 if (e.is<VariableReference>()) { in visitExpression()
261 const VariableReference& ref = e.as<VariableReference>(); in visitExpression()
[all …]
DSkSLAnalysis.h29 class VariableReference; variable
77 VariableReference* fAssignedVar = nullptr;
DSkSLIRGenerator.cpp696 VariableReference::Make(/*offset=*/-1, loopIdx), in applyInvocationIDWorkaround()
701 VariableReference::Make(/*offset=*/-1, loopIdx, VariableRefKind::kReadWrite), in applyInvocationIDWorkaround()
717 VariableReference::Make(/*offset=*/-1, loopIdx, VariableRefKind::kWrite), in applyInvocationIDWorkaround()
744 return VariableReference::Make(/*offset=*/-1, var, VariableReference::RefKind::kRead); in getNormalizeSkPositionCode()
747 return VariableReference::Make(/*offset=*/-1, var, VariableReference::RefKind::kWrite); in getNormalizeSkPositionCode()
1356 return VariableReference::Make(offset, var, VariableReference::RefKind::kRead); in convertIdentifier()
1360 auto base = VariableReference::Make(offset, &field->owner(), in convertIdentifier()
1361 VariableReference::RefKind::kRead); in convertIdentifier()
1692 const Variable& v = *result->as<VariableReference>().variable(); in convertTypeField()
1843 if (e.is<VariableReference>() && e.as<VariableReference>().variable()->isBuiltin()) { in findAndDeclareBuiltinVariables()
[all …]
DSkSLConstantFolder.cpp208 if (!expr->is<VariableReference>()) { in GetConstantValueForVariable()
211 const VariableReference& varRef = expr->as<VariableReference>(); in GetConstantValueForVariable()
228 if (!expr->is<VariableReference>()) { in GetConstantValueForVariable()
DSkSLInliner.cpp162 VariableReference::RefKind refKind) { in clone_with_ref_kind()
409 const VariableReference& v = expression.as<VariableReference>(); in inlineExpression()
552 (*varMap)[&variable] = VariableReference::Make(offset, clonedVar.get()); in inlineStatement()
648 resultExpr = VariableReference::Make(/*offset=*/-1, var.fVarSymbol); in inlineCall()
672 varMap[param] = VariableReference::Make(/*offset=*/-1, var.fVarSymbol); in inlineCall()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/compiler/
Dvariable_accessor.h87 struct VariableReference { struct
95 VariableReference Parse(absl::string_view input); argument
/external/skqp/src/sksl/
DSkSLCPPCodeGenerator.h48 void writeVariableReference(const VariableReference& ref) override;
118 int getChildFPIndex(const VariableReference& reference) const;
DSkSLIRGenerator.cpp592 std::unique_ptr<Expression>(new VariableReference(-1, *loopIdx)), in applyInvocationIDWorkaround()
598 new VariableReference(-1, in applyInvocationIDWorkaround()
600 VariableReference::kReadWrite_RefKind)), in applyInvocationIDWorkaround()
617 std::unique_ptr<Expression>(new VariableReference(-1, *loopIdx)), in applyInvocationIDWorkaround()
640 new VariableReference(-1, *var, VariableReference::kRead_RefKind)) in getNormalizeSkPositionCode()
922 const Variable& var = ((VariableReference&) value).fVariable; in getConstantInt()
1055 return std::unique_ptr<VariableReference>(new VariableReference( in convertIdentifier()
1058 VariableReference::kRead_RefKind)); in convertIdentifier()
1062 VariableReference* base = new VariableReference(identifier.fOffset, field->fOwner, in convertIdentifier()
1063 VariableReference::kRead_RefKind); in convertIdentifier()
[all …]
DSkSLCompiler.cpp258 const Variable& var = ((VariableReference*) lvalue)->fVariable; in addDefinition()
358 const VariableReference* v = (VariableReference*) expr; in addDefinitions()
359 if (v->fRefKind != VariableReference::kRead_RefKind) { in addDefinitions()
453 return ((VariableReference&) lvalue).fVariable.dead(); in is_dead()
675 ((VariableReference&) expr).setRefKind(VariableReference::kRead_RefKind); in clear_write()
715 const VariableReference& ref = (VariableReference&) *expr; in simplifyExpression()
717 if (ref.refKind() != VariableReference::kWrite_RefKind && in simplifyExpression()
718 ref.refKind() != VariableReference::kPointer_RefKind && in simplifyExpression()
DSkSLInterpreter.cpp200 SkASSERT(fVars.back().find(&((VariableReference&) expr).fVariable) != in getLValue()
202 return fVars.back()[&((VariableReference&) expr).fVariable]; in getLValue()
455 SkASSERT(fVars.back().find(&((VariableReference&) expr).fVariable) != in evaluate()
457 return fStack[fVars.back()[&((VariableReference&) expr).fVariable]]; in evaluate()
DSkSLPipelineStageCodeGenerator.cpp90 if (decl.fVar == &((VariableReference&) *c.fArguments[0]).fVariable) { in writeFunctionCall()
116 void PipelineStageCodeGenerator::writeVariableReference(const VariableReference& ref) { in writeVariableReference()
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,
DSkSLCPPCodeGenerator.cpp88 int builtin = ((VariableReference&) base).fVariable.fModifiers.fLayout.fBuiltin; in writeIndexExpression()
251 void CPPCodeGenerator::writeVariableReference(const VariableReference& ref) { in writeVariableReference()
336 int index = getChildFPIndex((const VariableReference&) *access.fBase); in writeFieldAccess()
350 int CPPCodeGenerator::getChildFPIndex(const VariableReference& reference) const { in getChildFPIndex()
391 int index = getChildFPIndex((const VariableReference&) *c.fArguments[0]); in writeFunctionCall()
427 String sampler = this->getSamplerHandle(((VariableReference&) *c.fArguments[0]).fVariable); in writeFunctionCall()
/external/skia/src/sksl/dsl/
DDSLExpression.cpp72 : fExpression(std::make_unique<SkSL::VariableReference>( in DSLExpression()
75 SkSL::VariableReference::RefKind::kRead)) {} in DSLExpression()
78 : fExpression(std::make_unique<SkSL::VariableReference>( in DSLExpression()
81 SkSL::VariableReference::RefKind::kRead)) {} in DSLExpression()
/external/skia/include/private/
DSkSLIRNode.h33 class VariableReference; variable
/external/skia/src/sksl/codegen/
DSkSLPipelineStageCodeGenerator.cpp86 void writeVariableReference(const VariableReference& ref);
150 SkASSERT(child->is<VariableReference>()); in writeFunctionCall()
157 if (&decl.var() == child->as<VariableReference>().variable()) { in writeFunctionCall()
209 void PipelineStageCodeGenerator::writeVariableReference(const VariableReference& ref) { in writeVariableReference()
430 this->writeVariableReference(expr.as<VariableReference>()); in writeExpression()
DSkSLMetalCodeGenerator.h158 void writeVariableReference(const VariableReference& ref);
166 const SkTArray<VariableReference*>& outVars);

123