Home
last modified time | relevance | path

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

/external/skia/src/sksl/ir/
DSkSLIntLiteral.h19 struct IntLiteral : public Expression { struct
22 IntLiteral(const Context& context, Position position, int64_t value, const Type* type = nullptr)
39 IntLiteral& i = (IntLiteral&) other; in compareConstant() argument
DSkSLConstructor.h38 int64_t intValue = ((IntLiteral&) *fArguments[0]).fValue; in constantPropagate()
44 int64_t intValue = ((IntLiteral&) *fArguments[0]).fValue; in constantPropagate()
45 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in constantPropagate()
100 const IntLiteral izero(context, Position(), 0); in compareConstant()
156 return ((IntLiteral&) c).fValue; in getIVecComponent()
DSkSLVariableReference.h86 return std::unique_ptr<Expression>(new IntLiteral( in copy_constant()
89 ((IntLiteral*) expr)->fValue)); in copy_constant()
DSkSLProgram.h49 return std::unique_ptr<Expression>(new IntLiteral(context, in literal()
DSkSLSwizzle.h82 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.hpp124 class IntLiteral : public Expression class
127 IntLiteral (GeneratorState& state, ConstValueRangeAccess valueRange);
128 virtual ~IntLiteral (void) {} in ~IntLiteral()
DrsgExpression.cpp284 { getWeight<IntLiteral>, create<IntLiteral> },
417 IntLiteral::IntLiteral (GeneratorState& state, ConstValueRangeAccess valueRange) in IntLiteral() function in rsg::IntLiteral
442 float IntLiteral::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight()
465 void IntLiteral::tokenize (GeneratorState& state, TokenStream& str) const in tokenize()
/external/skia/src/sksl/
DSkSLIRGenerator.cpp240 count = ((IntLiteral&) *size).fValue; in convertVarDeclarations()
442 int64_t v = ((IntLiteral&) *caseValue).fValue; in convertSwitch()
541 std::unique_ptr<IntLiteral>(new IntLiteral(fContext, Position(), fInvocations)), in applyInvocationIDWorkaround()
566 std::unique_ptr<IntLiteral>(new IntLiteral(fContext, Position(), 0)), in applyInvocationIDWorkaround()
756 count = ((IntLiteral&) *converted).fValue; in convertInterfaceBlock()
820 return std::unique_ptr<Expression>(new IntLiteral(fContext, expr.fPosition, in convertExpression()
1102 int64_t leftVal = ((IntLiteral&) left).fValue; in constantFold()
1103 int64_t rightVal = ((IntLiteral&) right).fValue; in constantFold()
1475 int64_t value = ((IntLiteral&) *args[0]).fValue; in convertNumberConstructor()
1480 return std::unique_ptr<Expression>(new IntLiteral(fContext, in convertNumberConstructor()
[all …]
DSkSLGLSLCodeGenerator.h153 void writeIntLiteral(const IntLiteral& i);
DSkSLCPPCodeGenerator.cpp87 int64_t index = ((IntLiteral&) *i.fIndex).fValue; in writeIndexExpression()
104 int64_t index = ((IntLiteral&) *i.fIndex).fValue; in writeIndexExpression()
DSkSLGLSLCodeGenerator.cpp94 this->writeIntLiteral((IntLiteral&) expr); in writeExpression()
474 void GLSLCodeGenerator::writeIntLiteral(const IntLiteral& i) { in writeIntLiteral()
DSkSLSPIRVCodeGenerator.h216 SpvId writeIntLiteral(const IntLiteral& i);
DSkSLSPIRVCodeGenerator.cpp1072 IntLiteral count(fContext, Position(), type.columns()); in getType()
1213 return this->writeIntLiteral((IntLiteral&) expr); in writeExpression()
1723 IntLiteral index(fContext, Position(), fieldExpr.fFieldIndex); in getAccessChain()
1869 IntLiteral index(fContext, Position(), swizzle.fComponents[0]); in getLValue()
1946 IntLiteral fieldIndex(fContext, Position(), fRTHeightFieldIndex); in writeVariableReference()
2443 return std::unique_ptr<Expression>(new IntLiteral(context, Position(), 1)); in create_literal_1()
2545 SpvId SPIRVCodeGenerator::writeIntLiteral(const IntLiteral& i) { in writeIntLiteral()
DSkSLCompiler.cpp417 return ((IntLiteral&) expr).fValue == value; in is_constant()
/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 …]
/external/swiftshader/src/Reactor/
DReactor.hpp118 struct IntLiteral struct
124 struct IntLiteral<Bool> struct
130 struct IntLiteral<Int> struct
136 struct IntLiteral<UInt> struct
142 struct IntLiteral<Long> struct
166 RValue(typename IntLiteral<T>::type i);
2347 RValue<T>::RValue(typename IntLiteral<T>::type i) in RValue()