Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/builtins/cpu_model/aarch64/fmv/
H A Dmrs.inc118 if (extractBits(ftr, 8, 4) >= 0x1)
121 if (extractBits(ftr, 4, 4) == 0x1)
124 if (extractBits(ftr, 24, 4) == 0x2)
150 if (extractBits(ftr, 32, 4) != 0x0)
154 if (extractBits(ftr, 0, 4) >= 0x1)
157 if (extractBits(ftr, 20, 4) != 0x0)
160 if (extractBits(ftr, 20, 4) == 0x3)
163 if (extractBits(ftr, 40, 4) == 0x2)
166 if (extractBits(ftr, 44, 4) != 0x0)
169 if (extractBits(ftr, 60, 4) >= 0x1)
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DELF_riscv.cpp216 uint32_t Imm4_1 = extractBits(Value, 1, 4) << 8; in applyFixup()
217 uint32_t Imm11 = extractBits(Value, 11, 1) << 7; in applyFixup()
293 uint32_t Imm11_5 = extractBits(Lo, 5, 7) << 25; in applyFixup()
294 uint32_t Imm4_0 = extractBits(Lo, 0, 5) << 7; in applyFixup()
325 uint32_t Imm11_5 = extractBits(Lo, 5, 7) << 25; in applyFixup()
326 uint32_t Imm4_0 = extractBits(Lo, 0, 5) << 7; in applyFixup()
394 uint16_t Imm5 = extractBits(Value, 5, 1) << 2; in applyFixup()
410 uint16_t Imm6 = extractBits(Value, 6, 1) << 7; in applyFixup()
411 uint16_t Imm7 = extractBits(Value, 7, 1) << 6; in applyFixup()
413 uint16_t Imm5 = extractBits(Value, 5, 1) << 2; in applyFixup()
[all …]
/freebsd-14.2/contrib/llvm-project/lld/ELF/Arch/
H A DRISCV.cpp107 (extractBits(imm, 4, 0) << 7); in setLO12_S()
350 uint16_t imm8 = extractBits(val, 8, 8) << 12; 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()
366 uint16_t imm4 = extractBits(val, 4, 4) << 11; in relocate()
367 uint16_t imm9_8 = extractBits(val, 9, 8) << 9; in relocate()
369 uint16_t imm6 = extractBits(val, 6, 6) << 7; in relocate()
370 uint16_t imm7 = extractBits(val, 7, 7) << 6; in relocate()
371 uint16_t imm3_1 = extractBits(val, 3, 1) << 3; in relocate()
[all …]
H A DLoongArch.cpp127 static uint32_t extractBits(uint64_t v, uint32_t begin, uint32_t end) { in extractBits() function
132 uint32_t immLo = extractBits(imm, 15, 0); in setD5k16()
133 uint32_t immHi = extractBits(imm, 20, 16); in setD5k16()
138 uint32_t immLo = extractBits(imm, 15, 0); in setD10k16()
139 uint32_t immHi = extractBits(imm, 25, 16); in setD10k16()
144 return (insn & 0xfe00001f) | (extractBits(imm, 19, 0) << 5); in setJ20()
148 return (insn & 0xffc003ff) | (extractBits(imm, 11, 0) << 10); in setK12()
152 return (insn & 0xfc0003ff) | (extractBits(imm, 15, 0) << 10); in setK16()
568 uint32_t hi20 = extractBits(val + (1 << 17), 37, 18); in relocate()
570 uint32_t lo16 = extractBits(val, 17, 2); in relocate()
[all …]
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupVectorConstants.cpp170 RawBits.push_back(Bits.extractBits(8, I).getZExtValue()); in rebuildConstant()
177 RawBits.push_back(Bits.extractBits(16, I).getZExtValue()); in rebuildConstant()
186 RawBits.push_back(Bits.extractBits(32, I).getZExtValue()); in rebuildConstant()
196 RawBits.push_back(Bits.extractBits(64, I).getZExtValue()); in rebuildConstant()
H A DX86ShuffleDecodeConstantPool.cpp99 APInt EltUndef = UndefBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask()
109 APInt EltBits = MaskBits.extractBits(MaskEltSizeInBits, BitOffset); in extractConstantMask()
H A DX86ISelLowering.cpp4660 EltBits[i] = MaskBits.extractBits(EltSizeInBits, BitOffset); in getTargetConstantBitsFromNode()
4869 UndefElts = UndefElts.extractBits(NumSubElts, BaseIdx); in getTargetConstantBitsFromNode()
6411 if (!NonZeroMask.extractBits(2, 0).isZero() && in LowerBuildVectorv16i8()
6412 !NonZeroMask.extractBits(2, 2).isZero()) { in LowerBuildVectorv16i8()
7096 APInt Val = SplatValue.extractBits(ScalarSize, ScalarSize * I); in getConstantVector()
9935 if (!Zeroable.extractBits(UpperElts, NumSrcElts).isAllOnes()) in matchShuffleAsVTRUNC()
10033 !Zeroable.extractBits(UpperElts, NumSrcElts).isAllOnes()) in lowerShuffleWithVPMOV()
36731 Known = Known.extractBits(Length, Shift); in computeKnownBitsForTargetNode()
39304 assert(!OpDemandedElts.extractBits( in combineX86ShufflesRecursively()
42165 Known = Known.extractBits(Length, Shift); in SimplifyDemandedBitsForTargetNode()
[all …]
H A DX86TargetTransformInfo.cpp4557 APInt LaneEltMask = WidenedDemandedElts.extractBits( in getScalarizationOverhead()
4638 APInt LaneEltMask = WidenedDemandedElts.extractBits( in getScalarizationOverhead()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h216 KnownBits extractBits(unsigned NumBits, unsigned BitPosition) const { in extractBits() function
217 return KnownBits(Zero.extractBits(NumBits, BitPosition), in extractBits()
218 One.extractBits(NumBits, BitPosition)); in extractBits()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp128 static KnownBits extractBits(unsigned BitWidth, const KnownBits &SrcOpKnown, in extractBits() function
516 Known = SrcOpKnown.extractBits(BitWidth, BitWidth * DstIdx); in computeKnownBitsImpl()
551 Known = extractBits(BitWidth, SrcOpKnown, OffsetKnown, WidthKnown); in computeKnownBitsImpl()
562 Known = extractBits(BitWidth, SrcOpKnown, OffsetKnown, WidthKnown); in computeKnownBitsImpl()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp751 return mul(WideLHS, WideRHS).extractBits(BitWidth, BitWidth); in mulhs()
760 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
3014 if (A.extractBits(Scale, i * Scale).isAllOnes()) in ScaleBitMask()
3017 if (!A.extractBits(Scale, i * Scale).isZero()) in ScaleBitMask()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2827 UndefElts = UndefSrcElts.extractBits(NumElts, Idx); in isSplatValue()
3394 Known = Known.extractBits(BitWidth, 1); in computeKnownBits()
3524 Known = Known.extractBits(LoBits, 0); in computeKnownBits()
3526 Known = Known.extractBits(HiBits, LoBits); in computeKnownBits()
5962 return (C1Ext + C2Ext).extractBits(C1.getBitWidth(), 1); in FoldValue()
5968 return (C1Ext + C2Ext).extractBits(C1.getBitWidth(), 1); in FoldValue()
5974 return (C1Ext + C2Ext + 1).extractBits(C1.getBitWidth(), 1); in FoldValue()
5980 return (C1Ext + C2Ext + 1).extractBits(C1.getBitWidth(), 1); in FoldValue()
12445 APInt HighValue = SplatValue.extractBits(HalfSize, HalfSize); in isConstantSplat()
12446 APInt LowValue = SplatValue.extractBits(HalfSize, 0); in isConstantSplat()
[all …]
H A DTargetLowering.cpp711 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, BitOffset); in SimplifyMultipleUseDemandedBits()
872 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in SimplifyMultipleUseDemandedBits()
1241 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in SimplifyDemandedBits()
1314 DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedBits()
2687 APInt Sub = DemandedBits.extractBits(NumSrcEltBits, BitOffset); in SimplifyDemandedBits()
3181 if (SrcZero.extractBits(Scale, i * Scale).isAllOnes()) in SimplifyDemandedVectorElts()
3183 if (SrcUndef.extractBits(Scale, i * Scale).isAllOnes()) in SimplifyDemandedVectorElts()
3226 APInt SubElts = DemandedElts.extractBits(NumSubElts, i * NumSubElts); in SimplifyDemandedVectorElts()
3262 APInt DemandedSubElts = DemandedElts.extractBits(NumSubElts, Idx); in SimplifyDemandedVectorElts()
3312 KnownUndef = SrcUndef.extractBits(NumElts, Idx); in SimplifyDemandedVectorElts()
[all …]
H A DDAGCombiner.cpp7135 Constant &= SplatValue.extractBits(EltBitWidth, i * EltBitWidth); in visitAND()
26582 Bits = Bits.extractBits(NumSubBits, (Split - SubIdx - 1) * NumSubBits); in XformToShuffleWithZero()
26584 Bits = Bits.extractBits(NumSubBits, SubIdx * NumSubBits); in XformToShuffleWithZero()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h1425 APInt extractBits(unsigned numBits, unsigned bitPosition) const;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp582 if (!materializeImm(GPRRegHigh, Imm.extractBits(32, 32).getSExtValue(), in select()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp437 CurPtr[i] = Val.extractBits(8, n * 8).getZExtValue(); in ReadDataFromGlobal()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp7429 SValInt.extractBits(1, (BigEndian ? NElts - I - 1 : I) * EltSize); in visit()