Home
last modified time | relevance | path

Searched refs:Demanded (Results 1 – 13 of 13) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp28 APInt Demanded) { in ShrinkDemandedConstant() argument
37 Demanded = Demanded.zextOrTrunc(OpC->getValue().getBitWidth()); in ShrinkDemandedConstant()
38 if ((~Demanded & OpC->getValue()) == 0) in ShrinkDemandedConstant()
42 Demanded &= OpC->getValue(); in ShrinkDemandedConstant()
43 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded)); in ShrinkDemandedConstant()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp29 APInt Demanded) { in ShrinkDemandedConstant() argument
38 Demanded = Demanded.zextOrTrunc(OpC->getValue().getBitWidth()); in ShrinkDemandedConstant()
39 if ((~Demanded & OpC->getValue()) == 0) in ShrinkDemandedConstant()
43 Demanded &= OpC->getValue(); in ShrinkDemandedConstant()
44 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded)); in ShrinkDemandedConstant()
/external/llvm/test/Transforms/InstCombine/
Dx86-f16c.ll8 ; Vector Demanded Bits
Dx86-sse4a.ll243 ; Vector Demanded Bits
Dx86-vector-shifts.ll1374 ; Vector Demanded Bits
/external/swiftshader/third_party/LLVM/include/llvm/Target/
DTargetLowering.h842 bool ShrinkDemandedConstant(SDValue Op, const APInt &Demanded);
848 bool ShrinkDemandedOp(SDValue Op, unsigned BitWidth, const APInt &Demanded,
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp1124 const APInt &Demanded) { in ShrinkDemandedConstant() argument
1137 (C->getAPIntValue() | (~Demanded)).isAllOnesValue()) in ShrinkDemandedConstant()
1141 if (C->getAPIntValue().intersects(~Demanded)) { in ShrinkDemandedConstant()
1144 DAG.getConstant(Demanded & in ShrinkDemandedConstant()
1164 const APInt &Demanded, in ShrinkDemandedOp() argument
1179 unsigned SmallVTBits = BitWidth - Demanded.countLeadingZeros(); in ShrinkDemandedOp()
DDAGCombiner.cpp123 APInt Demanded = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedBits() local
124 return SimplifyDemandedBits(Op, Demanded); in SimplifyDemandedBits()
127 bool SimplifyDemandedBits(SDValue Op, const APInt &Demanded);
643 bool DAGCombiner::SimplifyDemandedBits(SDValue Op, const APInt &Demanded) { in SimplifyDemandedBits() argument
646 if (!TLI.SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO)) in SimplifyDemandedBits()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp341 const APInt &Demanded) { in ShrinkDemandedConstant() argument
354 (C->getAPIntValue() | (~Demanded)).isAllOnesValue()) in ShrinkDemandedConstant()
358 if (C->getAPIntValue().intersects(~Demanded)) { in ShrinkDemandedConstant()
361 DAG.getConstant(Demanded & in ShrinkDemandedConstant()
379 const APInt &Demanded, in ShrinkDemandedOp() argument
398 unsigned DemandedSize = BitWidth - Demanded.countLeadingZeros(); in ShrinkDemandedOp()
DDAGCombiner.cpp185 APInt Demanded = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedBits() local
186 return SimplifyDemandedBits(Op, Demanded); in SimplifyDemandedBits()
189 bool SimplifyDemandedBits(SDValue Op, const APInt &Demanded);
916 bool DAGCombiner::SimplifyDemandedBits(SDValue Op, const APInt &Demanded) { in SimplifyDemandedBits() argument
919 if (!TLI.SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO)) in SimplifyDemandedBits()
/external/llvm/include/llvm/Target/
DTargetLowering.h2278 bool ShrinkDemandedConstant(SDValue Op, const APInt &Demanded);
2283 bool ShrinkDemandedOp(SDValue Op, unsigned BitWidth, const APInt &Demanded,
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp2142 APInt Demanded = APInt::getLowBitsSet(VT.getSizeInBits(), 24); in simplifyI24() local
2145 if (TLI.SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO)) in simplifyI24()
2704 APInt Demanded = APInt::getBitsSet(32, in PerformDAGCombine() local
2712 if (TLO.ShrinkDemandedConstant(BitsFrom, Demanded) || in PerformDAGCombine()
2713 TLI.SimplifyDemandedBits(BitsFrom, Demanded, in PerformDAGCombine()
DSIISelLowering.cpp2905 APInt Demanded = APInt::getBitsSet(32, 8 * Offset, 8 * Offset + 8); in PerformDAGCombine() local
2911 if (TLO.ShrinkDemandedConstant(Src, Demanded) || in PerformDAGCombine()
2912 TLI.SimplifyDemandedBits(Src, Demanded, KnownZero, KnownOne, TLO)) { in PerformDAGCombine()