Home
last modified time | relevance | path

Searched refs:isVector (Results 1 – 25 of 414) sorted by relevance

12345678910>>...17

/external/llvm-project/llvm/include/llvm/Support/
DLowLevelTypeImpl.h68 assert(!ScalarTy.isVector() && "invalid vector element type"); in vector()
82 explicit LLT(bool isPointer, bool isVector, uint16_t NumElements, in LLT() argument
84 init(isPointer, isVector, NumElements, SizeInBits, AddressSpace); in LLT()
96 bool isVector() const { return isValid() && IsVector; } in isVector() function
122 return isVector() ? getElementType() : *this; in getScalarType()
128 return isVector() ? LLT::vector(getNumElements(), NewEltTy) : NewEltTy; in changeElementType()
137 return isVector() ? LLT::vector(getNumElements(), NewEltSize) in changeElementSize()
152 if (isVector()) { in divide()
189 assert(isVector() && "cannot get element type of scalar/aggregate"); in getElementType()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DLowLevelTypeImpl.h67 assert(!ScalarTy.isVector() && "invalid vector element type"); in vector()
81 explicit LLT(bool isPointer, bool isVector, uint16_t NumElements, in LLT() argument
83 init(isPointer, isVector, NumElements, SizeInBits, AddressSpace); in LLT()
95 bool isVector() const { return isValid() && IsVector; } in isVector() function
121 return isVector() ? getElementType() : *this; in getScalarType()
127 return isVector() ? LLT::vector(getNumElements(), NewEltTy) : NewEltTy; in changeElementType()
136 return isVector() ? LLT::vector(getNumElements(), NewEltSize) in changeElementSize()
168 assert(isVector() && "cannot get element type of scalar/aggregate"); in getElementType()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DValueTypes.h116 if (isVector()) in changeTypeToInteger()
151 bool isVector() const { in isVector() function
152 return isSimple() ? V.isVector() : isExtendedVector(); in isVector()
263 return isVector() ? getVectorElementType() : *this; in getScalarType()
268 assert(isVector() && "Invalid vector type!"); in getVectorElementType()
276 assert(isVector() && "Invalid vector type!"); in getVectorNumElements()
284 assert((isVector()) && "Invalid vector type!"); in getVectorElementCount()
333 assert(isInteger() && !isVector() && "Invalid integer type!"); in getRoundIntegerType()
344 assert(isInteger() && !isVector() && "Invalid integer type!"); in getHalfSizedIntegerVT()
/external/llvm/include/llvm/CodeGen/
DValueTypes.h96 if (isVector()) in changeTypeToInteger()
133 bool isVector() const { in isVector() function
134 return isSimple() ? V.isVector() : isExtendedVector(); in isVector()
234 return isVector() ? getVectorElementType() : *this; in getScalarType()
240 assert(isVector() && "Invalid vector type!"); in getVectorElementType()
249 assert(isVector() && "Invalid vector type!"); in getVectorNumElements()
282 assert(isInteger() && !isVector() && "Invalid integer type!"); in getRoundIntegerType()
294 assert(isInteger() && !isVector() && "Invalid integer type!"); in getHalfSizedIntegerVT()
/external/llvm-project/llvm/include/llvm/CodeGen/
DValueTypes.h112 if (isVector()) in changeTypeToInteger()
146 bool isVector() const { in isVector() function
147 return isSimple() ? V.isVector() : isExtendedVector(); in isVector()
286 return isVector() ? getVectorElementType() : *this; in getScalarType()
291 assert(isVector() && "Invalid vector type!"); in getVectorElementType()
302 assert(isVector() && "Invalid vector type!"); in getVectorNumElements()
316 assert((isVector()) && "Invalid vector type!"); in getVectorElementCount()
374 assert(isInteger() && !isVector() && "Invalid integer type!"); in getRoundIntegerType()
385 assert(isInteger() && !isVector() && "Invalid integer type!"); in getHalfSizedIntegerVT()
/external/skia/src/sksl/ir/
DSkSLConstructorCompoundCast.cpp55 SkASSERT(argType.isVector()); in cast_constant_composite()
72 SkASSERT(type.isVector() || type.isMatrix()); in Make()
73 SkASSERT(arg->type().isVector() == type.isVector()); in Make()
DSkSLConstructor.cpp30 SkASSERT(type.isVector() || type.isMatrix()); in convert_compound_constructor()
47 } else if (argument->type().isVector()) { in convert_compound_constructor()
50 if (type.isVector() && argument->type().columns() == type.columns()) { in convert_compound_constructor()
78 if (!arg->type().isScalar() && !arg->type().isVector()) { in convert_compound_constructor()
123 if (type.isVector() || type.isMatrix()) { in Convert()
DSkSLIndexExpression.cpp40 if (!baseType.isArray() && !baseType.isMatrix() && !baseType.isVector()) { in Convert()
71 SkASSERT(baseType.isArray() || baseType.isMatrix() || baseType.isVector()); in Make()
78 if (indexExpr->is<IntLiteral>() && baseType.isVector()) { in Make()
/external/tensorflow/tensorflow/compiler/mlir/tools/kernel_gen/transforms/
Dsame_shape_propagation.cc126 bool isVector() const { return is_vector; } in isVector() function
134 return shape.isVector() ? hash_value(shape.vector()) in hash_value()
139 if (lhs.isVector()) { in operator ==()
140 return rhs.isVector() && lhs.vector() == rhs.vector(); in operator ==()
142 return !rhs.isVector() && lhs.scalars() == rhs.scalars(); in operator ==()
148 if (shape.isVector()) { in operator <<()
283 if (!shape.isVector()) { in tryEvaluateShapeToRoot()
/external/angle/src/compiler/translator/TranslatorMetalDirect/
DAddExplicitTypeCasts.cpp38 if (argType.isVector()) in visitAggregatePost()
44 else if (retType.isVector()) in visitAggregatePost()
50 if (argType.isVector()) in visitAggregatePost()
/external/llvm-project/llvm/lib/Target/AArch64/GISel/
DAArch64LegalizerInfo.cpp86 return Query.Types[0].isVector() && in AArch64LegalizerInfo()
125 return !SrcTy.isVector() && SrcTy.getSizeInBits() == 32 && in AArch64LegalizerInfo()
187 return Ty.isVector() && Ty.getElementType() == s16 && in AArch64LegalizerInfo()
266 if (!ValTy.isVector()) in AArch64LegalizerInfo()
357 return Ty.isVector() && !SrcTy.getElementType().isPointer() && in AArch64LegalizerInfo()
374 if (DstSize == 128 && !Query.Types[0].isVector()) in AArch64LegalizerInfo()
403 [=](const LegalityQuery &Query) { return Query.Types[0].isVector(); }, in AArch64LegalizerInfo()
447 .minScalarEltSameAsIf(all(isVector(0), isVector(1)), 1, 0) in AArch64LegalizerInfo()
448 .lowerIf(isVector(0)); in AArch64LegalizerInfo()
512 if (Ty.isVector()) { in AArch64LegalizerInfo()
[all …]
DAArch64RegisterBankInfo.cpp439 bool IsFPR = Ty.isVector() || isPreISelGenericFloatingPointOpcode(Opc); in getSameKindOfOperandsMapping()
459 bool OpIsFPR = OpTy.isVector() || isPreISelGenericFloatingPointOpcode(Opc); in getSameKindOfOperandsMapping()
624 bool DstIsGPR = !DstTy.isVector() && DstTy.getSizeInBits() <= 64; in getInstrMapping()
625 bool SrcIsGPR = !SrcTy.isVector() && SrcTy.getSizeInBits() <= 64; in getInstrMapping()
655 if (Ty.isVector() || isPreISelGenericFloatingPointOpcode(Opc) || in getInstrMapping()
678 if (!SrcTy.isVector() && SrcTy.getSizeInBits() == 128) in getInstrMapping()
684 if (MRI.getType(MI.getOperand(0).getReg()).isVector()) in getInstrMapping()
690 if (MRI.getType(MI.getOperand(0).getReg()).isVector()) in getInstrMapping()
751 if (SrcTy.isVector()) { in getInstrMapping()
808 if (SrcTy.isVector() || SrcTy == LLT::scalar(128) || in getInstrMapping()
/external/llvm-project/llvm/unittests/CodeGen/
DLowLevelTypeTest.cpp32 ASSERT_FALSE(Ty.isVector()); in TEST()
68 ASSERT_TRUE(VTy.isVector()); in TEST()
203 ASSERT_FALSE(Ty.isVector()); in TEST()
206 ASSERT_TRUE(VTy.isVector()); in TEST()
238 ASSERT_FALSE(Ty.isVector()); in TEST()
/external/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()
285 if (Ty.isVector()) { in buildConstant()
317 if (Ty.isVector()) { in buildFConstant()
439 unsigned ExtOp = getBoolExtOp(getMRI()->getType(Op.getReg()).isVector(), IsFP); in buildBoolExt()
450 Res.getLLTTy(*getMRI()).isVector()); in buildExtOrTrunc()
913 if (DstTy.isVector()) { in validateTruncExt()
914 assert(SrcTy.isVector() && "mismatched cast between vector and non-vector"); in validateTruncExt()
932 assert((ResTy.isScalar() || ResTy.isVector() || ResTy.isPointer()) && in validateSelectOp()
939 (TstTy.isVector() && in validateSelectOp()
[all …]
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DLegalityPredicates.cpp74 LegalityPredicate LegalityPredicates::isVector(unsigned TypeIdx) { in isVector() function in LegalityPredicates
76 return Query.Types[TypeIdx].isVector(); in isVector()
98 return QueryTy.isVector() && QueryTy.getElementType() == EltTy; in elementTypeIs()
187 return QueryTy.isVector() && !isPowerOf2_32(QueryTy.getNumElements()); in numElementsNotPow2()
DMachineIRBuilder.cpp166 assert((Res.isScalar() || Res.isVector()) && "invalid operand type"); in validateUnaryOp()
172 assert((Res.isScalar() || Res.isVector()) && "invalid operand type"); in validateBinaryOp()
178 assert((Res.isScalar() || Res.isVector()) && "invalid operand type"); in validateShiftOp()
250 if (Ty.isVector()) { in buildConstant()
283 if (Ty.isVector()) { in buildFConstant()
434 unsigned ExtOp = getBoolExtOp(getMRI()->getType(Op.getReg()).isVector(), IsFP); in buildBoolExt()
445 Res.getLLTTy(*getMRI()).isVector()); in buildExtOrTrunc()
942 if (DstTy.isVector()) { in validateTruncExt()
943 assert(SrcTy.isVector() && "mismatched cast between vector and non-vector"); in validateTruncExt()
961 assert((ResTy.isScalar() || ResTy.isVector() || ResTy.isPointer()) && in validateSelectOp()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64RegisterBankInfo.cpp431 bool IsFPR = Ty.isVector() || isPreISelGenericFloatingPointOpcode(Opc); in getSameKindOfOperandsMapping()
451 bool OpIsFPR = OpTy.isVector() || isPreISelGenericFloatingPointOpcode(Opc); in getSameKindOfOperandsMapping()
597 bool DstIsGPR = !DstTy.isVector() && DstTy.getSizeInBits() <= 64; in getInstrMapping()
598 bool SrcIsGPR = !SrcTy.isVector() && SrcTy.getSizeInBits() <= 64; in getInstrMapping()
628 if (Ty.isVector() || isPreISelGenericFloatingPointOpcode(Opc) || in getInstrMapping()
641 if (!SrcTy.isVector() && SrcTy.getSizeInBits() == 128) in getInstrMapping()
647 if (MRI.getType(MI.getOperand(0).getReg()).isVector()) in getInstrMapping()
653 if (MRI.getType(MI.getOperand(0).getReg()).isVector()) in getInstrMapping()
714 if (SrcTy.isVector()) { in getInstrMapping()
772 if (SrcTy.isVector() || SrcTy == LLT::scalar(128) || in getInstrMapping()
DAArch64LegalizerInfo.cpp67 return Query.Types[0].isVector() && in AArch64LegalizerInfo()
124 return !SrcTy.isVector() && SrcTy.getSizeInBits() == 32 && in AArch64LegalizerInfo()
162 return Ty.isVector() && Ty.getElementType() == s16 && in AArch64LegalizerInfo()
241 if (!ValTy.isVector()) in AArch64LegalizerInfo()
327 return Ty.isVector() && !SrcTy.getElementType().isPointer() && in AArch64LegalizerInfo()
349 if (DstSize == 128 && !Query.Types[0].isVector()) in AArch64LegalizerInfo()
472 if (Ty.isVector()) { in AArch64LegalizerInfo()
531 if (BigTy.isVector() && BigTy.getSizeInBits() < 32) in AArch64LegalizerInfo()
533 if (LitTy.isVector() && LitTy.getSizeInBits() < 32) in AArch64LegalizerInfo()
599 return !Query.Types[1].isVector(); in AArch64LegalizerInfo()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DLowLevelType.cpp19 if (VT.isVector()) { in LLT()
37 if (isVector()) in print()
/external/llvm-project/llvm/lib/Support/
DLowLevelType.cpp19 if (VT.isVector()) { in LLT()
37 if (isVector()) in print()
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/
DIntermediate.cpp367 …Bool || child->getType().isMatrix() || child->getType().isArray() || child->getType().isVector()) { in addUnaryMath()
408 child->isVector()), in addUnaryMath()
1412 } else if (type.isVector()) { in addShapeConversion()
1419 if (sourceType.isVector()) { in addShapeConversion()
1421 if (type.isVector()) in addShapeConversion()
1436 if ((node->getType().isScalarOrVec1() && type.isVector()) || in addShapeConversion()
1437 (node->getType().isVector() && type.isScalar()) || in addShapeConversion()
1438 (node->isVector() && type.isVector() && node->getVectorSize() > type.getVectorSize())) in addShapeConversion()
2692 … (binary->getLeft()->getType().isVector() || binary->getLeft()->getType().isScalar()) && in findLValueBase()
3415 if (left->isVector()) in promoteBinary()
[all …]
/external/deqp-deps/glslang/glslang/MachineIndependent/
DIntermediate.cpp367 …Bool || child->getType().isMatrix() || child->getType().isArray() || child->getType().isVector()) { in addUnaryMath()
408 child->isVector()), in addUnaryMath()
1412 } else if (type.isVector()) { in addShapeConversion()
1419 if (sourceType.isVector()) { in addShapeConversion()
1421 if (type.isVector()) in addShapeConversion()
1436 if ((node->getType().isScalarOrVec1() && type.isVector()) || in addShapeConversion()
1437 (node->getType().isVector() && type.isScalar()) || in addShapeConversion()
1438 (node->isVector() && type.isVector() && node->getVectorSize() > type.getVectorSize())) in addShapeConversion()
2692 … (binary->getLeft()->getType().isVector() || binary->getLeft()->getType().isScalar()) && in findLValueBase()
3415 if (left->isVector()) in promoteBinary()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DLowLevelType.cpp46 if (!Ty.isVector()) in getMVTForLLT()
55 if (!Ty.isVector()) in getLLTForMVT()
/external/llvm/utils/TableGen/
DDAGISelEmitter.cpp88 if (LHSVT.isVector() != RHSVT.isVector()) in operator ()()
89 return RHSVT.isVector(); in operator ()()
/external/llvm-project/llvm/utils/TableGen/
DDAGISelEmitter.cpp88 if (LHSVT.isVector() != RHSVT.isVector()) in operator ()()
89 return RHSVT.isVector(); in operator ()()

12345678910>>...17