Home
last modified time | relevance | path

Searched refs:FTy (Results 1 – 25 of 102) sorted by relevance

12345

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DVFABIDemangler.h101 static VFShape getScalarShape(const FunctionType *FTy) { in getScalarShape()
102 return VFShape::get(FTy, ElementCount::getFixed(1), in getScalarShape()
109 static VFShape get(const FunctionType *FTy, ElementCount EC, in get()
112 for (unsigned I = 0; I < FTy->getNumParams(); ++I) in get()
116 VFParameter({FTy->getNumParams(), VFParamKind::GlobalPredicate})); in get()
185 const FunctionType *FTy);
H A DInstrTypes.h1131 FunctionType *FTy;
1135 : Instruction(std::forward<ArgsTy>(Args)...), Attrs(A), FTy(FT) {}
1205 FunctionType *getFunctionType() const { return FTy; }
1207 void mutateFunctionType(FunctionType *FTy) {
1208 Value::mutateType(FTy->getReturnType());
1209 this->FTy = FTy;
1398 void setCalledFunction(FunctionType *FTy, Value *Fn) {
1399 this->FTy = FTy;
1402 assert(getType() == FTy->getReturnType());
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInlineAsm.cpp30 InlineAsm::InlineAsm(FunctionType *FTy, const std::string &asmString, in InlineAsm() argument
33 : Value(PointerType::getUnqual(FTy->getContext()), Value::InlineAsmVal), in InlineAsm()
34 AsmString(asmString), Constraints(constraints), FTy(FTy), in InlineAsm()
43 InlineAsm *InlineAsm::get(FunctionType *FTy, StringRef AsmString, in get() argument
47 InlineAsmKeyType Key(AsmString, Constraints, FTy, hasSideEffects, in get()
49 LLVMContextImpl *pImpl = FTy->getContext().pImpl; in get()
51 PointerType::getUnqual(FTy->getContext()), Key); in get()
60 return FTy; in getFunctionType()
H A DConstantsContext.h338 FunctionType *FTy;
345 FunctionType *FTy, bool HasSideEffects, bool IsAlignStack,
347 : AsmString(AsmString), Constraints(Constraints), FTy(FTy),
353 FTy(Asm->getFunctionType()), HasSideEffects(Asm->hasSideEffects()),
361 FTy == X.FTy && CanThrow == X.CanThrow;
370 FTy == Asm->getFunctionType() && CanThrow == Asm->canThrow();
375 AsmDialect, FTy, CanThrow);
381 assert(PointerType::getUnqual(FTy->getContext()) == Ty);
382 return new InlineAsm(FTy, std::string(AsmString), std::string(Constraints),
H A DInstructions.cpp747 void CallInst::init(FunctionType *FTy, Value *Func, ArrayRef<Value *> Args, in init() argument
749 this->FTy = FTy; in init()
754 assert((Args.size() == FTy->getNumParams() || in init()
755 (FTy->isVarArg() && Args.size() > FTy->getNumParams())) && in init()
759 assert((i >= FTy->getNumParams() || in init()
760 FTy->getParamType(i) == Args[i]->getType()) && in init()
776 void CallInst::init(FunctionType *FTy, Value *Func, const Twine &NameStr) { in init() argument
777 this->FTy = FTy; in init()
781 assert(FTy->getNumParams() == 0 && "Calling a function with bad signature"); in init()
794 : CallBase(CI.Attrs, CI.FTy, CI.getType(), Instruction::Call, AllocInfo) { in CallInst()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp516 FunctionType *FTy = F->getFunctionType(); in runFunction() local
517 Type *RetTy = FTy->getReturnType(); in runFunction()
519 assert((FTy->getNumParams() == ArgValues.size() || in runFunction()
520 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && in runFunction()
522 assert(FTy->getNumParams() == ArgValues.size() && in runFunction()
530 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction()
531 FTy->getParamType(1)->isPointerTy() && in runFunction()
532 FTy->getParamType(2)->isPointerTy()) { in runFunction()
545 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction()
546 FTy->getParamType(1)->isPointerTy()) { in runFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetLibraryInfo.cpp1071 static bool isValidProtoForSizeReturningNew(const FunctionType &FTy, LibFunc F, in isValidProtoForSizeReturningNew() argument
1076 if (FTy.getNumParams() != 1 || in isValidProtoForSizeReturningNew()
1077 !FTy.getParamType(0)->isIntegerTy(SizeTSizeBits)) { in isValidProtoForSizeReturningNew()
1082 if (FTy.getNumParams() != 2 || in isValidProtoForSizeReturningNew()
1083 !FTy.getParamType(0)->isIntegerTy(SizeTSizeBits) || in isValidProtoForSizeReturningNew()
1084 !FTy.getParamType(1)->isIntegerTy(8)) { in isValidProtoForSizeReturningNew()
1089 if (FTy.getNumParams() != 2 || in isValidProtoForSizeReturningNew()
1090 !FTy.getParamType(0)->isIntegerTy(SizeTSizeBits) || in isValidProtoForSizeReturningNew()
1091 !FTy.getParamType(1)->isIntegerTy(SizeTSizeBits)) { in isValidProtoForSizeReturningNew()
1096 if (FTy.getNumParams() != 3 || in isValidProtoForSizeReturningNew()
[all …]
H A DMemoryBuiltins.cpp204 FunctionType *FTy = Callee->getFunctionType(); in getAllocationDataForFunction() local
206 if (FTy->getReturnType()->isPointerTy() && in getAllocationDataForFunction()
207 FTy->getNumParams() == FnData->NumParams && in getAllocationDataForFunction()
209 (FTy->getParamType(FstParam)->isIntegerTy(32) || in getAllocationDataForFunction()
210 FTy->getParamType(FstParam)->isIntegerTy(64))) && in getAllocationDataForFunction()
212 FTy->getParamType(SndParam)->isIntegerTy(32) || in getAllocationDataForFunction()
213 FTy->getParamType(SndParam)->isIntegerTy(64))) in getAllocationDataForFunction()
537 FunctionType *FTy = F->getFunctionType(); in isLibFreeFunction() local
538 if (!FTy->getReturnType()->isVoidTy()) in isLibFreeFunction()
540 if (FTy->getNumParams() != FnData->NumParams) in isLibFreeFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DGCOVProfiling.cpp122 Function *createInternalFunction(FunctionType *FTy, StringRef Name,
637 FunctionType *FTy = FunctionType::get(Builder.getInt32Ty(), {}, false); in AddFlushBeforeForkAndExec() local
639 "__gcov_fork", FTy, in AddFlushBeforeForkAndExec()
665 FunctionType *FTy = FunctionType::get(Builder.getVoidTy(), {}, false); in AddFlushBeforeForkAndExec() local
667 M->getOrInsertFunction("llvm_writeout_files", FTy); in AddFlushBeforeForkAndExec()
674 FunctionCallee ResetF = M->getOrInsertFunction("llvm_reset_counters", FTy); in AddFlushBeforeForkAndExec()
973 Function *GCOVProfiler::createInternalFunction(FunctionType *FTy, in createInternalFunction() argument
977 FTy, GlobalValue::InternalLinkage, 0, Name, M); in createInternalFunction()
995 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitGlobalConstructor() local
996 Function *F = createInternalFunction(FTy, "__llvm_gcov_init", "_ZTSFvvE"); in emitGlobalConstructor()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDeclCXX.cpp439 llvm::FunctionType *FTy, const Twine &Name, const CGFunctionInfo &FI, in CreateGlobalInitOrCleanUpFunction() argument
441 llvm::Function *Fn = llvm::Function::Create(FTy, Linkage, Name, &getModule()); in CreateGlobalInitOrCleanUpFunction()
551 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalVarDeclInitFunc() local
560 FTy, FnName.str(), getTypes().arrangeNullaryFunction(), D->getLocation()); in EmitCXXGlobalVarDeclInitFunc()
734 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXModuleInitFunc() local
744 FTy, llvm::Function::ExternalLinkage, FnName.str(), &getModule()); in EmitCXXModuleInitFunc()
769 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXModuleInitFunc() local
783 FTy, llvm::Twine(InitFnName), FI, SourceLocation(), false, in EmitCXXModuleInitFunc()
876 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalInitFunc() local
886 FTy, llvm::Function::ExternalLinkage, FnName.str(), &getModule()); in EmitCXXGlobalInitFunc()
[all …]
H A DCGCall.h88 llvm::FunctionType *FTy; member
148 llvm::FunctionType *FTy) { in forVirtual() argument
153 result.VirtualInfo.FTy = FTy; in forVirtual()
221 return VirtualInfo.FTy; in getVirtualFunctionType()
H A DItaniumCXXABI.cpp1429 llvm::FunctionType *FTy = in emitRethrow() local
1432 llvm::FunctionCallee Fn = CGM.CreateRuntimeFunction(FTy, "__cxa_rethrow"); in emitRethrow()
1443 llvm::FunctionType *FTy = in getAllocateExceptionFn() local
1446 return CGM.CreateRuntimeFunction(FTy, "__cxa_allocate_exception"); in getAllocateExceptionFn()
1454 llvm::FunctionType *FTy = in getThrowFn() local
1457 return CGM.CreateRuntimeFunction(FTy, "__cxa_throw"); in getThrowFn()
1515 llvm::FunctionType *FTy = llvm::FunctionType::get(Int8PtrTy, Args, false); in getItaniumDynamicCastFn() local
1525 return CGF.CGM.CreateRuntimeFunction(FTy, "__dynamic_cast", Attrs); in getItaniumDynamicCastFn()
1530 llvm::FunctionType *FTy = llvm::FunctionType::get(CGF.VoidTy, false); in getBadCastFn() local
1531 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_bad_cast"); in getBadCastFn()
[all …]
H A DCGCleanup.cpp1347 llvm::FunctionType *FTy = in EmitSehCppScopeBegin() local
1350 CGM.CreateRuntimeFunction(FTy, "llvm.seh.scope.begin"); in EmitSehCppScopeBegin()
1358 llvm::FunctionType *FTy = in EmitSehCppScopeEnd() local
1361 CGM.CreateRuntimeFunction(FTy, "llvm.seh.scope.end"); in EmitSehCppScopeEnd()
1368 llvm::FunctionType *FTy = in EmitSehTryScopeBegin() local
1371 CGM.CreateRuntimeFunction(FTy, "llvm.seh.try.begin"); in EmitSehTryScopeBegin()
1378 llvm::FunctionType *FTy = in EmitSehTryScopeEnd() local
1381 CGM.CreateRuntimeFunction(FTy, "llvm.seh.try.end"); in EmitSehTryScopeEnd()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVUtils.h394 inline Type *toTypedFunPointer(FunctionType *FTy) { in toTypedFunPointer() argument
395 Type *OrigRetTy = FTy->getReturnType(); in toTypedFunPointer()
398 for (Type *PTy : FTy->params()) { in toTypedFunPointer()
405 return FTy; in toTypedFunPointer()
407 for (Type *PTy : FTy->params()) in toTypedFunPointer()
409 return FunctionType::get(RetTy, ParamTys, FTy->isVarArg()); in toTypedFunPointer()
413 if (auto FTy = dyn_cast<FunctionType>(Ty)) in unifyPtrType() local
414 return toTypedFunPointer(const_cast<FunctionType *>(FTy)); in unifyPtrType()
H A DSPIRVCallLowering.cpp108 FunctionType *FTy, const SPIRVType *SRetTy, in fixFunctionTypeIfPtrArgs() argument
119 Type *RetTy = FTy->getReturnType(); in fixFunctionTypeIfPtrArgs()
122 return FTy; in fixFunctionTypeIfPtrArgs()
424 FunctionType *FTy = getOriginalFunctionType(F); in lowerFormalArguments() local
425 Type *FRetTy = FTy->getReturnType(); in lowerFormalArguments()
436 FTy = fixFunctionTypeIfPtrArgs(GR, F, FTy, RetTy, ArgTypeVRegs); in lowerFormalArguments()
438 FTy, RetTy, ArgTypeVRegs, MIRBuilder); in lowerFormalArguments()
535 FunctionType *FTy = in produceIndirectPtrTypes() local
538 FTy, SpirvRetTy, SpirvArgTypes, MIRBuilder); in produceIndirectPtrTypes()
569 if (FunctionType *FTy = getOriginalFunctionType(*CF)) { in lowerCall() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DExpandVariadics.cpp221 FunctionType *inlinableVariadicFunctionType(Module &M, FunctionType *FTy) { in inlinableVariadicFunctionType() argument
223 SmallVector<Type *> ArgTypes(FTy->params()); in inlinableVariadicFunctionType()
225 return FunctionType::get(FTy->getReturnType(), ArgTypes, in inlinableVariadicFunctionType()
389 FunctionType *FTy = CB->getFunctionType(); in runOnModule() local
390 if (FTy->isVarArg()) in runOnModule()
391 Changed |= expandCall(M, Builder, CB, FTy, 0); in runOnModule()
488 FunctionType *FTy = F.getFunctionType(); in replaceAllUsesWithNewDeclaration() local
489 Function *NF = Function::Create(FTy, F.getLinkage(), F.getAddressSpace()); in replaceAllUsesWithNewDeclaration()
497 Attrs = Attrs.addParamAttributes(Ctx, FTy->getNumParams(), ParamAttrs); in replaceAllUsesWithNewDeclaration()
521 FunctionType *FTy = F.getFunctionType(); in deriveFixedArityReplacement() local
[all …]
H A DDeadArgumentElimination.cpp161 FunctionType *FTy = F.getFunctionType(); in deleteDeadVarargs() local
163 std::vector<Type *> Params(FTy->param_begin(), FTy->param_end()); in deleteDeadVarargs()
164 FunctionType *NFTy = FunctionType::get(FTy->getReturnType(), Params, false); in deleteDeadVarargs()
735 FunctionType *FTy = F->getFunctionType(); in removeDeadStuffFromFunction() local
747 SmallVector<bool, 10> ArgAlive(FTy->getNumParams(), false); in removeDeadStuffFromFunction()
775 Type *RetTy = FTy->getReturnType(); in removeDeadStuffFromFunction()
871 FunctionType *NFTy = FunctionType::get(NRetTy, Params, FTy->isVarArg()); in removeDeadStuffFromFunction()
874 if (NFTy == FTy) in removeDeadStuffFromFunction()
909 for (unsigned E = FTy->getNumParams(); Pi != E; ++I, ++Pi) in removeDeadStuffFromFunction()
1092 if (NFTy != FTy && NF->getSubprogram()) { in removeDeadStuffFromFunction()
H A DExtractGV.cpp117 if (FunctionType *FTy = dyn_cast<FunctionType>(Ty)) { in run() local
118 Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage, in run()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Coroutines/
H A DCoroShape.h212 auto FTy = CoroBegin->getFunction()->getFunctionType(); in getRetconResultTypes() local
215 if (auto STy = dyn_cast<StructType>(FTy->getReturnType())) { in getRetconResultTypes()
226 auto FTy = RetconLowering.ResumePrototype->getFunctionType(); in getRetconResumeTypes() local
227 return FTy->params().slice(1); in getRetconResumeTypes()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp426 static std::string getSignature(FunctionType *FTy) { in getSignature() argument
429 OS << *FTy->getReturnType(); in getSignature()
430 for (Type *ParamTy : FTy->params()) in getSignature()
432 if (FTy->isVarArg()) in getSignature()
498 FunctionType *FTy = FunctionType::get(Int8PtrTy, Args, false); in getFindMatchingCatch() local
500 FTy, "__cxa_find_matching_catch_" + Twine(NumClauses + 2), &M); in getFindMatchingCatch()
591 FunctionType *FTy = FunctionType::get(CalleeFTy->getReturnType(), ArgTys, in getInvokeWrapper() local
593 Function *F = getFunction(FTy, "__invoke_" + Sig, M); in getInvokeWrapper()
991 FunctionType *FTy = FunctionType::get( in runOnModule() local
993 EmLongjmpF = getFunction(FTy, "emscripten_longjmp", &M); in runOnModule()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandReductions.cpp100 auto *FTy = cast<FixedVectorType>(Vec->getType()); in expandReductions() local
101 unsigned NumElts = FTy->getNumElements(); in expandReductions()
105 if (FTy->getElementType() == Builder.getInt1Ty()) { in expandReductions()
H A DDwarfEHPrepare.cpp218 FunctionType *FTy; in InsertUnwindResumeCalls() local
225 FTy = FunctionType::get(Type::getVoidTy(Ctx), false); in InsertUnwindResumeCalls()
231 FTy = FunctionType::get(Type::getVoidTy(Ctx), PointerType::getUnqual(Ctx), in InsertUnwindResumeCalls()
236 RewindFunction = F.getParent()->getOrInsertFunction(RewindName, FTy); in InsertUnwindResumeCalls()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DMemoryOpRemark.h75 template <typename FTy>
76 void visitCallee(FTy F, bool KnownLibCall, DiagnosticInfoIROptimization &R);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARC.cpp28 FunctionType *FTy = Func.getFunctionType(); in createCallInstWithColors() local
40 return CallInst::Create(FTy, Callee, Args, OpBundles, NameStr, InsertBefore); in createCallInstWithColors()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExternalFunctions.cpp206 FunctionType *FTy = F->getFunctionType(); in ffiInvoke() local
222 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke()
234 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke()
239 Type *RetTy = FTy->getReturnType(); in ffiInvoke()

12345