Home
last modified time | relevance | path

Searched refs:BVN (Results 1 – 25 of 29) sorted by relevance

12

/external/llvm-project/llvm/lib/Target/Mips/
DMipsISelDAGToDAG.cpp232 auto *BVN = dyn_cast<BuildVectorSDNode>(C); in selectVecAddAsVecSubIfProfitable() local
233 if (!BVN) in selectVecAddAsVecSubIfProfitable()
240 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in selectVecAddAsVecSubIfProfitable()
DMipsSEISelDAGToDAG.cpp1056 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()
DMipsSEISelLowering.cpp560 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/
DMipsISelDAGToDAG.cpp232 auto *BVN = dyn_cast<BuildVectorSDNode>(C); in selectVecAddAsVecSubIfProfitable() local
233 if (!BVN) in selectVecAddAsVecSubIfProfitable()
240 if (!BVN->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs, in selectVecAddAsVecSubIfProfitable()
DMipsSEISelDAGToDAG.cpp983 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()
DMipsSEISelLowering.cpp560 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/
DHexagonISelLowering.cpp2324 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/
DMipsSEISelDAGToDAG.cpp901 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()
DMipsSEISelLowering.cpp626 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/
DSystemZISelLowering.cpp4003 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/
DSystemZISelLowering.cpp797 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 …]
DSystemZISelLowering.h697 SystemZVectorConstantInfo(BuildVectorSDNode *BVN);
DSystemZISelDAGToDAG.cpp1590 auto *BVN = cast<BuildVectorSDNode>(Node); in Select() local
1591 SystemZVectorConstantInfo VCI(BVN); in Select()
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp5730 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/
DSystemZISelLowering.cpp811 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 …]
DSystemZISelLowering.h719 SystemZVectorConstantInfo(BuildVectorSDNode *BVN);
DSystemZISelDAGToDAG.cpp1635 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/
DAArch64ISelLowering.cpp7437 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/
DARMISelLowering.cpp5649 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/
DAArch64ISelLowering.cpp8897 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/
DARMISelLowering.cpp6041 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/
DARMISelLowering.cpp6234 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/
DPPCISelLowering.cpp7089 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/
DPPCISelLowering.cpp8603 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/
DHexagonISelLowering.cpp2098 if (auto *BVN = dyn_cast<BuildVectorSDNode>(Op.getOperand(1).getNode())) { in getVectorShiftByInt() local
2099 if (SDValue S = BVN->getSplatValue()) { in getVectorShiftByInt()

12