/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 55 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 …]
|
D | InstCombineVectorOps.cpp | 162 APInt DemandedMask(VectorWidth, 0); in visitExtractElementInst() local 163 DemandedMask.setBit(IndexVal); in visitExtractElementInst() 165 DemandedMask, UndefElts)) { in visitExtractElementInst()
|
D | InstCombine.h | 318 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, 321 bool SimplifyDemandedBits(Use &U, APInt DemandedMask,
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 56 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 …]
|
D | InstCombineInternal.h | 521 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero, 524 bool SimplifyDemandedBits(Use &U, const APInt &DemandedMask, APInt &KnownZero, 529 const APInt &DemandedMask, APInt &KnownZero,
|
D | InstCombineVectorOps.cpp | 171 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/llvm/lib/Target/XCore/ |
D | XCoreISelLowering.cpp | 1617 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/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 1207 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/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 429 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/ |
D | TargetLowering.h | 860 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
|
/external/llvm/include/llvm/Target/ |
D | TargetLowering.h | 2294 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
D | X86ISelLowering.cpp | 14012 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/ |
D | AArch64ISelLowering.cpp | 8913 APInt DemandedMask = APInt::getLowBitsSet(64, 56); in performTBISimplification() local 8918 if (TLI.SimplifyDemandedBits(Addr, DemandedMask, KnownZero, KnownOne, TLO)) { in performTBISimplification()
|