Home
last modified time | relevance | path

Searched refs:getHighBitsSet (Results 1 – 25 of 84) sorted by relevance

1234

/external/llvm/lib/Analysis/
DDemandedBits.cpp119 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits()
154 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt+1); in determineLiveOperandBits()
156 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
181 if ((AOut & APInt::getHighBitsSet(BitWidth, ShiftAmt)) in determineLiveOperandBits()
238 if ((AOut & APInt::getHighBitsSet(AOut.getBitWidth(), in determineLiveOperandBits()
DValueTracking.cpp248 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1); in computeKnownBitsAddSub()
257 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); in computeKnownBitsAddSub()
361 APInt::getHighBitsSet(BitWidth, LeadZ); in computeKnownBitsMul()
395 APInt Mask = APInt::getHighBitsSet(BitWidth, CommonPrefixBits); in computeKnownBitsFromRangeMetadata()
763 APInt::getHighBitsSet(BitWidth, RHSKnownZero.countLeadingOnes()); in computeKnownBitsFromAssume()
775 APInt::getHighBitsSet(BitWidth, RHSKnownZero.countLeadingOnes()+1); in computeKnownBitsFromAssume()
778 APInt::getHighBitsSet(BitWidth, RHSKnownZero.countLeadingOnes()); in computeKnownBitsFromAssume()
950 KnownZero = APInt::getHighBitsSet(BitWidth, LeadZ); in computeKnownBitsFromOperator()
989 KnownZero |= APInt::getHighBitsSet(BitWidth, BitWidth - SrcBitWidth); in computeKnownBitsFromOperator()
1016 KnownZero |= APInt::getHighBitsSet(BitWidth, BitWidth - SrcBitWidth); in computeKnownBitsFromOperator()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DDemandedBits.cpp137 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits()
194 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt+1); in determineLiveOperandBits()
196 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
223 if ((AOut & APInt::getHighBitsSet(BitWidth, ShiftAmt)) in determineLiveOperandBits()
275 if ((AOut & APInt::getHighBitsSet(AOut.getBitWidth(), in determineLiveOperandBits()
/external/llvm-project/llvm/lib/Analysis/
DDemandedBits.cpp137 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits()
217 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt+1); in determineLiveOperandBits()
219 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
246 if ((AOut & APInt::getHighBitsSet(BitWidth, ShiftAmt)) in determineLiveOperandBits()
298 if ((AOut & APInt::getHighBitsSet(AOut.getBitWidth(), in determineLiveOperandBits()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp483 KnownZero |= APInt::getHighBitsSet(BitWidth, BitWidth - SrcBitWidth); in SimplifyDemandedUseBits()
493 APInt NewBits(APInt::getHighBitsSet(BitWidth, BitWidth - SrcBitWidth)); in SimplifyDemandedUseBits()
572 DemandedMaskIn |= APInt::getHighBitsSet(BitWidth, ShiftAmt+1); in SimplifyDemandedUseBits()
574 DemandedMaskIn |= APInt::getHighBitsSet(BitWidth, ShiftAmt); in SimplifyDemandedUseBits()
608 APInt HighBits(APInt::getHighBitsSet(BitWidth, ShiftAmt)); in SimplifyDemandedUseBits()
650 APInt HighBits(APInt::getHighBitsSet(BitWidth, ShiftAmt)); in SimplifyDemandedUseBits()
731 KnownZero = APInt::getHighBitsSet(BitWidth, Leaders) & DemandedMask; in SimplifyDemandedUseBits()
795 KnownZero = APInt::getHighBitsSet(BitWidth, BitWidth - ArgWidth); in SimplifyDemandedUseBits()
799 KnownZero = APInt::getHighBitsSet(64, 32); in SimplifyDemandedUseBits()
1326 UndefElts |= APInt::getHighBitsSet(VWidth, VWidth / 2); in SimplifyDemandedVectorElts()
DInstCombineShifts.cpp140 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && in CanEvaluateShifted()
282 APInt Mask(APInt::getHighBitsSet(TypeWidth, TypeWidth - NumBits)); in GetShiftedValue()
437 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant()
473 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant()
714 APInt::getHighBitsSet(Op1C->getBitWidth(), ShAmt), 0, in visitShl()
DInstCombineCasts.cpp370 APInt Mask = APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth); in canEvaluateTruncated()
396 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth), 0, CxtI) && in canEvaluateTruncated()
770 APInt::getHighBitsSet(VSize, BitsToClear), in canEvaluateZExtd()
872 APInt::getHighBitsSet(DestBitSize, in visitZExt()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp566 : APInt::getHighBitsSet(TypeWidth, TypeWidth - OuterShAmt); in foldShiftedShift()
747 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant()
779 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant()
915 MaskedValueIsZero(X, APInt::getHighBitsSet(SrcWidth, ShAmt), 0, &I)) in visitShl()
921 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl()
957 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl()
968 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl()
983 MaskedValueIsZero(Op0, APInt::getHighBitsSet(BitWidth, ShAmt), 0, &I)) { in visitShl()
DInstCombineSimplifyDemanded.cpp627 APInt HighBits(APInt::getHighBitsSet( in SimplifyDemandedUseBits()
660 APInt::getHighBitsSet(BitWidth, BitWidth - RHSTrailingZeros); in SimplifyDemandedUseBits()
726 Known.Zero = APInt::getHighBitsSet(BitWidth, Leaders) & DemandedMask; in SimplifyDemandedUseBits()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp500 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && in canEvaluateShifted()
589 : APInt::getHighBitsSet(TypeWidth, TypeWidth - OuterShAmt); in foldShiftedShift()
781 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant()
816 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant()
955 MaskedValueIsZero(X, APInt::getHighBitsSet(SrcWidth, ShAmt), 0, &I)) in visitShl()
961 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmt)); in visitShl()
998 MaskedValueIsZero(Op0, APInt::getHighBitsSet(BitWidth, ShAmt), 0, &I)) { in visitShl()
DInstCombineSimplifyDemanded.cpp589 APInt HighBits(APInt::getHighBitsSet( in SimplifyDemandedUseBits()
620 APInt::getHighBitsSet(BitWidth, BitWidth - RHSTrailingZeros); in SimplifyDemandedUseBits()
682 Known.Zero = APInt::getHighBitsSet(BitWidth, Leaders) & DemandedMask; in SimplifyDemandedUseBits()
/external/llvm-project/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp655 APInt HighMask = APInt::getHighBitsSet(64, 32); in TryExpandADDWithMul()
1657 APInt Mask = APInt::getHighBitsSet(VT.getSizeInBits(), in PerformDAGCombine()
1679 APInt Mask = APInt::getHighBitsSet(VT.getSizeInBits(), in PerformDAGCombine()
1694 APInt Mask = APInt::getHighBitsSet(VT.getSizeInBits(), in PerformDAGCombine()
1752 APInt HighMask = APInt::getHighBitsSet(64, 32); in PerformDAGCombine()
1826 Known.Zero = APInt::getHighBitsSet(Known.getBitWidth(), in computeKnownBitsForTargetNode()
1836 Known.Zero = APInt::getHighBitsSet(Known.getBitWidth(), in computeKnownBitsForTargetNode()
1842 Known.Zero = APInt::getHighBitsSet(Known.getBitWidth(), in computeKnownBitsForTargetNode()
1847 Known.Zero = APInt::getHighBitsSet(Known.getBitWidth(), in computeKnownBitsForTargetNode()
1852 Known.Zero = APInt::getHighBitsSet(Known.getBitWidth(), in computeKnownBitsForTargetNode()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp681 APInt HighMask = APInt::getHighBitsSet(64, 32); in TryExpandADDWithMul()
1673 APInt Mask = APInt::getHighBitsSet(VT.getSizeInBits(), in PerformDAGCombine()
1696 APInt Mask = APInt::getHighBitsSet(VT.getSizeInBits(), in PerformDAGCombine()
1712 APInt Mask = APInt::getHighBitsSet(VT.getSizeInBits(), in PerformDAGCombine()
1770 APInt HighMask = APInt::getHighBitsSet(64, 32); in PerformDAGCombine()
1850 KnownZero = APInt::getHighBitsSet(KnownZero.getBitWidth(), in computeKnownBitsForTargetNode()
1860 KnownZero = APInt::getHighBitsSet(KnownZero.getBitWidth(), in computeKnownBitsForTargetNode()
1866 KnownZero = APInt::getHighBitsSet(KnownZero.getBitWidth(), in computeKnownBitsForTargetNode()
1871 KnownZero = APInt::getHighBitsSet(KnownZero.getBitWidth(), in computeKnownBitsForTargetNode()
1876 KnownZero = APInt::getHighBitsSet(KnownZero.getBitWidth(), in computeKnownBitsForTargetNode()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp656 APInt HighMask = APInt::getHighBitsSet(64, 32); in TryExpandADDWithMul()
1658 APInt Mask = APInt::getHighBitsSet(VT.getSizeInBits(), in PerformDAGCombine()
1680 APInt Mask = APInt::getHighBitsSet(VT.getSizeInBits(), in PerformDAGCombine()
1695 APInt Mask = APInt::getHighBitsSet(VT.getSizeInBits(), in PerformDAGCombine()
1753 APInt HighMask = APInt::getHighBitsSet(64, 32); in PerformDAGCombine()
1828 Known.Zero = APInt::getHighBitsSet(Known.getBitWidth(), in computeKnownBitsForTargetNode()
1838 Known.Zero = APInt::getHighBitsSet(Known.getBitWidth(), in computeKnownBitsForTargetNode()
1844 Known.Zero = APInt::getHighBitsSet(Known.getBitWidth(), in computeKnownBitsForTargetNode()
1849 Known.Zero = APInt::getHighBitsSet(Known.getBitWidth(), in computeKnownBitsForTargetNode()
1854 Known.Zero = APInt::getHighBitsSet(Known.getBitWidth(), in computeKnownBitsForTargetNode()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonGenExtract.cpp200 APInt C = APInt::getHighBitsSet(BW, BW-U); in INITIALIZE_PASS_DEPENDENCY()
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonGenExtract.cpp200 APInt C = APInt::getHighBitsSet(BW, BW-U); in INITIALIZE_PASS_DEPENDENCY()
/external/llvm/lib/Target/Hexagon/
DHexagonGenExtract.cpp187 APInt C = APInt::getHighBitsSet(BW, BW-U); in INITIALIZE_PASS_DEPENDENCY()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp769 if (ShAmt && (NewMask & APInt::getHighBitsSet(VTSize, ShAmt)) == 0) { in SimplifyDemandedBits()
793 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt); in SimplifyDemandedBits()
824 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt); in SimplifyDemandedBits()
866 APInt MsbMask = APInt::getHighBitsSet(BitWidth, 1); in SimplifyDemandedBits()
894 APInt::getHighBitsSet(BitWidth, in SimplifyDemandedBits()
966 APInt::getHighBitsSet(BitWidth, BitWidth - OperandBitWidth) & NewMask; in SimplifyDemandedBits()
1070 APInt HighBits = APInt::getHighBitsSet(OperandBitWidth, in SimplifyDemandedBits()
1574 if (C1.intersects(APInt::getHighBitsSet(C1.getBitWidth(), in SimplifySetCC()
1678 APInt::getHighBitsSet(BitWidth, in SimplifySetCC()
3009 APInt HighMask = APInt::getHighBitsSet(OuterBitSize, InnerBitSize); in expandMUL()
DSelectionDAG.cpp2087 APInt::getHighBitsSet(BitWidth, LeadZ); in computeKnownBits()
2105 KnownZero = APInt::getHighBitsSet(BitWidth, LeadZ); in computeKnownBits()
2139 KnownZero |= APInt::getHighBitsSet(BitWidth, BitWidth - 1); in computeKnownBits()
2146 KnownZero |= APInt::getHighBitsSet(BitWidth, BitWidth - 1); in computeKnownBits()
2177 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt); in computeKnownBits()
2191 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt); in computeKnownBits()
2214 APInt NewBits = APInt::getHighBitsSet(BitWidth, BitWidth - EBits); in computeKnownBits()
2249 KnownZero = APInt::getHighBitsSet(BitWidth, BitWidth - LowBits); in computeKnownBits()
2259 KnownZero |= APInt::getHighBitsSet(BitWidth, BitWidth - MemBits); in computeKnownBits()
2269 APInt NewBits = APInt::getHighBitsSet(BitWidth, BitWidth - InBits); in computeKnownBits()
[all …]
/external/llvm/include/llvm/ADT/
DAPInt.h504 getHighBitsSet(numBits, numBits - loBit); in getBitsSet()
514 static APInt getHighBitsSet(unsigned numBits, unsigned hiBitsSet) { in getHighBitsSet() function
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUPostLegalizerCombiner.cpp171 const APInt Mask = APInt::getHighBitsSet(SrcSize, SrcSize - 8); in matchUCharToFloat()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h508 getHighBitsSet(numBits, numBits - loBit); in getBitsSet()
518 static APInt getHighBitsSet(unsigned numBits, unsigned hiBitsSet) { in getHighBitsSet() function
/external/llvm-project/llvm/unittests/ADT/
DAPIntTest.cpp1780 APInt MaskVal = APInt::getHighBitsSet(N, I); in TEST()
2134 TEST(APIntTest, getHighBitsSet) { in TEST() argument
2135 APInt i64hi32 = APInt::getHighBitsSet(64, 32); in TEST()
2451 APInt i256(APInt::getHighBitsSet(256, 2)); in TEST()
2484 APInt i72(APInt::getHighBitsSet(72, 1)); in TEST()
2490 i72 = APInt::getHighBitsSet(72, 1); in TEST()
2496 APInt i128(APInt::getHighBitsSet(128, 1)); in TEST()
/external/llvm-project/llvm/lib/Support/
DKnownBits.cpp92 APInt NewBits = APInt::getHighBitsSet(BitWidth, BitWidth - SrcBitWidth); in sextInReg()
/external/llvm-project/llvm/include/llvm/ADT/
DAPInt.h655 static APInt getHighBitsSet(unsigned numBits, unsigned hiBitsSet) {
1537 APInt Keep = getHighBitsSet(BitWidth, BitWidth - loBits);

1234