Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp87 Value *SplatValue, Instruction *TheStore,
449 Value *SplatValue = isBytewiseValue(StoredVal); in processLoopStridedStore() local
454 if (SplatValue && TLI->has(LibFunc::memset) && in processLoopStridedStore()
457 CurLoop->isLoopInvariant(SplatValue)) { in processLoopStridedStore()
463 SplatValue = 0; in processLoopStridedStore()
514 if (SplatValue) in processLoopStridedStore()
515 NewCall = Builder.CreateMemSet(BasePtr, SplatValue,NumBytes,StoreAlignment); in processLoopStridedStore()
/external/llvm/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp371 Value *SplatValue = isBytewiseValue(StoredVal); in isLegalStore() local
376 if (HasMemset && SplatValue && in isLegalStore()
379 CurLoop->isLoopInvariant(SplatValue)) { in isLegalStore()
683 Value *SplatValue = MSI->getValue(); in processLoopMemSet() local
684 if (!SplatValue || !CurLoop->isLoopInvariant(SplatValue)) in processLoopMemSet()
691 MSI->getAlignment(), SplatValue, MSI, MSIs, Ev, in processLoopMemSet()
749 Value *SplatValue = isBytewiseValue(StoredVal); in processLoopStridedStore() local
752 if (!SplatValue) in processLoopStridedStore()
755 assert((SplatValue || PatternValue) && in processLoopStridedStore()
806 if (SplatValue) { in processLoopStridedStore()
[all …]
/external/llvm/lib/Target/Mips/
DMipsSEISelDAGToDAG.cpp507 APInt SplatValue, SplatUndef; in selectVSplat() local
511 if (!Node->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in selectVSplat()
515 Imm = SplatValue; in selectVSplat()
902 APInt SplatValue, SplatUndef; in trySelect() local
912 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in trySelect()
938 if (!SplatValue.isSignedIntN(10)) in trySelect()
941 SDValue Imm = CurDAG->getTargetConstant(SplatValue, DL, in trySelect()
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/include/llvm/CodeGen/
DSelectionDAGNodes.h71 bool isConstantSplatVector(const SDNode *N, APInt &SplatValue);
1546 bool isConstantSplat(APInt &SplatValue, APInt &SplatUndef,
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp6649 bool BuildVectorSDNode::isConstantSplat(APInt &SplatValue, in isConstantSplat() argument
6661 SplatValue = APInt(sz, 0); in isConstantSplat()
6680 SplatValue |= CN->getAPIntValue().zextOrTrunc(EltBitSize). in isConstantSplat()
6683 SplatValue |= CN->getValueAPF().bitcastToAPInt().zextOrTrunc(sz) <<BitPos; in isConstantSplat()
6695 APInt HighValue = SplatValue.lshr(HalfSize).trunc(HalfSize); in isConstantSplat()
6696 APInt LowValue = SplatValue.trunc(HalfSize); in isConstantSplat()
6705 SplatValue = HighValue | LowValue; in isConstantSplat()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp7119 bool BuildVectorSDNode::isConstantSplat(APInt &SplatValue, in isConstantSplat() argument
7131 SplatValue = APInt(sz, 0); in isConstantSplat()
7150 SplatValue |= CN->getAPIntValue().zextOrTrunc(EltBitSize). in isConstantSplat()
7153 SplatValue |= CN->getValueAPF().bitcastToAPInt().zextOrTrunc(sz) <<BitPos; in isConstantSplat()
7165 APInt HighValue = SplatValue.lshr(HalfSize).trunc(HalfSize); in isConstantSplat()
7166 APInt LowValue = SplatValue.trunc(HalfSize); in isConstantSplat()
7175 SplatValue = HighValue | LowValue; in isConstantSplat()
DDAGCombiner.cpp3144 APInt SplatValue, SplatUndef; in visitAND() local
3147 bool IsSplat = Vector->isConstantSplat(SplatValue, SplatUndef, in visitAND()
3152 SplatValue |= SplatUndef; in visitAND()
3165 for (SplatValue = SplatValue.zextOrTrunc(BitWidth); in visitAND()
3168 SplatValue |= SplatValue.shl(SplatBitSize); in visitAND()
3175 Constant &= SplatValue.lshr(i*BitWidth).zextOrTrunc(BitWidth); in visitAND()
/external/llvm/lib/Transforms/Vectorize/
DBBVectorize.cpp1080 Constant *SplatValue = cast<Constant>(IOp)->getSplatValue(); in areInstsCompatible() local
1081 if (SplatValue != nullptr && in areInstsCompatible()
1082 SplatValue == cast<Constant>(JOp)->getSplatValue()) in areInstsCompatible()
DLoopVectorize.cpp5885 Constant *SplatValue = cast<Constant>(Op2)->getSplatValue(); in getInstructionCost() local
5886 if (SplatValue) { in getInstructionCost()
5887 ConstantInt *CInt = dyn_cast<ConstantInt>(SplatValue); in getInstructionCost()
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
DSelectionDAGNodes.h1374 bool isConstantSplat(APInt &SplatValue, APInt &SplatUndef,
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp8451 APInt SplatValue, SplatUndef; in tryCombineShiftImm() local
8454 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in tryCombineShiftImm()
8459 ShiftAmount = SplatValue.getSExtValue(); in tryCombineShiftImm()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86ISelLowering.cpp4259 SDValue SplatValue = N->getOperand(0); in isSplatVector() local
4261 if (N->getOperand(i) != SplatValue) in isSplatVector()