Home
last modified time | relevance | path

Searched refs:bitPosition (Results 1 – 3 of 3) sorted by relevance

/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DAPInt.h1021 bool operator[](unsigned bitPosition) const {
1022 assert(bitPosition < getBitWidth() && "Bit position out of bounds!");
1023 return (maskBit(bitPosition) & getWord(bitPosition)) != 0;
1418 void flipBit(unsigned bitPosition);
1427 void insertBits(const APInt &SubBits, unsigned bitPosition);
1428 void insertBits(uint64_t SubBits, unsigned bitPosition, unsigned numBits);
1431 APInt extractBits(unsigned numBits, unsigned bitPosition) const;
1432 uint64_t extractBitsAsZExtValue(unsigned numBits, unsigned bitPosition) const;
1888 static unsigned whichWord(unsigned bitPosition) {
1889 return bitPosition / APINT_BITS_PER_WORD;
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DAPInt.cpp354 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument
355 assert(bitPosition < BitWidth && "Out of the bit-width range!"); in flipBit()
356 setBitVal(bitPosition, !(*this)[bitPosition]); in flipBit()
359 void APInt::insertBits(const APInt &subBits, unsigned bitPosition) { in insertBits() argument
361 assert((subBitWidth + bitPosition) <= BitWidth && "Illegal bit insertion"); in insertBits()
376 U.VAL &= ~(mask << bitPosition); in insertBits()
377 U.VAL |= (subBits.U.VAL << bitPosition); in insertBits()
381 unsigned loBit = whichBit(bitPosition); in insertBits()
382 unsigned loWord = whichWord(bitPosition); in insertBits()
383 unsigned hi1Word = whichWord(bitPosition + subBitWidth - 1); in insertBits()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/PDB/DIA/
H A DDIARawSymbol.cpp238 RAW_METHOD_DUMP(OS, bitPosition); in dump()