/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 58 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() local 60 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, KnownZero, KnownOne, in SimplifyDemandedInstructionBits() 71 bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask, in SimplifyDemandedBits() argument 75 Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask, KnownZero, in SimplifyDemandedBits() 104 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits() argument 110 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits() 120 KnownOne = CI->getValue() & DemandedMask; in SimplifyDemandedUseBits() 121 KnownZero = ~KnownOne & DemandedMask; in SimplifyDemandedUseBits() 127 KnownZero = DemandedMask; in SimplifyDemandedUseBits() 133 if (DemandedMask == 0) { // Not demanding any bits from V. in SimplifyDemandedUseBits() [all …]
|
D | InstCombineInternal.h | 515 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero, 518 bool SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero, 523 APInt DemandedMask, APInt &KnownZero,
|
D | InstCombineVectorOps.cpp | 156 APInt DemandedMask(VectorWidth, 0); in visitExtractElementInst() local 157 DemandedMask.setBit(IndexVal); in visitExtractElementInst() 158 if (Value *V = SimplifyDemandedVectorElts(EI.getOperand(0), DemandedMask, in visitExtractElementInst()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreISelLowering.cpp | 1633 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 8); in PerformDAGCombine() local 1638 if (TLO.ShrinkDemandedConstant(OutVal, DemandedMask) || in PerformDAGCombine() 1639 TLI.SimplifyDemandedBits(OutVal, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine() 1650 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine() local 1655 if (TLO.ShrinkDemandedConstant(Time, DemandedMask) || in PerformDAGCombine() 1656 TLI.SimplifyDemandedBits(Time, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 388 const APInt &DemandedMask, in SimplifyDemandedBits() argument 393 unsigned BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedBits() 396 APInt NewMask = DemandedMask; in SimplifyDemandedBits() 414 } else if (DemandedMask == 0) { in SimplifyDemandedBits()
|
/external/llvm/include/llvm/Target/ |
D | TargetLowering.h | 2154 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 24429 APInt DemandedMask = APInt::getHighBitsSet(BitWidth, 1); in PerformSELECTCombine() local 24434 if (TLO.ShrinkDemandedConstant(Cond, DemandedMask) || in PerformSELECTCombine() 24435 TLI.SimplifyDemandedBits(Cond, DemandedMask, KnownZero, KnownOne, in PerformSELECTCombine() 26896 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, Log2_32(BitWidth)); in PerformBTCombine() local 26901 if (TLO.ShrinkDemandedConstant(Op1, DemandedMask) || in PerformBTCombine() 26902 TLI.SimplifyDemandedBits(Op1, DemandedMask, KnownZero, KnownOne, TLO)) in PerformBTCombine()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.cpp | 8761 APInt DemandedMask = APInt::getLowBitsSet(64, 56); in performTBISimplification() local 8766 if (TLI.SimplifyDemandedBits(Addr, DemandedMask, KnownZero, KnownOne, TLO)) { in performTBISimplification()
|