/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 28 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/ |
D | InstCombineSimplifyDemanded.cpp | 29 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/ |
D | x86-f16c.ll | 8 ; Vector Demanded Bits
|
D | x86-sse4a.ll | 243 ; Vector Demanded Bits
|
D | x86-vector-shifts.ll | 1374 ; Vector Demanded Bits
|
/external/swiftshader/third_party/LLVM/include/llvm/Target/ |
D | TargetLowering.h | 842 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/ |
D | TargetLowering.cpp | 1124 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()
|
D | DAGCombiner.cpp | 123 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/ |
D | TargetLowering.cpp | 341 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()
|
D | DAGCombiner.cpp | 185 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/ |
D | TargetLowering.h | 2278 bool ShrinkDemandedConstant(SDValue Op, const APInt &Demanded); 2283 bool ShrinkDemandedOp(SDValue Op, unsigned BitWidth, const APInt &Demanded,
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelLowering.cpp | 2142 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()
|
D | SIISelLowering.cpp | 2905 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()
|