Home
last modified time | relevance | path

Searched refs:BoolLiteral (Results 1 – 25 of 29) sorted by relevance

12

/external/skia/src/sksl/ir/
DSkSLBoolLiteral.h19 struct BoolLiteral : public Expression { struct
20 BoolLiteral(const Context& context, int offset, bool value) in BoolLiteral() argument
37 BoolLiteral& b = (BoolLiteral&) other; in compareConstant() argument
42 return std::unique_ptr<Expression>(new BoolLiteral(fOffset, fValue, &fType)); in clone() argument
50 BoolLiteral(int offset, bool value, const Type* type) in BoolLiteral() function
DSkSLVariableReference.cpp68 return std::unique_ptr<Expression>(new BoolLiteral(irGenerator.fContext, in copy_constant()
70 ((BoolLiteral*) expr)->fValue)); in copy_constant()
DSkSLProgram.h57 return std::unique_ptr<Expression>(new BoolLiteral(context, in literal()
/external/skqp/src/sksl/ir/
DSkSLBoolLiteral.h19 struct BoolLiteral : public Expression { struct
20 BoolLiteral(const Context& context, int offset, bool value) in BoolLiteral() function
37 BoolLiteral& b = (BoolLiteral&) other; in compareConstant() argument
42 return std::unique_ptr<Expression>(new BoolLiteral(fOffset, fValue, &fType)); in clone() argument
50 BoolLiteral(int offset, bool value, const Type* type) in BoolLiteral() function
DSkSLVariableReference.cpp68 return std::unique_ptr<Expression>(new BoolLiteral(irGenerator.fContext, in copy_constant()
70 ((BoolLiteral*) expr)->fValue)); in copy_constant()
DSkSLProgram.h52 return std::unique_ptr<Expression>(new BoolLiteral(context, in literal()
/external/deqp/framework/randomshaders/
DrsgExpression.hpp143 class BoolLiteral : public Expression class
146 BoolLiteral (GeneratorState& state, ConstValueRangeAccess valueRange);
147 BoolLiteral (bool customValue);
148 virtual ~BoolLiteral (void) {} in ~BoolLiteral()
DrsgExpression.cpp285 { getWeight<BoolLiteral>, create<BoolLiteral> },
483 BoolLiteral::BoolLiteral (GeneratorState& state, ConstValueRangeAccess valueRange) in BoolLiteral() function in rsg::BoolLiteral
502 BoolLiteral::BoolLiteral (bool customValue) in BoolLiteral() function in rsg::BoolLiteral
515 float BoolLiteral::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight()
527 void BoolLiteral::tokenize (GeneratorState& state, TokenStream& str) const in tokenize()
DrsgBinaryOps.cpp308 BoolLiteral* trueLiteral = new BoolLiteral(true); in createNextChild()
/external/skia/src/sksl/
DSkSLIRGenerator.cpp389 if (((BoolLiteral&) *test).fValue) { in convertIf()
1026 return std::unique_ptr<Expression>(new BoolLiteral(fContext, expr.fOffset, in convertExpression()
1351 bool leftVal = ((BoolLiteral&) left).fValue; in short_circuit_boolean()
1355 : std::unique_ptr<Expression>(new BoolLiteral(context, left.fOffset, false)); in short_circuit_boolean()
1358 return leftVal ? std::unique_ptr<Expression>(new BoolLiteral(context, left.fOffset, true)) in short_circuit_boolean()
1389 bool leftVal = ((BoolLiteral&) left).fValue; in constantFold()
1390 bool rightVal = ((BoolLiteral&) right).fValue; in constantFold()
1398 return std::unique_ptr<Expression>(new BoolLiteral(fContext, left.fOffset, result)); in constantFold()
1473 return std::unique_ptr<Expression>(new BoolLiteral(fContext, -1, in constantFold()
1476 return std::unique_ptr<Expression>(new BoolLiteral(fContext, -1, in constantFold()
[all …]
DSkSLGLSLCodeGenerator.cpp197 this->writeBoolLiteral((BoolLiteral&) expr); in writeExpression()
959 BoolLiteral boolTrue(fContext, -1, true); in writeFunctionCall()
964 BoolLiteral boolFalse(fContext, -1, false); in writeFunctionCall()
1013 void GLSLCodeGenerator::writeBoolLiteral(const BoolLiteral& b) { in writeFunctionCall()
1371 std::unique_ptr<BoolLiteral>(new BoolLiteral(fContext, -1, in writeFunctionCall()
DSkSLGLSLCodeGenerator.h172 void writeBoolLiteral(const BoolLiteral& b);
DSkSLMetalCodeGenerator.h215 void writeBoolLiteral(const BoolLiteral& b);
DSkSLSPIRVCodeGenerator.h295 SpvId writeBoolLiteral(const BoolLiteral& b);
DSkSLInterpreter.cpp384 return Value(((const BoolLiteral&) expr).fValue); in evaluate()
DSkSLMetalCodeGenerator.cpp122 this->writeBoolLiteral((BoolLiteral&) expr); in writeExpression()
751 void MetalCodeGenerator::writeBoolLiteral(const BoolLiteral& b) { in writeBoolLiteral()
DSkSLCompiler.cpp732 if (((BoolLiteral&) *t->fTest).fValue) { in simplifyExpression()
1016 if (((BoolLiteral&) *i.fTest).fValue) { in simplifyStatement()
/external/skqp/src/sksl/
DSkSLIRGenerator.cpp383 if (((BoolLiteral&) *test).fValue) { in convertIf()
991 return std::unique_ptr<Expression>(new BoolLiteral(fContext, expr.fOffset, in convertExpression()
1301 bool leftVal = ((BoolLiteral&) left).fValue; in short_circuit_boolean()
1305 : std::unique_ptr<Expression>(new BoolLiteral(context, left.fOffset, false)); in short_circuit_boolean()
1308 return leftVal ? std::unique_ptr<Expression>(new BoolLiteral(context, left.fOffset, true)) in short_circuit_boolean()
1339 bool leftVal = ((BoolLiteral&) left).fValue; in constantFold()
1340 bool rightVal = ((BoolLiteral&) right).fValue; in constantFold()
1348 return std::unique_ptr<Expression>(new BoolLiteral(fContext, left.fOffset, result)); in constantFold()
1424 return std::unique_ptr<Expression>(new BoolLiteral(fContext, -1, in constantFold()
1427 return std::unique_ptr<Expression>(new BoolLiteral(fContext, -1, in constantFold()
[all …]
DSkSLGLSLCodeGenerator.cpp201 this->writeBoolLiteral((BoolLiteral&) expr); in writeExpression()
940 BoolLiteral boolTrue(fContext, -1, true); in writeFunctionCall()
945 BoolLiteral boolFalse(fContext, -1, false); in writeFunctionCall()
994 void GLSLCodeGenerator::writeBoolLiteral(const BoolLiteral& b) { in writeFunctionCall()
1344 std::unique_ptr<BoolLiteral>(new BoolLiteral(fContext, -1, in writeFunctionCall()
DSkSLGLSLCodeGenerator.h172 void writeBoolLiteral(const BoolLiteral& b);
DSkSLMetalCodeGenerator.h211 void writeBoolLiteral(const BoolLiteral& b);
DSkSLSPIRVCodeGenerator.h243 SpvId writeBoolLiteral(const BoolLiteral& b);
DSkSLInterpreter.cpp384 return Value(((const BoolLiteral&) expr).fValue); in evaluate()
DSkSLMetalCodeGenerator.cpp120 this->writeBoolLiteral((BoolLiteral&) expr); in writeExpression()
605 void MetalCodeGenerator::writeBoolLiteral(const BoolLiteral& b) { in writeBoolLiteral()
DSkSLCompiler.cpp732 if (((BoolLiteral&) *t->fTest).fValue) { in simplifyExpression()
1016 if (((BoolLiteral&) *i.fTest).fValue) { in simplifyStatement()

12