Home
last modified time | relevance | path

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

12

/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 DRISCV.cpp101 static uint32_t extractBits(uint64_t v, uint32_t begin, uint32_t end) { in extractBits() function
109 return (insn & 0x1fff07f) | (extractBits(imm, 11, 5) << 25) | in setLO12_S()
110 (extractBits(imm, 4, 0) << 7); in setLO12_S()
349 uint16_t imm8 = extractBits(val, 8, 8) << 12; in relocate()
350 uint16_t imm4_3 = extractBits(val, 4, 3) << 10; in relocate()
351 uint16_t imm7_6 = extractBits(val, 7, 6) << 5; in relocate()
352 uint16_t imm2_1 = extractBits(val, 2, 1) << 3; in relocate()
353 uint16_t imm5 = extractBits(val, 5, 5) << 2; in relocate()
364 uint16_t imm11 = extractBits(val, 11, 11) << 12; in relocate()
365 uint16_t imm4 = extractBits(val, 4, 4) << 11; in relocate()
[all …]
H A DLoongArch.cpp145 static uint32_t extractBits(uint64_t v, uint32_t begin, uint32_t end) { in extractBits() function
149 static uint32_t getD5(uint64_t v) { return extractBits(v, 4, 0); } in getD5()
151 static uint32_t getJ5(uint64_t v) { return extractBits(v, 9, 5); } in getJ5()
154 uint32_t immLo = extractBits(imm, 15, 0); in setD5k16()
155 uint32_t immHi = extractBits(imm, 20, 16); in setD5k16()
160 uint32_t immLo = extractBits(imm, 15, 0); in setD10k16()
161 uint32_t immHi = extractBits(imm, 25, 16); in setD10k16()
166 return (insn & 0xfe00001f) | (extractBits(imm, 19, 0) << 5); in setJ20()
170 return (insn & 0xfffffc1f) | (extractBits(imm, 4, 0) << 5); in setJ5()
174 return (insn & 0xffc003ff) | (extractBits(imm, 11, 0) << 10); in setK12()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A Dloongarch.h329 inline uint32_t extractBits(uint64_t Val, unsigned Hi, unsigned Lo) { in extractBits() function
365 uint32_t Imm15_0 = extractBits(Imm, /*Hi=*/15, /*Lo=*/0) << 10; in applyFixup()
380 uint32_t Imm15_0 = extractBits(Imm, /*Hi=*/15, /*Lo=*/0) << 10; in applyFixup()
381 uint32_t Imm20_16 = extractBits(Imm, /*Hi=*/20, /*Lo=*/16); in applyFixup()
396 uint32_t Imm15_0 = extractBits(Imm, /*Hi=*/15, /*Lo=*/0) << 10; in applyFixup()
397 uint32_t Imm25_16 = extractBits(Imm, /*Hi=*/25, /*Lo=*/16); in applyFixup()
430 uint32_t Imm31_12 = extractBits(PageDelta, /*Hi=*/31, /*Lo=*/12) << 5; in applyFixup()
452 uint32_t Hi20 = extractBits(Value + (1 << 17), /*Hi=*/37, /*Lo=*/18) << 5; in applyFixup()
455 uint32_t Lo16 = extractBits(Value, /*Hi=*/17, /*Lo=*/2) << 10; in applyFixup()
/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.cpp217 RawBits.push_back(Bits.extractBits(8, I).getZExtValue()); in rebuildConstant()
224 RawBits.push_back(Bits.extractBits(16, I).getZExtValue()); in rebuildConstant()
233 RawBits.push_back(Bits.extractBits(32, I).getZExtValue()); in rebuildConstant()
243 RawBits.push_back(Bits.extractBits(64, I).getZExtValue()); in rebuildConstant()
315 APInt Elt = Bits->extractBits(DstEltBitWidth, I * DstEltBitWidth); in rebuildExtCst()
H A DX86ISelLowering.cpp4037 Ops.push_back(DAG.getConstant(V.extractBits(32, 0), dl, EltVT)); in getConstVector()
4038 Ops.push_back(DAG.getConstant(V.extractBits(32, 32), dl, EltVT)); in getConstVector()
5042 APInt UndefEltBits = UndefBits.extractBits(EltSizeInBits, BitOffset); in getTargetConstantBitsFromNode()
5057 EltBits[i] = MaskBits.extractBits(EltSizeInBits, BitOffset); in getTargetConstantBitsFromNode()
5267 UndefElts = UndefElts.extractBits(NumSubElts, BaseIdx); in getTargetConstantBitsFromNode()
5890 Val = Val.extractBits(ScalarSizeInBits, (M % Scale) * ScalarSizeInBits); in computeZeroableShuffleElements()
5895 Val = Val.extractBits(ScalarSizeInBits, (M % Scale) * ScalarSizeInBits); in computeZeroableShuffleElements()
6216 if (DemandedElts.extractBits(NumSubElts, InsertIdx) == 0) { in getFauxShuffleMask()
6907 if (!NonZeroMask.extractBits(2, 0).isZero() && in LowerBuildVectorv16i8()
6908 !NonZeroMask.extractBits(2, 2).isZero()) { in LowerBuildVectorv16i8()
[all …]
H A DX86TargetTransformInfo.cpp5013 APInt LaneEltMask = WidenedDemandedElts.extractBits( in getScalarizationOverhead()
5094 APInt LaneEltMask = WidenedDemandedElts.extractBits( in getScalarizationOverhead()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h218 KnownBits extractBits(unsigned NumBits, unsigned BitPosition) const { in extractBits() function
219 return KnownBits(Zero.extractBits(NumBits, BitPosition), in extractBits()
220 One.extractBits(NumBits, BitPosition)); in extractBits()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DHashRecognize.cpp455 return CheckFn(Known.extractBits(N, 0)); in checkExtractBits()
461 return CheckFn(Known.extractBits(N, BitPos)) && in checkExtractBits()
462 Known.extractBits(Known.getBitWidth() - N, SwappedBitPos).isUnknown(); in checkExtractBits()
H A DConstantFolding.cpp454 CurPtr[i] = Val.extractBits(8, n * 8).getZExtValue(); in ReadDataFromGlobal()
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/cpu_model/aarch64/fmv/
H A Dmrs.inc11 #define extractBits(val, start, number) \
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp737 static inline uint32_t extractBits(uint64_t Val, uint32_t Hi, uint32_t Lo) { in extractBits() function
773 uint32_t Imm15_0 = extractBits(B26, /*Hi=*/15, /*Lo=*/0) << 10; in resolveLoongArch64Relocation()
774 uint32_t Imm25_16 = extractBits(B26, /*Hi=*/25, /*Lo=*/16); in resolveLoongArch64Relocation()
782 extractBits((Call36 + (1UL << 15)), /*Hi=*/35, /*Lo=*/16) << 5; in resolveLoongArch64Relocation()
785 uint32_t Imm15_0 = extractBits(Call36, /*Hi=*/15, /*Lo=*/0) << 10; in resolveLoongArch64Relocation()
797 uint32_t Imm31_12 = extractBits(PageDelta, /*Hi=*/31, /*Lo=*/12) << 5; in resolveLoongArch64Relocation()
812 uint32_t Imm31_12 = extractBits(Target, /*Hi=*/31, /*Lo=*/12) << 5; in resolveLoongArch64Relocation()
819 uint32_t Imm11_0 = extractBits(Target, /*Hi=*/11, /*Lo=*/0) << 10; in resolveLoongArch64Relocation()
826 uint32_t Imm51_32 = extractBits(Target, /*Hi=*/51, /*Lo=*/32) << 5; in resolveLoongArch64Relocation()
833 uint32_t Imm63_52 = extractBits(Target, /*Hi=*/63, /*Lo=*/52) << 10; in resolveLoongArch64Relocation()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelValueTracking.cpp152 static KnownBits extractBits(unsigned BitWidth, const KnownBits &SrcOpKnown, in extractBits() function
565 Known = SrcOpKnown.extractBits(BitWidth, BitWidth * DstIdx); in computeKnownBitsImpl()
600 Known = extractBits(BitWidth, SrcOpKnown, OffsetKnown, WidthKnown); in computeKnownBitsImpl()
611 Known = extractBits(BitWidth, SrcOpKnown, OffsetKnown, WidthKnown); in computeKnownBitsImpl()
688 DemandedElts.extractBits(NumSubVectorElts, I * NumSubVectorElts); in computeKnownBitsImpl()
1973 DemandedElts.extractBits(NumSubVectorElts, I * NumSubVectorElts); in computeNumSignBits()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp784 LHS = LHS.extractBits(BitWidth, 1); in avgComputeU()
906 return mul(WideLHS, WideRHS).extractBits(BitWidth, BitWidth); in mulhs()
914 return mul(WideLHS, WideRHS).extractBits(BitWidth, BitWidth); in mulhu()
H A DAPInt.cpp482 APInt APInt::extractBits(unsigned numBits, unsigned bitPosition) const { in extractBits() function in APInt
3037 if (A.extractBits(Scale, i * Scale).isAllOnes()) in ScaleBitMask()
3040 if (!A.extractBits(Scale, i * Scale).isZero()) in ScaleBitMask()
3128 return (C1Ext * C2Ext).extractBits(C1.getBitWidth(), C1.getBitWidth()); in mulhs()
3136 return (C1Ext * C2Ext).extractBits(C1.getBitWidth(), C1.getBitWidth()); in mulhu()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp1721 NewVal.extractBits(ViaEltSizeInBits, i * ViaEltSizeInBits), DL, in getConstant()
1738 NewVal.extractBits(ViaEltSizeInBits, i * ViaEltSizeInBits), DL, in getConstant()
3116 UndefElts = UndefSrcElts.extractBits(NumElts, Idx); in isSplatValue()
3534 DemandedElts.extractBits(NumSubVectorElts, i * NumSubVectorElts); in computeKnownBits()
3555 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in computeKnownBits()
3658 Known = Known.intersectWith(Known2.extractBits(BitWidth, Offset)); in computeKnownBits()
3916 Known = Known.extractBits(LoBits, 0); in computeKnownBits()
3918 Known = Known.extractBits(HiBits, LoBits); in computeKnownBits()
5221 DemandedElts.extractBits(NumSubVectorElts, i * NumSubVectorElts); in ComputeNumSignBits()
5239 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in ComputeNumSignBits()
[all …]
H A DTargetLowering.cpp744 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, BitOffset); in SimplifyMultipleUseDemandedBits()
940 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in SimplifyMultipleUseDemandedBits()
1317 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in SimplifyDemandedBits()
1390 DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedBits()
2788 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, BitOffset); in SimplifyDemandedBits()
3323 if (!Known.Zero.extractBits(EltSizeInBits, SubElt * EltSizeInBits) in SimplifyDemandedVectorElts()
3360 if (SrcZero.extractBits(Scale, i * Scale).isAllOnes()) in SimplifyDemandedVectorElts()
3362 if (SrcUndef.extractBits(Scale, i * Scale).isAllOnes()) in SimplifyDemandedVectorElts()
3419 APInt SubElts = DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedVectorElts()
3434 APInt SubElts = DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedVectorElts()
[all …]
H A DLegalizeFloatTypes.cpp1657 Lo = DAG.getConstantFP(APFloat(Sem, C.extractBits(64, 64)), dl, NVT); in ExpandFloatRes_ConstantFP()
1658 Hi = DAG.getConstantFP(APFloat(Sem, C.extractBits(64, 0)), dl, NVT); in ExpandFloatRes_ConstantFP()
H A DDAGCombiner.cpp7549 Constant &= SplatValue.extractBits(EltBitWidth, i * EltBitWidth); in visitAND()
28088 Bits->extractBits(NumSubBits, (Split - SubIdx - 1) * NumSubBits); in XformToShuffleWithZero()
28090 *Bits = Bits->extractBits(NumSubBits, SubIdx * NumSubBits); in XformToShuffleWithZero()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h1479 LLVM_ABI APInt extractBits(unsigned numBits, unsigned bitPosition) const;
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp761 if (!materializeImm(GPRRegHigh, Imm.extractBits(32, 32).getSExtValue(), in select()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterpBuiltin.cpp1425 APInt Result = ExResult.extractBits(BitWidth, 0); in interp__builtin_ia32_addcarry_subborrow()
1427 APSInt(ExResult.extractBits(1, BitWidth), /*IsUnsigned=*/true); in interp__builtin_ia32_addcarry_subborrow()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXISelLowering.cpp6389 APInt Sel = SelectorVal.extractBits(4, I * 4); in computeKnownBitsForPRMT()
6392 KnownBits Byte = BitField.extractBits(8, Idx * 8); in computeKnownBitsForPRMT()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp7796 SValInt.extractBits(1, (BigEndian ? NElts - I - 1 : I) * EltSize); in visit()
13895 APInt Result = ExResult.extractBits(BitWidth, 0); in VisitBuiltinCallExpr()

12