Home
last modified time | relevance | path

Searched refs:getNumWords (Results 1 – 22 of 22) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPInt.cpp76 U.pVal = getMemory(getNumWords()); in initSlowCase()
78 memset(&U.pVal[1], 0xFF, APINT_WORD_SIZE * (getNumWords() - 1)); in initSlowCase()
81 U.pVal = getClearedMemory(getNumWords()); in initSlowCase()
87 U.pVal = getMemory(getNumWords()); in initSlowCase()
88 memcpy(U.pVal, that.U.pVal, getNumWords() * APINT_WORD_SIZE); in initSlowCase()
97 U.pVal = getClearedMemory(getNumWords()); in initFromArray()
99 unsigned words = std::min<unsigned>(bigVal.size(), getNumWords()); in initFromArray()
123 if (getNumWords() == getNumWords(NewBitWidth)) { in reallocate()
137 U.pVal = getMemory(getNumWords()); in reallocate()
152 memcpy(U.pVal, RHS.U.pVal, getNumWords() * APINT_WORD_SIZE); in assignSlowCase()
[all …]
H A DAPFloat.cpp970 if (!fill || fill->getNumWords() < numParts) in makeNaN()
974 std::min(fill->getNumWords(), numParts)); in makeNaN()
2894 unsigned int partCount = Val.getNumWords(); in convertFromAPInt()
3990 uint64_t last_word = api.getRawData()[api.getNumWords() - 1]; in initFromIEEEAPInt()
5555 SmallVector<uint64_t, 4> parts(result.getNumWords()); in convertToInteger()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DIntegralAP.h65 unsigned NumWords = llvm::APInt::getNumWords(BitWidth); in getValue()
80 assert(numWords() == V.getNumWords()); in copy()
90 std::memcpy(Memory, V.getRawData(), V.getNumWords() * sizeof(uint64_t)); in copy()
134 assert(APInt::getNumWords(NumBits) == 1);
140 constexpr unsigned numWords() const { return APInt::getNumWords(BitWidth); } in numWords()
339 unsigned NumWords = llvm::APInt::getNumWords(BitWidth); in deserialize()
H A DInterpState.h138 unsigned NumWords = APInt::getNumWords(BitWidth); in allocAP()
151 APInt::getNumWords(llvm::APFloatBase::getSizeInBits(Sem)); in allocFloat()
H A DFloating.h105 unsigned numWords() const { return llvm::APInt::getNumWords(bitWidth()); } in numWords()
116 return APInt::getNumWords(llvm::APFloatBase::getSizeInBits(Sem)) == 1; in singleWord()
221 unsigned NumWords = llvm::APInt::getNumWords(BitWidth); in deserialize()
H A DDisasm.cpp58 std::make_unique<uint64_t[]>(llvm::APInt::getNumWords(BitWidth)); in printArg()
75 std::make_unique<uint64_t[]>(llvm::APInt::getNumWords(BitWidth)); in printArg()
93 std::make_unique<uint64_t[]>(llvm::APInt::getNumWords(BitWidth)); in printArg()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h664 memset(U.pVal + 1, 0, (getNumWords() - 1) * APINT_WORD_SIZE);
694 memset(U.pVal + 1, 0, (getNumWords() - 1) * APINT_WORD_SIZE);
1324 memset(U.pVal, -1, getNumWords() * APINT_WORD_SIZE); in setAllBits()
1400 memset(U.pVal, 0, getNumWords() * APINT_WORD_SIZE); in clearAllBits()
1495 unsigned getNumWords() const { return getNumWords(BitWidth); } in getNumWords() function
1503 static unsigned getNumWords(unsigned BitWidth) { in getNumWords() function
1995 U.pVal[getNumWords() - 1] &= mask;
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DCodeEmitterGen.cpp320 int NumWords = APInt::getNumWords(BitWidth); in getInstructionCases()
393 for (unsigned I = 0; I < Bits.getNumWords(); ++I) in emitInstBits()
558 int NumWords = APInt::getNumWords(BitWidth); in run()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/
H A DVarLenCodeEmitterGen.cpp335 if (!Bits.getNumWords()) { in emitInstBits()
344 for (unsigned I = 0; I < Bits.getNumWords(); ++I, ++Index) in emitInstBits()
402 if (Value.getNumWords()) in emitInstructionBaseValues()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DAbstractBasicWriter.h160 for (size_t i = 0, e = value.getNumWords(); i != e; ++i) in writeAPInt()
H A DAbstractBasicReader.h172 unsigned numWords = llvm::APInt::getNumWords(bitWidth); in readAPInt()
H A DTemplateBase.h372 unsigned NumWords = APInt::getNumWords(Integer.BitWidth);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineStableHash.cpp80 ArrayRef<stable_hash>(Val.getRawData(), Val.getNumWords())); in stableHashValue()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DStructuralHash.cpp71 auto RawVals = ArrayRef<uint64_t>(I.getRawData(), I.getNumWords()); in hashAPInt()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DTemplateBase.cpp185 unsigned NumWords = Value.getNumWords(); in initFromIntegral()
H A DExpr.cpp952 unsigned NumWords = Val.getNumWords(); in setIntValue()
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DDWARFExpression.cpp1983 ap_int.getNumWords()}; in Evaluate()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCStreamer.cpp144 if (Value.getNumWords() == 1) { in emitIntValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86MCInstLower.cpp1546 for (int i = 0, N = Val.getNumWords(); i < N; ++i) { in printConstant()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp4278 assert(Range.getLower().getNumWords() == 1); in writeFunctionTypeMetadataRecords()
4279 assert(Range.getUpper().getNumWords() == 1); in writeFunctionTypeMetadataRecords()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp2074 Result = APInt(NumBits, ArrayRef<uint64_t>(A.getRawData(), A.getNumWords())); in getHexUint()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp3871 int Chunk = API.getNumWords() - 1; in emitGlobalConstantFP()