Home
last modified time | relevance | path

Searched refs:IntLiteral (Results 1 – 25 of 43) sorted by relevance

12

/external/skqp/src/sksl/ir/
DSkSLIntLiteral.h19 struct IntLiteral : public Expression { struct
22 IntLiteral(const Context& context, int offset, int64_t value) in IntLiteral() function
26 IntLiteral(int offset, int64_t value, const Type* type = nullptr)
43 IntLiteral& i = (IntLiteral&) other; in compareConstant() argument
59 return std::unique_ptr<Expression>(new IntLiteral(fOffset, fValue, &fType)); in clone() argument
DSkSLConstructor.h38 int64_t intValue = ((IntLiteral&) *fArguments[0]).fValue; in constantPropagate()
45 int64_t intValue = ((IntLiteral&) *fArguments[0]).fValue; in constantPropagate()
46 return std::unique_ptr<Expression>(new IntLiteral(fOffset, in constantPropagate()
108 const IntLiteral izero(context, -1, 0); in compareConstant()
DSkSLVariableReference.cpp59 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in copy_constant()
61 ((IntLiteral*) expr)->fValue)); in copy_constant()
DSkSLSwizzle.h112 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in constantPropagate()
DSkSLProgram.h56 return std::unique_ptr<Expression>(new IntLiteral(context, in literal()
/external/skia/src/sksl/ir/
DSkSLIntLiteral.h19 struct IntLiteral : public Expression { struct
22 IntLiteral(const Context& context, int offset, int64_t value) in IntLiteral() argument
26 IntLiteral(int offset, int64_t value, const Type* type = nullptr)
43 IntLiteral& i = (IntLiteral&) other; in compareConstant() argument
59 return std::unique_ptr<Expression>(new IntLiteral(fOffset, fValue, &fType)); in clone() argument
DSkSLConstructor.h37 int64_t intValue = ((IntLiteral&) *fArguments[0]).fValue; in constantPropagate()
43 int64_t intValue = ((IntLiteral&) *fArguments[0]).fValue; in constantPropagate()
44 return std::unique_ptr<Expression>(new IntLiteral(fOffset, in constantPropagate()
106 const IntLiteral izero(context, -1, 0); in compareConstant()
DSkSLVariableReference.cpp59 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in copy_constant()
61 ((IntLiteral*) expr)->fValue)); in copy_constant()
DSkSLSwizzle.h118 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in constantPropagate()
/external/clang/lib/StaticAnalyzer/Checkers/
DTestAfterDivZeroChecker.cpp219 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(B->getRHS()); in checkBranchCondition() local
221 if (!IntLiteral) { in checkBranchCondition()
222 IntLiteral = dyn_cast<IntegerLiteral>(B->getLHS()); in checkBranchCondition()
226 if (!IntLiteral || IntLiteral->getValue() != 0) in checkBranchCondition()
/external/deqp/framework/randomshaders/
DrsgExpression.hpp125 class IntLiteral : public Expression class
128 IntLiteral (GeneratorState& state, ConstValueRangeAccess valueRange);
129 virtual ~IntLiteral (void) {} in ~IntLiteral()
DrsgExpression.cpp284 { getWeight<IntLiteral>, create<IntLiteral> },
429 IntLiteral::IntLiteral (GeneratorState& state, ConstValueRangeAccess valueRange) in IntLiteral() function in rsg::IntLiteral
454 float IntLiteral::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight()
477 void IntLiteral::tokenize (GeneratorState& state, TokenStream& str) const in tokenize()
/external/skia/src/sksl/
DSkSLIRGenerator.cpp289 count = ((IntLiteral&) *size).fValue; in convertVarDeclarations()
600 std::unique_ptr<IntLiteral>(new IntLiteral(fContext, -1, fInvocations)), in applyInvocationIDWorkaround()
625 std::unique_ptr<IntLiteral>(new IntLiteral(fContext, -1, 0)), in applyInvocationIDWorkaround()
897 count = ((IntLiteral&) *converted).fValue; in convertInterfaceBlock()
941 *out = ((const IntLiteral&) value).fValue; in getConstantInt()
975 value = std::unique_ptr<Expression>(new IntLiteral(fContext, e.fOffset, currentValue)); in convertEnum()
1029 return std::unique_ptr<Expression>(new IntLiteral(fContext, expr.fOffset, in convertExpression()
1403 int64_t leftVal = ((IntLiteral&) left).fValue; in constantFold()
1404 int64_t rightVal = ((IntLiteral&) right).fValue; in constantFold()
1736 int64_t value = ((IntLiteral&) *args[0]).fValue; in convertNumberConstructor()
[all …]
DSkSLPipelineStageCodeGenerator.h41 void writeIntLiteral(const IntLiteral& i) override;
DSkSLCPPCodeGenerator.h42 void writeIntLiteral(const IntLiteral& i) override;
DSkSLGLSLCodeGenerator.h174 virtual void writeIntLiteral(const IntLiteral& i);
DSkSLMetalCodeGenerator.h217 void writeIntLiteral(const IntLiteral& i);
DSkSLPipelineStageCodeGenerator.cpp113 void PipelineStageCodeGenerator::writeIntLiteral(const IntLiteral& i) { in writeIntLiteral()
/external/skqp/src/sksl/
DSkSLIRGenerator.cpp283 count = ((IntLiteral&) *size).fValue; in convertVarDeclarations()
594 std::unique_ptr<IntLiteral>(new IntLiteral(fContext, -1, fInvocations)), in applyInvocationIDWorkaround()
619 std::unique_ptr<IntLiteral>(new IntLiteral(fContext, -1, 0)), in applyInvocationIDWorkaround()
875 count = ((IntLiteral&) *converted).fValue; in convertInterfaceBlock()
919 *out = ((const IntLiteral&) value).fValue; in getConstantInt()
953 value = std::unique_ptr<Expression>(new IntLiteral(fContext, e.fOffset, currentValue)); in convertEnum()
994 return std::unique_ptr<Expression>(new IntLiteral(fContext, expr.fOffset, in convertExpression()
1353 int64_t leftVal = ((IntLiteral&) left).fValue; in constantFold()
1354 int64_t rightVal = ((IntLiteral&) right).fValue; in constantFold()
1687 int64_t value = ((IntLiteral&) *args[0]).fValue; in convertNumberConstructor()
[all …]
DSkSLPipelineStageCodeGenerator.h41 void writeIntLiteral(const IntLiteral& i) override;
DSkSLCPPCodeGenerator.h42 void writeIntLiteral(const IntLiteral& i) override;
DSkSLGLSLCodeGenerator.h174 virtual void writeIntLiteral(const IntLiteral& i);
DSkSLMetalCodeGenerator.h213 void writeIntLiteral(const IntLiteral& i);
DSkSLPipelineStageCodeGenerator.cpp112 void PipelineStageCodeGenerator::writeIntLiteral(const IntLiteral& i) { in writeIntLiteral()
/external/clang/lib/Analysis/
DCFG.cpp648 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(LHSExpr); in checkIncorrectRelationalOperator() local
651 if (!IntLiteral) { in checkIncorrectRelationalOperator()
652 IntLiteral = dyn_cast<IntegerLiteral>(RHSExpr); in checkIncorrectRelationalOperator()
657 if (!IntLiteral || !BoolExpr->isKnownToHaveBooleanValue()) in checkIncorrectRelationalOperator()
660 llvm::APInt IntValue = IntLiteral->getValue(); in checkIncorrectRelationalOperator()
664 bool IntLarger = IntLiteral->getType()->isUnsignedIntegerType() || in checkIncorrectRelationalOperator()
687 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(LHSExpr); in checkIncorrectEqualityOperator() local
690 if (!IntLiteral) { in checkIncorrectEqualityOperator()
691 IntLiteral = dyn_cast<IntegerLiteral>(RHSExpr); in checkIncorrectEqualityOperator()
695 if (!IntLiteral) in checkIncorrectEqualityOperator()
[all …]

12