Home
last modified time | relevance | path

Searched refs:fnType (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/
H A DCIRDialect.cpp727 auto fnType = fn.getFunctionType(); in verifyCallCommInSymbolUses() local
730 unsigned numFnOpOperands = fnType.getNumInputs(); in verifyCallCommInSymbolUses()
732 if (!fnType.isVarArg() && numCallOperands != numFnOpOperands) in verifyCallCommInSymbolUses()
734 if (fnType.isVarArg() && numCallOperands < numFnOpOperands) in verifyCallCommInSymbolUses()
738 if (callIf.getArgOperand(i).getType() != fnType.getInput(i)) in verifyCallCommInSymbolUses()
740 << fnType.getInput(i) << ", but provided " in verifyCallCommInSymbolUses()
747 if (fnType.hasVoidReturn() && op->getNumResults() != 0) in verifyCallCommInSymbolUses()
751 if (!fnType.hasVoidReturn() && op->getNumResults() != 1) in verifyCallCommInSymbolUses()
755 if (!fnType.hasVoidReturn() && in verifyCallCommInSymbolUses()
756 op->getResultTypes().front() != fnType.getReturnType()) { in verifyCallCommInSymbolUses()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenCall.cpp280 const FunctionType *fnType) { in arrangeFreeFunctionLikeCall() argument
284 if (const auto *proto = dyn_cast<FunctionProtoType>(fnType)) { in arrangeFreeFunctionLikeCall()
290 cast<FunctionNoProtoType>(fnType))) in arrangeFreeFunctionLikeCall()
297 CanQualType retType = fnType->getReturnType() in arrangeFreeFunctionLikeCall()
368 const FunctionType *fnType) { in arrangeFreeFunctionCall() argument
369 return arrangeFreeFunctionLikeCall(*this, cgm, args, fnType); in arrangeFreeFunctionCall()
H A DTargetInfo.h88 virtual bool isNoProtoCallVariadic(const FunctionNoProtoType *fnType) const;
H A DCIRGenModule.h204 cir::FuncType fnType = nullptr, bool dontDefer = false,
206 return getAddrAndTypeOfCXXStructor(gd, fnInfo, fnType, dontDefer,
213 cir::FuncType fnType = nullptr, bool dontDefer = false,
H A DTargetInfo.cpp66 const FunctionNoProtoType *fnType) const { in isNoProtoCallVariadic()
H A DCIRGenModule.cpp1302 GlobalDecl gd, const CIRGenFunctionInfo *fnInfo, cir::FuncType fnType, in getAddrAndTypeOfCXXStructor() argument
1316 if (!fnType) { in getAddrAndTypeOfCXXStructor()
1319 fnType = getTypes().getFunctionType(*fnInfo); in getAddrAndTypeOfCXXStructor()
1322 auto fn = getOrCreateCIRFunction(getMangledName(gd), fnType, gd, in getAddrAndTypeOfCXXStructor()
1326 return {fnType, fn}; in getAddrAndTypeOfCXXStructor()
1897 cir::FuncType fnType = getTypes().getFunctionType(fnInfo); in emitAliasForGlobal() local
1901 mangledName, fnType, aliasFD); in emitAliasForGlobal()
H A DCIRGenTypes.h189 const FunctionType *fnType);
H A DCIRGenExpr.cpp1223 const auto *fnType = cast<FunctionType>(pointeeTy); in emitCall() local
1230 emitCallArgs(args, dyn_cast<FunctionProtoType>(fnType), e->arguments(), in emitCall()
1234 cgm.getTypes().arrangeFreeFunctionCall(args, fnType); in emitCall()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DVE.cpp62 const FunctionNoProtoType *fnType) const override { in isNoProtoCallVariadic()
H A DX86.cpp1456 const FunctionNoProtoType *fnType) const override { in isNoProtoCallVariadic()
1463 if (fnType->getCallConv() == CC_C) { in isNoProtoCallVariadic()
1476 return TargetCodeGenInfo::isNoProtoCallVariadic(args, fnType); in isNoProtoCallVariadic()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DTargetInfo.cpp90 const FunctionNoProtoType *fnType) const { in isNoProtoCallVariadic()
H A DTargetInfo.h288 const FunctionNoProtoType *fnType) const;
H A DCGDeclCXX.cpp271 QualType fnType = getContext().getFunctionType(getContext().VoidTy, in createAtExitStub() local
273 return CGM.getFunctionPointer(fn, fnType); in createAtExitStub()
H A DCGObjC.cpp2298 llvm::FunctionType *fnType = in emitObjCValueOperation() local
2300 fn = CGF.CGM.CreateRuntimeFunction(fnType, fnName); in emitObjCValueOperation()
2742 llvm::FunctionType *fnType = in EmitObjCAutoreleasePoolPop() local
2744 fn = CGM.CreateRuntimeFunction(fnType, "objc_autoreleasePoolPop"); in EmitObjCAutoreleasePoolPop()
2874 llvm::FunctionType *fnType = in EmitObjCRelease() local
2876 fn = CGM.CreateRuntimeFunction(fnType, "objc_release"); in EmitObjCRelease()
H A DCGCall.cpp658 const CallArgList &args, const FunctionType *fnType, in arrangeFreeFunctionLikeCall() argument
669 if (const FunctionProtoType *proto = dyn_cast<FunctionProtoType>(fnType)) { in arrangeFreeFunctionLikeCall()
682 args, cast<FunctionNoProtoType>(fnType))) { in arrangeFreeFunctionLikeCall()
690 return CGT.arrangeLLVMFunctionInfo(GetReturnType(fnType->getReturnType()), in arrangeFreeFunctionLikeCall()
691 opts, argTypes, fnType->getExtInfo(), in arrangeFreeFunctionLikeCall()
700 const CallArgList &args, const FunctionType *fnType, bool chainCall) { in arrangeFreeFunctionCall() argument
701 return arrangeFreeFunctionLikeCall(*this, CGM, args, fnType, in arrangeFreeFunctionCall()
709 const FunctionType *fnType) { in arrangeBlockFunctionCall() argument
710 return arrangeFreeFunctionLikeCall(*this, CGM, args, fnType, 1, in arrangeBlockFunctionCall()
H A DCGBlocks.cpp1504 const FunctionProtoType *fnType = blockInfo.getBlockExpr()->getFunctionType(); in GenerateBlockFunction() local
1506 CGM.getTypes().arrangeBlockFunctionDeclaration(fnType, args); in GenerateBlockFunction()
1526 StartFunction(blockDecl, fnType->getReturnType(), fn, fnInfo, args, in GenerateBlockFunction()
H A DItaniumCXXABI.cpp2890 QualType fnType = in emitGlobalDtorWithCXAAtExit() local
2893 dtorCallee = CGF.CGM.getFunctionPointer(dtorCallee, fnType); in emitGlobalDtorWithCXAAtExit()
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/
H A DLowerToLLVM.cpp1147 cir::FuncType fnType = op.getFunctionType(); in matchAndRewrite() local
1150 fnType.getNumInputs()); in matchAndRewrite()
1152 for (const auto &argType : llvm::enumerate(fnType.getInputs())) { in matchAndRewrite()
1160 getTypeConverter()->convertType(fnType.getReturnType()); in matchAndRewrite()
1166 /*isVarArg=*/fnType.isVarArg()); in matchAndRewrite()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOverload.cpp16047 QualType fnType = in BuildCallToMemberFunction() local
16050 const FunctionProtoType *proto = fnType->castAs<FunctionProtoType>(); in BuildCallToMemberFunction()
16069 << fnType.getUnqualifiedType() in BuildCallToMemberFunction()