| /freebsd-src/contrib/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()
|
| /freebsd-src/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-src/contrib/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() 2472 (BitPos = ConstantInt::get(CurrX->getType(), Mask.logBase2())); in recognizeShiftUntilBitTest() 2576 Value *X, *BitMask, *BitPos, *XCurr; in detectShiftUntilZeroIdiom() 2578 if (!detectShiftUntilBitTestIdiom(CurLoop, X, BitMask, BitPos, XCurr, in detectShiftUntilZeroIdiom() 2626 if (!isGuaranteedNotToBeUndefOrPoison(BitPos)) { in detectShiftUntilZeroIdiom() 2627 // BitMask may be computed from BitPos, Freeze BitPos so we can increase in detectShiftUntilZeroIdiom() 2630 if (auto *BitPosI = dyn_cast<Instruction>(BitPos)) in detectShiftUntilZeroIdiom() 2204 detectShiftUntilBitTestIdiom(Loop * CurLoop,Value * & BaseX,Value * & BitMask,Value * & BitPos,Value * & CurrX,Instruction * & NextX) detectShiftUntilBitTestIdiom() argument 2359 Value *X, *BitMask, *BitPos, *XCurr; recognizeShiftUntilBitTest() local [all...] |
| /freebsd-src/contrib/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;
|
| /freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 12752 unsigned BitPos = j * EltWidth; 12755 SplatUndef.setBits(BitPos, BitPos + EltWidth); in isConstantIntBuildVectorOrConstantInt() 12757 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantIntBuildVectorOrConstantInt() 12759 SplatValue.insertBits(CN->getValueAPF().bitcastToAPInt(), BitPos); in isConstantIntBuildVectorOrConstantInt() 12422 unsigned BitPos = j * EltWidth; isConstantSplat() local
|
| H A D | DAGCombiner.cpp | 22438 unsigned BitPos; in visitEXTRACT_VECTOR_ELT() 22444 : Producer(Producer_), BitPos(BitPos_), NumBits(NumBits_) {} in visitEXTRACT_VECTOR_ELT() 22455 Worklist.emplace_back(N, /*BitPos=*/VecEltBitWidth * IndexC->getZExtValue(), in visitEXTRACT_VECTOR_ELT() 22461 if (!(E.NumBits > 0 && E.BitPos < VecVT.getSizeInBits() && in visitEXTRACT_VECTOR_ELT() 22462 E.BitPos + E.NumBits <= VecVT.getSizeInBits())) in visitEXTRACT_VECTOR_ELT() 22475 Worklist.emplace_back(User, E.BitPos, in visitEXTRACT_VECTOR_ELT() 22487 Worklist.emplace_back(User, E.BitPos + ShAmt, E.NumBits - ShAmt); in visitEXTRACT_VECTOR_ELT() 22522 E.BitPos % NewVecEltBitWidth == 0; in reduceBuildVecExtToExtBuildVec() 22542 unsigned NewIndex = E.BitPos / NewVecEltBitWidth; in reduceBuildVecExtToExtBuildVec() 22071 unsigned BitPos; refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() member [all...] |
| /freebsd-src/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGBuiltin.cpp | 1207 Value *BitPos) { in EmitX86BitTestIntrinsic() 1236 return CGF.Builder.CreateCall(IA, {BitBase, BitPos}); in getBitTestAtomicOrdering() 1259 Value *BitPos = CGF.EmitScalarExpr(E->getArg(1)); in EmitBitTestIntrinsic() 1266 return EmitX86BitTestIntrinsic(CGF, BT, E, BitBase, BitPos); in EmitBitTestIntrinsic() 1271 // Bit = BitBaseI8[BitPos >> 3] & (1 << (BitPos & 0x7)) != 0; in EmitBitTestIntrinsic() 1273 BitPos, llvm::ConstantInt::get(BitPos->getType(), 3), "bittest.byteidx"); in EmitBitTestIntrinsic() 1279 CGF.Builder.CreateAnd(CGF.Builder.CreateTrunc(BitPos, CGF.Int8Ty), in EmitBitTestIntrinsic() 1197 EmitX86BitTestIntrinsic(CodeGenFunction & CGF,BitTest BT,const CallExpr * E,Value * BitBase,Value * BitPos) EmitX86BitTestIntrinsic() argument 1249 Value *BitPos = CGF.EmitScalarExpr(E->getArg(1)); EmitBitTestIntrinsic() local
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 3804 for (uint64_t BitPos : DeferredMetadataInfo) { in parseComdatRecord() 3806 if (Error JumpFailed = Stream.JumpToBit(BitPos)) in parseComdatRecord() 3650 for (uint64_t BitPos : DeferredMetadataInfo) { materializeMetadata() local
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 3667 unsigned BitPos = 0, IntegerEltIdx = 0; in lowerBuildVectorOfConstants() 3673 Bits |= ((uint64_t)BitValue << BitPos); in lowerBuildVectorOfConstants() 3674 ++BitPos; in lowerBuildVectorOfConstants() 3685 BitPos = 0; in lowerBuildVectorOfConstants() 3499 unsigned BitPos = 0, IntegerEltIdx = 0; lowerBuildVectorOfConstants() local
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 30374 Value *BitPos = emitBitTestAtomicRMWIntrinsic() local [all...] |