/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CodeGenTypeCache.h | 45 llvm::IntegerType *CharTy; member
|
H A D | CGExprConstant.cpp | 64 llvm::Type *Ty = CGM.CharTy; in getPadding() 71 llvm::Type *Ty = llvm::ArrayType::get(CGM.CharTy, ZeroSize.getQuantity()); in getZeroes() 1130 llvm::Type *Ty = CGM.CharTy; in VisitCastExpr()
|
H A D | ItaniumCXXABI.cpp | 1742 CGF.CharTy, Result, in emitExactDynamicCast() 3521 auto Align = CGM.getContext().getTypeAlignInChars(CGM.getContext().CharTy); in GetAddrOfTypeName() 4543 getContext().CharTy, getContext().UnsignedCharTy, in EmitFundamentalRTTIDescriptors() 5033 C.VoidTy, {C.getPointerType(C.CharTy)}); in getClangCallTerminateFn()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
H A D | AppleObjCTypeEncodingParser.cpp | 283 return ast_ctx.CharTy; in BuildType() 316 return ast_ctx.getPointerType(ast_ctx.CharTy); in BuildType()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | BuiltinTypes.def | 66 SHARED_SINGLETON_TYPE(UNSIGNED_TYPE(Char_U, CharTy)) 101 SHARED_SINGLETON_TYPE(SIGNED_TYPE(Char_S, CharTy))
|
H A D | ASTContext.h | 1120 CanQualType CharTy; variable 2389 return getTypeSize(CharTy); in getCharWidth()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SimplifyLibCalls.cpp | 452 Type *CharTy = B.getInt8Ty(); in memChrToCharCompare() local 453 Value *Char0 = B.CreateLoad(CharTy, Src); in memChrToCharCompare() 454 CharVal = B.CreateTrunc(CharVal, CharTy); in memChrToCharCompare() 863 Type *CharTy = B.getInt8Ty(); in optimizeStringNCpy() local 864 Value *CharVal = B.CreateLoad(CharTy, Src, "stxncpy.char0"); in optimizeStringNCpy() 871 Value *ZeroChar = ConstantInt::get(CharTy, 0); in optimizeStringNCpy() 875 Value *EndPtr = B.CreateInBoundsGEP(CharTy, Dst, Off1, "stpncpy.end"); in optimizeStringNCpy() 935 Type *CharTy = B.getIntNTy(CharSize); in optimizeStringLength() local 945 return B.CreateZExt(B.CreateLoad(CharTy, Src, "char0"), in optimizeStringLength() 957 Value *CharVal = B.CreateLoad(CharTy, Src, "strnlen.char0"); in optimizeStringLength() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | FormatString.cpp | 620 Res = C.CharTy; in getRepresentativeType() 626 Res = C.getPointerType(C.CharTy); in getRepresentativeType()
|
H A D | ASTDumper.cpp | 346 Dumper.Visit(*this, /*Ty=*/Context.getPointerType(Context.CharTy)); in dump()
|
H A D | ExprConstant.cpp | 9179 QualType CharTy = Info.Ctx.CharTy.withConst(); in VisitSYCLUniqueStableNameExpr() local 9183 CharTy, Size, nullptr, ArraySizeModifier::Normal, 0); in VisitSYCLUniqueStableNameExpr() 9660 QualType CharTy = Result.Designator.getType(Info.Ctx); in VisitBuiltinCallExpr() local 9665 CharTy, E->getArg(0)->getType()->getPointeeType())); in VisitBuiltinCallExpr() 9667 if (IsRawByte && CharTy->isIncompleteType()) { in VisitBuiltinCallExpr() 9668 Info.FFDiag(E, diag::note_constexpr_ltor_incomplete_type) << CharTy; in VisitBuiltinCallExpr() 9673 if (IsRawByte && !isOneByteCharacterType(CharTy)) { in VisitBuiltinCallExpr() 9676 << CharTy; in VisitBuiltinCallExpr() 9688 if (!APSInt::isSameValue(HandleIntToIntCast(Info, E, CharTy, in VisitBuiltinCallExpr() 9717 if (!handleLValueToRValueConversion(Info, E, CharTy, Result, Char) || in VisitBuiltinCallExpr() [all …]
|
H A D | ASTContext.cpp | 1236 InitBuiltinType(CharTy, BuiltinType::Char_S); in InitBuiltinTypes() 1238 InitBuiltinType(CharTy, BuiltinType::Char_U); in InitBuiltinTypes() 7509 return 2 + (getIntWidth(CharTy) << 3); in getIntegerRank() 7776 Fields[Count++] = { getPointerType(CharTy.withConst()), "str" }; in getCFConstantStringDecl() 7782 Fields[Count++] = { getPointerType(CharTy.withConst()), "_ptr" }; in getCFConstantStringDecl() 9193 QualType T = Context->getPointerType(Context->CharTy); in CreateCharPtrNamedVaListDecl() 11825 Type = Context.CharTy; in DecodeTypeFromStr() 12745 /*Pascal*/ false, getStringLiteralArrayType(CharTy, Key.size()), in getPredefinedStringLiteralFromCache()
|
H A D | Expr.cpp | 581 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in Create() 588 QualType ResultTy = Ctx.getPointerType(Ctx.CharTy.withConst()); in CreateEmpty()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | Store.cpp | 221 newSuperR = MakeElementRegion(cast<SubRegion>(baseR), Ctx.CharTy, in castRegion()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaExpr.cpp | 2046 QualType CharTy = Context.CharTy; in ActOnStringLiteral() local 2049 CharTy = Context.getWideCharType(); in ActOnStringLiteral() 2053 CharTy = Context.Char8Ty; in ActOnStringLiteral() 2055 CharTy = Context.UnsignedCharTy; in ActOnStringLiteral() 2058 CharTy = Context.Char16Ty; in ActOnStringLiteral() 2061 CharTy = Context.Char32Ty; in ActOnStringLiteral() 2064 CharTy = Context.UnsignedCharTy; in ActOnStringLiteral() 2099 Context.getStringLiteralArrayType(CharTy, Literal.GetNumStringChars()); in ActOnStringLiteral() 2159 unsigned CharBits = Context.getIntWidth(CharTy); in ActOnStringLiteral() 2160 bool CharIsUnsigned = CharTy->isUnsignedIntegerType(); in ActOnStringLiteral() [all …]
|
H A D | SemaExprObjC.cpp | 333 NumberType = Context.CharTy; in BuildObjCNumericLiteral() 528 if (Context.hasSameUnqualifiedType(PointeeType, Context.CharTy)) { in BuildObjCBoxedExpr() 582 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr() 625 ValueType = Context.CharTy; in BuildObjCBoxedExpr() 705 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr() 1160 StrTy = Context.getStringLiteralArrayType(Context.CharTy, Str.size()); in BuildObjCEncodeExpression()
|
H A D | SemaInit.cpp | 3206 QualType CharTy = AT->getElementType(); in CheckDesignatedInitializer() local 3209 QualType PromotedCharTy = CharTy; in CheckDesignatedInitializer() 3210 if (Context.isPromotableIntegerType(CharTy)) in CheckDesignatedInitializer() 3211 PromotedCharTy = Context.getPromotedIntegerType(CharTy); in CheckDesignatedInitializer() 3227 if (CharTy != PromotedCharTy) in CheckDesignatedInitializer() 3228 Init = ImplicitCastExpr::Create(Context, CharTy, CK_IntegralCast, in CheckDesignatedInitializer() 3250 if (CharTy != PromotedCharTy) in CheckDesignatedInitializer() 3251 Init = ImplicitCastExpr::Create(Context, CharTy, CK_IntegralCast, in CheckDesignatedInitializer()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CStringChecker.cpp | 78 return Ctx.getPointerType(CK == CharKind::Regular ? Ctx.CharTy in getCharPtrType() 410 if (ER->getValueType() != Ctx.CharTy) in getIndex() 1159 QualType PtrTy = Ctx.getPointerType(Ctx.CharTy); in isFirstBufInBound() 1191 assert(ER->getValueType() == C.getASTContext().CharTy && in isFirstBufInBound()
|
H A D | MallocChecker.cpp | 1123 SVal ZeroVal = C.getSValBuilder().makeZeroVal(Ctx.CharTy); in performKernelMalloc() 1306 SVal zeroVal = svalBuilder.makeZeroVal(svalBuilder.getContext().CharTy); in checkGMalloc0() 1336 SVal Init = SB.makeZeroVal(SB.getContext().CharTy); in checkGMallocN0() 2732 SVal zeroVal = svalBuilder.makeZeroVal(svalBuilder.getContext().CharTy); in CallocMem()
|
H A D | StdLibraryFunctionsChecker.cpp | 1661 const QualType CharTy = ACtx.CharTy; in initFunctionSummaries() local 1675 const QualType CharPtrTy = getPointerTy(CharTy); // char * in initFunctionSummaries() 1678 getPointerTy(getConstTy(CharTy)); // const char * in initFunctionSummaries()
|
H A D | BasicObjCFoundationChecks.cpp | 391 case kCFNumberCharType: T = Ctx.CharTy; break; in GetCFNumberSize()
|
H A D | GenericTaintChecker.cpp | 119 return State->getSVal(LValue, State->getStateManager().getContext().CharTy); in getPointeeOf()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/ |
H A D | TypeSystemClang.cpp | 982 if (QualTypeMatchesBitSize(bit_size, ast, ast.CharTy)) in GetBuiltinTypeForDWARFEncodingAndBitSize() 983 return GetType(ast.CharTy); in GetBuiltinTypeForDWARFEncodingAndBitSize() 995 if (QualTypeMatchesBitSize(bit_size, ast, ast.CharTy)) in GetBuiltinTypeForDWARFEncodingAndBitSize() 996 return GetType(ast.CharTy); in GetBuiltinTypeForDWARFEncodingAndBitSize() 1011 if (QualTypeMatchesBitSize(bit_size, ast, ast.CharTy)) in GetBuiltinTypeForDWARFEncodingAndBitSize() 1012 return GetType(ast.CharTy); in GetBuiltinTypeForDWARFEncodingAndBitSize() 1063 if (QualTypeMatchesBitSize(bit_size, ast, ast.CharTy)) in GetBuiltinTypeForDWARFEncodingAndBitSize() 1064 return GetType(ast.CharTy); in GetBuiltinTypeForDWARFEncodingAndBitSize() 1106 QualType char_type(ast.CharTy); in GetCStringType() 2006 return ast->CharTy.getAsOpaquePtr(); in GetOpaqueCompilerType() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 601 Context->CharTy, llvm::APInt(32, Str.size() + 1), nullptr, in getStringLiteral() 2318 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl() 2518 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl() 2548 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl() 3018 FieldTypes[2] = Context->getPointerType(Context->CharTy); in getConstantStringStructType() 7474 Context->getPointerType(Context->CharTy), in RewriteObjCIvarRefExpr() 7486 Context->getPointerType(Context->CharTy), VK_PRValue, OK_Ordinary, in RewriteObjCIvarRefExpr()
|
/freebsd/contrib/llvm-project/clang/lib/Edit/ |
H A D | RewriteObjCFoundationAPI.cpp | 1149 if (Ctx.hasSameUnqualifiedType(PointeeType, Ctx.CharTy)) { in doRewriteToUTF8StringBoxedExpressionHelper()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Compiler.cpp | 1965 QualType CharTy = A.CharTy.withConst(); in VisitSYCLUniqueStableNameExpr() local 1967 QualType ArrayTy = A.getConstantArrayType(CharTy, Size, nullptr, in VisitSYCLUniqueStableNameExpr()
|