Home
last modified time | relevance | path

Searched refs:SplatValue (Results 1 – 14 of 14) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DSVEIntrinsicOpts.cpp333 auto *SplatValue = IntrI->getOperand(0); in optimizeVectorMul() local
334 return match(SplatValue, m_FPOne()) || match(SplatValue, m_One()); in optimizeVectorMul()
344 auto *SplatValue = IntrI->getOperand(2); in optimizeVectorMul() local
345 return match(SplatValue, m_FPOne()) || match(SplatValue, m_One()); in optimizeVectorMul()
401 auto *SplatValue = dyn_cast<ConstantInt>(DupXIntrI->getOperand(0)); in optimizeTBL() local
402 if (!SplatValue || in optimizeTBL()
403 SplatValue->getValue().uge(VTy->getElementCount().getKnownMinValue())) in optimizeTBL()
411 auto *Extract = Builder.CreateExtractElement(OpVal, SplatValue); in optimizeTBL()
H A DAArch64ISelLowering.cpp13578 APInt SplatValue, SplatUndef; in tryCombineShiftImm() local
13581 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in tryCombineShiftImm()
13586 ShiftAmount = SplatValue.getSExtValue(); in tryCombineShiftImm()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/
H A DMipsSEISelDAGToDAG.cpp521 APInt SplatValue, SplatUndef; in selectVSplat() local
525 if (!Node->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in selectVSplat()
529 Imm = SplatValue; in selectVSplat()
1057 APInt SplatValue, SplatUndef; in trySelect() local
1067 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in trySelect()
1099 if (SplatValue.isSignedIntN(10)) { in trySelect()
1100 SDValue Imm = CurDAG->getTargetConstant(SplatValue, DL, in trySelect()
1104 } else if (SplatValue.isSignedIntN(16) && in trySelect()
1128 const unsigned Lo = SplatValue.getLoBits(16).getZExtValue(); in trySelect()
1134 } else if (SplatValue.isSignedIntN(32) && SplatBitSize == 32) { in trySelect()
[all …]
H A DMipsISelDAGToDAG.cpp236 APInt SplatValue, SplatUndef; in selectVecAddAsVecSubIfProfitable() local
240 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in selectVecAddAsVecSubIfProfitable()
246 if (IsInlineConstant(SplatValue)) in selectVecAddAsVecSubIfProfitable()
249 APInt NegSplatValue = 0 - SplatValue; in selectVecAddAsVecSubIfProfitable()
H A DMipsSEISelLowering.cpp540 APInt SplatValue, SplatUndef; in isVSplat() local
544 if (!Node->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in isVSplat()
548 Imm = SplatValue; in isVSplat()
565 APInt SplatValue, SplatUndef; in isVectorAllOnes() local
571 if (BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs)) in isVectorAllOnes()
572 return SplatValue.isAllOnesValue(); in isVectorAllOnes()
849 APInt SplatValue, SplatUndef; in performDSPShiftCombine() local
859 !BV->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in performDSPShiftCombine()
862 (SplatValue.getZExtValue() >= EltSize)) in performDSPShiftCombine()
867 DAG.getConstant(SplatValue.getZExtValue(), DL, MVT::i32)); in performDSPShiftCombine()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp861 int SplatValue = *FirstDefinedIdx; in getSplatIndex() local
863 [&SplatValue](int Elt) { return Elt >= 0 && Elt != SplatValue; })) in getSplatIndex()
866 return SplatValue; in getSplatIndex()
877 int64_t SplatValue) { in isBuildVectorConstantSplat() argument
884 if (!mi_match(Element, MRI, m_SpecificICst(SplatValue))) in isBuildVectorConstantSplat()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp521 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in isLegalStore() local
528 if (!UnorderedAtomic && HasMemset && SplatValue && !DisableLIRP::Memset && in isLegalStore()
531 CurLoop->isLoopInvariant(SplatValue)) { in isLegalStore()
931 Value *SplatValue = MSI->getValue(); in processLoopMemSet() local
932 if (!SplatValue || !CurLoop->isLoopInvariant(SplatValue)) in processLoopMemSet()
940 SplatValue, MSI, MSIs, Ev, BECount, NegStride, /*IsLoopMemset=*/true); in processLoopMemSet()
1034 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in processLoopStridedStore() local
1037 if (!SplatValue) in processLoopStridedStore()
1040 assert((SplatValue || PatternValue) && in processLoopStridedStore()
1104 if (SplatValue) { in processLoopStridedStore()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp1784 SDValue SplatValue; in LowerBUILD_VECTOR() local
1786 std::tie(SplatValue, NumSplatLanes) = GetMostCommon(SplatValueCounts); in LowerBUILD_VECTOR()
1888 if ((SplattedLoad = dyn_cast<LoadSDNode>(SplatValue)) && in LowerBUILD_VECTOR()
1896 Result = DAG.getSplatBuildVector(VecT, DL, SplatValue); in LowerBUILD_VECTOR()
1898 IsLaneConstructed = [&SplatValue](size_t _, const SDValue &Lane) { in LowerBUILD_VECTOR()
1899 return Lane == SplatValue; in LowerBUILD_VECTOR()
2218 APInt SplatValue, SplatUndef; in performVectorTruncSatLowCombine() local
2221 if (!Splat || !Splat->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in performVectorTruncSatLowCombine()
2224 if (SplatValue != 0) in performVectorTruncSatLowCombine()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h91 bool isConstantSplatVector(const SDNode *N, APInt &SplatValue);
1931 bool isConstantSplat(APInt &SplatValue, APInt &SplatUndef,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp1503 uint64_t SplatValue = 0; in lowerBUILD_VECTOR() local
1508 SplatValue |= ((cast<ConstantSDNode>(SeqV)->getZExtValue() & EltMask) in lowerBUILD_VECTOR()
1516 SplatValue = SignExtend64(SplatValue, 32); in lowerBUILD_VECTOR()
1524 if (ViaIntVT.bitsLE(XLenVT) || isInt<32>(SplatValue)) { in lowerBUILD_VECTOR()
1531 DAG.getConstant(SplatValue, DL, XLenVT), ViaVL); in lowerBUILD_VECTOR()
1864 if (SDValue SplatValue = DAG.getSplatValue(V1, /*LegalTypes*/ true)) { in lowerVECTOR_SHUFFLE() local
1865 Gather = lowerScalarSplat(SplatValue, VL, ContainerVT, DL, DAG, Subtarget); in lowerVECTOR_SHUFFLE()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp10202 bool BuildVectorSDNode::isConstantSplat(APInt &SplatValue, APInt &SplatUndef, in isConstantSplat() argument
10215 SplatValue = APInt(VecWidth, 0); in isConstantSplat()
10234 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat()
10236 SplatValue.insertBits(CN->getValueAPF().bitcastToAPInt(), BitPos); in isConstantSplat()
10248 APInt HighValue = SplatValue.lshr(HalfSize).trunc(HalfSize); in isConstantSplat()
10249 APInt LowValue = SplatValue.trunc(HalfSize); in isConstantSplat()
10258 SplatValue = HighValue | LowValue; in isConstantSplat()
H A DTargetLowering.cpp5414 auto SplatValue = llvm::find_if_not(Values, Predicate); in turnVectorIntoSplatVector() local
5415 if (SplatValue != Values.end()) { in turnVectorIntoSplatVector()
5417 if (llvm::all_of(Values, [Predicate, SplatValue](SDValue Value) { in turnVectorIntoSplatVector()
5418 return Value == *SplatValue || Predicate(Value); in turnVectorIntoSplatVector()
5420 Replacement = *SplatValue; in turnVectorIntoSplatVector()
H A DDAGCombiner.cpp5719 APInt SplatValue, SplatUndef; in visitAND() local
5722 bool IsSplat = Vector->isConstantSplat(SplatValue, SplatUndef, in visitAND()
5727 SplatValue |= SplatUndef; in visitAND()
5739 for (SplatValue = SplatValue.zextOrTrunc(EltBitWidth); in visitAND()
5741 SplatValue |= SplatValue.shl(SplatBitSize); in visitAND()
5748 Constant &= SplatValue.extractBits(EltBitWidth, i * EltBitWidth); in visitAND()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp8772 static Constant *getConstantVector(MVT VT, const APInt &SplatValue, in getConstantVector() argument
8779 APInt Val = SplatValue.extractBits(ScalarSize, ScalarSize * i); in getConstantVector()
8886 APInt SplatValue, Undef; in lowerBuildVectorAsBroadcast() local
8890 if (BVOp->isConstantSplat(SplatValue, Undef, SplatBitSize, HasUndef) && in lowerBuildVectorAsBroadcast()
8908 Constant *C = Constant::getIntegerValue(ScalarTy, SplatValue); in lowerBuildVectorAsBroadcast()
8925 Constant *VecC = getConstantVector(VT, SplatValue, SplatBitSize, in lowerBuildVectorAsBroadcast()