/llvm-project/llvm/lib/Target/M68k/MCTargetDesc/ |
H A D | M68kMCCodeEmitter.cpp | 92 template <unsigned Size> static unsigned getBytePosition(unsigned BitPos) { in getBytePosition() argument 94 return static_cast<unsigned>(BitPos / 8 + ((BitPos & 0b1111) < 8 ? 1 : -1)); in getBytePosition() 96 assert(!(BitPos & 0b1111) && "Not aligned to word boundary?"); in getBytePosition() 97 return BitPos / 8; in getBytePosition()
|
/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;
|
/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64AsmPrinter.cpp | 2459 for (int BitPos = 0; BitPos != 24 && (AbsOffset >> BitPos); in emitMachOIFuncStubHelperBody() 2460 BitPos += 12) { in emitMachOIFuncStubHelperBody() 2465 .addImm((AbsOffset >> BitPos) & 0xfff) in emitMachOIFuncStubHelperBody() 2466 .addImm(AArch64_AM::getShifterImm(AArch64_AM::LSL, BitPos))); in emitMachOIFuncStubHelperBody() 2474 auto NeedMovk = [IsNeg, UOffset](int BitPos) -> bool { in emitMachOIFuncStubHelperBody() 2475 assert(BitPos == 16 || BitPos == 32 || BitPos in emitMachOIFuncStubHelperBody() 1797 for (int BitPos = 0; BitPos != 24 && (AbsOffset >> BitPos); LowerMOVaddrPAC() local 1812 __anonbcf872ff0602(int BitPos) LowerMOVaddrPAC() argument 1822 for (int BitPos = 16; BitPos != 64 && NeedMovk(BitPos); BitPos += 16) { LowerMOVaddrPAC() local [all...] |
/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LoopIdiomRecognize.cpp | 2421 Value *&BitMask, Value *&BitPos, in recognizeShiftUntilBitTest() 2458 m_LoopInvariant(m_Shl(m_One(), m_Value(BitPos)), in recognizeShiftUntilBitTest() 2465 (BitPos = ConstantExpr::getExactLogBase2(cast<Constant>(BitMask))); in recognizeShiftUntilBitTest() 2474 BitPos = ConstantInt::get(CurrX->getType(), Res->Mask.logBase2()); in recognizeShiftUntilBitTest() 2581 Value *X, *BitMask, *BitPos, *XCurr; in detectShiftUntilZeroIdiom() 2583 if (!detectShiftUntilBitTestIdiom(CurLoop, X, BitMask, BitPos, XCurr, in detectShiftUntilZeroIdiom() 2631 if (!isGuaranteedNotToBeUndefOrPoison(BitPos)) { in detectShiftUntilZeroIdiom() 2632 // BitMask may be computed from BitPos, Freeze BitPos so we can increase in detectShiftUntilZeroIdiom() 2635 if (auto *BitPosI = dyn_cast<Instruction>(BitPos)) in detectShiftUntilZeroIdiom() 2202 detectShiftUntilBitTestIdiom(Loop * CurLoop,Value * & BaseX,Value * & BitMask,Value * & BitPos,Value * & CurrX,Instruction * & NextX) detectShiftUntilBitTestIdiom() argument 2357 Value *X, *BitMask, *BitPos, *XCurr; recognizeShiftUntilBitTest() local [all...] |
/llvm-project/llvm/include/llvm/Support/ |
H A D | CommandLine.h | 1773 unsigned BitPos = static_cast<unsigned>(V); 1774 assert(BitPos < sizeof(unsigned) * CHAR_BIT && 1776 return 1 << BitPos; 1815 unsigned BitPos = static_cast<unsigned>(V); 1816 assert(BitPos < sizeof(unsigned) * CHAR_BIT && 1818 return 1 << BitPos;
|
/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAG.cpp | 13107 unsigned BitPos = j * EltWidth; in getNeutralElement() 13110 SplatUndef.setBits(BitPos, BitPos + EltWidth); in getNeutralElement() 13112 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in getNeutralElement() 13114 SplatValue.insertBits(CN->getValueAPF().bitcastToAPInt(), BitPos); in getNeutralElement() 12683 unsigned BitPos = j * EltWidth; isConstantSplat() local
|
H A D | DAGCombiner.cpp | 22906 unsigned BitPos; in reduceBuildVecExtToExtBuildVec() 22912 : Producer(Producer_), BitPos(BitPos_), NumBits(NumBits_) {} in reduceBuildVecExtToExtBuildVec() 22923 Worklist.emplace_back(N, /*BitPos=*/VecEltBitWidth * IndexC->getZExtValue(), in reduceBuildVecExtToExtBuildVec() 22929 if (!(E.NumBits > 0 && E.BitPos < VecVT.getSizeInBits() && in reduceBuildVecExtToExtBuildVec() 22930 E.BitPos + E.NumBits <= VecVT.getSizeInBits())) in reduceBuildVecExtToExtBuildVec() 22943 Worklist.emplace_back(User, E.BitPos, 22955 Worklist.emplace_back(User, E.BitPos + ShAmt, E.NumBits - ShAmt); in reduceBuildVecTruncToBitCast() 22990 E.BitPos % NewVecEltBitWidth == 0; in reduceBuildVecTruncToBitCast() 23010 unsigned NewIndex = E.BitPos / NewVecEltBitWidth; in reduceBuildVecTruncToBitCast() 22379 unsigned BitPos; refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() member [all...] |
/llvm-project/clang/lib/CodeGen/ |
H A D | CGBuiltin.cpp | 1427 Value *BitPos) { 1456 return CGF.Builder.CreateCall(IA, {BitBase, BitPos}); in translateArmToMsvcIntrin() 1479 Value *BitPos = CGF.EmitScalarExpr(E->getArg(1)); in translateArmToMsvcIntrin() 1486 return EmitX86BitTestIntrinsic(CGF, BT, E, BitBase, BitPos); in translateArmToMsvcIntrin() 1491 // Bit = BitBaseI8[BitPos >> 3] & (1 << (BitPos & 0x7)) != 0; in translateArmToMsvcIntrin() 1493 BitPos, llvm::ConstantInt::get(BitPos->getType(), 3), "bittest.byteidx"); in translateArmToMsvcIntrin() 1498 CGF.Builder.CreateAnd(CGF.Builder.CreateTrunc(BitPos, CGF.Int8Ty), in translateArmToMsvcIntrin() 15160 auto [GroupID, BitPos] in EmitX86BuiltinExpr() 1185 EmitX86BitTestIntrinsic(CodeGenFunction & CGF,BitTest BT,const CallExpr * E,Value * BitBase,Value * BitPos) EmitX86BitTestIntrinsic() argument 1237 Value *BitPos = CGF.EmitScalarExpr(E->getArg(1)); EmitBitTestIntrinsic() local [all...] |
/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 3889 for (uint64_t BitPos : DeferredMetadataInfo) { in globalCleanup() 3891 if (Error JumpFailed = Stream.JumpToBit(BitPos)) 3804 for (uint64_t BitPos : DeferredMetadataInfo) { materializeMetadata() local
|
/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelLowering.cpp | 3734 unsigned BitPos = 0, IntegerEltIdx = 0; in lowerBuildVectorOfConstants() 3740 Bits |= ((uint64_t)BitValue << BitPos); in lowerBuildVectorOfConstants() 3741 ++BitPos; in lowerBuildVectorOfConstants() 3752 BitPos = 0; in lowerBuildVectorOfConstants() 3654 unsigned BitPos = 0, IntegerEltIdx = 0; lowerBuildVectorOfConstants() local
|
/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 30730 Value *BitPos = emitBitTestAtomicRMWIntrinsic() local [all...] |