| /llvm-project-15.0.7/llvm/lib/Target/M68k/MCTargetDesc/ |
| H A D | M68kMCCodeEmitter.cpp | 106 template <unsigned Size> static unsigned getBytePosition(unsigned BitPos) { in getBytePosition() argument 108 return static_cast<unsigned>(BitPos / 8 + ((BitPos & 0b1111) < 8 ? 1 : -1)); in getBytePosition() 110 assert(!(BitPos & 0b1111) && "Not aligned to word boundary?"); in getBytePosition() 111 return BitPos / 8; in getBytePosition()
|
| /llvm-project-15.0.7/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 | 95 unsigned BitPos; variable 100 BitPos = Idx % BITWORD_SIZE; in reference() 113 *WordRef |= BitWord(1) << BitPos; 115 *WordRef &= ~(BitWord(1) << BitPos); 120 return ((*WordRef) & (BitWord(1) << BitPos)) != 0;
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopIdiomRecognize.cpp | 2285 Value *&BitMask, Value *&BitPos, in detectShiftUntilBitTestIdiom() argument 2322 m_LoopInvariant(m_Shl(m_One(), m_Value(BitPos)), in detectShiftUntilBitTestIdiom() 2329 (BitPos = ConstantExpr::getExactLogBase2(cast<Constant>(BitMask))); in detectShiftUntilBitTestIdiom() 2336 (BitPos = ConstantInt::get(CurrX->getType(), Mask.logBase2())); in detectShiftUntilBitTestIdiom() 2440 Value *X, *BitMask, *BitPos, *XCurr; in recognizeShiftUntilBitTest() local 2442 if (!detectShiftUntilBitTestIdiom(CurLoop, X, BitMask, BitPos, XCurr, in recognizeShiftUntilBitTest() 2493 BitPos->getName() + ".lowbitmask"); in recognizeShiftUntilBitTest() 2495 Builder.CreateOr(LowBitMask, BitMask, BitPos->getName() + ".mask"); in recognizeShiftUntilBitTest() 2510 BitPos, XMaskedLeadingOnePos, CurLoop->getName() + ".backedgetakencount", in recognizeShiftUntilBitTest() 2535 BitPos, PatternMatch::m_SpecificInt_ICMP( in recognizeShiftUntilBitTest()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | CommandLine.h | 1699 unsigned BitPos = static_cast<unsigned>(V); 1700 assert(BitPos < sizeof(unsigned) * CHAR_BIT && 1702 return 1 << BitPos; 1741 unsigned BitPos = static_cast<unsigned>(V); 1742 assert(BitPos < sizeof(unsigned) * CHAR_BIT && 1744 return 1 << BitPos;
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 11421 unsigned BitPos = j * EltWidth; in isConstantSplat() local 11424 SplatUndef.setBits(BitPos, BitPos + EltWidth); in isConstantSplat() 11426 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat() 11428 SplatValue.insertBits(CN->getValueAPF().bitcastToAPInt(), BitPos); in isConstantSplat()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGBuiltin.cpp | 895 Value *BitPos) { in EmitX86BitTestIntrinsic() argument 925 return CGF.Builder.CreateCall(IA, {BitBase, BitPos}); in EmitX86BitTestIntrinsic() 948 Value *BitPos = CGF.EmitScalarExpr(E->getArg(1)); in EmitBitTestIntrinsic() local 955 return EmitX86BitTestIntrinsic(CGF, BT, E, BitBase, BitPos); in EmitBitTestIntrinsic() 962 BitPos, llvm::ConstantInt::get(BitPos->getType(), 3), "bittest.byteidx"); in EmitBitTestIntrinsic() 968 CGF.Builder.CreateAnd(CGF.Builder.CreateTrunc(BitPos, CGF.Int8Ty), in EmitBitTestIntrinsic()
|
| /llvm-project-15.0.7/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 3495 for (uint64_t BitPos : DeferredMetadataInfo) { in materializeMetadata() local 3497 if (Error JumpFailed = Stream.JumpToBit(BitPos)) in materializeMetadata()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 2116 unsigned BitPos = 0, IntegerEltIdx = 0; in lowerBUILD_VECTOR() local 2119 for (unsigned I = 0; I < NumElts; I++, BitPos++) { in lowerBUILD_VECTOR() 2129 BitPos = 0; in lowerBUILD_VECTOR() 2134 Bits |= ((uint64_t)BitValue << BitPos); in lowerBUILD_VECTOR()
|