| /freebsd/contrib/llvm-project/llvm/lib/Target/M68k/MCTargetDesc/ |
| H A D | M68kMCCodeEmitter.cpp | 97 template <unsigned Size> static unsigned getBytePosition(unsigned BitPos) { in getBytePosition() argument 99 return static_cast<unsigned>(BitPos / 8 + ((BitPos & 0b1111) < 8 ? 1 : -1)); in getBytePosition() 101 assert(!(BitPos & 0b1111) && "Not aligned to word boundary?"); in getBytePosition() 102 return BitPos / 8; in getBytePosition()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | SmallBitVector.h | 69 unsigned BitPos; variable 72 reference(SmallBitVector &b, unsigned Idx) : TheVector(b), BitPos(Idx) {} in reference() 83 TheVector.set(BitPos); 85 TheVector.reset(BitPos); 90 return const_cast<const SmallBitVector &>(TheVector).operator[](BitPos);
|
| H A D | SparseBitVector.h | 153 unsigned BitPos = Curr % BITWORD_SIZE; in find_next() local 159 Copy &= ~0UL << BitPos; in find_next() 347 unsigned BitPos = Iter->find_first(); in AdvanceToFirstNonZero() local 348 BitNumber += BitPos; in AdvanceToFirstNonZero() 351 Bits >>= BitPos % BITWORD_SIZE; in AdvanceToFirstNonZero()
|
| H A D | BitVector.h | 102 unsigned BitPos; variable 107 BitPos = Idx % BITWORD_SIZE; in reference() 120 *WordRef |= BitWord(1) << BitPos; 122 *WordRef &= ~(BitWord(1) << BitPos); 127 return ((*WordRef) & (BitWord(1) << BitPos)) != 0;
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopIdiomRecognize.cpp | 2726 Value *&BitMask, Value *&BitPos, in detectShiftUntilBitTestIdiom() argument 2763 m_LoopInvariant(m_Shl(m_One(), m_Value(BitPos)), in detectShiftUntilBitTestIdiom() 2776 BitPos = ConstantInt::get(CurrX->getType(), Res->Mask.logBase2()); in detectShiftUntilBitTestIdiom() 2882 Value *X, *BitMask, *BitPos, *XCurr; in recognizeShiftUntilBitTest() local 2884 if (!detectShiftUntilBitTestIdiom(CurLoop, X, BitMask, BitPos, XCurr, in recognizeShiftUntilBitTest() 2932 if (!isGuaranteedNotToBeUndefOrPoison(BitPos)) { in recognizeShiftUntilBitTest() 2936 if (auto *BitPosI = dyn_cast<Instruction>(BitPos)) in recognizeShiftUntilBitTest() 2943 new FreezeInst(BitPos, BitPos->getName() + ".fr", *InsertPt); in recognizeShiftUntilBitTest() 2944 BitPos->replaceUsesWithIf(BitPosFrozen, [BitPosFrozen](Use &U) { in recognizeShiftUntilBitTest() 2947 BitPos = BitPosFrozen; in recognizeShiftUntilBitTest() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64AsmPrinter.cpp | 2477 for (int BitPos = 0; BitPos != 24 && (AbsOffset >> BitPos); in LowerMOVaddrPAC() local 2478 BitPos += 12) { in LowerMOVaddrPAC() 2483 .addImm((AbsOffset >> BitPos) & 0xfff) in LowerMOVaddrPAC() 2484 .addImm(AArch64_AM::getShifterImm(AArch64_AM::LSL, BitPos))); in LowerMOVaddrPAC() 2492 auto NeedMovk = [IsNeg, UOffset](int BitPos) -> bool { in LowerMOVaddrPAC() argument 2493 assert(BitPos == 16 || BitPos == 32 || BitPos == 48); in LowerMOVaddrPAC() 2494 uint64_t Shifted = UOffset >> BitPos; in LowerMOVaddrPAC() 2497 for (int I = 0; I != 64 - BitPos; I += 16) in LowerMOVaddrPAC() 2502 for (int BitPos = 16; BitPos != 64 && NeedMovk(BitPos); BitPos += 16) in LowerMOVaddrPAC() local 2503 emitMOVK(AArch64::X17, (UOffset >> BitPos) & 0xffff, BitPos); in LowerMOVaddrPAC()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | CommandLine.h | 1781 unsigned BitPos = static_cast<unsigned>(V); 1782 assert(BitPos < sizeof(unsigned) * CHAR_BIT && 1784 return 1 << BitPos; 1823 unsigned BitPos = static_cast<unsigned>(V); 1824 assert(BitPos < sizeof(unsigned) * CHAR_BIT && 1826 return 1 << BitPos;
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | HashRecognize.cpp | 459 unsigned BitPos = ByteOrderSwapped ? 0 : Known.getBitWidth() - N; in checkExtractBits() local 461 return CheckFn(Known.extractBits(N, BitPos)) && in checkExtractBits()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/ |
| H A D | RISCV.cpp | 1013 auto [GroupID, BitPos] = RISCVISAInfo::getRISCVFeaturesBitsInfo(Feat); in EmitRISCVCpuSupports() 1017 if (BitPos == -1) in EmitRISCVCpuSupports() 1020 RequireBitMasks[GroupID] |= (1ULL << BitPos); in EmitRISCVCpuSupports()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGBuiltin.cpp | 1648 Value *BitPos) { in EmitX86BitTestIntrinsic() argument 1677 return CGF.Builder.CreateCall(IA, {BitBase, BitPos}); in EmitX86BitTestIntrinsic() 1700 Value *BitPos = CGF.EmitScalarExpr(E->getArg(1)); in EmitBitTestIntrinsic() local 1707 return EmitX86BitTestIntrinsic(CGF, BT, E, BitBase, BitPos); in EmitBitTestIntrinsic() 1714 BitPos, llvm::ConstantInt::get(BitPos->getType(), 3), "bittest.byteidx"); in EmitBitTestIntrinsic() 1719 CGF.Builder.CreateAnd(CGF.Builder.CreateTrunc(BitPos, CGF.Int8Ty), in EmitBitTestIntrinsic()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVFeatures.td | 58 int BitPos = bitPos;
|
| H A D | RISCVISelLowering.cpp | 3981 unsigned BitPos = 0, IntegerEltIdx = 0; in lowerBuildVectorOfConstants() local 3987 Bits |= ((uint64_t)BitValue << BitPos); in lowerBuildVectorOfConstants() 3988 ++BitPos; in lowerBuildVectorOfConstants() 3999 BitPos = 0; in lowerBuildVectorOfConstants()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 13327 unsigned BitPos = j * EltWidth; in isConstantSplat() local 13330 SplatUndef.setBits(BitPos, BitPos + EltWidth); in isConstantSplat() 13332 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat() 13334 SplatValue.insertBits(CN->getValueAPF().bitcastToAPInt(), BitPos); in isConstantSplat()
|
| H A D | DAGCombiner.cpp | 23466 unsigned BitPos; in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() member 23472 : Producer(Producer_), BitPos(BitPos_), NumBits(NumBits_) {} in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() 23489 if (!(E.NumBits > 0 && E.BitPos < VecVT.getSizeInBits() && in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() 23490 E.BitPos + E.NumBits <= VecVT.getSizeInBits())) in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() 23503 Worklist.emplace_back(User, E.BitPos, in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() 23515 Worklist.emplace_back(User, E.BitPos + ShAmt, E.NumBits - ShAmt); in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() 23550 E.BitPos % NewVecEltBitWidth == 0; in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() 23570 unsigned NewIndex = E.BitPos / NewVecEltBitWidth; in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts()
|
| /freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 3900 for (uint64_t BitPos : DeferredMetadataInfo) { in materializeMetadata() local 3902 if (Error JumpFailed = Stream.JumpToBit(BitPos)) in materializeMetadata()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelLowering.cpp | 9608 unsigned BitPos = 0; in isValidMtVsrBmi() local 9617 IsLittleEndian ? BitPos : VTSize - EltWidth - BitPos); in isValidMtVsrBmi() 9618 BitPos += EltWidth; in isValidMtVsrBmi()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 31926 Value *BitPos = in emitBitTestAtomicRMWIntrinsic() local 31934 Result = Builder.CreateIntrinsic(IID_I, AI->getType(), {Addr, BitPos}); in emitBitTestAtomicRMWIntrinsic() 31951 Result = Builder.CreateShl(Result, BitPos); in emitBitTestAtomicRMWIntrinsic()
|