Searched refs:CharSize (Results 1 - 9 of 9) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueTracking.h294 // \p CharSize integers) and is indexing into this string.
296 unsigned CharSize = 8);
340 uint64_t GetStringLength(const Value *V, unsigned CharSize = 8);
/freebsd-13-stable/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp2505 unsigned CharSize; local
2506 unsigned char C = getCharAndSize(CurPtr, CharSize);
2507 CurPtr += CharSize;
2973 unsigned CharSize; local
2974 char Kind = getCharAndSize(StartPtr, CharSize);
2990 const char *CurPtr = StartPtr + CharSize;
2995 char C = getCharAndSize(CurPtr, CharSize);
3021 CurPtr += CharSize;
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSimplifyLibCalls.h242 Value *optimizeStringLength(CallInst *CI, IRBuilderBase &B, unsigned CharSize);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp625 unsigned CharSize) {
629 if (uint64_t Len = GetStringLength(Src, CharSize))
641 if (!isGEPBasedOnPointerToString(GEP, CharSize))
645 if (getConstantDataArrayInfo(GEP->getOperand(0), Slice, CharSize)) {
693 uint64_t LenTrue = GetStringLength(SI->getTrueValue(), CharSize);
694 uint64_t LenFalse = GetStringLength(SI->getFalseValue(), CharSize);
709 return B.CreateZExt(B.CreateLoad(B.getIntNTy(CharSize), Src, "strlenfirst"),
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp3880 unsigned CharSize) {
3885 // Make sure the index-ee is a pointer to array of \p CharSize integers.
3886 // CharSize.
3888 if (!AT || !AT->getElementType()->isIntegerTy(CharSize))
4019 unsigned CharSize) {
4032 uint64_t Len = GetStringLengthH(IncValue, PHIs, CharSize);
4048 uint64_t Len1 = GetStringLengthH(SI->getTrueValue(), PHIs, CharSize);
4050 uint64_t Len2 = GetStringLengthH(SI->getFalseValue(), PHIs, CharSize);
4060 if (!getConstantDataArrayInfo(V, Slice, CharSize))
4078 uint64_t llvm::GetStringLength(const Value *V, unsigned CharSize) { argument
3879 isGEPBasedOnPointerToString(const GEPOperator *GEP, unsigned CharSize) argument
4017 GetStringLengthH(const Value *V, SmallPtrSetImpl<const PHINode*> &PHIs, unsigned CharSize) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h650 /// This method returns true if this is an array of \p CharSize integers.
651 bool isString(unsigned CharSize = 8) const;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp3038 bool ConstantDataSequential::isString(unsigned CharSize) const {
3039 return isa<ArrayType>(getType()) && getElementType()->isIntegerTy(CharSize);
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/
H A DASTContext.h2096 int64_t toBits(CharUnits CharSize) const;
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DASTContext.cpp2361 int64_t ASTContext::toBits(CharUnits CharSize) const {
2362 return CharSize.getQuantity() * getCharWidth();

Completed in 300 milliseconds