Home
last modified time | relevance | path

Searched refs:isScalar (Results 1 – 25 of 97) sorted by relevance

1234

/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DVectorizeVectorScalarArithmetic.cpp64 ASSERT(node->isScalar()); in Vectorize()
105 if (left->isScalar() && right->isVector()) in visitBinary()
117 else if (left->isVector() && right->isScalar()) in visitBinary()
141 ASSERT(left->isScalar() && right->isScalar()); in replaceMathInsideConstructor()
170 ASSERT(left->isScalar() && right->isScalar()); in replaceAssignInsideConstructor()
225 if (!argument->isScalar() || argument->getBasicType() != EbtFloat) in visitAggregate()
DBreakVariableAliasingInInnerLoops.cpp56 if (!type.isScalar() && !type.isVector() && !type.isMatrix()) in visitBinary()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DConvertUnsupportedConstructorsToFunctionCalls.cpp41 if (type.isScalar()) in AppendScalarFromNonScalarArguments()
87 if (parameter->isScalar()) in AppendValuesFromMultipleArguments()
195 if (!type.isScalar() && !type.isVector() && !type.isMatrix()) in visitAggregatePost()
223 arguments.size() == 1 && type.isScalar() && arg0Type.isScalar(); in visitAggregatePost()
265 if (type.isScalar()) in visitAggregatePost()
271 if (arguments.size() == 1 && arg0Type.isScalar()) in visitAggregatePost()
282 if (arguments.size() == 1 && arg0Type.isScalar()) in visitAggregatePost()
/third_party/skia/src/sksl/ir/
DSkSLConstructorScalarCast.cpp22 SkASSERT(type.isScalar()); in Convert()
32 if (!argType.isScalar()) { in Convert()
60 SkASSERT(type.isScalar()); in Make()
62 SkASSERT(arg->type().isScalar()); in Make()
DSkSLConstructorSplat.cpp20 SkASSERT(arg->type().isScalar()); in Make()
23 if (type.isScalar()) { in Make()
DSkSLConstructorCompound.cpp26 if (type.isScalar() && args.size() == 1 && args.front()->type() == type) { in Make()
34 return (argType.isScalar() || argType.isVector() || argType.isMatrix()) && in Make()
DSkSLConstructor.cpp55 if (argument->type().isScalar()) { in convert_compound_constructor()
117 if (!arg->type().isScalar() && !arg->type().isVector()) { in convert_compound_constructor()
159 if (type.isScalar()) { in Convert()
DSkSLSwizzle.cpp142 if (!argType.isScalar() && !argType.isVector()) { in optimize_constructor_swizzle()
187 if (baseArg.type().isScalar()) { in optimize_constructor_swizzle()
286 if (!baseType.isVector() && !baseType.isScalar()) { in Convert()
440 SkASSERTF(exprType.isVector() || exprType.isScalar(), in Make()
454 if (exprType.isScalar()) { in Make()
DSkSLConstructorDiagonalMatrix.cpp22 SkASSERT(arg->type().isScalar()); in Make()
DSkSLType.cpp126 bool isScalar() const override { in isScalar() function in SkSL::LiteralType
177 bool isScalar() const override { in isScalar() function in SkSL::ScalarType
584 SkASSERT(this->isScalar()); in toCompound()
763 if (this->isScalar()) { in coerceExpression()
838 SkASSERT(this->isScalar()); in checkForOutOfRangeLiteral()
DSkSLConstructorArrayCast.cpp29 if (arg->type().isScalar()) { in cast_constant_array()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DMachineIRBuilder.cpp204 assert((Res.isScalar() || Res.isVector()) && "invalid operand type"); in validateBinaryOp()
210 assert((Res.isScalar() || Res.isVector()) && "invalid operand type"); in validateShiftOp()
219 assert(Op1.getLLTTy(*getMRI()).isScalar() && "invalid offset type"); in buildPtrAdd()
228 assert(ValueTy.isScalar() && "invalid offset type"); in materializePtrAdd()
355 assert(getMRI()->getType(Tst).isScalar() && "invalid operand type"); in buildBrCond()
449 assert(Res.getLLTTy(*getMRI()).isScalar() || in buildExtOrTrunc()
451 assert(Res.getLLTTy(*getMRI()).isScalar() == in buildExtOrTrunc()
452 Op.getLLTTy(*getMRI()).isScalar()); in buildExtOrTrunc()
490 if (SrcTy.isPointer() && DstTy.isScalar()) in buildCast()
492 else if (DstTy.isPointer() && SrcTy.isScalar()) in buildCast()
[all …]
DLegalityPredicates.cpp68 LegalityPredicate LegalityPredicates::isScalar(unsigned TypeIdx) { in isScalar() function in LegalityPredicates
70 return Query.Types[TypeIdx].isScalar(); in isScalar()
98 return QueryTy.isScalar() && QueryTy.getSizeInBits() < Size; in narrowerThan()
106 return QueryTy.isScalar() && QueryTy.getSizeInBits() > Size; in widerThan()
136 return QueryTy.isScalar() && !isPowerOf2_32(QueryTy.getSizeInBits()); in sizeNotPow2()
/third_party/mindspore/mindspore/core/ir/
Dtensor.cc267 void OutputFloatDataString(std::ostringstream &ss, bool isScalar, const T &value) const { in OutputFloatDataString() argument
268 if (isScalar) { in OutputFloatDataString()
280 void OutputBoolDataString(std::ostringstream &ss, bool isScalar, const T &value) const { in OutputBoolDataString() argument
281 if (isScalar) { in OutputBoolDataString()
289 …void OutputOtherDataString(std::ostringstream &ss, bool isScalar, const T &value, int *max_width) … in OutputOtherDataString() argument
290 if (isScalar) { in OutputOtherDataString()
310 const bool isScalar = ndim_ == 0 && end - start == 1; in OutputDataString() local
322 OutputFloatDataString(ss, isScalar, value); in OutputDataString()
324 OutputBoolDataString(ss, isScalar, value); in OutputDataString()
326 OutputOtherDataString(ss, isScalar, value, max_width); in OutputDataString()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Dsparse_to_dense_fp32.c19 float *output, bool isScalar, int index_start, int index_end, int out_width) { in SparseToDense() argument
31 if (isScalar == true) { in SparseToDense()
Dsparse_to_dense_fp32.h25 float *output, bool isScalar, int index_start, int index_end, int out_width);
/third_party/skia/src/sksl/
DSkSLOperators.cpp342 if (leftIsVectorOrMatrix && validMatrixOrVectorOp && right.isScalar()) { in determineBinaryType()
358 if (!isAssignment && rightIsVectorOrMatrix && validMatrixOrVectorOp && left.isScalar()) { in determineBinaryType()
376 if ((left.isScalar() && right.isScalar()) || (leftIsVectorOrMatrix && validMatrixOrVectorOp)) { in determineBinaryType()
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DTypes.h223 bool isScalar() const in isScalar() function
227 bool isScalarFloat() const { return isScalar() && type == EbtFloat; } in isScalarFloat()
228 bool isScalarInt() const { return isScalar() && (type == EbtInt || type == EbtUInt); } in isScalarInt()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/
Dsparse_to_dense_fp32.cc46 isScalar = true; in Init()
82 …parse_indices_vect, output_shape, sparse_values, default_value, output_data, isScalar, index_start, in DoExcute()
Dsparse_to_dense_fp32.h55 bool isScalar = false; variable
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/
DBreakVariableAliasingInInnerLoops.cpp57 if (!type.isScalar() && !type.isVector() && !type.isMatrix()) in visitBinary()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DLowLevelType.cpp42 assert(isScalar() && "unexpected type"); in print()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DTypes.h245 bool isScalar() const in isScalar() function
253 bool isScalarFloat() const { return isScalar() && type == EbtFloat; } in isScalarFloat()
254 bool isScalarInt() const { return isScalar() && (type == EbtInt || type == EbtUInt); } in isScalarInt()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DLowLevelTypeImpl.h91 bool isScalar() const { return isValid() && !IsPointer && !IsVector; } in isScalar() function
109 if (isPointer() || isScalar()) in getSizeInBits()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DFixTypeConstructors.cpp30 if (retType.isScalar()) in visitAggregate()

1234