/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 87 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/ |
D | LoopIdiomRecognize.cpp | 371 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/ |
D | MipsSEISelDAGToDAG.cpp | 507 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()
|
D | MipsSEISelLowering.cpp | 606 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/ |
D | SelectionDAGNodes.h | 71 bool isConstantSplatVector(const SDNode *N, APInt &SplatValue); 1546 bool isConstantSplat(APInt &SplatValue, APInt &SplatUndef,
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 6649 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/ |
D | SelectionDAG.cpp | 7119 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()
|
D | DAGCombiner.cpp | 3144 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/ |
D | BBVectorize.cpp | 1080 Constant *SplatValue = cast<Constant>(IOp)->getSplatValue(); in areInstsCompatible() local 1081 if (SplatValue != nullptr && in areInstsCompatible() 1082 SplatValue == cast<Constant>(JOp)->getSplatValue()) in areInstsCompatible()
|
D | LoopVectorize.cpp | 5885 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/ |
D | SelectionDAGNodes.h | 1374 bool isConstantSplat(APInt &SplatValue, APInt &SplatUndef,
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.cpp | 8451 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/ |
D | X86ISelLowering.cpp | 4259 SDValue SplatValue = N->getOperand(0); in isSplatVector() local 4261 if (N->getOperand(i) != SplatValue) in isSplatVector()
|