Home
last modified time | relevance | path

Searched refs:isVectorTy (Results 1 – 25 of 138) sorted by relevance

123456

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMatrixBuilder.h39 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 DType.h270 inline bool isVectorTy() const { in isVectorTy() function
295 isVectorTy() || isX86_AMXTy() || isTargetExtTy(); in isSingleValueType()
316 !isVectorTy() && getTypeID() != TargetExtTyID)
350 if (isVectorTy()) in getScalarType()
H A DVectorTypeUtils.h76 return Ty->isVectorTy(); in isVectorizedTy()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsCCState.cpp62 if (Ty->isVectorTy() && Ty->isFPOrFPVectorTy()) in originalTypeIsVectorFloat()
135 OriginalArgWasFloatVector.push_back(ArgTy->isVectorTy()); in PreAnalyzeCallOperand()
150 OriginalArgWasFloatVector.push_back(FuncArg.Ty->isVectorTy()); in PreAnalyzeCallOperands()
173 OriginalArgWasFloatVector.push_back(ArgTy->isVectorTy()); in PreAnalyzeFormalArgument()
204 OriginalArgWasFloatVector.push_back(FuncArg->getType()->isVectorTy()); in PreAnalyzeFormalArgumentsForF128()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLocal.cpp60 if (IntIdxTy->isVectorTy() && !Op->getType()->isVectorTy()) in emitGEPOffset()
70 if (IntIdxTy->isVectorTy()) in emitGEPOffset()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVectorTypeUtils.cpp48 if (ElemTys.empty() || !ElemTys.front()->isVectorTy()) in isVectorizedStructTy()
52 return Ty->isVectorTy() && cast<VectorType>(Ty)->getElementCount() == VF; in isVectorizedStructTy()
H A DVerifier.cpp2208 if (Ty->isVectorTy()) { in verifyFunctionAttrs()
3360 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitTruncInst()
3375 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitZExtInst()
3396 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitSExtInst()
3413 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitFPTruncInst()
3431 Check(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitFPExtInst()
3443 bool SrcVec = SrcTy->isVectorTy(); in visitUIToFPInst()
3444 bool DstVec = DestTy->isVectorTy(); in visitUIToFPInst()
3466 bool SrcVec = SrcTy->isVectorTy(); in visitSIToFPInst()
3467 bool DstVec = DestTy->isVectorTy(); in visitSIToFPInst()
[all …]
H A DConstantFold.cpp163 if (DestTy->isVectorTy() && V->getType()->isVectorTy() && in ConstantFoldCastInstruction()
328 if (C->getType()->isVectorTy()) in ConstantFoldSelectInstruction()
370 if (Op->getType()->isVectorTy()) { in ConstantFoldExtractElementInstruction()
553 (!C->getType()->isVectorTy() || IsScalableVector) && isa<UndefValue>(C); in ConstantFoldUnaryInstruction()
630 (!C1->getType()->isVectorTy() || IsScalableVector) && in ConstantFoldBinaryInstruction()
1340 return GEPTy->isVectorTy() && !C->getType()->isVectorTy() in ConstantFoldGetElementPtr()
H A DConstants.cpp62 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 …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp579 (C->getType()->isVectorTy() in getArithmeticInstrCost()
590 if (!Ty->isVectorTy()) { in getArithmeticInstrCost()
783 assert (SrcTy->isVectorTy() && DstTy->isVectorTy()); in getVectorTruncCost()
825 assert (SrcTy->isVectorTy() && DstTy->isVectorTy() && in getVectorBitmaskConversionCost()
860 assert (!OpTy->isVectorTy() && "Expected scalar type"); in getCmpOpsType()
905 if (!Src->isVectorTy()) { in getCastInstrCost()
906 if (Dst->isVectorTy()) in getCastInstrCost()
1097 if (!ValTy->isVectorTy()) { in getCmpSelInstrCost()
1315 if (!Src->isVectorTy() && Opcode == Instruction::Load && I != nullptr) { in getMemoryOpCost()
1353 (Src->isVectorTy() ? getNumVectorRegs(Src) : getNumberOfParts(Src)); in getMemoryOpCost()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp180 if (Src->isVectorTy()) { in getMemoryOpCost()
261 if (ValTy->isVectorTy() && CostKind == TTI::TCK_RecipThroughput) { in getCmpSelInstrCost()
281 if (Ty->isVectorTy()) { in getArithmeticInstrCost()
298 return Ty->isVectorTy() && !isHVXVectorType(Ty) && Ty->isFPOrFPVectorTy(); in getCastInstrCost()
324 Type *ElemTy = Val->isVectorTy() ? cast<VectorType>(Val)->getElementType() in getVectorInstrCost()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DHLSLBufferLayoutBuilder.cpp41 assert(Ty->isVectorTy() || Ty->isIntegerTy() || Ty->isFloatingPointTy()); in getScalarOrVectorSizeInBytes()
42 if (Ty->isVectorTy()) { in getScalarOrVectorSizeInBytes()
236 if (ElemLayoutTy->isVectorTy()) { in layoutField()
H A DCGHLSLBuiltins.cpp127 if (!Op0->getType()->isVectorTy()) { in handleHlslSplitdouble()
438 if (!T0->isVectorTy() && !T1->isVectorTy()) { in EmitHLSLBuiltinExpr()
544 if (Xty->isVectorTy()) { in EmitHLSLBuiltinExpr()
587 Constant *One = Ty->isVectorTy() in EmitHLSLBuiltinExpr()
625 if (!OpTrue->getType()->isVectorTy()) in EmitHLSLBuiltinExpr()
628 if (!OpFalse->getType()->isVectorTy()) in EmitHLSLBuiltinExpr()
741 if (Xty->isVectorTy()) { in EmitHLSLBuiltinExpr()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/
H A DVecUtils.h48 return Ty->isVectorTy() ? cast<FixedVectorType>(Ty)->getNumElements() : 1;
52 return Ty->isVectorTy() ? cast<FixedVectorType>(Ty)->getElementType() : Ty;
115 if (ElemTy->isVectorTy()) {
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp361 assert(!Rem->getType()->isVectorTy() && "Div over vectors not supported"); in expandRemainder()
413 assert(!Div->getType()->isVectorTy() && "Div over vectors not supported"); in expandDivision()
461 assert(!RemTy->isVectorTy() && "Div over vectors not supported"); in expandRemainderUpTo32Bits()
510 assert(!RemTy->isVectorTy() && "Div over vectors not supported"); in expandRemainderUpTo64Bits()
557 assert(!DivTy->isVectorTy() && "Div over vectors not supported"); in expandDivisionUpTo32Bits()
605 assert(!DivTy->isVectorTy() && "Div over vectors not supported"); in expandDivisionUpTo64Bits()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILIntrinsicExpansion.cpp151 Constant *Zero = Ty->isVectorTy() in expandAbs()
203 assert(ATy->isVectorTy() && BTy->isVectorTy()); in expandFloatDotIntrinsic()
255 assert(ATy->isVectorTy() && BTy->isVectorTy()); in expandIntegerDotIntrinsic()
286 Ty->isVectorTy() ? ConstantVector::getSplat( in expandExpIntrinsic()
367 if (!Ty->isVectorTy()) { in expandAnyOrAllIntrinsic()
409 Ty->isVectorTy() ? ConstantVector::getSplat( in expandLogIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp653 if (Src->isVectorTy() && ST->hasNEON() && in getCastInstrCost()
895 int BaseCost = ST->hasMVEIntegerOps() && Src->isVectorTy() in getCastInstrCost()
909 ValTy->isVectorTy() && ValTy->getScalarSizeInBits() <= 32) in getVectorInstrCost()
921 if (ValTy->isVectorTy() && in getVectorInstrCost()
949 ST->isThumb() && !ValTy->isVectorTy()) { in getCmpSelInstrCost()
978 if (Sel && ValTy->isVectorTy() && in getCmpSelInstrCost()
1018 if (ST->hasNEON() && ValTy->isVectorTy() && ISD == ISD::SELECT && CondTy) { in getCmpSelInstrCost()
1039 if (ST->hasMVEIntegerOps() && ValTy->isVectorTy() && in getCmpSelInstrCost()
1080 if (ST->hasMVEIntegerOps() && ValTy->isVectorTy()) in getCmpSelInstrCost()
1098 if (Ty->isVectorTy() && SE && in getAddressComputationCost()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DReplaceWithVeclib.cpp184 if (OrigTy->isVectorTy() != (VFParam.ParamKind == VFParamKind::Vector)) { in replaceWithCallToVeclib()
213 if (!II->getType()->isVectorTy() && !II->getType()->isVoidTy()) in runImpl()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp69 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 …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp364 BaseInst && BaseInst->getType()->isVectorTy()) { in determineBaseAndStride()
366 auto IsScalar = [](Value *Idx) { return !Idx->getType()->isVectorTy(); }; in determineBaseAndStride()
382 if (ScalarBase->getType()->isVectorTy()) { in determineBaseAndStride()
394 if (!Ops[i]->getType()->isVectorTy()) in determineBaseAndStride()
H A DRISCVTargetTransformInfo.cpp1168 if (!Ty->isVectorTy()) in getCostOfKeepingLiveOverCall()
1494 if (ST->hasVInstructions() && RetTy->isVectorTy()) { in getIntrinsicInstrCost()
2019 if (Src->isVectorTy() && LT.second.isVector() && in getMemoryOpCost()
2049 if (ValTy->isVectorTy() && ValTy->getScalarSizeInBits() > ST->getELen()) in getCmpSelInstrCost()
2070 if (Opcode == Instruction::Select && ValTy->isVectorTy()) { in getCmpSelInstrCost()
2071 if (CondTy->isVectorTy()) { in getCmpSelInstrCost()
2113 if ((Opcode == Instruction::ICmp) && ValTy->isVectorTy() && in getCmpSelInstrCost()
2122 if ((Opcode == Instruction::FCmp) && ValTy->isVectorTy() && in getCmpSelInstrCost()
2210 assert(Val->isVectorTy() && "This must be a vector type"); in getVectorInstrCost()
2580 if (I.getType()->isVectorTy()) in getUnrollingPreferences()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DScalarEvolutionPatternMatch.h29 assert((isa<SCEVCouldNotCompute>(S) || !S->getType()->isVectorTy()) && in match()
121 assert((isa<SCEVCouldNotCompute>(S) || !S->getType()->isVectorTy()) && in match()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DTruncInstCombine.cpp245 if (DstTy->isVectorTy()) in getMinBitWidth()
259 if (!DstTy->isVectorTy() && FromLegal && !ToLegal) in getMinBitWidth()
359 assert(Ty && !Ty->isVectorTy() && "Expect Scalar Type"); in getReducedType()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp318 return Ty->isVectorTy() && (Ty->getScalarSizeInBits() == 1) && in isMMAType()
330 if (U->getType()->isVectorTy()) { in getInstructionCost()
563 if (!ST->vectorsUseTwoUnits() || !Ty1->isVectorTy()) in vectorCostAdjustmentFactor()
680 assert(Val->isVectorTy() && "This must be a vector type"); in getVectorInstrCost()
850 if (Src->isVectorTy() && Opcode == Instruction::Store) in getMemoryOpCost()
/freebsd/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp275 if (V->getType()->isVectorTy()) in getRandomVectorValue()
349 if (ValTy->isVectorTy() && ValTy->getScalarSizeInBits() == 1) in Act()
409 if (Ty->isVectorTy()) { in Act()
535 if (VTy->isVectorTy()) in Act()

123456