Home
last modified time | relevance | path

Searched refs:extractBits (Results 1 – 20 of 20) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DELF_riscv.cpp136 static uint32_t extractBits(uint32_t Num, unsigned Low, unsigned Size) { in extractBits() function
216 uint32_t Imm12 = extractBits(Value, 12, 1) << 31; in applyFixup()
217 uint32_t Imm10_5 = extractBits(Value, 5, 6) << 25; in applyFixup()
218 uint32_t Imm4_1 = extractBits(Value, 1, 4) << 8; in applyFixup()
219 uint32_t Imm11 = extractBits(Value, 11, 1) << 7; in applyFixup()
231 uint32_t Imm20 = extractBits(Value, 20, 1) << 31; in applyFixup()
232 uint32_t Imm10_1 = extractBits(Value, 1, 10) << 21; in applyFixup()
233 uint32_t Imm11 = extractBits(Value, 11, 1) << 20; in applyFixup()
234 uint32_t Imm19_12 = extractBits(Value, 12, 8) << 12; in applyFixup()
295 uint32_t Imm11_5 = extractBits(Lo, 5, 7) << 25; in applyFixup()
[all …]
/freebsd/contrib/llvm-project/lld/ELF/Arch/
H A DLoongArch.cpp130 static uint32_t extractBits(uint64_t v, uint32_t begin, uint32_t end) { in extractBits() function
135 uint32_t immLo = extractBits(imm, 15, 0); in setD5k16()
136 uint32_t immHi = extractBits(imm, 20, 16); in setD5k16()
141 uint32_t immLo = extractBits(imm, 15, 0); in setD10k16()
142 uint32_t immHi = extractBits(imm, 25, 16); in setD10k16()
147 return (insn & 0xfe00001f) | (extractBits(imm, 19, 0) << 5); in setJ20()
151 return (insn & 0xffc003ff) | (extractBits(imm, 11, 0) << 10); in setK12()
155 return (insn & 0xfc0003ff) | (extractBits(imm, 15, 0) << 10); in setK16()
605 uint32_t hi20 = extractBits(val + (1 << 17), 37, 18); in relocate()
607 uint32_t lo16 = extractBits(val, 17, 2); in relocate()
[all …]
H A DRISCV.cpp98 static uint32_t extractBits(uint64_t v, uint32_t begin, uint32_t end) { in extractBits() function
106 return (insn & 0x1fff07f) | (extractBits(imm, 11, 5) << 25) | in setLO12_S()
107 (extractBits(imm, 4, 0) << 7); in setLO12_S()
350 uint16_t imm8 = extractBits(val, 8, 8) << 12; in relocate()
351 uint16_t imm4_3 = extractBits(val, 4, 3) << 10; in relocate()
352 uint16_t imm7_6 = extractBits(val, 7, 6) << 5; in relocate()
353 uint16_t imm2_1 = extractBits(val, 2, 1) << 3; in relocate()
354 uint16_t imm5 = extractBits(val, 5, 5) << 2; in relocate()
365 uint16_t imm11 = extractBits(val, 11, 11) << 12; in relocate()
366 uint16_t imm4 = extractBits(val, 4, 4) << 11; in relocate()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/cpu_model/aarch64/fmv/
H A Dmrs.inc11 #define extractBits(val, start, number) \
111 if (extractBits(ftr, 40, 4) >= 0x1)
114 if (extractBits(ftr, 60, 4) >= 0x1)
117 if (extractBits(ftr, 60, 4) >= 0x2)
120 if (extractBits(ftr, 60, 4) >= 0x3)
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A Dloongarch.h168 inline uint32_t extractBits(uint32_t Val, unsigned Hi, unsigned Lo) { in extractBits() function
204 uint32_t Imm15_0 = extractBits(Imm, /*Hi=*/15, /*Lo=*/0) << 10; in applyFixup()
205 uint32_t Imm25_16 = extractBits(Imm, /*Hi=*/25, /*Lo=*/16); in applyFixup()
238 uint32_t Imm31_12 = extractBits(PageDelta, /*Hi=*/31, /*Lo=*/12) << 5; in applyFixup()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h214 KnownBits extractBits(unsigned NumBits, unsigned BitPosition) const { in extractBits() function
215 return KnownBits(Zero.extractBits(NumBits, BitPosition), in extractBits()
216 One.extractBits(NumBits, BitPosition)); in extractBits()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ShuffleDecodeConstantPool.cpp99 APInt EltUndef = UndefBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask()
109 APInt EltBits = MaskBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask()
H A DX86FixupVectorConstants.cpp210 RawBits.push_back(Bits.extractBits(8, I).getZExtValue()); in rebuildConstant()
217 RawBits.push_back(Bits.extractBits(16, I).getZExtValue()); in rebuildConstant()
226 RawBits.push_back(Bits.extractBits(32, I).getZExtValue()); in rebuildConstant()
236 RawBits.push_back(Bits.extractBits(64, I).getZExtValue()); in rebuildConstant()
308 APInt Elt = Bits->extractBits(DstEltBitWidth, I * DstEltBitWidth); in rebuildExtCst()
H A DX86ISelLowering.cpp4782 APInt UndefEltBits = UndefBits.extractBits(EltSizeInBits, BitOffset); in getTargetConstantBitsFromNode()
4797 EltBits[i] = MaskBits.extractBits(EltSizeInBits, BitOffset); in getTargetConstantBitsFromNode()
5006 UndefElts = UndefElts.extractBits(NumSubElts, BaseIdx); in getTargetConstantBitsFromNode()
5595 Val = Val.extractBits(ScalarSizeInBits, (M % Scale) * ScalarSizeInBits); in computeZeroableShuffleElements()
5600 Val = Val.extractBits(ScalarSizeInBits, (M % Scale) * ScalarSizeInBits); in computeZeroableShuffleElements()
6557 if (!NonZeroMask.extractBits(2, 0).isZero() && in LowerBuildVectorv16i8()
6558 !NonZeroMask.extractBits(2, 2).isZero()) { in LowerBuildVectorv16i8()
7069 if (UndefMask.extractBits(HalfNumElems, HalfNumElems).isAllOnes()) { in EltsFromConsecutiveLoads()
7242 APInt Val = SplatValue.extractBits(ScalarSize, ScalarSize * I); in getConstantVector()
10077 if (!Zeroable.extractBits(UpperElts, NumSrcElts).isAllOnes()) in matchShuffleAsVTRUNC()
[all …]
H A DX86TargetTransformInfo.cpp4683 APInt LaneEltMask = WidenedDemandedElts.extractBits( in getScalarizationOverhead()
4764 APInt LaneEltMask = WidenedDemandedElts.extractBits( in getScalarizationOverhead()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp133 static KnownBits extractBits(unsigned BitWidth, const KnownBits &SrcOpKnown, in extractBits() function
524 Known = SrcOpKnown.extractBits(BitWidth, BitWidth * DstIdx); in computeKnownBitsImpl()
559 Known = extractBits(BitWidth, SrcOpKnown, OffsetKnown, WidthKnown); in computeKnownBitsImpl()
570 Known = extractBits(BitWidth, SrcOpKnown, OffsetKnown, WidthKnown); in computeKnownBitsImpl()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp773 LHS = LHS.extractBits(BitWidth, 1); in avgCompute()
899 return mul(WideLHS, WideRHS).extractBits(BitWidth, BitWidth); in mulhs()
907 return mul(WideLHS, WideRHS).extractBits(BitWidth, BitWidth); in mulhu()
H A DAPInt.cpp453 APInt APInt::extractBits(unsigned numBits, unsigned bitPosition) const { in extractBits() function in APInt
3006 if (A.extractBits(Scale, i * Scale).isAllOnes()) in ScaleBitMask()
3009 if (!A.extractBits(Scale, i * Scale).isZero()) in ScaleBitMask()
3097 return (C1Ext * C2Ext).extractBits(C1.getBitWidth(), C1.getBitWidth()); in mulhs()
3105 return (C1Ext * C2Ext).extractBits(C1.getBitWidth(), C1.getBitWidth()); in mulhu()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp1682 NewVal.extractBits(ViaEltSizeInBits, i * ViaEltSizeInBits), DL, in getConstant()
1699 NewVal.extractBits(ViaEltSizeInBits, i * ViaEltSizeInBits), DL, in getConstant()
2868 UndefElts = UndefSrcElts.extractBits(NumElts, Idx); in isSplatValue()
3291 DemandedElts.extractBits(NumSubVectorElts, i * NumSubVectorElts); in computeKnownBits()
3312 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in computeKnownBits()
3415 Known = Known.intersectWith(Known2.extractBits(BitWidth, Offset)); in computeKnownBits()
3673 Known = Known.extractBits(LoBits, 0); in computeKnownBits()
3675 Known = Known.extractBits(HiBits, LoBits); in computeKnownBits()
4946 DemandedElts.extractBits(NumSubVectorElts, i * NumSubVectorElts); in ComputeNumSignBits()
4964 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in ComputeNumSignBits()
[all …]
H A DTargetLowering.cpp717 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, BitOffset); in SimplifyMultipleUseDemandedBits()
885 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in SimplifyMultipleUseDemandedBits()
1262 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in SimplifyDemandedBits()
1335 DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedBits()
2720 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, BitOffset); in SimplifyDemandedBits()
3182 if (!Known.Zero.extractBits(EltSizeInBits, SubElt * EltSizeInBits) in SimplifyDemandedVectorElts()
3219 if (SrcZero.extractBits(Scale, i * Scale).isAllOnes()) in SimplifyDemandedVectorElts()
3221 if (SrcUndef.extractBits(Scale, i * Scale).isAllOnes()) in SimplifyDemandedVectorElts()
3278 APInt SubElts = DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedVectorElts()
3293 APInt SubElts = DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedVectorElts()
[all …]
H A DDAGCombiner.cpp7126 Constant &= SplatValue.extractBits(EltBitWidth, i * EltBitWidth); in visitAND()
26976 Bits = Bits.extractBits(NumSubBits, (Split - SubIdx - 1) * NumSubBits); in XformToShuffleWithZero()
26978 Bits = Bits.extractBits(NumSubBits, SubIdx * NumSubBits); in XformToShuffleWithZero()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h1440 APInt extractBits(unsigned numBits, unsigned bitPosition) const;
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp597 if (!materializeImm(GPRRegHigh, Imm.extractBits(32, 32).getSExtValue(), in select()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp437 CurPtr[i] = Val.extractBits(8, n * 8).getZExtValue(); in ReadDataFromGlobal()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp7487 SValInt.extractBits(1, (BigEndian ? NElts - I - 1 : I) * EltSize); in visit()