Home
last modified time | relevance | path

Searched refs:DemandedMask (Results 1 – 22 of 22) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp55 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() local
57 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, in SimplifyDemandedInstructionBits()
68 bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask, in SimplifyDemandedBits() argument
71 Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask, in SimplifyDemandedBits()
100 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits() argument
105 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits()
118 KnownOne = CI->getValue() & DemandedMask; in SimplifyDemandedUseBits()
119 KnownZero = ~KnownOne & DemandedMask; in SimplifyDemandedUseBits()
125 KnownZero = DemandedMask; in SimplifyDemandedUseBits()
131 if (DemandedMask == 0) { // Not demanding any bits from V. in SimplifyDemandedUseBits()
[all …]
DInstCombineVectorOps.cpp162 APInt DemandedMask(VectorWidth, 0); in visitExtractElementInst() local
163 DemandedMask.setBit(IndexVal); in visitExtractElementInst()
165 DemandedMask, UndefElts)) { in visitExtractElementInst()
DInstCombine.h318 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask,
321 bool SimplifyDemandedBits(Use &U, APInt DemandedMask,
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp56 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() local
58 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, KnownZero, KnownOne, in SimplifyDemandedInstructionBits()
69 bool InstCombiner::SimplifyDemandedBits(Use &U, const APInt &DemandedMask, in SimplifyDemandedBits() argument
73 Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask, KnownZero, in SimplifyDemandedBits()
103 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits() argument
109 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits()
119 KnownOne = CI->getValue() & DemandedMask; in SimplifyDemandedUseBits()
120 KnownZero = ~KnownOne & DemandedMask; in SimplifyDemandedUseBits()
126 KnownZero = DemandedMask; in SimplifyDemandedUseBits()
132 if (DemandedMask == 0) { // Not demanding any bits from V. in SimplifyDemandedUseBits()
[all …]
DInstCombineInternal.h521 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero,
524 bool SimplifyDemandedBits(Use &U, const APInt &DemandedMask, APInt &KnownZero,
529 const APInt &DemandedMask, APInt &KnownZero,
DInstCombineVectorOps.cpp171 APInt DemandedMask(VectorWidth, 0); in visitExtractElementInst() local
172 DemandedMask.setBit(IndexVal); in visitExtractElementInst()
173 if (Value *V = SimplifyDemandedVectorElts(EI.getOperand(0), DemandedMask, in visitExtractElementInst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp68 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() local
70 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, Known, in SimplifyDemandedInstructionBits()
82 const APInt &DemandedMask, in SimplifyDemandedBits() argument
86 Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask, Known, in SimplifyDemandedBits()
117 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits() argument
122 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits()
135 if (DemandedMask.isNullValue()) // Not demanding any bits from V. in SimplifyDemandedUseBits()
151 return SimplifyMultipleUseDemandedBits(I, DemandedMask, Known, Depth, CxtI); in SimplifyDemandedUseBits()
160 DemandedMask.setAllBits(); in SimplifyDemandedUseBits()
168 if (SimplifyDemandedBits(I, 1, DemandedMask, RHSKnown, Depth + 1) || in SimplifyDemandedUseBits()
[all …]
DInstCombineInternal.h740 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, KnownBits &Known,
743 const APInt &DemandedMask, KnownBits &Known,
750 const APInt &DemandedMask,
758 const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known);
DInstCombineVectorOps.cpp197 APInt DemandedMask(VectorWidth, 0); in visitExtractElementInst() local
198 DemandedMask.setBit(IndexVal); in visitExtractElementInst()
199 if (Value *V = SimplifyDemandedVectorElts(EI.getOperand(0), DemandedMask, in visitExtractElementInst()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp1617 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 8); in PerformDAGCombine() local
1622 if (TLO.ShrinkDemandedConstant(OutVal, DemandedMask) || in PerformDAGCombine()
1623 TLI.SimplifyDemandedBits(OutVal, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine()
1634 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine() local
1639 if (TLO.ShrinkDemandedConstant(Time, DemandedMask) || in PerformDAGCombine()
1640 TLI.SimplifyDemandedBits(Time, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp1599 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 8); in PerformDAGCombine() local
1604 if (TLI.ShrinkDemandedConstant(OutVal, DemandedMask, TLO) || in PerformDAGCombine()
1605 TLI.SimplifyDemandedBits(OutVal, DemandedMask, Known, TLO)) in PerformDAGCombine()
1615 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine() local
1620 if (TLI.ShrinkDemandedConstant(Time, DemandedMask, TLO) || in PerformDAGCombine()
1621 TLI.SimplifyDemandedBits(Time, DemandedMask, Known, TLO)) in PerformDAGCombine()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp1207 const APInt &DemandedMask, in SimplifyDemandedBits() argument
1212 unsigned BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedBits()
1215 APInt NewMask = DemandedMask; in SimplifyDemandedBits()
1226 TLO.DAG.ComputeMaskedBits(Op, DemandedMask, KnownZero, KnownOne, Depth); in SimplifyDemandedBits()
1232 } else if (DemandedMask == 0) { in SimplifyDemandedBits()
1478 DemandedMask) == 0 && in SimplifyDemandedBits()
1548 if (DemandedMask == 1) in SimplifyDemandedBits()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp482 bool TargetLowering::SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask, in SimplifyDemandedBits() argument
490 bool Simplified = SimplifyDemandedBits(Op, DemandedMask, Known, TLO); in SimplifyDemandedBits()
504 const APInt &DemandedMask, in SimplifyDemandedBits() argument
509 unsigned BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedBits()
512 APInt NewMask = DemandedMask; in SimplifyDemandedBits()
538 } else if (DemandedMask == 0) { in SimplifyDemandedBits()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DTargetLowering.h2800 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
2807 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp429 const APInt &DemandedMask, in SimplifyDemandedBits() argument
434 unsigned BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedBits()
437 APInt NewMask = DemandedMask; in SimplifyDemandedBits()
455 } else if (DemandedMask == 0) { in SimplifyDemandedBits()
/external/swiftshader/third_party/LLVM/include/llvm/Target/
DTargetLowering.h860 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMISelLowering.cpp12798 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine() local
12799 if (SimplifyDemandedBits(N->getOperand(1), DemandedMask, DCI)) in PerformDAGCombine()
12805 APInt DemandedMask = APInt::getHighBitsSet(BitWidth, 16); in PerformDAGCombine() local
12806 if (SimplifyDemandedBits(N->getOperand(1), DemandedMask, DCI)) in PerformDAGCombine()
12812 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine() local
12813 if ((SimplifyDemandedBits(N->getOperand(0), DemandedMask, DCI)) || in PerformDAGCombine()
12814 (SimplifyDemandedBits(N->getOperand(1), DemandedMask, DCI))) in PerformDAGCombine()
12840 APInt DemandedMask = APInt::getHighBitsSet(BitWidth, 16); in PerformDAGCombine() local
12841 if ((SimplifyDemandedBits(N->getOperand(0), DemandedMask, DCI)) || in PerformDAGCombine()
12842 (SimplifyDemandedBits(N->getOperand(1), DemandedMask, DCI))) in PerformDAGCombine()
/external/llvm/include/llvm/Target/
DTargetLowering.h2294 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ISelLowering.cpp30664 SmallVector<int, 16> DemandedMask(BCVT.getVectorNumElements(), in combineTargetShuffle() local
30667 DemandedMask[i] = i; in combineTargetShuffle()
30669 {BC}, 0, BC, DemandedMask, {}, /*Depth*/ 1, in combineTargetShuffle()
32584 APInt DemandedMask(APInt::getSignMask(BitWidth)); in combineVSelectToShrunkBlend() local
32588 if (!TLI.SimplifyDemandedBits(Cond, DemandedMask, Known, TLO, 0, true)) in combineVSelectToShrunkBlend()
37131 APInt DemandedMask(APInt::getLowBitsSet(NumBits, 16)); in combineBEXTR() local
37132 if (TLI.SimplifyDemandedBits(Op1, DemandedMask, Known, TLO)) { in combineBEXTR()
37356 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, Log2_32(BitWidth)); in combineBT() local
37357 if (SDValue DemandedN1 = DAG.GetDemandedBits(N1, DemandedMask)) in combineBT()
38225 APInt DemandedMask(APInt::getSignMask(SrcVT.getScalarSizeInBits())); in combineMOVMSK() local
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86ISelLowering.cpp14012 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, Log2_32(BitWidth)); in PerformBTCombine() local
14017 if (TLO.ShrinkDemandedConstant(Op1, DemandedMask) || in PerformBTCombine()
14018 TLI.SimplifyDemandedBits(Op1, DemandedMask, KnownZero, KnownOne, TLO)) in PerformBTCombine()
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp8913 APInt DemandedMask = APInt::getLowBitsSet(64, 56); in performTBISimplification() local
8918 if (TLI.SimplifyDemandedBits(Addr, DemandedMask, KnownZero, KnownOne, TLO)) { in performTBISimplification()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp10193 APInt DemandedMask = APInt::getLowBitsSet(64, 56); in performTBISimplification() local
10198 if (TLI.SimplifyDemandedBits(Addr, DemandedMask, Known, TLO)) { in performTBISimplification()