| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelDAGToDAG.h | 131 bool selectVSplat(SDValue N, SDValue &SplatVal); 132 bool selectVSplatSimm5(SDValue N, SDValue &SplatVal); 133 bool selectVSplatUimm(SDValue N, unsigned Bits, SDValue &SplatVal); 137 bool selectVSplatSimm5Plus1(SDValue N, SDValue &SplatVal); 138 bool selectVSplatSimm5Plus1NonZero(SDValue N, SDValue &SplatVal); 141 bool selectLow8BitsVSplat(SDValue N, SDValue &SplatVal);
|
| H A D | RISCVISelDAGToDAG.cpp | 3120 bool RISCVDAGToDAGISel::selectVSplat(SDValue N, SDValue &SplatVal) { in selectVSplat() argument 3125 SplatVal = Splat.getOperand(1); in selectVSplat() 3129 static bool selectVSplatImmHelper(SDValue N, SDValue &SplatVal, in selectVSplatImmHelper() argument 3159 bool RISCVDAGToDAGISel::selectVSplatSimm5(SDValue N, SDValue &SplatVal) { in selectVSplatSimm5() argument 3160 return selectVSplatImmHelper(N, SplatVal, *CurDAG, *Subtarget, in selectVSplatSimm5() 3166 N, SplatVal, *CurDAG, *Subtarget, in selectVSplatSimm5Plus1() 3171 SDValue &SplatVal) { in selectVSplatSimm5Plus1NonZero() argument 3173 N, SplatVal, *CurDAG, *Subtarget, [](int64_t Imm) { in selectVSplatSimm5Plus1NonZero() 3179 SDValue &SplatVal) { in selectVSplatUimm() argument 3181 N, SplatVal, *CurDAG, *Subtarget, in selectVSplatUimm() [all …]
|
| H A D | RISCVISelLowering.cpp | 3303 static SDValue matchSplatAsGather(SDValue SplatVal, MVT VT, const SDLoc &DL, in matchSplatAsGather() argument 3306 if (SplatVal.getOpcode() != ISD::EXTRACT_VECTOR_ELT) in matchSplatAsGather() 3308 SDValue Vec = SplatVal.getOperand(0); in matchSplatAsGather() 3314 SDValue Idx = SplatVal.getOperand(1); in matchSplatAsGather() 7524 SDValue SplatVal = Op.getOperand(0); in lowerVectorMaskSplat() local 7535 SplatVal = DAG.getNode(ISD::AND, DL, SplatVal.getValueType(), SplatVal, in lowerVectorMaskSplat() 7536 DAG.getConstant(1, DL, SplatVal.getValueType())); in lowerVectorMaskSplat() 7537 SDValue LHS = DAG.getSplatVector(InterVT, DL, SplatVal); in lowerVectorMaskSplat()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchISelDAGToDAG.cpp | 348 bool LoongArchDAGToDAGISel::selectVSplatImm(SDValue N, SDValue &SplatVal) { in selectVSplatImm() argument 358 SplatVal = CurDAG->getTargetConstant(ImmValue.getSExtValue(), SDLoc(N), in selectVSplatImm() 363 SplatVal = CurDAG->getTargetConstant(ImmValue.getZExtValue(), SDLoc(N), in selectVSplatImm()
|
| H A D | LoongArchISelDAGToDAG.h | 63 bool selectVSplatImm(SDValue N, SDValue &SplatVal);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Constants.cpp | 104 if (const auto *SplatVal = getSplatValue()) in isAllOnesValue() local 105 return SplatVal->isAllOnesValue(); in isAllOnesValue() 121 if (const auto *SplatVal = getSplatValue()) in isOneValue() local 122 return SplatVal->isOneValue(); in isOneValue() 148 if (const auto *SplatVal = getSplatValue()) in isNotOneValue() local 149 return SplatVal->isNotOneValue(); in isNotOneValue() 166 if (const auto *SplatVal = getSplatValue()) in isMinSignedValue() local 167 return SplatVal->isMinSignedValue(); in isMinSignedValue() 193 if (const auto *SplatVal = getSplatValue()) in isNotMinSignedValue() local 194 return SplatVal->isNotMinSignedValue(); in isNotMinSignedValue() [all …]
|
| H A D | ConstantFold.cpp | 470 if (Constant *SplatVal = Val->getSplatValue()) in ConstantFoldExtractElementInstruction() local 471 return SplatVal; in ConstantFoldExtractElementInstruction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 1224 Value *SplatVal = InsElt.getOperand(1); in foldInsSequenceIntoSplat() local 1233 if (!Idx || CurrIE->getOperand(1) != SplatVal) in foldInsSequenceIntoSplat() 1266 FirstIE = InsertElementInst::Create(PoisonVec, SplatVal, Zero, "", &InsElt); in foldInsSequenceIntoSplat()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 12380 SplatVal = DAG.getNode(ISD::SIGN_EXTEND_INREG, DL, MVT::i64, SplatVal, in LowerSPLAT_VECTOR() 13680 SplatVal = Op->getConstantOperandVal(0); in isPow2Splat() 13682 SplatVal = (int32_t)SplatVal; in isPow2Splat() 13685 if (isPowerOf2_64(SplatVal)) in isPow2Splat() 13689 if (isPowerOf2_64(-SplatVal)) { in isPow2Splat() 13690 SplatVal = -SplatVal; in isPow2Splat() 13710 uint64_t SplatVal; in LowerDIV() local 20624 SDValue SplatVal = in replaceZeroVectorStore() local 20657 SDValue SplatVal; in replaceSplatVectorStore() local 20665 SplatVal = StVal.getOperand(1); in replaceSplatVectorStore() [all …]
|
| H A D | AArch64TargetTransformInfo.cpp | 1079 if (auto *SplatVal = getSplatValue(Vec)) in instCombineSVELast() local 1080 return IC.replaceInstUsesWith(II, SplatVal); in instCombineSVELast()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.h | 948 bool isConstantSplat(SDValue Op, APInt &SplatVal,
|
| H A D | X86ISelDAGToDAG.cpp | 967 APInt SplatVal; in PreprocessISelDAG() local 968 if (X86::isConstantSplat(N->getOperand(1), SplatVal) && in PreprocessISelDAG() 969 SplatVal.isOne()) { in PreprocessISelDAG()
|
| H A D | X86ISelLowering.cpp | 4926 bool isConstantSplat(SDValue Op, APInt &SplatVal, bool AllowPartialUndefs) { in isConstantSplat() argument 4943 SplatVal = EltBits[SplatIndex]; in isConstantSplat() 32183 APInt SplatVal; in ReplaceNodeResults() local 32184 if (ISD::isConstantSplatVector(N->getOperand(1).getNode(), SplatVal)) { in ReplaceNodeResults() 32190 SDValue N1 = DAG.getConstant(SplatVal, dl, ResVT); in ReplaceNodeResults() 48255 APInt SplatVal; in combineAndMaskToShift() local 48256 if (!X86::isConstantSplat(Op1, SplatVal, false) || !SplatVal.isMask()) in combineAndMaskToShift() 48271 unsigned ShiftVal = SplatVal.countr_one(); in combineAndMaskToShift()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 143 bool ISD::isConstantSplatVector(const SDNode *N, APInt &SplatVal) { in isConstantSplatVector() argument 148 SplatVal = Op0->getAPIntValue().trunc(EltSize); in isConstantSplatVector() 152 SplatVal = Op0->getValueAPF().bitcastToAPInt().trunc(EltSize); in isConstantSplatVector() 170 return BV->isConstantSplat(SplatVal, SplatUndef, SplatBitSize, HasUndefs, in isConstantSplatVector() 184 APInt SplatVal; in isConstantSplatVectorAllOnes() local 185 return isConstantSplatVector(N, SplatVal) && SplatVal.isAllOnes(); in isConstantSplatVectorAllOnes() 233 APInt SplatVal; in isConstantSplatVectorAllZeros() local 234 return isConstantSplatVector(N, SplatVal) && SplatVal.isZero(); in isConstantSplatVectorAllZeros()
|
| H A D | DAGCombiner.cpp | 11770 if (SDValue SplatVal = DAG.getSplatValue(Index); in refineUniformBase() local 11771 SplatVal && !isNullConstant(SplatVal) && in refineUniformBase() 11772 SplatVal.getValueType() == VT) { in refineUniformBase() 11773 BasePtr = DAG.getNode(ISD::ADD, DL, VT, BasePtr, SplatVal); in refineUniformBase() 11782 SplatVal && SplatVal.getValueType() == VT) { in refineUniformBase() 11783 BasePtr = DAG.getNode(ISD::ADD, DL, VT, BasePtr, SplatVal); in refineUniformBase() 11788 SplatVal && SplatVal.getValueType() == VT) { in refineUniformBase() 11789 BasePtr = DAG.getNode(ISD::ADD, DL, VT, BasePtr, SplatVal); in refineUniformBase() 22007 APInt SplatVal; in scalarizeExtractedBinop() local 22009 ISD::isConstantSplatVector(Op0.getNode(), SplatVal) || in scalarizeExtractedBinop() [all …]
|
| H A D | LegalizeDAG.cpp | 2037 SDValue SplatVal = Node->getOperand(0); in ExpandSPLAT_VECTOR() local 2039 return DAG.getSplatBuildVector(VT, DL, SplatVal); in ExpandSPLAT_VECTOR()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyISelLowering.cpp | 2573 auto IsZeroSplat = [](SDValue SplatVal) { in performVectorTruncZeroCombine() argument 2574 auto *Splat = dyn_cast<BuildVectorSDNode>(SplatVal.getNode()); in performVectorTruncZeroCombine()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelLowering.cpp | 7040 SDValue SplatVal = Op1->getOperand(0); in combineSTORE() local 7041 if (auto *C = dyn_cast<ConstantSDNode>(SplatVal)) in combineSTORE() 7042 FindReplicatedImm(C, SplatVal.getValueType().getStoreSize()); in combineSTORE() 7044 FindReplicatedReg(SplatVal); in combineSTORE() 7057 SDValue SplatVal = DAG.getSplatVector(SplatVT, SDLoc(SN), Word); in combineSTORE() local 7058 return DAG.getStore(SN->getChain(), SDLoc(SN), SplatVal, in combineSTORE()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelLowering.cpp | 9971 unsigned SplatVal = APSplatValue.getZExtValue(); in lowerToXXSPLTI32DX() local 9973 SplatVal |= (SplatVal << SplatBitSize); in lowerToXXSPLTI32DX() 9977 Index, DAG.getTargetConstant(SplatVal, DL, MVT::i32)); in lowerToXXSPLTI32DX() 15469 SDValue SplatVal = in combineVectorShuffle() local 15471 TheSplat = DAG.getSplatBuildVector(TheSplat.getValueType(), dl, SplatVal); in combineVectorShuffle()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizerHelper.cpp | 8213 APInt SplatVal = APInt::getSplat(NumBits, Scalar); in getMemsetValue() local 8214 return MIB.buildConstant(Ty, SplatVal).getReg(0); in getMemsetValue()
|