Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp126 unsigned StoreAlignment, Value *SplatValue,
504 Value *SplatValue = isBytewiseValue(StoredVal); in processLoopStridedStore() local
510 if (SplatValue && TLI->has(LibFunc::memset) && in processLoopStridedStore()
513 CurLoop->isLoopInvariant(SplatValue)) { in processLoopStridedStore()
520 SplatValue = nullptr; in processLoopStridedStore()
574 if (SplatValue) { in processLoopStridedStore()
576 Builder.CreateMemSet(BasePtr, SplatValue, NumBytes, StoreAlignment); in processLoopStridedStore()
/external/llvm/lib/Target/Mips/
DMipsSEISelDAGToDAG.cpp491 APInt SplatValue, SplatUndef; in selectVSplat() local
495 if (!Node->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in selectVSplat()
499 Imm = SplatValue; in selectVSplat()
885 APInt SplatValue, SplatUndef; in selectNode() local
895 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in selectNode()
921 if (!SplatValue.isSignedIntN(10)) in selectNode()
924 SDValue Imm = CurDAG->getTargetConstant(SplatValue, DL, in selectNode()
DMipsSEISelLowering.cpp606 APInt SplatValue, SplatUndef; in isVSplat() local
610 if (!Node->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in isVSplat()
614 Imm = SplatValue; in isVSplat()
631 APInt SplatValue, SplatUndef; in isVectorAllOnes() local
637 if (BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs)) in isVectorAllOnes()
638 return SplatValue.isAllOnesValue(); in isVectorAllOnes()
852 APInt SplatValue, SplatUndef; in performDSPShiftCombine() local
862 !BV->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in performDSPShiftCombine()
865 (SplatValue.getZExtValue() >= EltSize)) in performDSPShiftCombine()
870 DAG.getConstant(SplatValue.getZExtValue(), DL, MVT::i32)); in performDSPShiftCombine()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp7163 bool BuildVectorSDNode::isConstantSplat(APInt &SplatValue, in isConstantSplat() argument
7175 SplatValue = APInt(sz, 0); in isConstantSplat()
7194 SplatValue |= CN->getAPIntValue().zextOrTrunc(EltBitSize). in isConstantSplat()
7197 SplatValue |= CN->getValueAPF().bitcastToAPInt().zextOrTrunc(sz) <<BitPos; in isConstantSplat()
7209 APInt HighValue = SplatValue.lshr(HalfSize).trunc(HalfSize); in isConstantSplat()
7210 APInt LowValue = SplatValue.trunc(HalfSize); in isConstantSplat()
7219 SplatValue = HighValue | LowValue; in isConstantSplat()
DDAGCombiner.cpp752 static bool isConstantSplatVector(SDNode *N, APInt& SplatValue) { in isConstantSplatVector() argument
761 return (C->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in isConstantSplatVector()
3106 APInt SplatValue, SplatUndef; in visitAND() local
3109 bool IsSplat = Vector->isConstantSplat(SplatValue, SplatUndef, in visitAND()
3114 SplatValue |= SplatUndef; in visitAND()
3127 for (SplatValue = SplatValue.zextOrTrunc(BitWidth); in visitAND()
3130 SplatValue |= SplatValue.shl(SplatBitSize); in visitAND()
3137 Constant &= SplatValue.lshr(i*BitWidth).zextOrTrunc(BitWidth); in visitAND()
/external/llvm/lib/Transforms/Vectorize/
DBBVectorize.cpp1073 Constant *SplatValue = cast<Constant>(IOp)->getSplatValue(); in areInstsCompatible() local
1074 if (SplatValue != nullptr && in areInstsCompatible()
1075 SplatValue == cast<Constant>(JOp)->getSplatValue()) in areInstsCompatible()
DLoopVectorize.cpp5391 Constant *SplatValue = cast<Constant>(Op2)->getSplatValue(); in getInstructionCost() local
5392 if (SplatValue) { in getInstructionCost()
5393 ConstantInt *CInt = dyn_cast<ConstantInt>(SplatValue); in getInstructionCost()
/external/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h1679 bool isConstantSplat(APInt &SplatValue, APInt &SplatUndef,
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp8298 APInt SplatValue, SplatUndef; in tryCombineShiftImm() local
8301 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in tryCombineShiftImm()
8306 ShiftAmount = SplatValue.getSExtValue(); in tryCombineShiftImm()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp25362 APInt SplatValue, SplatUndef; in VectorZextCombine() local
25365 if (!Vector->isConstantSplat(SplatValue, SplatUndef, in VectorZextCombine()
25372 (SplatValue + 1).exactLogBase2() != (int)SrcSize) in VectorZextCombine()