/third_party/skia/src/sksl/ir/ |
D | SkSLVariableReference.h | 34 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()
|
D | SkSLVariableReference.cpp | 17 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()
|
D | SkSLBinaryExpression.cpp | 89 ? VariableReference::RefKind::kReadWrite in Convert() 90 : VariableReference::RefKind::kWrite, in Convert() 227 const VariableReference& ref = expr.as<VariableReference>(); in CheckRef()
|
D | SkSLVariable.h | 119 friend class VariableReference; variable
|
/third_party/flutter/skia/src/sksl/ir/ |
D | SkSLVariableReference.cpp | 17 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()
|
D | SkSLVariableReference.h | 24 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
|
D | SkSLSetting.cpp | 17 return VariableReference::copy_constant(irGenerator, fValue.get()); in constantPropagate()
|
/third_party/skia/src/sksl/ |
D | SkSLAnalysis.cpp | 104 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 …]
|
D | SkSLAnalysis.h | 32 class VariableReference; variable 93 VariableReference* fAssignedVar = nullptr;
|
D | SkSLInliner.cpp | 161 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()
|
D | SkSLCompiler.cpp | 86 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/ |
D | SkSLBuiltinVariableScanner.cpp | 55 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/ |
D | SkSLProgramUsage.cpp | 61 } else if (e.is<VariableReference>()) { in visitExpression() 62 const VariableReference& ref = e.as<VariableReference>(); in visitExpression()
|
D | SkSLGetLoopUnrollInfo.cpp | 79 return expr->is<VariableReference>() && in get_es2_loop_unroll_info() 80 expr->as<VariableReference>().variable() == loopInfo.fIndex; in get_es2_loop_unroll_info()
|
D | SkSLIsConstantExpression.cpp | 40 const Variable* v = e.as<VariableReference>().variable(); in visitExpression()
|
/third_party/skia/src/sksl/codegen/ |
D | SkSLMetalCodeGenerator.h | 47 class VariableReference; variable 146 void writeVariableReference(const VariableReference& ref); 154 const SkTArray<VariableReference*>& outVars);
|
D | SkSLGLSLCodeGenerator.h | 44 class VariableReference; variable 104 virtual void writeVariableReference(const VariableReference& ref);
|
/third_party/flutter/skia/src/sksl/ |
D | SkSLIRGenerator.cpp | 643 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 …]
|
D | SkSLCompiler.cpp | 269 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()
|
D | SkSLPipelineStageCodeGenerator.h | 43 void writeVariableReference(const VariableReference& ref) override;
|
D | SkSLPipelineStageCodeGenerator.cpp | 94 if (decl.fVar == &((VariableReference&) *c.fArguments[0]).fVariable) { in writeFunctionCall() 120 void PipelineStageCodeGenerator::writeVariableReference(const VariableReference& ref) { in writeVariableReference()
|
D | SkSLJIT.h | 174 LLVMValueRef compileVariableReference(LLVMBuilderRef builder, const VariableReference& v); 233 bool compileVectorVariableReference(LLVMBuilderRef builder, const VariableReference& v,
|
D | SkSLCPPCodeGenerator.cpp | 86 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()
|
D | SkSLCPPCodeGenerator.h | 48 void writeVariableReference(const VariableReference& ref) override;
|
/third_party/skia/include/private/ |
D | SkSLIRNode.h | 32 class VariableReference; variable
|