/external/llvm-project/llvm/lib/Target/Mips/ |
D | MipsISelDAGToDAG.cpp | 232 auto *BVN = dyn_cast<BuildVectorSDNode>(C); in selectVecAddAsVecSubIfProfitable() local 233 if (!BVN) in selectVecAddAsVecSubIfProfitable() 240 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in selectVecAddAsVecSubIfProfitable()
|
D | MipsSEISelDAGToDAG.cpp | 1056 BuildVectorSDNode *BVN = cast<BuildVectorSDNode>(Node); in trySelect() local 1061 EVT ResVecTy = BVN->getValueType(0); in trySelect() 1064 if (!Subtarget->hasMSA() || !BVN->getValueType(0).is128BitVector()) in trySelect() 1067 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in trySelect()
|
D | MipsSEISelLowering.cpp | 560 BuildVectorSDNode *BVN = dyn_cast<BuildVectorSDNode>(N); in isVectorAllOnes() local 562 if (!BVN) in isVectorAllOnes() 571 if (BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs)) in isVectorAllOnes()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/ |
D | MipsISelDAGToDAG.cpp | 232 auto *BVN = dyn_cast<BuildVectorSDNode>(C); in selectVecAddAsVecSubIfProfitable() local 233 if (!BVN) in selectVecAddAsVecSubIfProfitable() 240 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in selectVecAddAsVecSubIfProfitable()
|
D | MipsSEISelDAGToDAG.cpp | 983 BuildVectorSDNode *BVN = cast<BuildVectorSDNode>(Node); in trySelect() local 988 EVT ResVecTy = BVN->getValueType(0); in trySelect() 991 if (!Subtarget->hasMSA() || !BVN->getValueType(0).is128BitVector()) in trySelect() 994 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in trySelect()
|
D | MipsSEISelLowering.cpp | 560 BuildVectorSDNode *BVN = dyn_cast<BuildVectorSDNode>(N); in isVectorAllOnes() local 562 if (!BVN) in isVectorAllOnes() 571 if (BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs)) in isVectorAllOnes()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonISelLowering.cpp | 2324 static bool isCommonSplatElement(BuildVectorSDNode *BVN) { in isCommonSplatElement() argument 2325 unsigned NElts = BVN->getNumOperands(); in isCommonSplatElement() 2326 SDValue V0 = BVN->getOperand(0); in isCommonSplatElement() 2329 if (BVN->getOperand(i) != V0) in isCommonSplatElement() 2339 BuildVectorSDNode *BVN = 0; in LowerVECTOR_SHIFT() local 2346 if ((BVN = dyn_cast<BuildVectorSDNode>(V1.getNode())) && in LowerVECTOR_SHIFT() 2347 isCommonSplatElement(BVN)) in LowerVECTOR_SHIFT() 2349 else if ((BVN = dyn_cast<BuildVectorSDNode>(V2.getNode())) && in LowerVECTOR_SHIFT() 2350 isCommonSplatElement(BVN)) in LowerVECTOR_SHIFT() 2355 SDValue CommonSplat = BVN->getOperand(0); in LowerVECTOR_SHIFT() [all …]
|
/external/llvm/lib/Target/Mips/ |
D | MipsSEISelDAGToDAG.cpp | 901 BuildVectorSDNode *BVN = cast<BuildVectorSDNode>(Node); in trySelect() local 906 EVT ResVecTy = BVN->getValueType(0); in trySelect() 909 if (!Subtarget->hasMSA() || !BVN->getValueType(0).is128BitVector()) in trySelect() 912 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, in trySelect()
|
D | MipsSEISelLowering.cpp | 626 BuildVectorSDNode *BVN = dyn_cast<BuildVectorSDNode>(N); in isVectorAllOnes() local 628 if (!BVN) in isVectorAllOnes() 637 if (BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs)) in isVectorAllOnes()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZISelLowering.cpp | 4003 static bool tryBuildVectorByteMask(BuildVectorSDNode *BVN, uint64_t &Mask) { in tryBuildVectorByteMask() argument 4004 EVT ElemVT = BVN->getValueType(0).getVectorElementType(); in tryBuildVectorByteMask() 4006 for (unsigned I = 0, E = BVN->getNumOperands(); I != E; ++I) { in tryBuildVectorByteMask() 4007 SDValue Op = BVN->getOperand(I); in tryBuildVectorByteMask() 4073 BuildVectorSDNode *BVN) { in tryBuildVectorShuffle() argument 4074 EVT VT = BVN->getValueType(0); in tryBuildVectorShuffle() 4085 SDValue Op = BVN->getOperand(I); in tryBuildVectorShuffle() 4097 ResidueOps.push_back(BVN->getOperand(I)); in tryBuildVectorShuffle() 4111 Op = DAG.getBuildVector(VT, SDLoc(BVN), ResidueOps); in tryBuildVectorShuffle() 4116 return GS.getNode(DAG, SDLoc(BVN)); in tryBuildVectorShuffle() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZISelLowering.cpp | 797 SystemZVectorConstantInfo::SystemZVectorConstantInfo(BuildVectorSDNode *BVN) { in SystemZVectorConstantInfo() argument 798 assert(BVN->isConstant() && "Expected a constant BUILD_VECTOR"); in SystemZVectorConstantInfo() 802 BVN->isConstantSplat(IntBits, SplatUndef, SplatBitSize, HasAnyUndefs, 128, in SystemZVectorConstantInfo() 806 BVN->isConstantSplat(SplatBits, SplatUndef, SplatBitSize, HasAnyUndefs, 8, in SystemZVectorConstantInfo() 4686 BuildVectorSDNode *BVN) { in tryBuildVectorShuffle() argument 4687 EVT VT = BVN->getValueType(0); in tryBuildVectorShuffle() 4698 SDValue Op = BVN->getOperand(I); in tryBuildVectorShuffle() 4712 ResidueOps.push_back(BVN->getOperand(I)); in tryBuildVectorShuffle() 4726 Op = DAG.getBuildVector(VT, SDLoc(BVN), ResidueOps); in tryBuildVectorShuffle() 4731 return GS.getNode(DAG, SDLoc(BVN)); in tryBuildVectorShuffle() [all …]
|
D | SystemZISelLowering.h | 697 SystemZVectorConstantInfo(BuildVectorSDNode *BVN);
|
D | SystemZISelDAGToDAG.cpp | 1590 auto *BVN = cast<BuildVectorSDNode>(Node); in Select() local 1591 SystemZVectorConstantInfo VCI(BVN); in Select()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.cpp | 5730 static bool resolveBuildVector(BuildVectorSDNode *BVN, APInt &CnstBits, in resolveBuildVector() argument 5732 EVT VT = BVN->getValueType(0); in resolveBuildVector() 5736 if (BVN->isConstantSplat(SplatBits, SplatUndef, SplatBitSize, HasAnyUndefs)) { in resolveBuildVector() 5754 BuildVectorSDNode *BVN = in LowerVectorAND() local 5760 if (!BVN) in LowerVectorAND() 5765 if (resolveBuildVector(BVN, CnstBits, UndefBits)) { in LowerVectorAND() 5952 BuildVectorSDNode *BVN = in LowerVectorOR() local 5959 if (!BVN) { in LowerVectorOR() 5961 BVN = dyn_cast<BuildVectorSDNode>(Op.getOperand(1).getNode()); in LowerVectorOR() 5963 if (!BVN) in LowerVectorOR() [all …]
|
/external/llvm-project/llvm/lib/Target/SystemZ/ |
D | SystemZISelLowering.cpp | 811 SystemZVectorConstantInfo::SystemZVectorConstantInfo(BuildVectorSDNode *BVN) { in SystemZVectorConstantInfo() argument 812 assert(BVN->isConstant() && "Expected a constant BUILD_VECTOR"); in SystemZVectorConstantInfo() 816 BVN->isConstantSplat(IntBits, SplatUndef, SplatBitSize, HasAnyUndefs, 128, in SystemZVectorConstantInfo() 820 BVN->isConstantSplat(SplatBits, SplatUndef, SplatBitSize, HasAnyUndefs, 8, in SystemZVectorConstantInfo() 4915 BuildVectorSDNode *BVN) { in tryBuildVectorShuffle() argument 4916 EVT VT = BVN->getValueType(0); in tryBuildVectorShuffle() 4927 SDValue Op = BVN->getOperand(I); in tryBuildVectorShuffle() 4941 ResidueOps.push_back(BVN->getOperand(I)); in tryBuildVectorShuffle() 4955 Op = DAG.getBuildVector(VT, SDLoc(BVN), ResidueOps); in tryBuildVectorShuffle() 4960 return GS.getNode(DAG, SDLoc(BVN)); in tryBuildVectorShuffle() [all …]
|
D | SystemZISelLowering.h | 719 SystemZVectorConstantInfo(BuildVectorSDNode *BVN);
|
D | SystemZISelDAGToDAG.cpp | 1635 auto *BVN = cast<BuildVectorSDNode>(Node); in Select() local 1636 SystemZVectorConstantInfo VCI(BVN); in Select()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.cpp | 7437 static bool resolveBuildVector(BuildVectorSDNode *BVN, APInt &CnstBits, in resolveBuildVector() argument 7439 EVT VT = BVN->getValueType(0); in resolveBuildVector() 7443 if (BVN->isConstantSplat(SplatBits, SplatUndef, SplatBitSize, HasAnyUndefs)) { in resolveBuildVector() 7761 BuildVectorSDNode *BVN = in LowerVectorOR() local 7763 if (!BVN) { in LowerVectorOR() 7766 BVN = dyn_cast<BuildVectorSDNode>(Op.getOperand(0).getNode()); in LowerVectorOR() 7768 if (!BVN) in LowerVectorOR() 7773 if (resolveBuildVector(BVN, DefBits, UndefBits)) { in LowerVectorOR() 7831 BuildVectorSDNode *BVN = cast<BuildVectorSDNode>(Op.getNode()); in ConstantBuildVector() local 7832 if (resolveBuildVector(BVN, DefBits, UndefBits)) { in ConstantBuildVector() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 5649 BuildVectorSDNode *BVN = cast<BuildVectorSDNode>(Op.getNode()); in LowerBUILD_VECTOR() local 5656 if (BVN->isConstantSplat(SplatBits, SplatUndef, SplatBitSize, HasAnyUndefs)) { in LowerBUILD_VECTOR() 6441 SDNode *BVN = N->getOperand(0).getNode(); in isExtendedBUILD_VECTOR() local 6442 if (BVN->getValueType(0) != MVT::v4i32 || in isExtendedBUILD_VECTOR() 6443 BVN->getOpcode() != ISD::BUILD_VECTOR) in isExtendedBUILD_VECTOR() 6447 ConstantSDNode *Lo0 = dyn_cast<ConstantSDNode>(BVN->getOperand(LoElt)); in isExtendedBUILD_VECTOR() 6448 ConstantSDNode *Hi0 = dyn_cast<ConstantSDNode>(BVN->getOperand(HiElt)); in isExtendedBUILD_VECTOR() 6449 ConstantSDNode *Lo1 = dyn_cast<ConstantSDNode>(BVN->getOperand(LoElt+2)); in isExtendedBUILD_VECTOR() 6450 ConstantSDNode *Hi1 = dyn_cast<ConstantSDNode>(BVN->getOperand(HiElt+2)); in isExtendedBUILD_VECTOR() 6587 SDNode *BVN = N->getOperand(0).getNode(); in SkipExtensionForVMULL() local [all …]
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.cpp | 8897 static bool resolveBuildVector(BuildVectorSDNode *BVN, APInt &CnstBits, in resolveBuildVector() argument 8899 EVT VT = BVN->getValueType(0); in resolveBuildVector() 8903 if (BVN->isConstantSplat(SplatBits, SplatUndef, SplatBitSize, HasAnyUndefs)) { in resolveBuildVector() 9245 BuildVectorSDNode *BVN = in LowerVectorOR() local 9247 if (!BVN) { in LowerVectorOR() 9250 BVN = dyn_cast<BuildVectorSDNode>(Op.getOperand(0).getNode()); in LowerVectorOR() 9252 if (!BVN) in LowerVectorOR() 9257 if (resolveBuildVector(BVN, DefBits, UndefBits)) { in LowerVectorOR() 9315 BuildVectorSDNode *BVN = cast<BuildVectorSDNode>(Op.getNode()); in ConstantBuildVector() local 9316 if (resolveBuildVector(BVN, DefBits, UndefBits)) { in ConstantBuildVector() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 6041 BuildVectorSDNode *BVN = dyn_cast<BuildVectorSDNode>(Op.getNode()); in getVShiftImm() local 6045 if (!BVN || in getVShiftImm() 6046 !BVN->isConstantSplat(SplatBits, SplatUndef, SplatBitSize, HasAnyUndefs, in getVShiftImm() 7151 BuildVectorSDNode *BVN = cast<BuildVectorSDNode>(Op.getNode()); in LowerBUILD_VECTOR() local 7161 if (BVN->isConstantSplat(SplatBits, SplatUndef, SplatBitSize, HasAnyUndefs)) { in LowerBUILD_VECTOR() 8365 SDNode *BVN = N->getOperand(0).getNode(); in isExtendedBUILD_VECTOR() local 8366 if (BVN->getValueType(0) != MVT::v4i32 || in isExtendedBUILD_VECTOR() 8367 BVN->getOpcode() != ISD::BUILD_VECTOR) in isExtendedBUILD_VECTOR() 8371 ConstantSDNode *Lo0 = dyn_cast<ConstantSDNode>(BVN->getOperand(LoElt)); in isExtendedBUILD_VECTOR() 8372 ConstantSDNode *Hi0 = dyn_cast<ConstantSDNode>(BVN->getOperand(HiElt)); in isExtendedBUILD_VECTOR() [all …]
|
/external/llvm-project/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 6234 BuildVectorSDNode *BVN = dyn_cast<BuildVectorSDNode>(Op.getNode()); in getVShiftImm() local 6238 if (!BVN || in getVShiftImm() 6239 !BVN->isConstantSplat(SplatBits, SplatUndef, SplatBitSize, HasAnyUndefs, in getVShiftImm() 7450 BuildVectorSDNode *BVN = cast<BuildVectorSDNode>(Op.getNode()); in LowerBUILD_VECTOR() local 7460 if (BVN->isConstantSplat(SplatBits, SplatUndef, SplatBitSize, HasAnyUndefs)) { in LowerBUILD_VECTOR() 8671 SDNode *BVN = N->getOperand(0).getNode(); in isExtendedBUILD_VECTOR() local 8672 if (BVN->getValueType(0) != MVT::v4i32 || in isExtendedBUILD_VECTOR() 8673 BVN->getOpcode() != ISD::BUILD_VECTOR) in isExtendedBUILD_VECTOR() 8677 ConstantSDNode *Lo0 = dyn_cast<ConstantSDNode>(BVN->getOperand(LoElt)); in isExtendedBUILD_VECTOR() 8678 ConstantSDNode *Hi0 = dyn_cast<ConstantSDNode>(BVN->getOperand(HiElt)); in isExtendedBUILD_VECTOR() [all …]
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCISelLowering.cpp | 7089 BuildVectorSDNode *BVN = dyn_cast<BuildVectorSDNode>(Op.getNode()); in LowerBUILD_VECTOR() local 7090 assert(BVN && "Expected a BuildVectorSDNode in LowerBUILD_VECTOR"); in LowerBUILD_VECTOR() 7103 assert(BVN->getNumOperands() == 4 && in LowerBUILD_VECTOR() 7108 if (BVN->getOperand(i).isUndef()) continue; in LowerBUILD_VECTOR() 7109 if (!isa<ConstantSDNode>(BVN->getOperand(i))) { in LowerBUILD_VECTOR() 7123 if (BVN->getOperand(i).isUndef()) in LowerBUILD_VECTOR() 7125 else if (isNullConstant(BVN->getOperand(i))) in LowerBUILD_VECTOR() 7144 if (BVN->getOperand(i).isUndef()) continue; in LowerBUILD_VECTOR() 7150 unsigned StoreSize = BVN->getOperand(i).getValueType().getStoreSize(); in LowerBUILD_VECTOR() 7153 BVN->getOperand(i), Idx, in LowerBUILD_VECTOR() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCISelLowering.cpp | 8603 BuildVectorSDNode *BVN = dyn_cast<BuildVectorSDNode>(Op.getNode()); in LowerBUILD_VECTOR() local 8604 assert(BVN && "Expected a BuildVectorSDNode in LowerBUILD_VECTOR"); in LowerBUILD_VECTOR() 8617 assert(BVN->getNumOperands() == 4 && in LowerBUILD_VECTOR() 8622 if (BVN->getOperand(i).isUndef()) continue; in LowerBUILD_VECTOR() 8623 if (!isa<ConstantSDNode>(BVN->getOperand(i))) { in LowerBUILD_VECTOR() 8637 if (BVN->getOperand(i).isUndef()) in LowerBUILD_VECTOR() 8639 else if (isNullConstant(BVN->getOperand(i))) in LowerBUILD_VECTOR() 8658 if (BVN->getOperand(i).isUndef()) continue; in LowerBUILD_VECTOR() 8664 unsigned StoreSize = BVN->getOperand(i).getValueType().getStoreSize(); in LowerBUILD_VECTOR() 8667 DAG.getTruncStore(DAG.getEntryNode(), dl, BVN->getOperand(i), Idx, in LowerBUILD_VECTOR() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonISelLowering.cpp | 2098 if (auto *BVN = dyn_cast<BuildVectorSDNode>(Op.getOperand(1).getNode())) { in getVectorShiftByInt() local 2099 if (SDValue S = BVN->getSplatValue()) { in getVectorShiftByInt()
|