| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsSEISelDAGToDAG.cpp | 521 APInt SplatValue, SplatUndef; in selectVSplat() local 529 Imm = SplatValue; in selectVSplat() 1058 APInt SplatValue, SplatUndef; in trySelect() local 1100 if (SplatValue.isSignedIntN(10)) { in trySelect() 1101 SDValue Imm = CurDAG->getTargetConstant(SplatValue, DL, in trySelect() 1105 } else if (SplatValue.isSignedIntN(16) && in trySelect() 1129 const unsigned Lo = SplatValue.getLoBits(16).getZExtValue(); in trySelect() 1138 const unsigned Lo = SplatValue.getLoBits(16).getZExtValue(); in trySelect() 1161 const unsigned Lo = SplatValue.getLoBits(16).getZExtValue(); in trySelect() 1184 } else if (SplatValue.isSignedIntN(64)) { in trySelect() [all …]
|
| H A D | MipsISelDAGToDAG.cpp | 236 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 D | MipsSEISelLowering.cpp | 540 APInt SplatValue, SplatUndef; in isVSplat() local 548 Imm = SplatValue; in isVSplat() 565 APInt SplatValue, SplatUndef; in isVectorAllOnes() local 572 return SplatValue.isAllOnesValue(); in isVectorAllOnes() 849 APInt SplatValue, SplatUndef; in performDSPShiftCombine() local 862 (SplatValue.getZExtValue() >= EltSize)) in performDSPShiftCombine() 1430 SDValue SplatValueA = SplatValue; in getBuildVectorSplat() 1431 SDValue SplatValueB = SplatValue; in getBuildVectorSplat() 1432 SDLoc DL(SplatValue); in getBuildVectorSplat() 2464 APInt SplatValue, SplatUndef; in lowerBUILD_VECTOR() local [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | Utils.cpp | 875 int SplatValue = *FirstDefinedIdx; in getSplatIndex() local 877 [&SplatValue](int Elt) { return Elt >= 0 && Elt != SplatValue; })) in getSplatIndex() 880 return SplatValue; in getSplatIndex() 891 int64_t SplatValue) { in isBuildVectorConstantSplat() argument 898 if (!mi_match(Element, MRI, m_SpecificICst(SplatValue))) in isBuildVectorConstantSplat()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopIdiomRecognize.cpp | 522 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in isLegalStore() local 529 if (!UnorderedAtomic && HasMemset && SplatValue && !DisableLIRP::Memset && in isLegalStore() 532 CurLoop->isLoopInvariant(SplatValue)) { in isLegalStore() 932 Value *SplatValue = MSI->getValue(); in processLoopMemSet() local 933 if (!SplatValue || !CurLoop->isLoopInvariant(SplatValue)) in processLoopMemSet() 941 SplatValue, MSI, MSIs, Ev, BECount, NegStride, /*IsLoopMemset=*/true); in processLoopMemSet() 1035 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in processLoopStridedStore() local 1038 if (!SplatValue) in processLoopStridedStore() 1041 assert((SplatValue || PatternValue) && in processLoopStridedStore() 1105 if (SplatValue) { in processLoopStridedStore() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 730 auto *SplatValue = IntrI->getOperand(0); in instCombineSVEVectorMul() local 731 return match(SplatValue, m_FPOne()) || match(SplatValue, m_One()); in instCombineSVEVectorMul() 741 auto *SplatValue = IntrI->getOperand(2); in instCombineSVEVectorMul() local 742 return match(SplatValue, m_FPOne()) || match(SplatValue, m_One()); in instCombineSVEVectorMul() 781 auto *SplatValue = dyn_cast<ConstantInt>(DupXIntrI->getOperand(0)); in instCombineSVETBL() local 782 if (!SplatValue || in instCombineSVETBL() 783 SplatValue->getValue().uge(VTy->getElementCount().getKnownMinValue())) in instCombineSVETBL() 790 auto *Extract = Builder.CreateExtractElement(OpVal, SplatValue); in instCombineSVETBL()
|
| H A D | AArch64ISelLowering.cpp | 13995 APInt SplatValue, SplatUndef; in tryCombineShiftImm() local 13998 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in tryCombineShiftImm() 14003 ShiftAmount = SplatValue.getSExtValue(); in tryCombineShiftImm()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyISelLowering.cpp | 1887 SDValue SplatValue; in LowerBUILD_VECTOR() local 1889 std::tie(SplatValue, NumSplatLanes) = GetMostCommon(SplatValueCounts); in LowerBUILD_VECTOR() 1991 if ((SplattedLoad = dyn_cast<LoadSDNode>(SplatValue)) && in LowerBUILD_VECTOR() 1999 Result = DAG.getSplatBuildVector(VecT, DL, SplatValue); in LowerBUILD_VECTOR() 2001 IsLaneConstructed = [&SplatValue](size_t _, const SDValue &Lane) { in LowerBUILD_VECTOR() 2002 return Lane == SplatValue; in LowerBUILD_VECTOR() 2361 APInt SplatValue, SplatUndef; in performVectorTruncZeroCombine() local 2365 Splat->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in performVectorTruncZeroCombine() 2367 SplatValue == 0; in performVectorTruncZeroCombine()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | SelectionDAGNodes.h | 91 bool isConstantSplatVector(const SDNode *N, APInt &SplatValue); 1943 bool isConstantSplat(APInt &SplatValue, APInt &SplatUndef,
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 1659 uint64_t SplatValue = 0; in lowerBUILD_VECTOR() local 1664 SplatValue |= ((cast<ConstantSDNode>(SeqV)->getZExtValue() & EltMask) in lowerBUILD_VECTOR() 1672 SplatValue = SignExtend64(SplatValue, 32); in lowerBUILD_VECTOR() 1680 if (ViaIntVT.bitsLE(XLenVT) || isInt<32>(SplatValue)) { in lowerBUILD_VECTOR() 1687 DAG.getConstant(SplatValue, DL, XLenVT), ViaVL); in lowerBUILD_VECTOR() 1982 if (SDValue SplatValue = DAG.getSplatValue(V1, /*LegalTypes*/ true)) { in lowerVECTOR_SHUFFLE() local 1983 Gather = lowerScalarSplat(SplatValue, VL, ContainerVT, DL, DAG, Subtarget); in lowerVECTOR_SHUFFLE()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 10288 bool BuildVectorSDNode::isConstantSplat(APInt &SplatValue, APInt &SplatUndef, in isConstantSplat() argument 10301 SplatValue = APInt(VecWidth, 0); in isConstantSplat() 10320 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat() 10322 SplatValue.insertBits(CN->getValueAPF().bitcastToAPInt(), BitPos); in isConstantSplat() 10334 APInt HighValue = SplatValue.extractBits(HalfSize, HalfSize); in isConstantSplat() 10335 APInt LowValue = SplatValue.extractBits(HalfSize, 0); in isConstantSplat() 10344 SplatValue = HighValue | LowValue; in isConstantSplat()
|
| H A D | DAGCombiner.cpp | 5749 APInt SplatValue, SplatUndef; in visitAND() local 5752 bool IsSplat = Vector->isConstantSplat(SplatValue, SplatUndef, in visitAND() 5757 SplatValue |= SplatUndef; in visitAND() 5769 for (SplatValue = SplatValue.zextOrTrunc(EltBitWidth); in visitAND() 5771 SplatValue |= SplatValue.shl(SplatBitSize); in visitAND() 5778 Constant &= SplatValue.extractBits(EltBitWidth, i * EltBitWidth); in visitAND() 10131 APInt SplatValue; in visitVSELECT() local 10133 ISD::isConstantSplatVector(OpRHS.getNode(), SplatValue) && in visitVSELECT() 10135 SplatValue.isSignMask()) { in visitVSELECT() 10138 OpRHS = DAG.getConstant(SplatValue, DL, VT); in visitVSELECT()
|
| H A D | TargetLowering.cpp | 5440 auto SplatValue = llvm::find_if_not(Values, Predicate); in turnVectorIntoSplatVector() local 5441 if (SplatValue != Values.end()) { in turnVectorIntoSplatVector() 5443 if (llvm::all_of(Values, [Predicate, SplatValue](SDValue Value) { in turnVectorIntoSplatVector() 5444 return Value == *SplatValue || Predicate(Value); in turnVectorIntoSplatVector() 5446 Replacement = *SplatValue; in turnVectorIntoSplatVector()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 8797 static Constant *getConstantVector(MVT VT, const APInt &SplatValue, in getConstantVector() argument 8804 APInt Val = SplatValue.extractBits(ScalarSize, ScalarSize * i); in getConstantVector() 8911 APInt SplatValue, Undef; in lowerBuildVectorAsBroadcast() local 8915 if (BVOp->isConstantSplat(SplatValue, Undef, SplatBitSize, HasUndef) && in lowerBuildVectorAsBroadcast() 8933 Constant *C = Constant::getIntegerValue(ScalarTy, SplatValue); in lowerBuildVectorAsBroadcast() 8950 Constant *VecC = getConstantVector(VT, SplatValue, SplatBitSize, in lowerBuildVectorAsBroadcast()
|