Home
last modified time | relevance | path

Searched refs:getConstantValue (Results 1 - 25 of 44) sorted by relevance

12

/third_party/skia/third_party/externals/angle2/src/compiler/translator/
H A DOutputTree.cpp282 const TConstantUnion *constantUnion = intermConstantUnion->getConstantValue(); in visitBinary()
593 switch (node->getConstantValue()[i].getType()) in visitConstantUnion()
596 if (node->getConstantValue()[i].getBConst()) in visitConstantUnion()
607 mOut << node->getConstantValue()[i].getFConst(); in visitConstantUnion()
611 mOut << node->getConstantValue()[i].getIConst(); in visitConstantUnion()
615 mOut << node->getConstantValue()[i].getUConst(); in visitConstantUnion()
620 node->getConstantValue()[i].getYuvCscStandardEXTConst()); in visitConstantUnion()
H A DIntermNode.cpp572 const TConstantUnion *TIntermSymbol::getConstantValue() const in getConstantValue() function in sh::TIntermSymbol
832 const TConstantUnion *TIntermAggregate::getConstantValue() const in getConstantValue() function in sh::TIntermAggregate
851 constructorArg->getAsTyped()->getConstantValue(); in getConstantValue()
871 const TConstantUnion *argumentConstantValue = argumentTyped->getConstantValue(); in getConstantValue()
943 const TConstantUnion *argumentConstantValue = argumentTyped->getConstantValue(); in getConstantValue()
1130 const TConstantUnion *TIntermTyped::getConstantValue() const
2054 const TConstantUnion *TIntermConstantUnion::getConstantValue() const in getConstantValue() function in sh::TIntermConstantUnion
2119 operandConstant->getType(), operandConstant->getConstantValue(), mSwizzleOffsets.at(i));
2126 const TConstantUnion *rightConstant = mRight->getConstantValue(); in fold()
2161 const TConstantUnion *constantValue = getConstantValue(); in fold()
2217 const TConstantUnion *TIntermBinary::getConstantValue() const getConstantValue() function in TIntermBinary
[all...]
H A DValidateClipCullDistance.cpp107 const TConstantUnion *constIdx = node->getRight()->getConstantValue(); in visitBinary()
H A DIntermNode.h145 // getConstantValue() returns the constant value that this node represents, if any. It
147 // from fold(). hasConstantValue() returns true if getConstantValue() will return a value.
150 virtual const TConstantUnion *getConstantValue() const;
290 const TConstantUnion *getConstantValue() const override;
351 const TConstantUnion *getConstantValue() const override;
500 const TConstantUnion *getConstantValue() const override;
631 const TConstantUnion *getConstantValue() const override;
/third_party/skia/src/sksl/ir/
H A DSkSLConstructor.cpp176 skstd::optional<double> AnyConstructor::getConstantValue(int n) const { in getConstantValue() function in SkSL::AnyConstructor
181 return arg->getConstantValue(n); in getConstantValue()
200 skstd::optional<double> left = this->getConstantValue(n); in compareConstant()
204 skstd::optional<double> right = other.getConstantValue(n); in compareConstant()
H A DSkSLConstructorDiagonalMatrix.cpp32 skstd::optional<double> ConstructorDiagonalMatrix::getConstantValue(int n) const { in getConstantValue() function in SkSL::ConstructorDiagonalMatrix
42 return (col == row) ? this->argument()->getConstantValue(0) : 0.0; in getConstantValue()
H A DSkSLConstructorSplat.h51 skstd::optional<double> getConstantValue(int n) const override {
53 return this->argument()->getConstantValue(0);
H A DSkSLConstructorMatrixResize.cpp31 skstd::optional<double> ConstructorMatrixResize::getConstantValue(int n) const { in getConstantValue() function in SkSL::ConstructorMatrixResize
47 // Forward `getConstantValue` to the wrapped matrix if the position is in its bounds. in getConstantValue()
51 return this->argument()->getConstantValue(n); in getConstantValue()
H A DSkSLFunctionCall.cpp107 skstd::optional<double> arg0Value = arg0->getConstantValue(arg0Index); in coalesce_n_way_vector()
113 arg1Value = arg1->getConstantValue(arg1Index); in coalesce_n_way_vector()
182 skstd::optional<double> leftValue = left->getConstantValue(index); in optimize_comparison()
183 skstd::optional<double> rightValue = right->getConstantValue(index); in optimize_comparison()
219 skstd::optional<double> arg0Value = arg0->getConstantValue(arg0Index); in evaluate_n_way_intrinsic()
225 arg1Value = arg1->getConstantValue(arg1Index); in evaluate_n_way_intrinsic()
232 arg2Value = arg2->getConstantValue(arg2Index); in evaluate_n_way_intrinsic()
429 mat[index] = *expr->getConstantValue(index); in extract_matrix()
445 return *arguments[idx]->getConstantValue(col); in optimize_intrinsic_call()
610 SKSL_INT x = *arguments[0]->getConstantValue( in optimize_intrinsic_call()
[all...]
H A DSkSLConstructorMatrixResize.h44 skstd::optional<double> getConstantValue(int n) const override;
H A DSkSLConstructorDiagonalMatrix.h44 skstd::optional<double> getConstantValue(int n) const override;
H A DSkSLConstructor.h71 skstd::optional<double> getConstantValue(int n) const override;
H A DSkSLConstructorCompoundCast.cpp55 skstd::optional<double> slotVal = constCtor->getConstantValue(index); in cast_constant_composite()
H A DSkSLExpression.h181 * Returns true if this expression type supports `getConstantValue`. (This particular expression
182 * may or may not actually contain a constant value.) It's harmless to call `getConstantValue`
184 * if `supportsConstantValues` returns false, you can assume that `getConstantValue` will return
202 virtual skstd::optional<double> getConstantValue(int n) const { in getConstantValue() function in SkSL::Expression::Kind
H A DSkSLLiteral.h135 skstd::optional<double> getConstantValue(int n) const override {
H A DSkSLIndexExpression.cpp123 // can reconstruct an equivalent vector using `getConstantValue`. If we in Make()
124 // can't extract the data using `getConstantValue`, it wasn't constant and in Make()
135 skstd::optional<double> slotVal = baseExpr->getConstantValue(indexValue + slot); in Make()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp594 GenericValue ExecutionEngine::getConstantValue(const Constant *C) { in getConstantValue() function in ExecutionEngine
621 Result.AggregateVal[i] = getConstantValue(ElemUndef); in getConstantValue()
648 GenericValue Result = getConstantValue(Op0); in getConstantValue()
657 GenericValue GV = getConstantValue(Op0); in getConstantValue()
663 GenericValue GV = getConstantValue(Op0); in getConstantValue()
669 GenericValue GV = getConstantValue(Op0); in getConstantValue()
676 GenericValue GV = getConstantValue(Op0); in getConstantValue()
682 GenericValue GV = getConstantValue(Op0); in getConstantValue()
687 GenericValue GV = getConstantValue(Op0); in getConstantValue()
702 GenericValue GV = getConstantValue(Op in getConstantValue()
[all...]
/third_party/skia/src/sksl/
H A DSkSLConstantFolder.cpp121 double value = foldFn(*left.getConstantValue(i), *right.getConstantValue(i)); in simplify_vector()
160 skstd::optional<double> slotVal = expr.getConstantValue(index); in contains_constant_zero()
171 skstd::optional<double> slotVal = expr.getConstantValue(index); in is_constant_value()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/
H A DExpandIntegerPowExpressions.cpp89 float exponentValue = constantExponent->getConstantValue()->getFConst(); in visitAggregate()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
H A DRewriteSampleMaskVariable.cpp82 const TConstantUnion *constIdx = node->getRight()->getConstantValue();
H A DReplaceClipCullDistanceVariable.cpp121 const TConstantUnion *constIdx = node->getRight()->getConstantValue();
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
H A DConstantFoldingTest.h57 if (!isEqual(node->getConstantValue()[i], mConstantVector[i])) in visitConstantUnion()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/
H A DExecutionEngine.h504 GenericValue getConstantValue(const Constant *C);
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
H A DIceTargetLoweringARM32.cpp2305 typename C::PrimType getConstantValue() const { in getConstantValue() function in __anon25511::NumericOperands
2323 return Target->shAmtImm(getConstantValue() & 0x1F); in unswappedSrc1RShAmtImm()
2330 return getConstantValue() == 0; in isSrc1ImmediateZero()
2337 return OperandARM32FlexImm::canHoldImm(getConstantValue(), &Rotate, &Imm8); in immediateIsFlexEncodable()
2343 -static_cast<int32_t>(getConstantValue()), &Rotate, &Imm8); in negatedImmediateIsFlexEncodable()
2349 -static_cast<int32_t>(getConstantValue()))); in negatedSrc1F()
2355 ~static_cast<uint32_t>(getConstantValue()), &Rotate, &Imm8); in invertedImmediateIsFlexEncodable()
2361 ~static_cast<uint32_t>(getConstantValue()))); in invertedSrc1F()
2515 const int32_t ShAmtImm = SrcsLo.getConstantValue() & 0x3F; in lowerInt64Arithmetic()
2614 const int32_t ShAmt = SrcsLo.getConstantValue() in lowerInt64Arithmetic()
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/apple/
H A DRewriteRowMajorMatrices.cpp207 ASSERT(fieldIndexNode->getConstantValue() != nullptr); in IsConvertedField()
209 int fieldIndex = fieldIndexNode->getConstantValue()->getIConst(); in IsConvertedField()

Completed in 24 milliseconds

12