Home
last modified time | relevance | path

Searched refs:CharTy (Results 1 – 25 of 50) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopIdiomVectorize.cpp173 unsigned VF, Type *CharTy, BasicBlock *ExitSucc,
178 void transformFindFirstByte(PHINode *IndPhi, unsigned VF, Type *CharTy,
1079 Type *CharTy = LoadSearch->getType(); in recognizeFindFirstByte() local
1080 if (!CharTy->isIntegerTy() || LoadNeedle->getType() != CharTy) in recognizeFindFirstByte()
1086 unsigned VF = 128 / CharTy->getIntegerBitWidth(); in recognizeFindFirstByte()
1088 ScalableVectorType::get(CharTy, VF), FixedVectorType::get(CharTy, VF), in recognizeFindFirstByte()
1128 if (GEPSearch->getResultElementType() != CharTy || in recognizeFindFirstByte()
1129 GEPNeedle->getResultElementType() != CharTy) in recognizeFindFirstByte()
1169 transformFindFirstByte(IndPhi, VF, CharTy, ExitSucc, ExitFail, SearchStart, in recognizeFindFirstByte()
1175 IRBuilder<> &Builder, DomTreeUpdater &DTU, unsigned VF, Type *CharTy, in expandFindFirstByte() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTypeCache.h45 llvm::IntegerType *CharTy; member
H A DSanitizerMetadata.cpp80 if (!TBAAInfo || TBAAInfo == CGM.getTBAATypeInfo(CGM.getContext().CharTy)) in reportGlobal()
/freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCTypeEncodingParser.cpp293 return ast_ctx.CharTy; in BuildType()
326 return ast_ctx.getPointerType(ast_ctx.CharTy); in BuildType()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DContext.cpp181 QualType CharTy = PtrExpr->getType()->getPointeeType(); in evaluateStringRepr() local
185 Ptr.atIndex(I).toRValue(*this, CharTy)) in evaluateStringRepr()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DFormatString.cpp673 return integerTypeMatch(C, Left.T, C.CharTy, false); in matchesArgType()
706 Res = C.CharTy; in getRepresentativeType()
712 Res = C.getPointerType(C.CharTy); in getRepresentativeType()
H A DASTDumper.cpp345 Dumper.Visit(*this, /*Ty=*/Context.getPointerType(Context.CharTy)); in dump()
H A DExprConstant.cpp9600 QualType CharTy = Info.Ctx.CharTy.withConst(); in VisitSYCLUniqueStableNameExpr() local
9604 CharTy, Size, nullptr, ArraySizeModifier::Normal, 0); in VisitSYCLUniqueStableNameExpr()
10080 QualType CharTy = Result.Designator.getType(Info.Ctx); in VisitBuiltinCallExpr() local
10085 CharTy, E->getArg(0)->getType()->getPointeeType())); in VisitBuiltinCallExpr()
10087 if (IsRawByte && CharTy->isIncompleteType()) { in VisitBuiltinCallExpr()
10088 Info.FFDiag(E, diag::note_constexpr_ltor_incomplete_type) << CharTy; in VisitBuiltinCallExpr()
10093 if (IsRawByte && !isOneByteCharacterType(CharTy)) { in VisitBuiltinCallExpr()
10095 << Info.Ctx.BuiltinInfo.getQuotedName(BuiltinOp) << CharTy; in VisitBuiltinCallExpr()
10107 if (!APSInt::isSameValue(HandleIntToIntCast(Info, E, CharTy, in VisitBuiltinCallExpr()
10136 if (!handleLValueToRValueConversion(Info, E, CharTy, Result, Char) || in VisitBuiltinCallExpr()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DBuiltinTypes.def66 SHARED_SINGLETON_TYPE(UNSIGNED_TYPE(Char_U, CharTy))
101 SHARED_SINGLETON_TYPE(SIGNED_TYPE(Char_S, CharTy))
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp460 Type *CharTy = B.getInt8Ty(); in memChrToCharCompare() local
461 Value *Char0 = B.CreateLoad(CharTy, Src); in memChrToCharCompare()
462 CharVal = B.CreateTrunc(CharVal, CharTy); in memChrToCharCompare()
856 Type *CharTy = B.getInt8Ty(); in optimizeStringNCpy() local
857 Value *CharVal = B.CreateLoad(CharTy, Src, "stxncpy.char0"); in optimizeStringNCpy()
864 Value *ZeroChar = ConstantInt::get(CharTy, 0); in optimizeStringNCpy()
868 Value *EndPtr = B.CreateInBoundsGEP(CharTy, Dst, Off1, "stpncpy.end"); in optimizeStringNCpy()
928 Type *CharTy = B.getIntNTy(CharSize); in optimizeStringLength() local
938 return B.CreateZExt(B.CreateLoad(CharTy, Src, "char0"), in optimizeStringLength()
950 Value *CharVal = B.CreateLoad(CharTy, Src, "strnlen.char0"); in optimizeStringLength()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHLSLBuiltinTypeDeclBuilder.cpp665 .addParam("name", AST.getPointerType(AST.CharTy.withConst())) in addHandleConstructorFromBinding()
686 .addParam("name", AST.getPointerType(AST.CharTy.withConst())) in addHandleConstructorFromImplicitBinding()
H A DSemaExpr.cpp2155 QualType CharTy = Context.CharTy; in ActOnStringLiteral() local
2158 CharTy = Context.getWideCharType(); in ActOnStringLiteral()
2162 CharTy = Context.Char8Ty; in ActOnStringLiteral()
2164 CharTy = Context.UnsignedCharTy; in ActOnStringLiteral()
2167 CharTy = Context.Char16Ty; in ActOnStringLiteral()
2170 CharTy = Context.Char32Ty; in ActOnStringLiteral()
2173 CharTy = Context.UnsignedCharTy; in ActOnStringLiteral()
2208 Context.getStringLiteralArrayType(CharTy, Literal.GetNumStringChars()); in ActOnStringLiteral()
2266 unsigned CharBits = Context.getIntWidth(CharTy); in ActOnStringLiteral()
2267 bool CharIsUnsigned = CharTy->isUnsignedIntegerType(); in ActOnStringLiteral()
[all …]
H A DSemaExprObjC.cpp331 NumberType = Context.CharTy; in BuildObjCNumericLiteral()
526 if (Context.hasSameUnqualifiedType(PointeeType, Context.CharTy)) { in BuildObjCBoxedExpr()
578 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
620 ValueType = Context.CharTy; in BuildObjCBoxedExpr()
700 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
1155 StrTy = Context.getStringLiteralArrayType(Context.CharTy, Str.size()); in BuildObjCEncodeExpression()
H A DSemaInit.cpp3288 QualType CharTy = AT->getElementType(); in CheckDesignatedInitializer() local
3291 QualType PromotedCharTy = CharTy; in CheckDesignatedInitializer()
3292 if (Context.isPromotableIntegerType(CharTy)) in CheckDesignatedInitializer()
3293 PromotedCharTy = Context.getPromotedIntegerType(CharTy); in CheckDesignatedInitializer()
3309 if (CharTy != PromotedCharTy) in CheckDesignatedInitializer()
3310 Init = ImplicitCastExpr::Create(Context, CharTy, CK_IntegralCast, in CheckDesignatedInitializer()
3332 if (CharTy != PromotedCharTy) in CheckDesignatedInitializer()
3333 Init = ImplicitCastExpr::Create(Context, CharTy, CK_IntegralCast, in CheckDesignatedInitializer()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp223 newSuperR = MakeElementRegion(cast<SubRegion>(baseR), Ctx.CharTy, in castRegion()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCStringChecker.cpp77 return Ctx.getPointerType(CK == CharKind::Regular ? Ctx.CharTy in getCharPtrType()
411 if (ER->getValueType() != Ctx.CharTy) in getIndex()
1165 QualType PtrTy = Ctx.getPointerType(Ctx.CharTy); in isFirstBufInBound()
1197 assert(ER->getValueType() == C.getASTContext().CharTy && in isFirstBufInBound()
H A DCallAndMessageChecker.cpp218 const SVal PSV = State->getSVal(SValMemRegion, C.getASTContext().CharTy); in uninitRefOrPointer()
H A DMallocChecker.cpp1269 SVal ZeroVal = C.getSValBuilder().makeZeroVal(Ctx.CharTy); in performKernelMalloc()
1473 SVal zeroVal = svalBuilder.makeZeroVal(svalBuilder.getContext().CharTy); in checkGMalloc0()
1502 SVal Init = SB.makeZeroVal(SB.getContext().CharTy); in checkGMallocN0()
2917 SVal zeroVal = svalBuilder.makeZeroVal(svalBuilder.getContext().CharTy); in CallocMem()
H A DStdLibraryFunctionsChecker.cpp1664 const QualType CharTy = ACtx.CharTy; in initFunctionSummaries() local
1678 const QualType CharPtrTy = getPointerTy(CharTy); // char * in initFunctionSummaries()
1681 getPointerTy(getConstTy(CharTy)); // const char * in initFunctionSummaries()
H A DBasicObjCFoundationChecks.cpp390 case kCFNumberCharType: T = Ctx.CharTy; break; in GetCFNumberSize()
/freebsd/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp1005 if (QualTypeMatchesBitSize(bit_size, ast, ast.CharTy)) in GetBuiltinTypeForDWARFEncodingAndBitSize()
1006 return GetType(ast.CharTy); in GetBuiltinTypeForDWARFEncodingAndBitSize()
1018 if (QualTypeMatchesBitSize(bit_size, ast, ast.CharTy)) in GetBuiltinTypeForDWARFEncodingAndBitSize()
1019 return GetType(ast.CharTy); in GetBuiltinTypeForDWARFEncodingAndBitSize()
1034 if (QualTypeMatchesBitSize(bit_size, ast, ast.CharTy)) in GetBuiltinTypeForDWARFEncodingAndBitSize()
1035 return GetType(ast.CharTy); in GetBuiltinTypeForDWARFEncodingAndBitSize()
1086 if (QualTypeMatchesBitSize(bit_size, ast, ast.CharTy)) in GetBuiltinTypeForDWARFEncodingAndBitSize()
1087 return GetType(ast.CharTy); in GetBuiltinTypeForDWARFEncodingAndBitSize()
1129 QualType char_type(ast.CharTy); in GetCStringType()
2025 return ast->CharTy.getAsOpaquePtr(); in GetOpaqueCompilerType()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp600 Context->CharTy, llvm::APInt(32, Str.size() + 1), nullptr, in getStringLiteral()
2317 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl()
2517 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl()
2547 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl()
3017 FieldTypes[2] = Context->getPointerType(Context->CharTy); in getConstantStringStructType()
7440 Context->getPointerType(Context->CharTy), in RewriteObjCIvarRefExpr()
7452 Context->getPointerType(Context->CharTy), VK_PRValue, OK_Ordinary, in RewriteObjCIvarRefExpr()
H A DRewriteObjC.cpp499 Context->CharTy, llvm::APInt(32, Str.size() + 1), nullptr, in getStringLiteral()
2230 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl()
2443 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl()
2473 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl()
2570 FieldTypes[2] = Context->getPointerType(Context->CharTy); in getConstantStringStructType()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConv.h582 unsigned CharTypeSize = Ctx.getTypeSize(Ctx.CharTy); in getAPSIntType()
/freebsd/contrib/llvm-project/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp1151 if (Ctx.hasSameUnqualifiedType(PointeeType, Ctx.CharTy)) { in doRewriteToUTF8StringBoxedExpressionHelper()

12