Home
last modified time | relevance | path

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

123456

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DLowLevelTypeImpl.h65 assert(!ScalarTy.isVector() && "invalid vector element type"); in vector()
107 explicit LLT(bool isPointer, bool isVector, bool isScalar, ElementCount EC, in LLT() argument
109 init(isPointer, isVector, isScalar, EC, SizeInBits, AddressSpace); in LLT()
122 bool isVector() const { return isValid() && IsVector; } in isVector() function
138 assert(isVector() && "Expected a vector type"); in isScalable()
168 return isVector() ? getElementType() : *this; in getScalarType()
183 return isVector() ? LLT::vector(getElementCount(), NewEltSize) in changeElementSize()
200 if (isVector()) { in divide()
214 if (isVector()) { in multiplyElements()
249 assert(isVector() && "cannot get element type of scalar/aggregate"); in getElementType()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DValueTypes.h114 if (isVector()) in changeTypeToInteger()
154 bool isVector() const { in isVector() function
155 return isSimple() ? V.isVector() : isExtendedVector(); in isVector()
296 return isVector() ? getVectorElementType() : *this; in getScalarType()
301 assert(isVector() && "Invalid vector type!"); in getVectorElementType()
309 assert(isVector() && "Invalid vector type!"); in getVectorNumElements()
323 assert((isVector()) && "Invalid vector type!"); in getVectorElementCount()
387 assert(isInteger() && !isVector() && "Invalid integer type!"); in getRoundIntegerType()
398 assert(isInteger() && !isVector() && "Invalid integer type!"); in getHalfSizedIntegerVT()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DLowLevelType.cpp46 if (!Ty.isVector()) in getMVTForLLT()
56 if (Ty.isVector()) { in getApproximateEVTForLLT()
65 if (!Ty.isVector()) in getLLTForMVT()
H A DMachineVerifier.cpp894 if (Ty0.isVector() != Ty1.isVector()) { in verifyVectorElementMatch()
1034 if (DstTy.isVector()) in verifyPreISelGenericInstruction()
1251 if (CondTy.isVector()) in verifyPreISelGenericInstruction()
1262 if (DstTy.isVector() || SrcTy.isVector()) in verifyPreISelGenericInstruction()
1296 if (!DstTy.isVector() || SrcEltTy.isVector()) { in verifyPreISelGenericInstruction()
1318 if (!DstTy.isVector() || SrcEltTy.isVector()) in verifyPreISelGenericInstruction()
1336 if (!DstTy.isVector() || !SrcTy.isVector()) in verifyPreISelGenericInstruction()
1356 if ((DstTy.isVector() != SrcTy.isVector()) || in verifyPreISelGenericInstruction()
1604 if (!Src2Ty.isVector()) in verifyPreISelGenericInstruction()
1630 if (DstTy.isVector()) { in verifyPreISelGenericInstruction()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp283 if (DstTy.isVector()) in computeKnownBitsImpl()
373 if (DstTy.isVector()) in computeKnownBitsImpl()
375 if (TL.getBooleanContents(DstTy.isVector(), in computeKnownBitsImpl()
412 if (DstTy.isVector()) in computeKnownBitsImpl()
447 if (DstTy.isVector()) in computeKnownBitsImpl()
499 if (DstTy.isVector()) in computeKnownBitsImpl()
503 if (MRI.getType(SrcReg).isVector()) in computeKnownBitsImpl()
583 if (TL.getBooleanContents(DstTy.isVector(), false) == in computeKnownBitsImpl()
663 if (DstTy.isVector()) in computeNumSignBits()
672 if (DstTy.isVector()) in computeNumSignBits()
[all …]
H A DMachineIRBuilder.cpp222 assert((ResTy.isVector() && Op0Ty.isVector()) && "Non vector type"); in buildPadVectorWithUndefElements()
245 assert((ResTy.isVector() && Op0Ty.isVector()) && "Non vector type"); in buildDeleteTrailingVectorElements()
290 if (Ty.isVector()) { in buildConstant()
323 if (Ty.isVector()) { in buildFConstant()
500 Res.getLLTTy(*getMRI()).isVector()); in buildExtOrTrunc()
990 if (DstTy.isVector()) { in validateTruncExt()
1016 (TstTy.isVector() && in validateSelectOp()
1132 return DstTy.isVector() && in buildInstr()
1167 if (DstOps[0].getLLTTy(*getMRI()).isVector()) { in buildInstr()
1168 if (SrcOps[0].getLLTTy(*getMRI()).isVector()) in buildInstr()
[all …]
H A DLegalizerInfo.cpp127 if (!OldTy.isVector()) in mutationIsSane()
132 const ElementCount OldElts = OldTy.isVector() ? in mutationIsSane()
134 if (NewTy.isVector()) { in mutationIsSane()
152 if (OldTy.isVector()) { in mutationIsSane()
154 if (!NewTy.isVector() || OldTy.getNumElements() != NewTy.getNumElements()) in mutationIsSane()
158 if (NewTy.isVector()) in mutationIsSane()
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()
201 return QueryTy.isVector() && !isPowerOf2_32(QueryTy.getNumElements()); in numElementsNotPow2()
H A DCallLowering.cpp341 if (PartLLT.isVector() == LLTy.isVector() && in buildCopyFromRegs()
343 (!PartLLT.isVector() || in buildCopyFromRegs()
370 if (!LLTy.isVector() && !PartLLT.isVector()) { in buildCopyFromRegs()
385 if (PartLLT.isVector()) { in buildCopyFromRegs()
418 assert(LLTy.isVector() && !PartLLT.isVector()); in buildCopyFromRegs()
476 if (PartTy.isVector() == SrcTy.isVector() && in buildCopyToRegs()
483 if (SrcTy.isVector() && !PartTy.isVector() && in buildCopyToRegs()
503 if (PartTy.isVector() && LCMTy == PartTy) { in buildCopyToRegs()
515 if (!LCMTy.isVector() && CoveringSize != SrcSize) { in buildCopyToRegs()
532 if (LCMTy.isVector() && CoveringSize != SrcSize) in buildCopyToRegs()
[all …]
H A DLegalizerHelper.cpp63 if (NarrowTy.isVector()) { in getNarrowTypeBreakDown()
183 if (MainTy.isVector()) { in extractParts()
453 if (LCMTy.isVector()) { in buildWidenedRemergeToDst()
1503 if (DstTy.isVector()) in widenScalarMergeValues()
1626 if (SrcTy.isVector()) in widenScalarUnmergeValues()
1757 if (SrcTy.isVector() || DstTy.isVector()) in widenScalarExtract()
3309 if (Ty.isVector()) in lower()
5132 if (Ty.isVector()) in narrowScalarMul()
7407 if (Ty.isVector()) in getTypeForLLT()
7440 if (Ty.isVector()) in getMemsetValue()
[all …]
H A DLegalizeMutations.cpp52 NewTy.isVector() ? NewTy.getElementCount() : ElementCount::getFixed(1); in changeElementCountTo()
61 ElementCount NewEltCount = NewEltTy.isVector() ? NewEltTy.getElementCount() in changeElementCountTo()
H A DUtils.cpp785 if (Ty.isVector()) { in ConstantFoldCTLZ()
895 if (OrigTy.isVector()) { in getLCMType()
898 if (TargetTy.isVector()) { in getLCMType()
918 if (TargetTy.isVector()) { in getLCMType()
935 if (!OrigTy.isVector() || !TargetTy.isVector() || OrigTy == TargetTy || in getCoverTy()
956 if (OrigTy.isVector()) { in getGCDType()
958 if (TargetTy.isVector()) { in getGCDType()
982 if (TargetTy.isVector()) { in getGCDType()
H A DCSEMIRBuilder.cpp204 if (SrcTy.isVector()) { in buildInstr()
311 if (Ty.isVector()) in buildConstant()
338 if (Ty.isVector()) in buildFConstant()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVISelLowering.cpp25 if (VT.isVector() && VT.getVectorNumElements() == 3 && in getNumRegistersForCallingConv()
38 if (VT.isVector() && VT.getVectorNumElements() == 3) { in getRegisterTypeForCallingConv()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/
H A DAArch64RegisterBankInfo.cpp452 bool IsFPR = Ty.isVector() || isPreISelGenericFloatingPointOpcode(Opc); in getSameKindOfOperandsMapping()
472 bool OpIsFPR = OpTy.isVector() || isPreISelGenericFloatingPointOpcode(Opc); in getSameKindOfOperandsMapping()
657 bool DstIsGPR = !DstTy.isVector() && DstTy.getSizeInBits() <= 64; in getInstrMapping()
658 bool SrcIsGPR = !SrcTy.isVector() && SrcTy.getSizeInBits() <= 64; in getInstrMapping()
688 if (Ty.isVector() || isPreISelGenericFloatingPointOpcode(Opc) || in getInstrMapping()
714 if (!SrcTy.isVector() && SrcTy.getSizeInBits() == 128) in getInstrMapping()
720 if (MRI.getType(MI.getOperand(0).getReg()).isVector()) in getInstrMapping()
733 if (MRI.getType(MI.getOperand(0).getReg()).isVector()) in getInstrMapping()
740 MRI.getType(MI.getOperand(0).getReg()).isVector() ? PMI_FirstFPR in getInstrMapping()
809 if (SrcTy.isVector()) { in getInstrMapping()
[all …]
H A DAArch64LegalizerInfo.cpp88 return Query.Types[0].isVector() && in AArch64LegalizerInfo()
134 return !SrcTy.isVector() && SrcTy.getSizeInBits() == 32 && in AArch64LegalizerInfo()
221 return Ty.isVector() && Ty.getElementType() == s16 && in AArch64LegalizerInfo()
292 if (!ValTy.isVector()) in AArch64LegalizerInfo()
410 return Ty.isVector() && !SrcTy.getElementType().isPointer() && in AArch64LegalizerInfo()
426 if (DstSize == 128 && !Query.Types[0].isVector()) in AArch64LegalizerInfo()
498 .minScalarEltSameAsIf(all(isVector(0), isVector(1)), 1, 0) in AArch64LegalizerInfo()
499 .lowerIf(isVector(0)); in AArch64LegalizerInfo()
666 .lowerIf(isVector(0)) in AArch64LegalizerInfo()
688 return !Query.Types[1].isVector(); 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()
/llvm-project-15.0.7/llvm/lib/Support/
H A DLowLevelType.cpp19 if (VT.isVector()) { in LLT()
38 if (isVector()) { in print()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DDAGISelEmitter.cpp89 if (LHSVT.isVector() != RHSVT.isVector()) in operator ()()
90 return RHSVT.isVector(); in operator ()()
/llvm-project-15.0.7/clang/utils/ABITest/
H A DTypeGen.py119 def __init__(self, index, isVector, elementType, size): argument
120 if isVector:
126 self.isVector = isVector
129 if isVector:
137 if self.isVector:
146 if self.isVector:
/llvm-project-15.0.7/clang/include/clang/Support/
H A DRISCVVIntrinsicUtils.h219 bool isVector() const { return Scale && Scale.value() != 0; } in isVector() function
220 bool isVector(unsigned Width) const { in isVector() function
221 return isVector() && ElementBitwidth == Width; in isVector()
228 return isVector() && isFloat() && ElementBitwidth == Width; in isFloatVector()
/llvm-project-15.0.7/mlir/lib/Dialect/Math/Transforms/
H A DAlgebraicSimplification.cpp50 bool isVector = matchPattern(op.getRhs(), m_Constant(&vectorExponent)); in matchAndRewrite() local
57 if (isVector && vectorExponent.isSplat()) in matchAndRewrite()
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DLowLevelTypeTest.cpp33 ASSERT_FALSE(Ty.isVector()); in TEST()
76 ASSERT_TRUE(VTy.isVector()); in TEST()
264 ASSERT_FALSE(Ty.isVector()); in TEST()
267 ASSERT_TRUE(VTy.isVector()); in TEST()
299 ASSERT_FALSE(Ty.isVector()); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/VE/
H A DVECustomDAG.cpp23 if (!SomeVT.isVector()) in isPackedVectorType()
29 if (!VT.isVector()) in splitVectorType()
40 assert(VT.isVector()); in getTypePacking()
45 if (!SomeVT.isVector()) in isMaskType()
453 assert(ResultVT.isVector()); in getBroadcast()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp1392 assert(VT.isVector() == OpVT.isVector() && in getZeroExtendInReg()
6093 assert(EVT.isVector() == VT.isVector() && in getNode()
6135 assert(N1.getValueType().isVector() == VT.isVector() && in getNode()
6257 assert(VT.isVector() && N1VT.isVector() && in getNode()
6430 assert(VT.isVector() == N1.getValueType().isVector() && in getNode()
6485 assert(VT.isVector() && N2VT.isVector() && in getNode()
7135 if (!LargestVT.isVector() && !VT.isVector() && in getMemsetStores()
7788 assert(VT.isVector() == MemVT.isVector() && in getLoad()
7961 assert(VT.isVector() == SVT.isVector() && in getTruncStore()
8212 assert(VT.isVector() == SVT.isVector() && in getTruncStoreVP()
[all …]

123456