/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/ |
D | MipsSEISelDAGToDAG.cpp | 521 APInt SplatValue, SplatUndef; in selectVSplat() local 525 if (!Node->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in selectVSplat() 529 Imm = SplatValue; in selectVSplat() 984 APInt SplatValue, SplatUndef; in trySelect() local 994 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in trySelect() 1026 if (SplatValue.isSignedIntN(10)) { in trySelect() 1027 SDValue Imm = CurDAG->getTargetConstant(SplatValue, DL, in trySelect() 1031 } else if (SplatValue.isSignedIntN(16) && in trySelect() 1055 const unsigned Lo = SplatValue.getLoBits(16).getZExtValue(); in trySelect() 1061 } else if (SplatValue.isSignedIntN(32) && SplatBitSize == 32) { in trySelect() [all …]
|
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()
|
D | MipsSEISelLowering.cpp | 540 APInt SplatValue, SplatUndef; in isVSplat() local 544 if (!Node->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in isVSplat() 548 Imm = SplatValue; in isVSplat() 565 APInt SplatValue, SplatUndef; in isVectorAllOnes() local 571 if (BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs)) in isVectorAllOnes() 572 return SplatValue.isAllOnesValue(); in isVectorAllOnes() 849 APInt SplatValue, SplatUndef; in performDSPShiftCombine() local 859 !BV->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in performDSPShiftCombine() 862 (SplatValue.getZExtValue() >= EltSize)) in performDSPShiftCombine() 867 DAG.getConstant(SplatValue.getZExtValue(), DL, MVT::i32)); in performDSPShiftCombine() [all …]
|
/external/llvm-project/llvm/lib/Target/Mips/ |
D | MipsSEISelDAGToDAG.cpp | 521 APInt SplatValue, SplatUndef; in selectVSplat() local 525 if (!Node->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in selectVSplat() 529 Imm = SplatValue; in selectVSplat() 1057 APInt SplatValue, SplatUndef; in trySelect() local 1067 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in trySelect() 1099 if (SplatValue.isSignedIntN(10)) { in trySelect() 1100 SDValue Imm = CurDAG->getTargetConstant(SplatValue, DL, in trySelect() 1104 } else if (SplatValue.isSignedIntN(16) && in trySelect() 1128 const unsigned Lo = SplatValue.getLoBits(16).getZExtValue(); in trySelect() 1134 } else if (SplatValue.isSignedIntN(32) && SplatBitSize == 32) { in trySelect() [all …]
|
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()
|
D | MipsSEISelLowering.cpp | 540 APInt SplatValue, SplatUndef; in isVSplat() local 544 if (!Node->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in isVSplat() 548 Imm = SplatValue; in isVSplat() 565 APInt SplatValue, SplatUndef; in isVectorAllOnes() local 571 if (BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs)) in isVectorAllOnes() 572 return SplatValue.isAllOnesValue(); in isVectorAllOnes() 849 APInt SplatValue, SplatUndef; in performDSPShiftCombine() local 859 !BV->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in performDSPShiftCombine() 862 (SplatValue.getZExtValue() >= EltSize)) in performDSPShiftCombine() 867 DAG.getConstant(SplatValue.getZExtValue(), DL, MVT::i32)); in performDSPShiftCombine() [all …]
|
/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-project/llvm/lib/CodeGen/GlobalISel/ |
D | Utils.cpp | 662 int SplatValue = *FirstDefinedIdx; in getSplatIndex() local 664 [&SplatValue](int Elt) { return Elt >= 0 && Elt != SplatValue; })) in getSplatIndex() 667 return SplatValue; in getSplatIndex() 678 int64_t SplatValue) { in isBuildVectorConstantSplat() argument 685 if (!mi_match(Element, MRI, m_SpecificICst(SplatValue))) in isBuildVectorConstantSplat()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 496 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in isLegalStore() local 504 if (!UnorderedAtomic && HasMemset && SplatValue && !DisableLIRP::Memset && in isLegalStore() 507 CurLoop->isLoopInvariant(SplatValue)) { in isLegalStore() 824 Value *SplatValue = MSI->getValue(); in processLoopMemSet() local 825 if (!SplatValue || !CurLoop->isLoopInvariant(SplatValue)) in processLoopMemSet() 833 SplatValue, MSI, MSIs, Ev, BECount, NegStride, /*IsLoopMemset=*/true); in processLoopMemSet() 927 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in processLoopStridedStore() local 930 if (!SplatValue) in processLoopStridedStore() 933 assert((SplatValue || PatternValue) && in processLoopStridedStore() 997 if (SplatValue) { in processLoopStridedStore() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 455 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in isLegalStore() local 463 if (!UnorderedAtomic && HasMemset && SplatValue && in isLegalStore() 466 CurLoop->isLoopInvariant(SplatValue)) { in isLegalStore() 783 Value *SplatValue = MSI->getValue(); in processLoopMemSet() local 784 if (!SplatValue || !CurLoop->isLoopInvariant(SplatValue)) in processLoopMemSet() 792 SplatValue, MSI, MSIs, Ev, BECount, NegStride, /*IsLoopMemset=*/true); in processLoopMemSet() 886 Value *SplatValue = isBytewiseValue(StoredVal, *DL); in processLoopStridedStore() local 889 if (!SplatValue) in processLoopStridedStore() 892 assert((SplatValue || PatternValue) && in processLoopStridedStore() 948 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-project/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyISelLowering.cpp | 1648 SDValue SplatValue; in LowerBUILD_VECTOR() local 1650 std::tie(SplatValue, NumSplatLanes) = GetMostCommon(SplatValueCounts); in LowerBUILD_VECTOR() 1742 if ((SplattedLoad = dyn_cast<LoadSDNode>(SplatValue)) && in LowerBUILD_VECTOR() 1750 Result = DAG.getSplatBuildVector(VecT, DL, SplatValue); in LowerBUILD_VECTOR() 1752 IsLaneConstructed = [&SplatValue](size_t _, const SDValue &Lane) { in LowerBUILD_VECTOR() 1753 return Lane == SplatValue; in LowerBUILD_VECTOR()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyISelLowering.cpp | 1398 SDValue SplatValue; in LowerBUILD_VECTOR() local 1400 std::tie(SplatValue, NumSplatLanes) = GetMostCommon(SplatValueCounts); in LowerBUILD_VECTOR() 1444 (SplattedLoad = dyn_cast<LoadSDNode>(SplatValue)) && in LowerBUILD_VECTOR() 1452 Result = DAG.getSplatBuildVector(VecT, DL, SplatValue); in LowerBUILD_VECTOR() 1455 return Lane == SplatValue; in LowerBUILD_VECTOR()
|
/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-10.0/llvm/include/llvm/CodeGen/ |
D | SelectionDAGNodes.h | 89 bool isConstantSplatVector(const SDNode *N, APInt &SplatValue); 1930 bool isConstantSplat(APInt &SplatValue, APInt &SplatUndef,
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | SelectionDAGNodes.h | 89 bool isConstantSplatVector(const SDNode *N, APInt &SplatValue); 1918 bool isConstantSplat(APInt &SplatValue, APInt &SplatUndef,
|
/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-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 9506 bool BuildVectorSDNode::isConstantSplat(APInt &SplatValue, APInt &SplatUndef, in isConstantSplat() argument 9519 SplatValue = APInt(VecWidth, 0); in isConstantSplat() 9538 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat() 9540 SplatValue.insertBits(CN->getValueAPF().bitcastToAPInt(), BitPos); in isConstantSplat() 9552 APInt HighValue = SplatValue.lshr(HalfSize).trunc(HalfSize); in isConstantSplat() 9553 APInt LowValue = SplatValue.trunc(HalfSize); in isConstantSplat() 9562 SplatValue = HighValue | LowValue; in isConstantSplat()
|
D | TargetLowering.cpp | 4956 auto SplatValue = llvm::find_if_not(Values, Predicate); in turnVectorIntoSplatVector() local 4957 if (SplatValue != Values.end()) { in turnVectorIntoSplatVector() 4959 if (llvm::all_of(Values, [Predicate, SplatValue](SDValue Value) { in turnVectorIntoSplatVector() 4960 return Value == *SplatValue || Predicate(Value); in turnVectorIntoSplatVector() 4962 Replacement = *SplatValue; in turnVectorIntoSplatVector()
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 9765 bool BuildVectorSDNode::isConstantSplat(APInt &SplatValue, APInt &SplatUndef, in isConstantSplat() argument 9778 SplatValue = APInt(VecWidth, 0); in isConstantSplat() 9797 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat() 9799 SplatValue.insertBits(CN->getValueAPF().bitcastToAPInt(), BitPos); in isConstantSplat() 9811 APInt HighValue = SplatValue.lshr(HalfSize).trunc(HalfSize); in isConstantSplat() 9812 APInt LowValue = SplatValue.trunc(HalfSize); in isConstantSplat() 9821 SplatValue = HighValue | LowValue; in isConstantSplat()
|
D | TargetLowering.cpp | 5250 auto SplatValue = llvm::find_if_not(Values, Predicate); in turnVectorIntoSplatVector() local 5251 if (SplatValue != Values.end()) { in turnVectorIntoSplatVector() 5253 if (llvm::all_of(Values, [Predicate, SplatValue](SDValue Value) { in turnVectorIntoSplatVector() 5254 return Value == *SplatValue || Predicate(Value); in turnVectorIntoSplatVector() 5256 Replacement = *SplatValue; in turnVectorIntoSplatVector()
|