Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPInt.h993 bool operator[](unsigned bitPosition) const {
995 return (maskBit(bitPosition) & getWord(bitPosition)) != 0;
1390 void flipBit(unsigned bitPosition);
1399 void insertBits(const APInt &SubBits, unsigned bitPosition);
1840 static unsigned whichWord(unsigned bitPosition) {
1841 return bitPosition / APINT_BITS_PER_WORD;
1845 static unsigned whichBit(unsigned bitPosition) {
1846 return bitPosition % APINT_BITS_PER_WORD;
1855 static uint64_t maskBit(unsigned bitPosition) {
1856 return 1ULL << whichBit(bitPosition);
[all …]
/llvm-project-15.0.7/llvm/lib/Support/
H A DAPInt.cpp354 void APInt::flipBit(unsigned bitPosition) { in flipBit() argument
356 setBitVal(bitPosition, !(*this)[bitPosition]); in flipBit()
376 U.VAL &= ~(mask << bitPosition); in insertBits()
381 unsigned loBit = whichBit(bitPosition); in insertBits()
421 U.VAL &= ~(maskBits << bitPosition); in insertBits()
422 U.VAL |= subBits << bitPosition; in insertBits()
426 unsigned loBit = whichBit(bitPosition); in insertBits()
445 assert(bitPosition < BitWidth && (numBits + bitPosition) <= BitWidth && in extractBits()
451 unsigned loBit = whichBit(bitPosition); in extractBits()
483 assert(bitPosition < BitWidth && (numBits + bitPosition) <= BitWidth && in extractBitsAsZExtValue()
[all …]
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/DIA/
H A DDIARawSymbol.cpp238 RAW_METHOD_DUMP(OS, bitPosition); in dump()