Home
last modified time | relevance | path

Searched refs:CharSize (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp2855 unsigned CharSize; in SkipBlockComment() local
2856 unsigned char C = getCharAndSize(CurPtr, CharSize); in SkipBlockComment()
2857 CurPtr += CharSize; in SkipBlockComment()
3388 unsigned CharSize; in tryReadNumericUCN() local
3389 char Kind = getCharAndSize(StartPtr, CharSize); in tryReadNumericUCN()
3409 const char *CurPtr = StartPtr + CharSize; in tryReadNumericUCN()
3414 char C = getCharAndSize(CurPtr, CharSize); in tryReadNumericUCN()
3417 CurPtr += CharSize; in tryReadNumericUCN()
3422 CurPtr += CharSize; in tryReadNumericUCN()
3445 CurPtr += CharSize; in tryReadNumericUCN()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueTracking.h660 bool isGEPBasedOnPointerToString(const GEPOperator *GEP, unsigned CharSize = 8);
704 uint64_t GetStringLength(const Value *V, unsigned CharSize = 8);
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DTextDiagnostic.cpp133 unsigned CharSize = llvm::getNumBytesForUTF8(*Begin); in printableTextForNextCharacter() local
134 const unsigned char *End = Begin + CharSize; in printableTextForNextCharacter()
148 assert(unsigned(Begin - OriginalBegin) == CharSize); in printableTextForNextCharacter()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSimplifyLibCalls.h252 Value *optimizeStringLength(CallInst *CI, IRBuilderBase &B, unsigned CharSize,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp932 unsigned CharSize, in optimizeStringLength() argument
935 Type *CharTy = B.getIntNTy(CharSize); in optimizeStringLength()
965 if (uint64_t Len = GetStringLength(Src, CharSize)) { in optimizeStringLength()
988 if (!isGEPBasedOnPointerToString(GEP, CharSize)) in optimizeStringLength()
992 if (getConstantDataArrayInfo(GEP->getOperand(0), Slice, CharSize)) { in optimizeStringLength()
1031 uint64_t LenTrue = GetStringLength(SI->getTrueValue(), CharSize); in optimizeStringLength()
1032 uint64_t LenFalse = GetStringLength(SI->getFalseValue(), CharSize); in optimizeStringLength()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp6223 unsigned CharSize) { in isGEPBasedOnPointerToString() argument
6231 if (!AT || !AT->getElementType()->isIntegerTy(CharSize)) in isGEPBasedOnPointerToString()
6391 unsigned CharSize) { in GetStringLengthH() argument
6404 uint64_t Len = GetStringLengthH(IncValue, PHIs, CharSize); in GetStringLengthH()
6420 uint64_t Len1 = GetStringLengthH(SI->getTrueValue(), PHIs, CharSize); in GetStringLengthH()
6422 uint64_t Len2 = GetStringLengthH(SI->getFalseValue(), PHIs, CharSize); in GetStringLengthH()
6432 if (!getConstantDataArrayInfo(V, Slice, CharSize)) in GetStringLengthH()
6454 uint64_t llvm::GetStringLength(const Value *V, unsigned CharSize) { in GetStringLength() argument
6459 uint64_t Len = GetStringLengthH(V, PHIs, CharSize); in GetStringLength()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h651 bool isString(unsigned CharSize = 8) const;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp3155 bool ConstantDataSequential::isString(unsigned CharSize) const { in isString()
3156 return isa<ArrayType>(getType()) && getElementType()->isIntegerTy(CharSize); in isString()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTContext.h2396 int64_t toBits(CharUnits CharSize) const;
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTContext.cpp2463 int64_t ASTContext::toBits(CharUnits CharSize) const { in toBits()
2464 return CharSize.getQuantity() * getCharWidth(); in toBits()