| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | MatrixBuilder.h | 39 assert((LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()) && in splatScalarOperandIfNeeded() 41 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in splatScalarOperandIfNeeded() 47 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in splatScalarOperandIfNeeded() 158 assert(LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()); in CreateAdd() 159 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in CreateAdd() 165 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in CreateAdd() 183 assert(LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()); in CreateSub() 184 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in CreateSub() 190 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in CreateSub() 217 assert(LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()); in CreateScalarDiv()
|
| H A D | Type.h | 232 inline bool isVectorTy() const { in isVectorTy() function 256 isPointerTy() || isVectorTy() || isX86_AMXTy(); in isSingleValueType() 277 if (getTypeID() != StructTyID && getTypeID() != ArrayTyID && !isVectorTy()) 315 if (isVectorTy()) in getScalarType()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/Utils/ |
| H A D | Local.h | 64 if (IntIdxTy->isVectorTy() && !OpC->getType()->isVectorTy()) 76 if (IntIdxTy->isVectorTy() && !Op->getType()->isVectorTy())
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/ |
| H A D | MipsCCState.cpp | 63 if (Ty->isVectorTy() && Ty->isFPOrFPVectorTy()) in originalTypeIsVectorFloat() 137 OriginalArgWasFloatVector.push_back(ArgTy->isVectorTy()); in PreAnalyzeCallOperand() 152 OriginalArgWasFloatVector.push_back(FuncArg.Ty->isVectorTy()); in PreAnalyzeCallOperands() 175 OriginalArgWasFloatVector.push_back(ArgTy->isVectorTy()); in PreAnalyzeFormalArgument() 206 OriginalArgWasFloatVector.push_back(FuncArg->getType()->isVectorTy()); in PreAnalyzeFormalArgumentsForF128()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetTransformInfo.cpp | 460 (C->getType()->isVectorTy() in getArithmeticInstrCost() 471 if (!Ty->isVectorTy()) { in getArithmeticInstrCost() 650 assert (SrcTy->isVectorTy() && DstTy->isVectorTy()); in getVectorTruncCost() 692 assert (SrcTy->isVectorTy() && DstTy->isVectorTy() && in getVectorBitmaskConversionCost() 727 assert (!OpTy->isVectorTy() && "Expected scalar type"); in getCmpOpsType() 772 if (!Src->isVectorTy()) { in getCastInstrCost() 773 assert (!Dst->isVectorTy()); in getCastInstrCost() 922 if (!ValTy->isVectorTy()) { in getCmpSelInstrCost() 1119 if (!Src->isVectorTy() && Opcode == Instruction::Load && I != nullptr) { in getMemoryOpCost() 1148 (Src->isVectorTy() ? getNumVectorRegs(Src) : getNumberOfParts(Src)); in getMemoryOpCost() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | CorrelatedValuePropagation.cpp | 233 if (!Condition->getType()->isVectorTy()) { in getValueOnEdge() 316 if (Cmp->getType()->isVectorTy() || in processICmp() 725 if (Instr->getType()->isVectorTy()) in narrowSDivOrSRem() 778 if (Instr->getType()->isVectorTy()) in processUDivOrURem() 819 if (SDI->getType()->isVectorTy()) in processSRem() 875 if (SDI->getType()->isVectorTy()) in processSDiv() 928 if (Instr->getType()->isVectorTy()) in processSDivOrSRem() 943 if (SDI->getType()->isVectorTy()) in processAShr() 974 if (SDI->getType()->isVectorTy()) in processSExt() 995 if (BinOp->getType()->isVectorTy()) in processBinOp() [all …]
|
| H A D | Scalarizer.cpp | 588 if (OpI->getType()->isVectorTy()) { in splitCall() 639 if (SI.getOperand(0)->getType()->isVectorTy()) { in visitSelectInst() 690 if (!Op0->getType()->isVectorTy()) in visitGetElementPtrInst() 701 if (!Op->getType()->isVectorTy()) in visitGetElementPtrInst()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | IntegerDivision.cpp | 381 assert(!Rem->getType()->isVectorTy() && "Div over vectors not supported"); in expandRemainder() 439 assert(!Div->getType()->isVectorTy() && "Div over vectors not supported"); in expandDivision() 490 assert(!RemTy->isVectorTy() && "Div over vectors not supported"); in expandRemainderUpTo32Bits() 539 assert(!RemTy->isVectorTy() && "Div over vectors not supported"); in expandRemainderUpTo64Bits() 588 assert(!DivTy->isVectorTy() && "Div over vectors not supported"); in expandDivisionUpTo32Bits() 636 assert(!DivTy->isVectorTy() && "Div over vectors not supported"); in expandDivisionUpTo64Bits()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonTargetTransformInfo.cpp | 174 if (Src->isVectorTy()) { in getMemoryOpCost() 256 if (ValTy->isVectorTy() && CostKind == TTI::TCK_RecipThroughput) { in getCmpSelInstrCost() 276 if (Ty->isVectorTy()) { in getArithmeticInstrCost() 310 Type *ElemTy = Val->isVectorTy() ? cast<VectorType>(Val)->getElementType() in getVectorInstrCost()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Verifier.cpp | 2895 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitTruncInst() 2910 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitZExtInst() 2931 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitSExtInst() 2948 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitFPTruncInst() 2966 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitFPExtInst() 3071 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), "PtrToInt type mismatch", in visitPtrToIntInst() 5260 Check(ResultType->isVectorTy() == DerivedType->isVectorTy(), in visitIntrinsicCall() 5444 Check(!ValTy->isVectorTy() && !ResultTy->isVectorTy(), in visitIntrinsicCall() 5799 Check(!ValTy->isVectorTy() && !ResultTy->isVectorTy(), in visitConstrainedFPIntrinsic() 5808 Check(!ValTy->isVectorTy() && !ResultTy->isVectorTy(), in visitConstrainedFPIntrinsic() [all …]
|
| H A D | ConstantFold.cpp | 386 !CE->getType()->isVectorTy()) { in ConstantFoldCastInstruction() 405 DestTy->isVectorTy() && in ConstantFoldCastInstruction() 495 if (V->getType()->isVectorTy()) in ConstantFoldCastInstruction() 587 if (C->getType()->isVectorTy()) in ConstantFoldSelectInstruction() 640 if (Op->getType()->isVectorTy()) { in ConstantFoldExtractElementInstruction() 897 (!C1->getType()->isVectorTy() || IsScalableVector) && in ConstantFoldBinaryInstruction() 1877 CE2->getType()->isVectorTy() == CE2Op0->getType()->isVectorTy() && in ConstantFoldCompareInstruction() 1995 if (LastIdxTy->isVectorTy()) in foldGEPOfGEP() 2059 return GEPTy->isVectorTy() && !C->getType()->isVectorTy() in ConstantFoldGetElementPtr() 2209 bool IsCurrIdxVector = CurrIdx->getType()->isVectorTy(); in ConstantFoldGetElementPtr() [all …]
|
| H A D | Constants.cpp | 48 if (getType()->isVectorTy()) in isNegativeZeroValue() 68 if (getType()->isVectorTy()) in isZeroValue() 103 if (getType()->isVectorTy()) in isAllOnesValue() 120 if (getType()->isVectorTy()) in isOneValue() 147 if (getType()->isVectorTy()) in isNotOneValue() 165 if (getType()->isVectorTy()) in isMinSignedValue() 192 if (getType()->isVectorTy()) in isNotMinSignedValue() 213 if (getType()->isVectorTy()) in isFiniteNonZeroFP() 234 if (getType()->isVectorTy()) in isNormalFP() 255 if (getType()->isVectorTy()) in hasExactInverseFP() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMTargetTransformInfo.cpp | 626 if (Src->isVectorTy() && ST->hasNEON() && in getCastInstrCost() 892 if (ValTy->isVectorTy() && in getVectorInstrCost() 920 ST->isThumb() && !ValTy->isVectorTy()) { in getCmpSelInstrCost() 949 if (Sel && ValTy->isVectorTy() && in getCmpSelInstrCost() 1011 if (ST->hasMVEIntegerOps() && ValTy->isVectorTy() && in getCmpSelInstrCost() 1050 if (ST->hasMVEIntegerOps() && ValTy->isVectorTy()) in getCmpSelInstrCost() 1068 if (Ty->isVectorTy() && SE && in getAddressComputationCost() 1400 if (ST->isThumb1Only() || Ty->isVectorTy()) in getArithmeticInstrCost() 1427 if (ST->hasMVEIntegerOps() && Ty->isVectorTy()) in getArithmeticInstrCost() 1465 if (ST->hasNEON() && Src->isVectorTy() && in getMemoryOpCost() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/AsmParser/ |
| H A D | AsmParserTest.cpp | 90 EXPECT_TRUE(V->getType()->isVectorTy()); in TEST() 230 ASSERT_TRUE(Ty->isVectorTy()); in TEST() 354 ASSERT_TRUE(Ty->isVectorTy()); in TEST()
|
| /llvm-project-15.0.7/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 245 } else if (Tp->isVectorTy()) { in getRandomValue() 276 if (V->getType()->isVectorTy()) in getRandomVectorValue() 359 if (ValTy->isVectorTy() && ValTy->getScalarSizeInBits() == 1) in Act() 418 if (Ty->isVectorTy()) { in Act() 548 if (VTy->isVectorTy()) { in Act()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVEmitIntrinsics.cpp | 112 (isa<ConstantAggregateZero>(V) && !V->getType()->isVectorTy()); in isAggrToReplace() 184 !Op->getType()->isVectorTy()) { in preprocessCompositeConstants() 395 if ((isa<ConstantAggregateZero>(Op) && Op->getType()->isVectorTy()) || in processInstrAfterVisit() 433 if (ElTy->isAggregateType() || ElTy->isVectorTy() || in runOnFunction()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Execution.cpp | 69 if (Ty->isVectorTy()) { in visitUnaryOperator() 448 if (Ty->isVectorTy()) in executeFCMP_ONE() 591 if(Ty->isVectorTy()) { in executeFCMP_ORD() 622 if(Ty->isVectorTy()) { in executeFCMP_UNO() 653 if(Ty->isVectorTy()) { in executeFCMP_BOOL() 744 if (Ty->isVectorTy()) { in visitBinaryOperator() 848 if(Ty->isVectorTy()) { in executeSelectInst() 1193 if (Ty->isVectorTy()) { in visitShl() 1220 if (Ty->isVectorTy()) { in visitLShr() 1247 if (Ty->isVectorTy()) { in visitAShr() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | TruncInstCombine.cpp | 246 if (DstTy->isVectorTy()) in getMinBitWidth() 260 if (!DstTy->isVectorTy() && FromLegal && !ToLegal) in getMinBitWidth() 360 assert(Ty && !Ty->isVectorTy() && "Expect Scalar Type"); in getReducedType()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 129 if (SelType->isVectorTy() != Cmp->getType()->isVectorTy()) in foldSelectICmpAnd() 286 if (!FIOpndTy->isVectorTy() || in foldSelectOpOp() 404 if (CondTy->isVectorTy() && (!OtherOpT->getType()->isVectorTy() || in foldSelectOpOp() 405 !OtherOpF->getType()->isVectorTy())) in foldSelectOpOp() 606 TrueVal->getType()->isVectorTy() != IC->getType()->isVectorTy()) in foldSelectICmpAndOr() 1017 if (!SelEltTy || SelTy->isVectorTy() != Cmp.getType()->isVectorTy()) in adjustMinMax() 1163 if (!Cmp.isEquality() || Cmp.getType()->isVectorTy()) in foldSelectValueEquivalence() 2756 if (!SelType->isVectorTy()) { in visitSelectInst() 2842 CondVal->getType()->isVectorTy() == SelType->isVectorTy()) { in visitSelectInst() 3131 if (!CondVal->getType()->isVectorTy() && !AC.assumptions().empty()) { in visitSelectInst()
|
| H A D | InstCombineVectorOps.cpp | 212 if (!X->getType()->isVectorTy()) in foldBitcastExtElt() 748 assert(V->getType()->isVectorTy() && "Invalid shuffle!"); in collectShuffleElements() 1535 VecSrc->getType()->isVectorTy() && !ScalarSrc->getType()->isVectorTy() && in visitInsertElementInst() 1686 if (ITy->isVectorTy() && in canEvaluateShuffled() 1797 assert(V->getType()->isVectorTy() && "can't reorder non-vector elements"); in evaluateInDifferentElementOrder() 1852 if (I->getOperand(i)->getType()->isVectorTy()) in evaluateInDifferentElementOrder() 2196 if (!SrcType->isVectorTy() || !SrcType->isIntOrIntVectorTy() || in foldTruncShuffle() 2568 X->getType()->isVectorTy() && X->getType() == Y->getType() && in visitShuffleVectorInst() 2587 X->getType()->isVectorTy() && VWidth == LHSWidth) { in visitShuffleVectorInst()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64PromoteConstant.cpp | 241 if (CstTy->isVectorTy()) in isConstantUsingVectorTy() 356 if (Cst->getType()->isVectorTy()) in shouldConvertImpl()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | CodeMetrics.cpp | 163 if (isa<ExtractElementInst>(I) || I.getType()->isVectorTy()) in analyzeBasicBlock()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetTransformInfo.cpp | 421 if (I.getType()->isVectorTy()) in getUnrollingPreferences() 459 if (Ty->isVectorTy()) { in getRegUsageForType()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFastISel.cpp | 659 if (!Subtarget->hasSIMD128() && ArgTy->isVectorTy()) in fastLowerArguments() 776 if (!Subtarget->hasSIMD128() && Call->getType()->isVectorTy()) in selectCall() 1189 if (!Subtarget->hasSIMD128() && Load->getType()->isVectorTy()) in selectLoad() 1250 Store->getValueOperand()->getType()->isVectorTy()) in selectStore() 1347 if (!Subtarget->hasSIMD128() && RV->getType()->isVectorTy()) in selectRet()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCTargetTransformInfo.cpp | 319 return Ty->isVectorTy() && (Ty->getScalarSizeInBits() == 1) && in isMMAType() 331 if (U->getType()->isVectorTy()) { in getUserCost() 959 if (!ST->vectorsUseTwoUnits() || !Ty1->isVectorTy()) in vectorCostAdjustmentFactor() 1075 assert(Val->isVectorTy() && "This must be a vector type"); in getVectorInstrCost() 1222 if (Src->isVectorTy() && Opcode == Instruction::Store) in getMemoryOpCost()
|