| /openbsd-src/gnu/llvm/llvm/lib/Target/M68k/MCTargetDesc/ |
| H A D | M68kMCCodeEmitter.cpp | 88 template <unsigned Size> static unsigned getBytePosition(unsigned BitPos) { in getBytePosition() argument 90 return static_cast<unsigned>(BitPos / 8 + ((BitPos & 0b1111) < 8 ? 1 : -1)); in getBytePosition() 92 assert(!(BitPos & 0b1111) && "Not aligned to word boundary?"); in getBytePosition() 93 return BitPos / 8; in getBytePosition()
|
| /openbsd-src/gnu/llvm/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 | 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;
|
| 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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | LoopIdiomRecognize.cpp | 2287 Value *&BitMask, Value *&BitPos, in detectShiftUntilBitTestIdiom() argument 2324 m_LoopInvariant(m_Shl(m_One(), m_Value(BitPos)), in detectShiftUntilBitTestIdiom() 2331 (BitPos = ConstantExpr::getExactLogBase2(cast<Constant>(BitMask))); in detectShiftUntilBitTestIdiom() 2338 (BitPos = ConstantInt::get(CurrX->getType(), Mask.logBase2())); in detectShiftUntilBitTestIdiom() 2442 Value *X, *BitMask, *BitPos, *XCurr; in recognizeShiftUntilBitTest() local 2444 if (!detectShiftUntilBitTestIdiom(CurLoop, X, BitMask, BitPos, XCurr, in recognizeShiftUntilBitTest() 2495 BitPos->getName() + ".lowbitmask"); in recognizeShiftUntilBitTest() 2497 Builder.CreateOr(LowBitMask, BitMask, BitPos->getName() + ".mask"); in recognizeShiftUntilBitTest() 2512 BitPos, XMaskedLeadingOnePos, CurLoop->getName() + ".backedgetakencount", in recognizeShiftUntilBitTest() 2537 BitPos, PatternMatch::m_SpecificInt_ICMP( in recognizeShiftUntilBitTest()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/ |
| H A D | CommandLine.h | 1764 unsigned BitPos = static_cast<unsigned>(V); 1765 assert(BitPos < sizeof(unsigned) * CHAR_BIT && 1767 return 1 << BitPos; 1806 unsigned BitPos = static_cast<unsigned>(V); 1807 assert(BitPos < sizeof(unsigned) * CHAR_BIT && 1809 return 1 << BitPos;
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 11724 unsigned BitPos = j * EltWidth; in isConstantSplat() local 11727 SplatUndef.setBits(BitPos, BitPos + EltWidth); in isConstantSplat() 11729 SplatValue.insertBits(CN->getAPIntValue().zextOrTrunc(EltWidth), BitPos); in isConstantSplat() 11731 SplatValue.insertBits(CN->getValueAPF().bitcastToAPInt(), BitPos); in isConstantSplat()
|
| H A D | DAGCombiner.cpp | 20539 unsigned BitPos; in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() member 20545 : Producer(Producer_), BitPos(BitPos_), NumBits(NumBits_) {} in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() 20562 if (!(E.NumBits > 0 && E.BitPos < VecVT.getSizeInBits() && in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() 20563 E.BitPos + E.NumBits <= VecVT.getSizeInBits())) in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() 20576 Worklist.emplace_back(User, E.BitPos, in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() 20588 Worklist.emplace_back(User, E.BitPos + ShAmt, E.NumBits - ShAmt); in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() 20623 E.BitPos % NewVecEltBitWidth == 0; in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts() 20643 unsigned NewIndex = E.BitPos / NewVecEltBitWidth; in refineExtractVectorEltIntoMultipleNarrowExtractVectorElts()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGBuiltin.cpp | 910 Value *BitPos) { in EmitX86BitTestIntrinsic() argument 940 return CGF.Builder.CreateCall(IA, {BitBase, BitPos}); in EmitX86BitTestIntrinsic() 963 Value *BitPos = CGF.EmitScalarExpr(E->getArg(1)); in EmitBitTestIntrinsic() local 970 return EmitX86BitTestIntrinsic(CGF, BT, E, BitBase, BitPos); in EmitBitTestIntrinsic() 977 BitPos, llvm::ConstantInt::get(BitPos->getType(), 3), "bittest.byteidx"); in EmitBitTestIntrinsic() 983 CGF.Builder.CreateAnd(CGF.Builder.CreateTrunc(BitPos, CGF.Int8Ty), in EmitBitTestIntrinsic()
|
| /openbsd-src/gnu/llvm/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 3622 for (uint64_t BitPos : DeferredMetadataInfo) { in materializeMetadata() local 3624 if (Error JumpFailed = Stream.JumpToBit(BitPos)) in materializeMetadata()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 2431 unsigned BitPos = 0, IntegerEltIdx = 0; in lowerBUILD_VECTOR() local 2434 for (unsigned I = 0; I < NumElts; I++, BitPos++) { in lowerBUILD_VECTOR() 2444 BitPos = 0; in lowerBUILD_VECTOR() 2449 Bits |= ((uint64_t)BitValue << BitPos); in lowerBUILD_VECTOR()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 31677 Value *BitPos = in emitBitTestAtomicRMWIntrinsic() local 31685 Result = Builder.CreateCall(BitTest, {Addr, BitPos}); in emitBitTestAtomicRMWIntrinsic() 31702 Result = Builder.CreateShl(Result, BitPos); in emitBitTestAtomicRMWIntrinsic()
|