Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h238 static APInt getBitsSet(unsigned numBits, unsigned loBit, unsigned hiBit) { in getBitsSet() argument
240 Res.setBits(loBit, hiBit); in getBitsSet()
250 static APInt getBitsSetWithWrap(unsigned numBits, unsigned loBit, in getBitsSetWithWrap() argument
253 Res.setBitsWithWrap(loBit, hiBit); in getBitsSetWithWrap()
266 static APInt getBitsSetFrom(unsigned numBits, unsigned loBit) { in getBitsSetFrom() argument
268 Res.setBitsFrom(loBit); in getBitsSetFrom()
1334 void setBitsWithWrap(unsigned loBit, unsigned hiBit) { in setBitsWithWrap() argument
1336 assert(loBit <= BitWidth && "loBit out of range"); in setBitsWithWrap()
1337 if (loBit < hiBit) { in setBitsWithWrap()
1338 setBits(loBit, hiBit); in setBitsWithWrap()
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DCodeEmitterGen.cpp225 unsigned loBit = beginVarBit - N + 1; in addCodeToMergeInOperand() local
226 unsigned hiBit = loBit + N; in addCodeToMergeInOperand()
232 extractStr = "op.extractBits(" + itostr(hiBit - loBit) + ", " + in addCodeToMergeInOperand()
233 itostr(loBit) + ")"; in addCodeToMergeInOperand()
237 extractStr = "op.extractBitsAsZExtValue(" + itostr(hiBit - loBit) + in addCodeToMergeInOperand()
238 ", " + itostr(loBit) + ")"; in addCodeToMergeInOperand()
240 itostr(loInstBit) + ", " + itostr(hiBit - loBit) + ");\n"; in addCodeToMergeInOperand()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPInt.cpp310 void APInt::setBitsSlowCase(unsigned loBit, unsigned hiBit) { in setBitsSlowCase() argument
311 unsigned loWord = whichWord(loBit); in setBitsSlowCase()
315 uint64_t loMask = WORDTYPE_MAX << whichBit(loBit); in setBitsSlowCase()
390 unsigned loBit = whichBit(bitPosition); in insertBits() local
397 U.pVal[loWord] &= ~(mask << loBit); in insertBits()
398 U.pVal[loWord] |= (subBits.U.VAL << loBit); in insertBits()
403 if (loBit == 0) { in insertBits()
435 unsigned loBit = whichBit(bitPosition); in insertBits() local
439 U.pVal[loWord] &= ~(maskBits << loBit); in insertBits()
440 U.pVal[loWord] |= subBits << loBit; in insertBits()
[all …]