Home
last modified time | relevance | path

Searched refs:irGenerator (Results 1 – 18 of 18) sorted by relevance

/external/skqp/src/sksl/ir/
DSkSLVariableReference.cpp54 std::unique_ptr<Expression> VariableReference::copy_constant(const IRGenerator& irGenerator, in copy_constant() argument
59 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in copy_constant()
64 irGenerator.fContext, in copy_constant()
68 return std::unique_ptr<Expression>(new BoolLiteral(irGenerator.fContext, in copy_constant()
75 args.push_back(copy_constant(irGenerator, arg.get())); in copy_constant()
83 copy_constant(irGenerator, in copy_constant()
91 std::unique_ptr<Expression> VariableReference::constantPropagate(const IRGenerator& irGenerator, in constantPropagate() argument
96 if (irGenerator.fKind == Program::kPipelineStage_Kind && in constantPropagate()
99 return irGenerator.getArg(fOffset, fVariable.fName); in constantPropagate()
103 return copy_constant(irGenerator, fVariable.fInitialValue); in constantPropagate()
[all …]
DSkSLSetting.cpp14 std::unique_ptr<Expression> Setting::constantPropagate(const IRGenerator& irGenerator, in constantPropagate() argument
16 if (irGenerator.fSettings->fReplaceSettings) { in constantPropagate()
17 return VariableReference::copy_constant(irGenerator, fValue.get()); in constantPropagate()
DSkSLSwizzle.h104 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate()
109 if (fType == *irGenerator.fContext.fInt_Type) { in constantPropagate()
112 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in constantPropagate()
115 } else if (fType == *irGenerator.fContext.fFloat_Type) { in constantPropagate()
118 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate()
DSkSLConstructor.h32 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate()
35 if (fType == *irGenerator.fContext.fFloat_Type || in constantPropagate()
36 fType == *irGenerator.fContext.fHalf_Type) { in constantPropagate()
39 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate()
42 } else if (fType == *irGenerator.fContext.fUInt_Type || in constantPropagate()
43 fType == *irGenerator.fContext.fUShort_Type) { in constantPropagate()
DSkSLVariableReference.h60 static std::unique_ptr<Expression> copy_constant(const IRGenerator& irGenerator,
63 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator,
DSkSLBinaryExpression.h29 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate()
31 return irGenerator.constantFold(*fLeft, in constantPropagate()
DSkSLPrefixExpression.h36 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate()
40 irGenerator.fContext, in constantPropagate()
DSkSLSetting.h28 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator,
DSkSLExpression.h100 virtual std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate()
/external/skia/src/sksl/ir/
DSkSLVariableReference.cpp54 std::unique_ptr<Expression> VariableReference::copy_constant(const IRGenerator& irGenerator, in copy_constant() argument
59 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in copy_constant()
64 irGenerator.fContext, in copy_constant()
68 return std::unique_ptr<Expression>(new BoolLiteral(irGenerator.fContext, in copy_constant()
75 args.push_back(copy_constant(irGenerator, arg.get())); in copy_constant()
83 copy_constant(irGenerator, in copy_constant()
91 std::unique_ptr<Expression> VariableReference::constantPropagate(const IRGenerator& irGenerator, in constantPropagate() argument
96 if (irGenerator.fKind == Program::kPipelineStage_Kind && in constantPropagate()
100 return irGenerator.getArg(fOffset, fVariable.fName); in constantPropagate()
104 return copy_constant(irGenerator, fVariable.fInitialValue); in constantPropagate()
[all …]
DSkSLSetting.cpp14 std::unique_ptr<Expression> Setting::constantPropagate(const IRGenerator& irGenerator, in constantPropagate() argument
16 if (irGenerator.fSettings->fReplaceSettings) { in constantPropagate()
17 return VariableReference::copy_constant(irGenerator, fValue.get()); in constantPropagate()
DSkSLVariableReference.h60 static std::unique_ptr<Expression> copy_constant(const IRGenerator& irGenerator,
63 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator,
DSkSLSwizzle.h110 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate()
118 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in constantPropagate()
124 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate()
DSkSLPrefixExpression.h36 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate()
40 irGenerator.fContext, in constantPropagate()
DSkSLBinaryExpression.h29 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate()
31 return irGenerator.constantFold(*fLeft, in constantPropagate()
DSkSLConstructor.h32 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate()
38 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate()
DSkSLSetting.h28 std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator,
DSkSLExpression.h101 virtual std::unique_ptr<Expression> constantPropagate(const IRGenerator& irGenerator, in constantPropagate()