/external/llvm-project/lld/ELF/Arch/ |
D | RISCV.cpp | 257 static uint32_t extractBits(uint64_t v, uint32_t begin, uint32_t end) { in extractBits() function 276 uint16_t imm8 = extractBits(val, 8, 8) << 12; in relocate() 277 uint16_t imm4_3 = extractBits(val, 4, 3) << 10; in relocate() 278 uint16_t imm7_6 = extractBits(val, 7, 6) << 5; in relocate() 279 uint16_t imm2_1 = extractBits(val, 2, 1) << 3; in relocate() 280 uint16_t imm5 = extractBits(val, 5, 5) << 2; in relocate() 291 uint16_t imm11 = extractBits(val, 11, 11) << 12; in relocate() 292 uint16_t imm4 = extractBits(val, 4, 4) << 11; in relocate() 293 uint16_t imm9_8 = extractBits(val, 9, 8) << 9; in relocate() 294 uint16_t imm10 = extractBits(val, 10, 10) << 8; in relocate() [all …]
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | KnownBits.h | 188 KnownBits extractBits(unsigned NumBits, unsigned BitPosition) const { in extractBits() function 189 return KnownBits(Zero.extractBits(NumBits, BitPosition), in extractBits() 190 One.extractBits(NumBits, BitPosition)); in extractBits() 318 KnownBits extractBits(unsigned NumBits, unsigned BitPosition) { in extractBits() function 319 return KnownBits(Zero.extractBits(NumBits, BitPosition), in extractBits() 320 One.extractBits(NumBits, BitPosition)); in extractBits()
|
/external/llvm-project/llvm/unittests/ADT/ |
D | APIntTest.cpp | 1903 EXPECT_EQ(i127.extractBits(64, 0).getZExtValue(), 0x3456FFFFFFFFFFFFull); in TEST() 1904 EXPECT_EQ(i127.extractBits(63, 64).getZExtValue(), 0x7FFFFFFFFFFF8012ull); in TEST() 1920 EXPECT_EQ(i257.extractBits(64, 0).getZExtValue(), 0x0000000000000000ull); in TEST() 1921 EXPECT_EQ(i257.extractBits(64, 64).getZExtValue(), 0xFFFFFFFFFFFFFFFFull); in TEST() 1922 EXPECT_EQ(i257.extractBits(64, 128).getZExtValue(), 0x00000000FFFFFFFFull); in TEST() 1923 EXPECT_EQ(i257.extractBits(65, 192).getZExtValue(), 0x0000000000000000ull); in TEST() 1928 EXPECT_EQ(i260.extractBits(64, 0).getZExtValue(), 0x8000000000007FFFull); in TEST() 1929 EXPECT_EQ(i260.extractBits(64, 64).getZExtValue(), 0x0000000000000000ull); in TEST() 1930 EXPECT_EQ(i260.extractBits(64, 128).getZExtValue(), 0xFFFFFFFFFFFF0000ull); in TEST() 1931 EXPECT_EQ(i260.extractBits(64, 192).getZExtValue(), 0xFFFFFFFFFFFFFFFFull); in TEST() [all …]
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86ShuffleDecodeConstantPool.cpp | 99 APInt EltUndef = UndefBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask() 109 APInt EltBits = MaskBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask()
|
D | X86ISelLowering.cpp | 6489 APInt UndefEltBits = UndefBits.extractBits(EltSizeInBits, BitOffset); in getTargetConstantBitsFromNode() 6504 EltBits[i] = MaskBits.extractBits(EltSizeInBits, BitOffset); in getTargetConstantBitsFromNode() 6692 UndefElts = UndefElts.extractBits(NumSubElts, BaseIdx); in getTargetConstantBitsFromNode() 7233 Val = Val.extractBits(ScalarSizeInBits, (M % Scale) * ScalarSizeInBits); in computeZeroableShuffleElements() 7238 Val = Val.extractBits(ScalarSizeInBits, (M % Scale) * ScalarSizeInBits); in computeZeroableShuffleElements() 8523 if (UndefMask.extractBits(HalfNumElems, HalfNumElems).isAllOnesValue()) { in EltsFromConsecutiveLoads() 8639 APInt Val = SplatValue.extractBits(ScalarSize, ScalarSize * i); in getConstantVector() 11361 if (!Zeroable.extractBits(UpperElts, NumSrcElts).isAllOnesValue()) in matchShuffleAsVTRUNC() 11458 !Zeroable.extractBits(UpperElts, NumSrcElts).isAllOnesValue()) in lowerShuffleWithVPMOV() 11515 !Zeroable.extractBits(UpperElts, NumSrcElts).isAllOnesValue()) in lowerShuffleAsVTRUNC() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86ShuffleDecodeConstantPool.cpp | 97 APInt EltUndef = UndefBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask() 107 APInt EltBits = MaskBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask()
|
D | X86ISelLowering.cpp | 6183 APInt UndefEltBits = UndefBits.extractBits(EltSizeInBits, BitOffset); in getTargetConstantBitsFromNode() 6198 EltBits[i] = MaskBits.extractBits(EltSizeInBits, BitOffset); in getTargetConstantBitsFromNode() 6414 UndefElts = UndefElts.extractBits(NumSubElts, BaseIdx); in getTargetConstantBitsFromNode() 6956 Val = Val.extractBits(ScalarSizeInBits, (M % Scale) * ScalarSizeInBits); in computeZeroableShuffleElements() 6961 Val = Val.extractBits(ScalarSizeInBits, (M % Scale) * ScalarSizeInBits); in computeZeroableShuffleElements() 7187 unsigned LHS = Known0.Zero.extractBits(8, i * 8).getZExtValue(); in getFauxShuffleMask() 7188 unsigned RHS = Known1.Zero.extractBits(8, i * 8).getZExtValue(); in getFauxShuffleMask() 8231 if (UndefMask.extractBits(HalfNumElems, HalfNumElems).isAllOnesValue()) { in EltsFromConsecutiveLoads() 8345 APInt Val = SplatValue.extractBits(ScalarSize, ScalarSize * i); in getConstantVector()
|
/external/llvm-project/llvm/tools/llvm-exegesis/lib/X86/ |
D | Target.cpp | 584 WideConstant.extractBits(32, ByteOffset * 8).getZExtValue())); in initStack() 588 WideConstant.extractBits(16, ByteOffset * 8).getZExtValue())); in initStack() 594 WideConstant.extractBits(8, ByteOffset * 8).getZExtValue())); in initStack()
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | GISelKnownBits.cpp | 443 Known = SrcOpKnown.extractBits(BitWidth, BitWidth * DstIdx); in computeKnownBitsImpl()
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 666 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, Offset); in SimplifyMultipleUseDemandedBits() 819 if (DemandedElts.extractBits(NumSubElts, Idx) == 0) in SimplifyMultipleUseDemandedBits() 1033 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in SimplifyDemandedBits() 1106 DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedBits() 2122 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, Offset); in SimplifyDemandedBits() 2486 if (SrcZero.extractBits(Scale, i * Scale).isAllOnesValue()) in SimplifyDemandedVectorElts() 2488 if (SrcUndef.extractBits(Scale, i * Scale).isAllOnesValue()) in SimplifyDemandedVectorElts() 2531 APInt SubElts = DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedVectorElts() 2548 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in SimplifyDemandedVectorElts() 2599 KnownUndef = SrcUndef.extractBits(NumElts, Idx); in SimplifyDemandedVectorElts() [all …]
|
D | SelectionDAG.cpp | 2445 UndefElts = UndefSrcElts.extractBits(NumElts, Idx); in isSplatValue() 2756 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in computeKnownBits() 3927 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in ComputeNumSignBits()
|
D | DAGCombiner.cpp | 5598 Constant &= SplatValue.extractBits(EltBitWidth, i * EltBitWidth); in visitAND() 21226 Bits = Bits.extractBits(NumSubBits, (Split - SubIdx - 1) * NumSubBits); in XformToShuffleWithZero() 21228 Bits = Bits.extractBits(NumSubBits, SubIdx * NumSubBits); in XformToShuffleWithZero()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 649 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, Offset); in SimplifyMultipleUseDemandedBits() 935 SubElts = DemandedElts.extractBits(NumSubElts, SubIdx); in SimplifyDemandedBits() 983 DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedBits() 1932 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, Offset); in SimplifyDemandedBits() 2270 if (SrcZero.extractBits(Scale, i * Scale).isAllOnesValue()) in SimplifyDemandedVectorElts() 2272 if (SrcUndef.extractBits(Scale, i * Scale).isAllOnesValue()) in SimplifyDemandedVectorElts() 2315 APInt SubElts = DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedVectorElts() 2336 APInt SubElts = DemandedElts.extractBits(NumSubElts, SubIdx); in SimplifyDemandedVectorElts() 2371 KnownUndef = SrcUndef.extractBits(NumElts, Idx); in SimplifyDemandedVectorElts() 2372 KnownZero = SrcZero.extractBits(NumElts, Idx); in SimplifyDemandedVectorElts()
|
D | SelectionDAG.cpp | 2341 UndefElts = UndefSrcElts.extractBits(NumElts, Idx); in isSplatValue() 2638 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in computeKnownBits() 3961 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in ComputeNumSignBits()
|
D | DAGCombiner.cpp | 5286 Constant &= SplatValue.extractBits(EltBitWidth, i * EltBitWidth); in visitAND() 19819 Bits = Bits.extractBits(NumSubBits, (Split - SubIdx - 1) * NumSubBits); in XformToShuffleWithZero() 19821 Bits = Bits.extractBits(NumSubBits, SubIdx * NumSubBits); in XformToShuffleWithZero()
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | APInt.h | 1573 APInt extractBits(unsigned numBits, unsigned bitPosition) const;
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | APInt.h | 1558 APInt extractBits(unsigned numBits, unsigned bitPosition) const;
|
/external/llvm-project/llvm/lib/Support/ |
D | APInt.cpp | 426 APInt APInt::extractBits(unsigned numBits, unsigned bitPosition) const { in extractBits() function in APInt
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | APInt.cpp | 431 APInt APInt::extractBits(unsigned numBits, unsigned bitPosition) const { in extractBits() function in APInt
|