Home
last modified time | relevance | path

Searched refs:getLowBitsSet (Results 1 – 21 of 21) sorted by relevance

/freebsd-10-stable/contrib/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp133 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits)) in CanEvaluateShifted()
157 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits)) in CanEvaluateShifted()
234 APInt Mask(APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits)); in GetShiftedValue()
380 APInt MaskV(APInt::getLowBitsSet(SrcSize, DstSize)); in FoldShiftByConstant()
570 APInt Mask(APInt::getLowBitsSet(TypeBits, TypeBits - ShiftAmt1)); in FoldShiftByConstant()
606 APInt Mask(APInt::getLowBitsSet(TypeBits, TypeBits - ShiftAmt2)); in FoldShiftByConstant()
654 APInt Mask(APInt::getLowBitsSet(TypeBits, TypeBits - ShiftAmt2)); in FoldShiftByConstant()
746 MaskedValueIsZero(Op0,APInt::getLowBitsSet(Op1C->getBitWidth(),ShAmt))){ in visitLShr()
792 MaskedValueIsZero(Op0,APInt::getLowBitsSet(Op1C->getBitWidth(),ShAmt))){ in visitAShr()
DInstCombineSimplifyDemanded.cpp455 APInt::getLowBitsSet(BitWidth, SrcBitWidth); in SimplifyDemandedUseBits()
504 APInt InDemandedBits(APInt::getLowBitsSet(BitWidth, BitWidth - NLZ)); in SimplifyDemandedUseBits()
556 APInt DemandedFromOps(APInt::getLowBitsSet(BitWidth, BitWidth-NLZ)); in SimplifyDemandedUseBits()
573 APInt DemandedFromOps(APInt::getLowBitsSet(BitWidth, BitWidth-NLZ)); in SimplifyDemandedUseBits()
626 KnownZero |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in SimplifyDemandedUseBits()
640 DemandedMaskIn |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in SimplifyDemandedUseBits()
685 DemandedMaskIn |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in SimplifyDemandedUseBits()
DInstCombineCasts.cpp802 APInt::getLowBitsSet(DestBitSize, SrcBitsKept)); in visitZExt()
823 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt()
830 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt()
836 APInt AndValue(APInt::getLowBitsSet(DstSize, MidSize)); in visitZExt()
DInstCombineAndOrXor.cpp231 APInt ShrMask(APInt::getLowBitsSet(BitWidth, BitWidth - OpRHSVal)); in OptAndOp()
251 APInt ShrMask(APInt::getLowBitsSet(BitWidth, BitWidth - OpRHSVal)); in OptAndOp()
365 APInt Mask(APInt::getLowBitsSet(BitWidth, MB-1)); in FoldLogicalPlusAnd()
852 APInt Low = APInt::getLowBitsSet(BigBitSize, SmallBitSize); in FoldAndOfICmps()
1167 APInt Mask = APInt::getLowBitsSet(BitWidth, BitWidth - Zeros); in visitAnd()
DInstCombineCompares.cpp1462 Constant *Mask = Builder->getInt(APInt::getLowBitsSet(TypeBits, in visitICmpInstWithInstAndIntCst()
1924 CI1->getValue() != APInt::getLowBitsSet(CI1->getBitWidth(), NewWidth)) in ProcessUGT_ADDCST_ADD()
2031 APInt lowBitsSet = APInt::getLowBitsSet(BitWidth, trailingOnes); in DemandedBitsLHSMask()
2039 APInt lowBitsSet = APInt::getLowBitsSet(BitWidth, trailingZeros); in DemandedBitsLHSMask()
2813 APInt::getLowBitsSet(AP.getBitWidth(), in visitICmpInst()
2991 APInt::getLowBitsSet(ASize, Op0->getType()->getPrimitiveSizeInBits()); in visitICmpInst()
DInstCombineCalls.cpp325 APInt Mask(APInt::getLowBitsSet(BitWidth, TrailingZeros)); in visitCallInst()
DInstCombineMulDivRem.cpp91 return MulExt.ugt(APInt::getLowBitsSet(W * 2, W)); in MultiplyOverflows()
/freebsd-10-stable/contrib/llvm/lib/Analysis/
DValueTracking.cpp95 APInt Mask = APInt::getLowBitsSet(BitWidth, LHSKnownZeroOut); in ComputeMaskedBitsAddSub()
101 KnownZero |= APInt::getLowBitsSet(BitWidth, in ComputeMaskedBitsAddSub()
106 APInt Mask = APInt::getLowBitsSet(BitWidth, RHSKnownZeroOut); in ComputeMaskedBitsAddSub()
181 KnownZero = APInt::getLowBitsSet(BitWidth, TrailZ) | in ComputeMaskedBitsMul()
293 KnownZero = APInt::getLowBitsSet(BitWidth, in ComputeMaskedBits()
325 KnownZero = APInt::getLowBitsSet(BitWidth, countTrailingZeros(Align)); in ComputeMaskedBits()
493 KnownZero |= APInt::getLowBitsSet(BitWidth, ShiftAmt); // low bits known 0 in ComputeMaskedBits()
617 KnownZero = APInt::getLowBitsSet(BitWidth, countTrailingZeros(Align)); in ComputeMaskedBits()
663 KnownZero = APInt::getLowBitsSet(BitWidth, TrailZ); in ComputeMaskedBits()
704 KnownZero = APInt::getLowBitsSet(BitWidth, in ComputeMaskedBits()
DConstantFolding.cpp988 APInt::getLowBitsSet(InWidth, PtrWidth)); in ConstantFoldInstOperands()
DScalarEvolution.cpp3697 APInt EffectiveMask = APInt::getLowBitsSet(BitWidth, BitWidth - LZ); in createSCEV()
/freebsd-10-stable/contrib/llvm/include/llvm/ADT/
DAPInt.h499 return getLowBitsSet(numBits, hiBit) | in getBitsSet()
501 return getLowBitsSet(numBits, hiBit - loBit).shl(loBit); in getBitsSet()
528 static APInt getLowBitsSet(unsigned numBits, unsigned loBitsSet) { in getLowBitsSet() function
1719 APIVal == APInt::getLowBitsSet(APIVal.getBitWidth(), numBits); in isMask()
/freebsd-10-stable/contrib/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp611 if (ShAmt && (NewMask & APInt::getLowBitsSet(BitWidth, ShAmt)) == 0) { in SimplifyDemandedBits()
681 KnownZero |= APInt::getLowBitsSet(BitWidth, SA->getZExtValue()); in SimplifyDemandedBits()
819 APInt::getLowBitsSet(BitWidth, in SimplifyDemandedBits()
874 APInt InMask = APInt::getLowBitsSet(BitWidth, InBits); in SimplifyDemandedBits()
986 APInt InMask = APInt::getLowBitsSet(BitWidth, in SimplifyDemandedBits()
1027 APInt LoMask = APInt::getLowBitsSet(BitWidth, in SimplifyDemandedBits()
1259 APInt newMask = APInt::getLowBitsSet(maskWidth, width); in SimplifySetCC()
1360 APInt Imm = APInt::getLowBitsSet(ExtDstTyBits, ExtSrcTyBits); in SimplifySetCC()
1368 DAG.getConstant(C1 & APInt::getLowBitsSet( in SimplifySetCC()
DSelectionDAG.cpp952 APInt Imm = APInt::getLowBitsSet(BitWidth, in getZeroExtendInReg()
1839 KnownZero = APInt::getLowBitsSet(BitWidth, TrailZ) | in ComputeMaskedBits()
1910 KnownZero |= APInt::getLowBitsSet(BitWidth, ShAmt); in ComputeMaskedBits()
1968 APInt InputDemandedBits = APInt::getLowBitsSet(BitWidth, EBits); in ComputeMaskedBits()
2077 APInt InMask = APInt::getLowBitsSet(BitWidth, VT.getSizeInBits()); in ComputeMaskedBits()
2126 KnownZero |= APInt::getLowBitsSet(BitWidth, KnownZeroOut); in ComputeMaskedBits()
2189 KnownZero = APInt::getLowBitsSet(BitWidth, Log2_32(Align)); in ComputeMaskedBits()
DDAGCombiner.cpp3364 APInt RHSBits = APInt::getLowBitsSet(OpSizeInBits, LShVal); in MatchRotate()
5579 GetDemandedBits(N0, APInt::getLowBitsSet(N0.getValueSizeInBits(), in visitTRUNCATE()
9172 APInt::getLowBitsSet( in visitSTORE()
9183 APInt::getLowBitsSet( in visitSTORE()
/freebsd-10-stable/contrib/llvm/lib/Target/SystemZ/
DSystemZOperators.td338 APInt::getLowBitsSet(BitWidth, 8));
346 APInt::getLowBitsSet(BitWidth, 8));
/freebsd-10-stable/contrib/llvm/lib/Support/
DConstantRange.cpp455 APInt::getLowBitsSet(DstTySize, SrcTySize-1) + 1); in signExtend()
/freebsd-10-stable/contrib/llvm/lib/IR/
DConstantFold.cpp978 APInt PossiblySetBits(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
996 APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
/freebsd-10-stable/contrib/llvm/tools/clang/lib/CodeGen/
DCGExpr.cpp1304 Val = Builder.CreateAnd(Val, llvm::APInt::getLowBitsSet(Info.StorageSize, in EmitLoadOfBitfieldLValue()
1464 llvm::APInt::getLowBitsSet(Info.StorageSize, in EmitStoreThroughBitfieldLValue()
/freebsd-10-stable/contrib/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp997 APInt Mask(APInt::getLowBitsSet(DestWidth, SrcWidth)); in ConvertScalar_InsertValue()
/freebsd-10-stable/contrib/llvm/lib/Target/Mips/
DMipsSEISelLowering.cpp1481 APInt Mask = APInt::getLowBitsSet(EltTy.getSizeInBits(), in lowerINTRINSIC_WO_CHAIN()
/freebsd-10-stable/contrib/llvm/lib/Target/X86/
DX86ISelLowering.cpp18727 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, Log2_32(BitWidth)); in PerformBTCombine()