Home
last modified time | relevance | path

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

123456

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DLowLevelTypeImpl.h66 assert(!ScalarTy.isVector() && "invalid vector element type"); in vector()
108 explicit LLT(bool isPointer, bool isVector, bool isScalar, ElementCount EC, in LLT() argument
110 init(isPointer, isVector, isScalar, EC, SizeInBits, AddressSpace); in LLT()
123 bool isVector() const { return isValid() && IsVector; } in isVector() function
139 assert(isVector() && "Expected a vector type"); in isScalable()
169 return isVector() ? getElementType() : *this; in getScalarType()
175 return isVector() ? LLT::vector(getElementCount(), NewEltTy) : NewEltTy; in changeElementType()
184 return isVector() ? LLT::vector(getElementCount(), NewEltSize) in changeElementSize()
201 if (isVector()) { in divide()
238 assert(isVector() && "cannot get element type of scalar/aggregate"); in getElementType()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DValueTypes.h115 if (isVector()) in changeTypeToInteger()
155 bool isVector() const { in isVector() function
156 return isSimple() ? V.isVector() : isExtendedVector(); in isVector()
297 return isVector() ? getVectorElementType() : *this; in getScalarType()
302 assert(isVector() && "Invalid vector type!"); in getVectorElementType()
310 assert(isVector() && "Invalid vector type!"); in getVectorNumElements()
324 assert((isVector()) && "Invalid vector type!"); in getVectorElementCount()
382 assert(isInteger() && !isVector() && "Invalid integer type!"); in getRoundIntegerType()
393 assert(isInteger() && !isVector() && "Invalid integer type!"); in getHalfSizedIntegerVT()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerInfo.cpp130 if (!OldTy.isVector()) in mutationIsSane()
135 const unsigned OldElts = OldTy.isVector() ? OldTy.getNumElements() : 1; in mutationIsSane()
136 if (NewTy.isVector()) { in mutationIsSane()
154 if (OldTy.isVector()) { in mutationIsSane()
156 if (!NewTy.isVector() || OldTy.getNumElements() != NewTy.getNumElements()) in mutationIsSane()
160 if (NewTy.isVector()) in mutationIsSane()
H A DGISelKnownBits.cpp60 Ty.isVector() ? APInt::getAllOnesValue(Ty.getNumElements()) : APInt(1, 1); in getKnownBits()
278 if (DstTy.isVector()) in computeKnownBitsImpl()
368 if (DstTy.isVector()) in computeKnownBitsImpl()
370 if (TL.getBooleanContents(DstTy.isVector(), in computeKnownBitsImpl()
407 if (DstTy.isVector()) in computeKnownBitsImpl()
442 if (DstTy.isVector()) in computeKnownBitsImpl()
482 if (DstTy.isVector()) in computeKnownBitsImpl()
486 if (MRI.getType(SrcReg).isVector()) in computeKnownBitsImpl()
614 if (DstTy.isVector()) in computeNumSignBits()
623 if (DstTy.isVector()) in computeNumSignBits()
[all …]
H A DLegalityPredicates.cpp73 LegalityPredicate LegalityPredicates::isVector(unsigned TypeIdx) { in isVector() function in LegalityPredicates
75 return Query.Types[TypeIdx].isVector(); in isVector()
97 return QueryTy.isVector() && QueryTy.getElementType() == EltTy; in elementTypeIs()
186 return QueryTy.isVector() && !isPowerOf2_32(QueryTy.getNumElements()); in numElementsNotPow2()
H A DMachineIRBuilder.cpp262 if (Ty.isVector()) { in buildConstant()
295 if (Ty.isVector()) { in buildFConstant()
455 Res.getLLTTy(*getMRI()).isVector()); in buildExtOrTrunc()
962 if (DstTy.isVector()) { in validateTruncExt()
988 (TstTy.isVector() && in validateSelectOp()
1104 return DstTy.isVector() && in buildInstr()
1139 if (DstOps[0].getLLTTy(*getMRI()).isVector()) { in buildInstr()
1140 if (SrcOps[0].getLLTTy(*getMRI()).isVector()) in buildInstr()
1162 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1177 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
[all …]
H A DCallLowering.cpp323 if (PartLLT.isVector() == LLTy.isVector() && in buildCopyFromRegs()
325 (!PartLLT.isVector() || in buildCopyFromRegs()
352 if (!LLTy.isVector() && !PartLLT.isVector()) { in buildCopyFromRegs()
367 if (PartLLT.isVector()) { in buildCopyFromRegs()
400 assert(LLTy.isVector() && !PartLLT.isVector()); in buildCopyFromRegs()
458 if (PartTy.isVector() == SrcTy.isVector() && in buildCopyToRegs()
465 if (SrcTy.isVector() && !PartTy.isVector() && in buildCopyToRegs()
1027 if (ValVT.isVector()) in getStackValueStoreType()
H A DLegalizerHelper.cpp59 if (NarrowTy.isVector()) { in getNarrowTypeBreakDown()
178 if (MainTy.isVector()) { in extractParts()
218 if (PartTy.isVector()) in insertParts()
376 if (LCMTy.isVector()) { in buildWidenedRemergeToDst()
1428 if (DstTy.isVector()) in widenScalarMergeValues()
1585 if (SrcTy.isVector()) in widenScalarUnmergeValues()
1716 if (SrcTy.isVector() || DstTy.isVector()) in widenScalarExtract()
2889 if (MemTy.isVector()) in lowerLoad()
2932 if (DstTy.isVector()) in lowerLoad()
3209 if (Ty.isVector()) in lower()
[all …]
H A DLegacyLegalizerInfo.cpp125 else if (Type.isVector()) in computeTables()
203 assert(Aspect.Type.isVector()); in getAspectAction()
330 assert(Aspect.Type.isVector()); in findVectorLegalAction()
H A DUtils.cpp779 if (OrigTy.isVector()) { in getLCMType()
782 if (TargetTy.isVector()) { in getLCMType()
802 if (TargetTy.isVector()) { in getLCMType()
825 if (OrigTy.isVector()) { in getGCDType()
827 if (TargetTy.isVector()) { in getGCDType()
851 if (TargetTy.isVector()) { in getGCDType()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64RegisterBankInfo.cpp445 bool IsFPR = Ty.isVector() || isPreISelGenericFloatingPointOpcode(Opc); in getSameKindOfOperandsMapping()
465 bool OpIsFPR = OpTy.isVector() || isPreISelGenericFloatingPointOpcode(Opc); in getSameKindOfOperandsMapping()
646 bool DstIsGPR = !DstTy.isVector() && DstTy.getSizeInBits() <= 64; in getInstrMapping()
647 bool SrcIsGPR = !SrcTy.isVector() && SrcTy.getSizeInBits() <= 64; in getInstrMapping()
677 if (Ty.isVector() || isPreISelGenericFloatingPointOpcode(Opc) || in getInstrMapping()
703 if (!SrcTy.isVector() && SrcTy.getSizeInBits() == 128) in getInstrMapping()
709 if (MRI.getType(MI.getOperand(0).getReg()).isVector()) in getInstrMapping()
722 if (MRI.getType(MI.getOperand(0).getReg()).isVector()) in getInstrMapping()
729 MRI.getType(MI.getOperand(0).getReg()).isVector() ? PMI_FirstFPR in getInstrMapping()
789 if (SrcTy.isVector()) { in getInstrMapping()
[all …]
H A DAArch64LegalizerInfo.cpp87 return Query.Types[0].isVector() && in AArch64LegalizerInfo()
126 return !SrcTy.isVector() && SrcTy.getSizeInBits() == 32 && in AArch64LegalizerInfo()
200 return Ty.isVector() && Ty.getElementType() == s16 && in AArch64LegalizerInfo()
280 if (!ValTy.isVector()) in AArch64LegalizerInfo()
408 if (DstSize == 128 && !Query.Types[0].isVector()) in AArch64LegalizerInfo()
481 .minScalarEltSameAsIf(all(isVector(0), isVector(1)), 1, 0) in AArch64LegalizerInfo()
482 .lowerIf(isVector(0)); in AArch64LegalizerInfo()
549 if (Ty.isVector()) { in AArch64LegalizerInfo()
607 if (BigTy.isVector() && BigTy.getSizeInBits() < 32) in AArch64LegalizerInfo()
609 if (LitTy.isVector() && LitTy.getSizeInBits() < 32) in AArch64LegalizerInfo()
[all …]
H A DAArch64PostLegalizerLowering.cpp478 assert(Ty.isVector() && "vector shift count is not a vector type"); in isVShiftRImm()
494 if (!Ty.isVector()) in matchVAshrLshrImm()
523 if (Ty.isVector()) in tryAdjustICmpImmAndPred()
791 if (Ty.isVector()) in getCmpOperandFoldingProfit()
860 assert(DstTy.isVector() && "Expected vector types only?"); in getVectorFCMP()
917 if (!DstTy.isVector() || !ST.hasNEON()) in lowerVectorFCMP()
959 if (MRI.getType(DstReg).isVector()) in matchFormTruncstore()
H A DAArch64InstructionSelector.cpp1111 if (Ty.isVector()) in emitSelect()
1740 if (!Ty.isVector()) in selectVectorSHL()
1786 if (!Ty.isVector()) in selectVectorAshrLshr()
1924 if (SrcTy.isVector()) in preISelLower()
2028 if (PtrTy.isVector()) in convertPtrAddToAdd()
2065 if (DstTy.isVector()) in earlySelectSHL()
3070 if (DstTy.isVector()) in select()
3232 if (Ty.isVector()) in select()
3781 assert(!DstTy.isVector() && !SrcTy.isVector() && "invalid merge operation"); in selectMergeValues()
4409 if (Ty.isVector()) in emitFPCompare()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DLowLevelType.cpp19 if (VT.isVector()) { in LLT()
38 if (isVector()) { in print()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DLowLevelType.cpp47 if (!Ty.isVector()) in getMVTForLLT()
56 if (!Ty.isVector()) in getLLTForMVT()
H A DMachineVerifier.cpp857 if (Ty0.isVector() != Ty1.isVector()) { in verifyVectorElementMatch()
991 if (DstTy.isVector()) in verifyPreISelGenericInstruction()
1196 if (CondTy.isVector()) in verifyPreISelGenericInstruction()
1207 if (DstTy.isVector() || SrcTy.isVector()) in verifyPreISelGenericInstruction()
1241 if (!DstTy.isVector() || SrcEltTy.isVector()) { in verifyPreISelGenericInstruction()
1265 if (!DstTy.isVector() || SrcEltTy.isVector()) in verifyPreISelGenericInstruction()
1285 if (!DstTy.isVector() || !SrcTy.isVector()) in verifyPreISelGenericInstruction()
1307 if ((DstTy.isVector() != SrcTy.isVector()) || in verifyPreISelGenericInstruction()
1555 if (!Src2Ty.isVector()) in verifyPreISelGenericInstruction()
1576 if (!SrcTy.isVector()) in verifyPreISelGenericInstruction()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/utils/TableGen/
H A DDAGISelEmitter.cpp88 if (LHSVT.isVector() != RHSVT.isVector()) in operator ()()
89 return RHSVT.isVector(); in operator ()()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp1294 assert(VT.isVector() == OpVT.isVector() && in getZeroExtendInReg()
4887 assert(VT.isVector() == Operand.getValueType().isVector() && in getNode()
5743 assert(EVT.isVector() == VT.isVector() && in getNode()
5785 assert(N1.getValueType().isVector() == VT.isVector() && in getNode()
5882 assert(!N1.getValueType().isVector() && !VT.isVector() && in getNode()
5903 assert(VT.isVector() && N1VT.isVector() && in getNode()
6079 assert(VT.isVector() == N1.getValueType().isVector() && in getNode()
6129 assert(VT.isVector() && N2VT.isVector() && in getNode()
6770 if (!LargestVT.isVector() && !VT.isVector() && in getMemsetStores()
7391 assert(VT.isVector() == MemVT.isVector() && in getLoad()
[all …]
H A DLegalizeVectorOps.cpp260 if (LD->getMemoryVT().isVector() && ExtType != ISD::NON_EXTLOAD) { in LegalizeOp()
292 if (StVT.isVector() && ST->isTruncatingStore()) { in LegalizeOp()
321 llvm::any_of(Node->values(), [](EVT T) { return T.isVector(); }) || in LegalizeOp()
323 [](SDValue O) { return O.getValueType().isVector(); }); in LegalizeOp()
610 if (Node->getOperand(j).getValueType().isVector()) in Promote()
615 NVT.isVector() && NVT.getVectorElementType().isFloatingPoint()) in Promote()
627 (VT.isVector() && VT.getVectorElementType().isFloatingPoint() && in Promote()
628 NVT.isVector() && NVT.getVectorElementType().isFloatingPoint())) in Promote()
654 if (Node->getOperand(j).getValueType().isVector()) in PromoteINT_TO_FP()
921 assert(VT.isVector() && !Mask.getValueType().isVector() in ExpandSELECT()
[all …]
H A DLegalizeVectorTypes.cpp1439 if (InVT.isVector()) { in SplitVecRes_StrictFPOp()
3233 if (!VT.isVector()) { in CollectOpsToWiden()
3786 if (InVT.isVector()) in WidenVecRes_BITCAST()
3837 if (InVT.isVector()) { in WidenVecRes_BITCAST()
4358 if (CondVT.isVector()) { in WidenVecRes_SELECT()
4796 if (VT.isVector()) { in WidenVecOp_BITCAST()
5254 assert(LdVT.isVector() && WidenVT.isVector()); in GenWidenVectorLoads()
5344 if (!LdTy.isVector()) { in GenWidenVectorLoads()
5347 if (LdTy.isVector()) in GenWidenVectorLoads()
5407 assert(LdVT.isVector() && WidenVT.isVector()); in GenWidenVectorExtLoads()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelDAGToDAG.cpp227 assert(VT.isVector() && "Should only be called for vectors."); in selectVecAddAsVecSubIfProfitable()
285 if (Node->getSimpleValueType(0).isVector() && in Select()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h377 if (SrcTy.isVector() && SrcTy.getScalarType() == DestTy.getScalarType()) { in tryFoldUnmergeCast()
388 DestTy.isVector() ? CastSrcTy.getNumElements() / NumDefs : 1; in tryFoldUnmergeCast()
409 if (CastSrcTy.isScalar() && SrcTy.isScalar() && !DestTy.isVector()) { in tryFoldUnmergeCast()
481 return !DestTy.isVector() && OpTy.isVector(); in canFoldMergeOpcode()
485 if (!DestTy.isVector()) in canFoldMergeOpcode()
1235 if (!Ty.isVector()) in isConstantUnsupported()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp68 if (!Ty.isVector()) in isSmallOddVector()
205 if (Ty.isVector()) in isRegisterType()
222 if (!QueryTy.isVector()) in elementTypeIsLegal()
344 if (!Ty.isVector()) in loadStoreBitcastWorkaround()
374 return Ty.isVector() && (!MemTy.isVector() || MemTy == Ty) && in shouldBitcastLoadStoreType()
1535 if (Ty.isVector()) { in AMDGPULegalizerInfo()
2460 if (Ty.isVector()) in widenToNextPowerOf2()
3796 if (Ty.isVector()) { in fixStoreSourceType()
4317 if (Ty.isVector()) in legalizeImageIntrinsic()
4574 assert(Ty.isVector()); in legalizeImageIntrinsic()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/utils/TableGen/
H A DRISCVVEmitter.cpp102 bool isVector() const { return Scale.hasValue() && Scale.getValue() != 0; } in isVector() function in __anondf72edf00111::RVVType
108 return isVector() && isFloat() && ElementBitwidth == Width; in isFloatVector()
315 if (isVector()) { in RVVType()
452 assert(isVector() && "Handle Vector type only"); in initClangBuiltinStr()
542 assert(isVector()); in initShortStr()
557 if (isVector()) in initShortStr()

123456