Home
last modified time | relevance | path

Searched refs:DemandedElts (Results 1 – 25 of 35) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp691 APInt DemandedElts = DemandedMask.zextOrTrunc(ArgWidth); in SimplifyDemandedUseBits() local
692 if (DemandedElts.isNullValue()) in SimplifyDemandedUseBits()
925 APInt DemandedElts, in simplifyAMDGCNMemoryIntrinsicDemanded() argument
936 DemandedElts = (1 << DemandedElts.getActiveBits()) - 1; in simplifyAMDGCNMemoryIntrinsicDemanded()
945 DemandedElts &= (1 << countPopulation(DMaskVal)) - 1; in simplifyAMDGCNMemoryIntrinsicDemanded()
952 if (!!DemandedElts[OrigLoadIdx]) in simplifyAMDGCNMemoryIntrinsicDemanded()
963 unsigned NewNumElts = PowerOf2Ceil(DemandedElts.countPopulation()); in simplifyAMDGCNMemoryIntrinsicDemanded()
967 if (NewNumElts >= VWidth && DemandedElts.isMask()) { in simplifyAMDGCNMemoryIntrinsicDemanded()
1009 DemandedElts.countTrailingZeros()); in simplifyAMDGCNMemoryIntrinsicDemanded()
1015 if (!!DemandedElts[OrigLoadIdx]) in simplifyAMDGCNMemoryIntrinsicDemanded()
[all …]
DInstCombineInternal.h765 APInt DemandedElts,
768 Value *SimplifyDemandedVectorElts(Value *V, APInt DemandedElts,
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp790 APInt DemandedElts = DemandedMask.zextOrTrunc(ArgWidth); in SimplifyDemandedUseBits() local
791 if (DemandedElts == 0) in SimplifyDemandedUseBits()
906 Value *InstCombiner::SimplifyDemandedVectorElts(Value *V, APInt DemandedElts, in SimplifyDemandedVectorElts() argument
911 assert((DemandedElts & ~EltMask) == 0 && "Invalid DemandedElts!"); in SimplifyDemandedVectorElts()
919 if (DemandedElts == 0) { // If nothing is demanded, provide undef. in SimplifyDemandedVectorElts()
930 if (DemandedElts.isAllOnesValue()) in SimplifyDemandedVectorElts()
938 if (!DemandedElts[i]) { // If not demanded, set to undef. in SimplifyDemandedVectorElts()
976 DemandedElts = EltMask; in SimplifyDemandedVectorElts()
995 TmpV = SimplifyDemandedVectorElts(I->getOperand(0), DemandedElts, in SimplifyDemandedVectorElts()
1004 if (IdxNo >= VWidth || !DemandedElts[IdxNo]) { in SimplifyDemandedVectorElts()
[all …]
DInstCombineInternal.h536 Value *SimplifyDemandedVectorElts(Value *V, APInt DemandedElts,
DInstCombineCalls.cpp1323 APInt DemandedElts = APInt::getLowBitsSet(Width, DemandedWidth); in visitCallInst() local
1324 return SimplifyDemandedVectorElts(Op, DemandedElts, UndefElts); in visitCallInst()
1329 APInt DemandedElts = APInt::getHighBitsSet(Width, DemandedWidth); in visitCallInst() local
1330 return SimplifyDemandedVectorElts(Op, DemandedElts, UndefElts); in visitCallInst()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp806 Value *InstCombiner::SimplifyDemandedVectorElts(Value *V, APInt DemandedElts, in SimplifyDemandedVectorElts() argument
811 assert((DemandedElts & ~EltMask) == 0 && "Invalid DemandedElts!"); in SimplifyDemandedVectorElts()
819 if (DemandedElts == 0) { // If nothing is demanded, provide undef. in SimplifyDemandedVectorElts()
831 if (!DemandedElts[i]) { // If not demanded, set to undef. in SimplifyDemandedVectorElts()
852 if (DemandedElts.isAllOnesValue()) in SimplifyDemandedVectorElts()
860 Constant *Elt = DemandedElts[i] ? Zero : Undef; in SimplifyDemandedVectorElts()
863 UndefElts = DemandedElts ^ EltMask; in SimplifyDemandedVectorElts()
883 DemandedElts = EltMask; in SimplifyDemandedVectorElts()
902 TmpV = SimplifyDemandedVectorElts(I->getOperand(0), DemandedElts, in SimplifyDemandedVectorElts()
911 if (IdxNo >= VWidth || !DemandedElts[IdxNo]) { in SimplifyDemandedVectorElts()
[all …]
DInstCombine.h330 Value *SimplifyDemandedVectorElts(Value *V, APInt DemandedElts,
DInstCombineCalls.cpp590 APInt DemandedElts(VWidth, 1); in visitCallInst() local
593 DemandedElts, UndefElts)) { in visitCallInst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp2162 const APInt &DemandedElts) { in isConstOrDemandedConstSplat() argument
2170 assert(DemandedElts.getBitWidth() == NumElts && "Unexpected vector size"); in isConstOrDemandedConstSplat()
2172 if (!DemandedElts[i]) in isConstOrDemandedConstSplat()
2201 APInt DemandedElts = VT.isVector() in computeKnownBits() local
2204 computeKnownBits(Op, Known, DemandedElts, Depth); in computeKnownBits()
2211 const APInt &DemandedElts, in computeKnownBits() argument
2234 unsigned NumElts = DemandedElts.getBitWidth(); in computeKnownBits()
2236 if (!DemandedElts) in computeKnownBits()
2247 if (!DemandedElts[i]) in computeKnownBits()
2277 if (!DemandedElts[i]) in computeKnownBits()
[all …]
DTargetLowering.cpp1284 const APInt &DemandedElts, in SimplifyDemandedVectorElts() argument
1293 SimplifyDemandedVectorElts(Op, DemandedElts, KnownUndef, KnownZero, TLO); in SimplifyDemandedVectorElts()
1304 APInt DemandedElts = DemandedEltMask; in SimplifyDemandedVectorElts() local
1305 unsigned NumElts = DemandedElts.getBitWidth(); in SimplifyDemandedVectorElts()
1320 DemandedElts.setAllBits(); in SimplifyDemandedVectorElts()
1323 if (DemandedElts == 0) { in SimplifyDemandedVectorElts()
1337 if (!DemandedElts[0]) { in SimplifyDemandedVectorElts()
1356 return SimplifyDemandedVectorElts(Src, DemandedElts, KnownUndef, in SimplifyDemandedVectorElts()
1367 if (DemandedElts[i]) in SimplifyDemandedVectorElts()
1392 if (DemandedElts[i]) in SimplifyDemandedVectorElts()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/
Dextract-subvector-equal-length.ll5 ; with DemandedElts already as wide as the source vector.
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Lanai/
DLanaiISelLowering.h109 const APInt &DemandedElts,
DLanaiISelLowering.cpp1489 const SDValue Op, KnownBits &Known, const APInt &DemandedElts, in computeKnownBitsForTargetNode() argument
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.h241 const APInt &DemandedElts,
245 unsigned ComputeNumSignBitsForTargetNode(SDValue Op, const APInt &DemandedElts,
DSIISelLowering.h320 const APInt &DemandedElts,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZISelLowering.h511 const APInt &DemandedElts,
517 const APInt &DemandedElts,
DSystemZISelLowering.cpp5691 static APInt getDemandedSrcElements(SDValue Op, const APInt &DemandedElts, in getDemandedSrcElements() argument
5713 SrcDemE = DemandedElts; in getDemandedSrcElements()
5726 SrcDemE.insertBits(DemandedElts, 0); in getDemandedSrcElements()
5735 SrcDemE.insertBits(DemandedElts, NumElts); in getDemandedSrcElements()
5740 if (!DemandedElts[OpNo - 1]) in getDemandedSrcElements()
5756 APInt DemEls = DemandedElts.trunc(NumSrc0Els); in getDemandedSrcElements()
5759 APInt DemEls = DemandedElts.lshr(NumSrc0Els); in getDemandedSrcElements()
5778 SrcDemE = DemandedElts; in getDemandedSrcElements()
5789 const APInt &DemandedElts, in computeKnownBitsBinOp() argument
5792 APInt Src0DemE = getDemandedSrcElements(Op, DemandedElts, OpNo); in computeKnownBitsBinOp()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/XCore/
DXCoreISelLowering.h205 const APInt &DemandedElts,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/
DSparcISelLowering.h70 const APInt &DemandedElts,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DTargetLowering.h2830 bool SimplifyDemandedVectorElts(SDValue Op, const APInt &DemandedElts,
2840 const APInt &DemandedElts,
2849 const APInt &DemandedElts,
2858 const APInt &DemandedElts,
2868 SDValue Op, const APInt &DemandedElts, APInt &KnownUndef,
DSelectionDAG.h1439 void computeKnownBits(SDValue Op, KnownBits &Known, const APInt &DemandedElts,
1477 unsigned ComputeNumSignBits(SDValue Op, const APInt &DemandedElts,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ISelLowering.h859 const APInt &DemandedElts,
865 const APInt &DemandedElts,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64ISelLowering.h254 const APInt &DemandedElts,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMISelLowering.h388 const APInt &DemandedElts,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCISelLowering.h675 const APInt &DemandedElts,

12