Home
last modified time | relevance | path

Searched refs:ParamTy (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp86 Type *ParamTy = Func->getArg(0)->getType(); in insertRVCallWithColors() local
87 Value *CallArg = Builder.CreateBitCast(AnnotatedCall, ParamTy); in insertRVCallWithColors()
H A DObjCARCOpts.cpp1141 Type *ParamTy = CInst->getArgOperand(0)->getType(); in OptimizeIndividualCallImpl() local
1155 if (Op->getType() != ParamTy) in OptimizeIndividualCallImpl()
1156 Op = new BitCastInst(Op, ParamTy, "", InsertPos); in OptimizeIndividualCallImpl()
1767 Type *ParamTy = PointerType::getUnqual(Type::getInt8Ty(ArgTy->getContext())); in MoveCalls() local
1773 Value *MyArg = ArgTy == ParamTy ? Arg in MoveCalls()
1774 : new BitCastInst(Arg, ParamTy, "", in MoveCalls()
1790 Value *MyArg = ArgTy == ParamTy ? Arg in MoveCalls()
1791 : new BitCastInst(Arg, ParamTy, "", in MoveCalls()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DInnerPointerChecker.cpp158 QualType ParamTy = FD->getParamDecl(I)->getType(); in checkFunctionArguments() local
159 if (!ParamTy->isReferenceType() || in checkFunctionArguments()
160 ParamTy->getPointeeType().isConstQualified()) in checkFunctionArguments()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetLibraryInfo.cpp1062 Type *ParamTy = FTy.getParamType(0); in isValidProtoForLibFunc() local
1067 return (ParamTy->isArrayTy() && ParamTy->getArrayNumElements() == 2 && in isValidProtoForLibFunc()
1068 ParamTy->getArrayElementType() == RetTy); in isValidProtoForLibFunc()
1070 return ParamTy == RetTy && FTy.getParamType(1) == RetTy; in isValidProtoForLibFunc()
1082 Type *ParamTy = FTy.getParamType(0); in isValidProtoForLibFunc() local
1086 return (Ty->getElementType(0) == ParamTy && in isValidProtoForLibFunc()
1087 Ty->getElementType(1) == ParamTy); in isValidProtoForLibFunc()
1093 return Ty->getElementType() == ParamTy; in isValidProtoForLibFunc()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaSwift.cpp560 QualType ParamTy = Param->getType(); in DiagnoseName() local
561 if (ParamTy->isReferenceType() || ParamTy->isPointerType()) in DiagnoseName()
562 return !ParamTy->getPointeeType().isConstQualified(); in DiagnoseName()
H A DSemaTemplateDeductionGuide.cpp613 QualType ParamTy = NewDI->getType(); in transformFunctionTypeParam() local
616 ParamTy.getNonLValueExprType(SemaRef.Context), in transformFunctionTypeParam()
617 ParamTy->isLValueReferenceType() ? VK_LValue in transformFunctionTypeParam()
618 : ParamTy->isRValueReferenceType() ? VK_XValue in transformFunctionTypeParam()
H A DSemaTemplateVariadic.cpp962 QualType ParamTy = Param->getType(); in containsUnexpandedParameterPacks() local
963 assert(!ParamTy.isNull() && "Couldn't parse type?"); in containsUnexpandedParameterPacks()
964 if (ParamTy->containsUnexpandedParameterPack()) return true; in containsUnexpandedParameterPacks()
H A DSemaType.cpp5121 QualType ParamTy = Param->getType(); in GetFullTypeForDeclarator() local
5122 assert(!ParamTy.isNull() && "Couldn't parse type?"); in GetFullTypeForDeclarator()
5127 if (ParamTy->isVoidType()) { in GetFullTypeForDeclarator()
5133 ParamTy = Context.IntTy; in GetFullTypeForDeclarator()
5134 Param->setType(ParamTy); in GetFullTypeForDeclarator()
5138 ParamTy = Context.IntTy; in GetFullTypeForDeclarator()
5139 Param->setType(ParamTy); in GetFullTypeForDeclarator()
5142 if (ParamTy.hasQualifiers()) in GetFullTypeForDeclarator()
5148 } else if (ParamTy->isHalfType()) { in GetFullTypeForDeclarator()
5155 << ParamTy << 0; in GetFullTypeForDeclarator()
[all …]
H A DSemaChecking.cpp1784 QualType ParamTy = [&]() { in BuiltinLaunder() local
1794 TheCall->setType(ParamTy); in BuiltinLaunder()
1797 if (!ParamTy->isPointerType()) in BuiltinLaunder()
1799 if (ParamTy->isFunctionPointerType()) in BuiltinLaunder()
1801 if (ParamTy->isVoidPointerType()) in BuiltinLaunder()
1817 if (S.RequireCompleteType(TheCall->getBeginLoc(), ParamTy->getPointeeType(), in BuiltinLaunder()
1821 assert(ParamTy->getPointeeType()->isObjectType() && in BuiltinLaunder()
1825 InitializedEntity::InitializeParameter(S.Context, ParamTy, false); in BuiltinLaunder()
3118 QualType ParamTy) { in CheckArgAlignment() argument
3121 if (!ParamTy->isPointerType() && !ParamTy->isReferenceType()) in CheckArgAlignment()
[all …]
H A DSema.cpp2120 for (const auto &ParamTy : FPTy->param_types()) in checkTypeSupport() local
2121 CheckType(ParamTy); in checkTypeSupport()
H A DSemaDeclAttr.cpp552 QualType ParamTy = getFunctionOrMethodParamType(D, Idx.getASTIndex()); in checkParamIsIntegerType() local
553 if (!ParamTy->isIntegerType() && !ParamTy->isCharType()) { in checkParamIsIntegerType()
3277 QualType ParamTy = FD->getParamDecl(0)->getType(); in handleCleanupAttr() local
3279 ParamTy, Ty) != Sema::Compatible) { in handleCleanupAttr()
3281 << NI.getName() << ParamTy << Ty; in handleCleanupAttr()
H A DSemaOverload.cpp9015 for (QualType ParamTy : CandidateTypes[0].pointer_types()) { in addUnaryStarPointerOverloads() local
9016 QualType PointeeTy = ParamTy->getPointeeType(); in addUnaryStarPointerOverloads()
9024 S.AddBuiltinCandidate(&ParamTy, Args, CandidateSet); in addUnaryStarPointerOverloads()
9055 for (QualType ParamTy : CandidateTypes[0].pointer_types()) in addUnaryPlusPointerOverloads() local
9056 S.AddBuiltinCandidate(&ParamTy, Args, CandidateSet); in addUnaryPlusPointerOverloads()
9621 QualType ParamTy = S.Context.BoolTy; in addExclaimOverload() local
9622 S.AddBuiltinCandidate(&ParamTy, Args, CandidateSet, in addExclaimOverload()
H A DSemaLookup.cpp3636 QualType ParamTy = FD->getParamDecl(ArgIdx)->getType(); in LookupLiteralOperator() local
3637 if (!Context.hasSameUnqualifiedType(ArgTys[ArgIdx], ParamTy)) { in LookupLiteralOperator()
H A DSemaExprCXX.cpp3960 QualType ParamTy = OperatorNewOrDelete->getParamDecl(i)->getType(); in BuiltinOperatorNewDeleteOverloaded() local
3962 InitializedEntity::InitializeParameter(Context, ParamTy, false); in BuiltinOperatorNewDeleteOverloaded()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeExtractor.cpp833 std::vector<Type *> ParamTy; in constructFunction() local
845 ParamTy.push_back(value->getType()); in constructFunction()
855 ParamTy.push_back( in constructFunction()
860 (ParamTy.size() + AggParamTy.size()) == in constructFunction()
867 size_t NumScalarParams = ParamTy.size(); in constructFunction()
871 ParamTy.push_back(PointerType::get( in constructFunction()
877 for (Type *i : ParamTy) in constructFunction()
883 RetTy, ParamTy, AllowVarArgs && oldFunction->isVarArg()); in constructFunction()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCallAndReturn.cpp718 QualType ParamTy = PVD->getType(); in evalCall() local
719 if (ParamTy.isNull() || in evalCall()
720 (!ParamTy->isPointerType() && !ParamTy->isReferenceType())) in evalCall()
722 QualType Pointee = ParamTy->getPointeeType(); in evalCall()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp986 QualType ParamTy = in getLiteralOperatorKind() local
988 if (ParamTy->isPointerType()) in getLiteralOperatorKind()
990 if (ParamTy->isAnyCharacterType()) in getLiteralOperatorKind()
992 if (ParamTy->isIntegerType()) in getLiteralOperatorKind()
994 if (ParamTy->isFloatingType()) in getLiteralOperatorKind()
H A DDeclCXX.cpp894 const auto *ParamTy = in addedMember() local
896 if (!ParamTy || ParamTy->getPointeeType().isConstQualified()) in addedMember()
H A DItaniumMangle.cpp3621 QualType ParamTy = Proto->getParamType(I); in mangleBareFunctionType() local
3622 mangleType(Context.getASTContext().getSignatureParameterType(ParamTy)); in mangleBareFunctionType()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp4168 Type *ParamTy = FT->getParamType(i); in transformConstExprCastCall() local
4171 if (!CastInst::isBitOrNoopPointerCastable(ActTy, ParamTy, DL)) in transformConstExprCastCall()
4177 ParamTy, AttributeFuncs::ASK_UNSAFE_TO_DROP))) in transformConstExprCastCall()
4239 Type *ParamTy = FT->getParamType(i); in transformConstExprCastCall() local
4242 if ((*AI)->getType() != ParamTy) in transformConstExprCastCall()
4243 NewArg = Builder.CreateBitOrPointerCast(*AI, ParamTy); in transformConstExprCastCall()
4249 ParamTy, AttributeFuncs::ASK_SAFE_TO_DROP); in transformConstExprCastCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp1261 for (Type *ParamTy : FTy->params()) { in hasSufficientLocalMem()
1262 PointerType *PtrTy = dyn_cast<PointerType>(ParamTy); in hasSufficientLocalMem()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp431 for (Type *ParamTy : FTy->params()) in getSignature()
432 OS << "_" << *ParamTy; in getSignature()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGNonTrivialStruct.cpp311 QualType ParamTy = Ctx.getPointerType(Ctx.VoidPtrTy); in getFunctionInfo() local
315 Ctx, nullptr, SourceLocation(), &Ctx.Idents.get(ValNameStr[I]), ParamTy, in getFunctionInfo()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DFunction.cpp1038 for (Type *ParamTy : TETy->type_params()) in getMangledTypeStr()
1039 Result += "_" + getMangledTypeStr(ParamTy, HasUnnamedType); in getMangledTypeStr()
H A DVerifier.cpp3661 for (Type *ParamTy : FTy->params()) { in visitCallBase()
3662 Check(!ParamTy->isMetadataTy(), in visitCallBase()
3664 Check(!ParamTy->isTokenTy(), in visitCallBase()

12