| /src/contrib/llvm-project/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 | 265 inline bool isVectorTy() const { in isVectorTy() function 289 isPointerTy() || isVectorTy() || isX86_AMXTy() || isTargetExtTy(); in isSingleValueType() 311 !isVectorTy() && getTypeID() != TargetExtTyID) 349 if (isVectorTy()) in getScalarType()
|
| /src/contrib/llvm-project/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()
|
| /src/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILIntrinsicExpansion.cpp | 58 Constant *Zero = Ty->isVectorTy() in expandAbs() 82 assert(ATy->isVectorTy() && BTy->isVectorTy()); in expandIntegerDot() 110 Ty->isVectorTy() ? ConstantVector::getSplat( in expandExpIntrinsic() 132 if (!Ty->isVectorTy()) { in expandAnyIntrinsic() 182 Ty->isVectorTy() ? ConstantVector::getSplat( in expandLogIntrinsic() 225 if (ElemTy->isVectorTy()) in getMaxForClamp() 238 if (ElemTy->isVectorTy()) in getMinForClamp()
|
| /src/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | Local.cpp | 60 if (IntIdxTy->isVectorTy() && !Op->getType()->isVectorTy()) in emitGEPOffset() 70 if (IntIdxTy->isVectorTy()) in emitGEPOffset()
|
| H A D | CodeMetrics.cpp | 177 if (isa<ExtractElementInst>(I) || I.getType()->isVectorTy()) in analyzeBasicBlock()
|
| /src/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetTransformInfo.cpp | 463 (C->getType()->isVectorTy() in getArithmeticInstrCost() 474 if (!Ty->isVectorTy()) { in getArithmeticInstrCost() 660 assert (SrcTy->isVectorTy() && DstTy->isVectorTy()); in getVectorTruncCost() 702 assert (SrcTy->isVectorTy() && DstTy->isVectorTy() && in getVectorBitmaskConversionCost() 737 assert (!OpTy->isVectorTy() && "Expected scalar type"); in getCmpOpsType() 782 if (!Src->isVectorTy()) { in getCastInstrCost() 783 assert (!Dst->isVectorTy()); in getCastInstrCost() 970 if (!ValTy->isVectorTy()) { in getCmpSelInstrCost() 1170 if (!Src->isVectorTy() && Opcode == Instruction::Load && I != nullptr) { in getMemoryOpCost() 1208 (Src->isVectorTy() ? getNumVectorRegs(Src) : getNumberOfParts(Src)); in getMemoryOpCost() [all …]
|
| /src/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonTargetTransformInfo.cpp | 179 if (Src->isVectorTy()) { in getMemoryOpCost() 263 if (ValTy->isVectorTy() && CostKind == TTI::TCK_RecipThroughput) { in getCmpSelInstrCost() 283 if (Ty->isVectorTy()) { in getArithmeticInstrCost() 300 return Ty->isVectorTy() && !isHVXVectorType(Ty) && Ty->isFPOrFPVectorTy(); in getCastInstrCost() 325 Type *ElemTy = Val->isVectorTy() ? cast<VectorType>(Val)->getElementType() in getVectorInstrCost()
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | IntegerDivision.cpp | 361 assert(!Rem->getType()->isVectorTy() && "Div over vectors not supported"); in expandRemainder() 414 assert(!Div->getType()->isVectorTy() && "Div over vectors not supported"); in expandDivision() 462 assert(!RemTy->isVectorTy() && "Div over vectors not supported"); in expandRemainderUpTo32Bits() 511 assert(!RemTy->isVectorTy() && "Div over vectors not supported"); in expandRemainderUpTo64Bits() 558 assert(!DivTy->isVectorTy() && "Div over vectors not supported"); in expandDivisionUpTo32Bits() 606 assert(!DivTy->isVectorTy() && "Div over vectors not supported"); in expandDivisionUpTo64Bits()
|
| /src/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Verifier.cpp | 2129 if (Ty->isVectorTy()) { in verifyFunctionAttrs() 3221 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitTruncInst() 3236 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitZExtInst() 3257 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitSExtInst() 3274 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitFPTruncInst() 3292 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitFPExtInst() 3304 bool SrcVec = SrcTy->isVectorTy(); in visitUIToFPInst() 3305 bool DstVec = DestTy->isVectorTy(); in visitUIToFPInst() 3327 bool SrcVec = SrcTy->isVectorTy(); in visitSIToFPInst() 3328 bool DstVec = DestTy->isVectorTy(); in visitSIToFPInst() [all …]
|
| H A D | ConstantFold.cpp | 163 DestTy->isVectorTy() && in ConstantFoldCastInstruction() 247 if (V->getType()->isVectorTy()) in ConstantFoldCastInstruction() 333 if (C->getType()->isVectorTy()) in ConstantFoldSelectInstruction() 375 if (Op->getType()->isVectorTy()) { in ConstantFoldExtractElementInstruction() 559 (!C->getType()->isVectorTy() || IsScalableVector) && isa<UndefValue>(C); in ConstantFoldUnaryInstruction() 635 (!C1->getType()->isVectorTy() || IsScalableVector) && in ConstantFoldBinaryInstruction() 1364 return GEPTy->isVectorTy() && !C->getType()->isVectorTy() in ConstantFoldGetElementPtr()
|
| H A D | Constants.cpp | 62 if (getType()->isVectorTy()) in isNegativeZeroValue() 82 if (getType()->isVectorTy()) in isZeroValue() 117 if (getType()->isVectorTy()) in isAllOnesValue() 134 if (getType()->isVectorTy()) in isOneValue() 161 if (getType()->isVectorTy()) in isNotOneValue() 179 if (getType()->isVectorTy()) in isMinSignedValue() 206 if (getType()->isVectorTy()) in isNotMinSignedValue() 227 if (getType()->isVectorTy()) in isFiniteNonZeroFP() 248 if (getType()->isVectorTy()) in isNormalFP() 269 if (getType()->isVectorTy()) in hasExactInverseFP() [all …]
|
| /src/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVGatherScatterLowering.cpp | 355 BaseInst && BaseInst->getType()->isVectorTy()) { in determineBaseAndStride() 357 auto IsScalar = [](Value *Idx) { return !Idx->getType()->isVectorTy(); }; in determineBaseAndStride() 373 if (ScalarBase->getType()->isVectorTy()) { in determineBaseAndStride() 385 if (!Ops[i]->getType()->isVectorTy()) in determineBaseAndStride()
|
| H A D | RISCVTargetTransformInfo.cpp | 1011 if (ST->hasVInstructions() && RetTy->isVectorTy()) { in getIntrinsicInstrCost() 1420 if (ValTy->isVectorTy() && ValTy->getScalarSizeInBits() > ST->getELen()) in getCmpSelInstrCost() 1425 if (Opcode == Instruction::Select && ValTy->isVectorTy()) { in getCmpSelInstrCost() 1426 if (CondTy->isVectorTy()) { in getCmpSelInstrCost() 1464 if ((Opcode == Instruction::ICmp) && ValTy->isVectorTy() && in getCmpSelInstrCost() 1472 if ((Opcode == Instruction::FCmp) && ValTy->isVectorTy() && in getCmpSelInstrCost() 1554 assert(Val->isVectorTy() && "This must be a vector type"); in getVectorInstrCost() 1868 if (I.getType()->isVectorTy()) in getUnrollingPreferences() 1906 if (Ty->isVectorTy()) { in getRegUsageForType()
|
| /src/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ReplaceWithVeclib.cpp | 169 if (OrigTy->isVectorTy() != (VFParam.ParamKind == VFParamKind::Vector)) { in replaceWithCallToVeclib() 196 if (!II->getType()->isVectorTy() && !II->getType()->isVoidTy()) in runImpl()
|
| H A D | ExpandLargeDivRem.cpp | 111 if (I.getOperand(0)->getType()->isVectorTy()) in runImpl()
|
| /src/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMTargetTransformInfo.cpp | 633 if (Src->isVectorTy() && ST->hasNEON() && in getCastInstrCost() 875 int BaseCost = ST->hasMVEIntegerOps() && Src->isVectorTy() in getCastInstrCost() 889 ValTy->isVectorTy() && ValTy->getScalarSizeInBits() <= 32) in getVectorInstrCost() 901 if (ValTy->isVectorTy() && in getVectorInstrCost() 930 ST->isThumb() && !ValTy->isVectorTy()) { in getCmpSelInstrCost() 959 if (Sel && ValTy->isVectorTy() && in getCmpSelInstrCost() 999 if (ST->hasNEON() && ValTy->isVectorTy() && ISD == ISD::SELECT && CondTy) { in getCmpSelInstrCost() 1020 if (ST->hasMVEIntegerOps() && ValTy->isVectorTy() && in getCmpSelInstrCost() 1061 if (ST->hasMVEIntegerOps() && ValTy->isVectorTy()) in getCmpSelInstrCost() 1079 if (Ty->isVectorTy() && SE && in getAddressComputationCost() [all …]
|
| /src/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Execution.cpp | 69 if (Ty->isVectorTy()) { in visitUnaryOperator() 420 if (TY->isVectorTy()) { \ 448 if (Ty->isVectorTy()) in executeFCMP_ONE() 524 if (TY->isVectorTy()) { \ 591 if(Ty->isVectorTy()) { in executeFCMP_ORD() 622 if(Ty->isVectorTy()) { in executeFCMP_UNO() 653 if(Ty->isVectorTy()) { in executeFCMP_BOOL() 708 if (Ty->isVectorTy()) { in visitBinaryOperator() 812 if(Ty->isVectorTy()) { in executeSelectInst() 1157 if (Ty->isVectorTy()) { in visitShl() [all …]
|
| /src/contrib/llvm-project/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()
|
| /src/contrib/llvm-project/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 277 if (V->getType()->isVectorTy()) in getRandomVectorValue() 361 if (ValTy->isVectorTy() && ValTy->getScalarSizeInBits() == 1) in Act() 420 if (Ty->isVectorTy()) { in Act() 548 if (VTy->isVectorTy()) in Act()
|
| /src/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCTargetTransformInfo.cpp | 319 return Ty->isVectorTy() && (Ty->getScalarSizeInBits() == 1) && in isMMAType() 331 if (U->getType()->isVectorTy()) { in getInstructionCost() 562 if (!ST->vectorsUseTwoUnits() || !Ty1->isVectorTy()) in vectorCostAdjustmentFactor() 680 assert(Val->isVectorTy() && "This must be a vector type"); in getVectorInstrCost() 846 if (Src->isVectorTy() && Opcode == Instruction::Store) in getMemoryOpCost()
|
| /src/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64PromoteConstant.cpp | 241 if (CstTy->isVectorTy()) in isConstantUsingVectorTy() 356 if (Cst->getType()->isVectorTy()) in shouldConvertImpl()
|
| /src/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFastISel.cpp | 667 if (!Subtarget->hasSIMD128() && ArgTy->isVectorTy()) in fastLowerArguments() 788 if (!Subtarget->hasSIMD128() && Call->getType()->isVectorTy()) in selectCall() 1196 if (!Subtarget->hasSIMD128() && Load->getType()->isVectorTy()) in selectLoad() 1257 Store->getValueOperand()->getType()->isVectorTy()) in selectStore() 1354 if (!Subtarget->hasSIMD128() && RV->getType()->isVectorTy()) in selectRet()
|
| /src/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 690 if ((DestTy->isVectorTy() || shouldChangeType(SrcTy, DestTy)) && in visitTrunc() 2270 if (I->getOperand(0)->getType()->isVectorTy()) in collectInsertionElements() 2363 if (DestType->isVectorTy() && FixedVType && FixedVType->getNumElements() == 1) in canonicalizeBitCastExtElt() 2382 if (!DestTy->isVectorTy() || !BO->getType()->isVectorTy()) in foldBitCastBitwiseLogic() 2453 if (!DestTy->isVectorTy() || in foldBitCastSelect() 2462 if (DestTy->isVectorTy() != TVal->getType()->isVectorTy()) in foldBitCastSelect() 2714 if (!DestTy->isVectorTy()) { in visitBitCast() 2760 if (Shuf->hasOneUse() && DestTy->isVectorTy() && in visitBitCast()
|
| H A D | InstCombineVectorOps.cpp | 222 if (!X->getType()->isVectorTy()) in foldBitcastExtElt() 784 assert(V->getType()->isVectorTy() && "Invalid shuffle!"); in collectShuffleElements() 1656 VecSrc->getType()->isVectorTy() && !ScalarSrc->getType()->isVectorTy() && in visitInsertElementInst() 1817 if (ITy->isVectorTy() && in canEvaluateShuffled() 1929 assert(V->getType()->isVectorTy() && "can't reorder non-vector elements"); in evaluateInDifferentElementOrder() 1987 if (I->getOperand(i)->getType()->isVectorTy()) in evaluateInDifferentElementOrder() 2398 if (!SrcType->isVectorTy() || !SrcType->isIntOrIntVectorTy() || in foldTruncShuffle() 2822 X->getType()->isVectorTy() && X->getType() == Y->getType() && in visitShuffleVectorInst() 2840 X->getType()->isVectorTy() && VWidth == LHSWidth) { in visitShuffleVectorInst()
|