Home
last modified time | relevance | path

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

1234

/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), 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()
50 return pImpl->InlineAsms.getOrCreate(PointerType::getUnqual(FTy), Key); in get()
59 return FTy; in getFunctionType()
H A DConstantsContext.h327 FunctionType *FTy;
334 FunctionType *FTy, bool HasSideEffects, bool IsAlignStack,
336 : AsmString(AsmString), Constraints(Constraints), FTy(FTy),
342 FTy(Asm->getFunctionType()), HasSideEffects(Asm->hasSideEffects()),
350 FTy == X.FTy && CanThrow == X.CanThrow;
359 FTy == Asm->getFunctionType() && CanThrow == Asm->canThrow();
364 AsmDialect, FTy, CanThrow);
370 assert(PointerType::getUnqual(FTy) == Ty);
371 return new InlineAsm(FTy, std::string(AsmString), std::string(Constraints),
H A DInstructions.cpp679 void CallInst::init(FunctionType *FTy, Value *Func, ArrayRef<Value *> Args, in init() argument
681 this->FTy = FTy; in init()
686 assert((Args.size() == FTy->getNumParams() || in init()
687 (FTy->isVarArg() && Args.size() > FTy->getNumParams())) && in init()
691 assert((i >= FTy->getNumParams() || in init()
692 FTy->getParamType(i) == Args[i]->getType()) && in init()
708 void CallInst::init(FunctionType *FTy, Value *Func, const Twine &NameStr) { in init() argument
709 this->FTy = FTy; in init()
713 assert(FTy->getNumParams() == 0 && "Calling a function with bad signature"); in init()
726 : CallBase(CI.Attrs, CI.FTy, CI.getType(), Instruction::Call, in CallInst()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVUtils.h217 inline Type *toTypedFunPointer(FunctionType *FTy) { in toTypedFunPointer() argument
218 Type *OrigRetTy = FTy->getReturnType(); in toTypedFunPointer()
221 for (Type *PTy : FTy->params()) { in toTypedFunPointer()
228 return FTy; in toTypedFunPointer()
230 for (Type *PTy : FTy->params()) in toTypedFunPointer()
232 return FunctionType::get(RetTy, ParamTys, FTy->isVarArg()); in toTypedFunPointer()
236 if (auto FTy = dyn_cast<FunctionType>(Ty)) in unifyPtrType() local
237 return toTypedFunPointer(const_cast<FunctionType *>(FTy)); in unifyPtrType()
H A DSPIRVCallLowering.cpp95 FunctionType *FTy, const SPIRVType *SRetTy, in fixFunctionTypeIfPtrArgs() argument
98 return FTy; in fixFunctionTypeIfPtrArgs()
109 Type *RetTy = FTy->getReturnType(); in fixFunctionTypeIfPtrArgs()
112 return FTy; in fixFunctionTypeIfPtrArgs()
378 FunctionType *FTy = getOriginalFunctionType(F); in lowerFormalArguments() local
379 Type *FRetTy = FTy->getReturnType(); in lowerFormalArguments()
389 FTy = fixFunctionTypeIfPtrArgs(GR, F, FTy, RetTy, ArgTypeVRegs); in lowerFormalArguments()
391 FTy, RetTy, ArgTypeVRegs, MIRBuilder); in lowerFormalArguments()
476 FunctionType *FTy = in produceIndirectPtrTypes() local
479 FTy, SpirvRetTy, SpirvArgTypes, MIRBuilder); in produceIndirectPtrTypes()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp519 FunctionType *FTy = F->getFunctionType(); in runFunction() local
520 Type *RetTy = FTy->getReturnType(); in runFunction()
522 assert((FTy->getNumParams() == ArgValues.size() || in runFunction()
523 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && in runFunction()
525 assert(FTy->getNumParams() == ArgValues.size() && in runFunction()
533 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction()
534 FTy->getParamType(1)->isPointerTy() && in runFunction()
535 FTy->getParamType(2)->isPointerTy()) { in runFunction()
548 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction()
549 FTy->getParamType(1)->isPointerTy()) { in runFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DGCOVProfiling.cpp122 Function *createInternalFunction(FunctionType *FTy, StringRef Name,
659 FunctionType *FTy = FunctionType::get(Builder.getInt32Ty(), {}, false); in AddFlushBeforeForkAndExec() local
661 "__gcov_fork", FTy, in AddFlushBeforeForkAndExec()
687 FunctionType *FTy = FunctionType::get(Builder.getVoidTy(), {}, false); in AddFlushBeforeForkAndExec() local
689 M->getOrInsertFunction("llvm_writeout_files", FTy); in AddFlushBeforeForkAndExec()
696 FunctionCallee ResetF = M->getOrInsertFunction("llvm_reset_counters", FTy); in AddFlushBeforeForkAndExec()
990 Function *GCOVProfiler::createInternalFunction(FunctionType *FTy, in createInternalFunction() argument
994 FTy, GlobalValue::InternalLinkage, 0, Name, M); in createInternalFunction()
1012 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitGlobalConstructor() local
1013 Function *F = createInternalFunction(FTy, "__llvm_gcov_ini in emitGlobalConstructor()
1038 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); getStartFileFunc() local
1049 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); getEmitFunctionFunc() local
1059 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); getEmitArcsFunc() local
1065 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); getSummaryInfoFunc() local
1070 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); getEndFileFunc() local
1323 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); insertReset() local
[all...]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDeclCXX.cpp444 llvm::FunctionType *FTy, const Twine &Name, const CGFunctionInfo &FI, in CreateGlobalInitOrCleanUpFunction() argument
446 llvm::Function *Fn = llvm::Function::Create(FTy, Linkage, Name, &getModule()); in CreateGlobalInitOrCleanUpFunction()
547 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalVarDeclInitFunc() local
556 FTy, FnName.str(), getTypes().arrangeNullaryFunction(), D->getLocation()); in EmitCXXGlobalVarDeclInitFunc()
713 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXModuleInitFunc() local
723 FTy, llvm::Function::ExternalLinkage, FnName.str(), &getModule()); in EmitCXXModuleInitFunc()
749 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXModuleInitFunc() local
763 FTy, llvm::Twine(InitFnName), FI, SourceLocation(), false, in EmitCXXModuleInitFunc()
853 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); in EmitCXXGlobalInitFunc() local
863 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.cpp1415 llvm::FunctionType *FTy = in emitRethrow() local
1418 llvm::FunctionCallee Fn = CGM.CreateRuntimeFunction(FTy, "__cxa_rethrow"); in emitRethrow()
1429 llvm::FunctionType *FTy = in getAllocateExceptionFn() local
1432 return CGM.CreateRuntimeFunction(FTy, "__cxa_allocate_exception"); in getAllocateExceptionFn()
1440 llvm::FunctionType *FTy = in getThrowFn() local
1443 return CGM.CreateRuntimeFunction(FTy, "__cxa_throw"); in getThrowFn()
1501 llvm::FunctionType *FTy = llvm::FunctionType::get(Int8PtrTy, Args, false); in getItaniumDynamicCastFn() local
1511 return CGF.CGM.CreateRuntimeFunction(FTy, "__dynamic_cast", Attrs); in getItaniumDynamicCastFn()
1516 llvm::FunctionType *FTy = llvm::FunctionType::get(CGF.VoidTy, false); in getBadCastFn() local
1517 return CGF.CGM.CreateRuntimeFunction(FTy, "__cxa_bad_cast"); in getBadCastFn()
[all …]
H A DCGCleanup.cpp1330 llvm::FunctionType *FTy = in EmitSehCppScopeBegin() local
1333 CGM.CreateRuntimeFunction(FTy, "llvm.seh.scope.begin"); in EmitSehCppScopeBegin()
1341 llvm::FunctionType *FTy = in EmitSehCppScopeEnd() local
1344 CGM.CreateRuntimeFunction(FTy, "llvm.seh.scope.end"); in EmitSehCppScopeEnd()
1351 llvm::FunctionType *FTy = in EmitSehTryScopeBegin() local
1354 CGM.CreateRuntimeFunction(FTy, "llvm.seh.try.begin"); in EmitSehTryScopeBegin()
1361 llvm::FunctionType *FTy = in EmitSehTryScopeEnd() local
1364 CGM.CreateRuntimeFunction(FTy, "llvm.seh.try.end"); in EmitSehTryScopeEnd()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DExpandVariadics.cpp239 FunctionType *inlinableVariadicFunctionType(Module &M, FunctionType *FTy) { in inlinableVariadicFunctionType() argument
241 SmallVector<Type *> ArgTypes(FTy->param_begin(), FTy->param_end()); in inlinableVariadicFunctionType()
243 return FunctionType::get(FTy->getReturnType(), ArgTypes, in inlinableVariadicFunctionType()
407 FunctionType *FTy = CB->getFunctionType(); in runOnModule() local
408 if (FTy->isVarArg()) in runOnModule()
409 Changed |= expandCall(M, Builder, CB, FTy, 0); in runOnModule()
506 FunctionType *FTy = F.getFunctionType(); in replaceAllUsesWithNewDeclaration() local
507 Function *NF = Function::Create(FTy, F.getLinkage(), F.getAddressSpace()); in replaceAllUsesWithNewDeclaration()
516 Attrs = Attrs.addParamAttributes(Ctx, FTy->getNumParams(), ParamAttrs); in replaceAllUsesWithNewDeclaration()
540 FunctionType *FTy = F.getFunctionType(); in deriveFixedArityReplacement() local
[all …]
H A DDeadArgumentElimination.cpp165 FunctionType *FTy = F.getFunctionType(); in deleteDeadVarargs() local
167 std::vector<Type *> Params(FTy->param_begin(), FTy->param_end()); in deleteDeadVarargs()
168 FunctionType *NFTy = FunctionType::get(FTy->getReturnType(), Params, false); in deleteDeadVarargs()
742 FunctionType *FTy = F->getFunctionType(); in removeDeadStuffFromFunction() local
753 SmallVector<bool, 10> ArgAlive(FTy->getNumParams(), false); in removeDeadStuffFromFunction()
775 Type *RetTy = FTy->getReturnType(); in removeDeadStuffFromFunction()
864 FunctionType *NFTy = FunctionType::get(NRetTy, Params, FTy->isVarArg()); in removeDeadStuffFromFunction()
867 if (NFTy == FTy) in removeDeadStuffFromFunction()
902 for (unsigned E = FTy->getNumParams(); Pi != E; ++I, ++Pi) in removeDeadStuffFromFunction()
1087 if (NFTy != FTy && NF->getSubprogram()) { in removeDeadStuffFromFunction()
H A DExtractGV.cpp118 if (FunctionType *FTy = dyn_cast<FunctionType>(Ty)) { in run() local
119 Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage, in run()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h210 auto FTy = CoroBegin->getFunction()->getFunctionType(); in getRetconResultTypes() local
213 if (auto STy = dyn_cast<StructType>(FTy->getReturnType())) { in getRetconResultTypes()
225 auto FTy = RetconLowering.ResumePrototype->getFunctionType(); in getRetconResumeTypes() local
226 return FTy->params().slice(1); in getRetconResumeTypes()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp427 static std::string getSignature(FunctionType *FTy) { in getSignature() argument
430 OS << *FTy->getReturnType(); in getSignature()
431 for (Type *ParamTy : FTy->params()) in getSignature()
433 if (FTy->isVarArg()) in getSignature()
495 FunctionType *FTy = FunctionType::get(Int8PtrTy, Args, false); in getFindMatchingCatch() local
497 FTy, "__cxa_find_matching_catch_" + Twine(NumClauses + 2), &M); in getFindMatchingCatch()
586 FunctionType *FTy = FunctionType::get(CalleeFTy->getReturnType(), ArgTys, in getInvokeWrapper() local
588 Function *F = getEmscriptenFunction(FTy, "__invoke_" + Sig, M); in getInvokeWrapper()
986 FunctionType *FTy = FunctionType::get( in runOnModule() local
988 EmLongjmpF = getEmscriptenFunction(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.cpp219 FunctionType *FTy; in InsertUnwindResumeCalls() local
226 FTy = FunctionType::get(Type::getVoidTy(Ctx), false); in InsertUnwindResumeCalls()
232 FTy = FunctionType::get(Type::getVoidTy(Ctx), PointerType::getUnqual(Ctx), in InsertUnwindResumeCalls()
237 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/Transforms/Utils/
H A DInjectTLIMappings.cpp54 FunctionType *FTy = FunctionType::get(RetTy, Tys, /*isVarArg=*/false); addVariantDeclaration() local
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp207 FunctionType *FTy = Callee->getFunctionType(); in getAllocationDataForFunction() local
209 if (FTy->getReturnType()->isPointerTy() && in getAllocationDataForFunction()
210 FTy->getNumParams() == FnData->NumParams && in getAllocationDataForFunction()
212 (FTy->getParamType(FstParam)->isIntegerTy(32) || in getAllocationDataForFunction()
213 FTy->getParamType(FstParam)->isIntegerTy(64))) && in getAllocationDataForFunction()
215 FTy->getParamType(SndParam)->isIntegerTy(32) || in getAllocationDataForFunction()
216 FTy->getParamType(SndParam)->isIntegerTy(64))) in getAllocationDataForFunction()
547 FunctionType *FTy = F->getFunctionType(); in isLibFreeFunction() local
548 if (!FTy->getReturnType()->isVoidTy()) in isLibFreeFunction()
550 if (FTy->getNumParams() != FnData->NumParams) in isLibFreeFunction()
[all …]
H A DTargetLibraryInfo.cpp1048 bool TargetLibraryInfoImpl::isValidProtoForLibFunc(const FunctionType &FTy, in isValidProtoForLibFunc() argument
1051 unsigned NumParams = FTy.getNumParams(); in isValidProtoForLibFunc()
1058 Type *RetTy = FTy.getReturnType(); in isValidProtoForLibFunc()
1062 Type *ParamTy = FTy.getParamType(0); in isValidProtoForLibFunc()
1070 return ParamTy == RetTy && FTy.getParamType(1) == RetTy; in isValidProtoForLibFunc()
1081 Type *RetTy = FTy.getReturnType(); in isValidProtoForLibFunc()
1082 Type *ParamTy = FTy.getParamType(0); in isValidProtoForLibFunc()
1110 Type *Ty = FTy.getReturnType(), *LastTy = Ty; in isValidProtoForLibFunc()
1123 return FTy.isFunctionVarArg(); in isValidProtoForLibFunc()
1144 Ty = FTy.getParamType(Idx++); in isValidProtoForLibFunc()
[all …]
/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()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstrTypes.h1251 FunctionType *FTy;
1255 : Instruction(std::forward<ArgsTy>(Args)...), Attrs(A), FTy(FT) {}
1323 FunctionType *getFunctionType() const { return FTy; }
1325 void mutateFunctionType(FunctionType *FTy) {
1326 Value::mutateType(FTy->getReturnType());
1327 this->FTy = FTy;
1515 void setCalledFunction(FunctionType *FTy, Value *Fn) {
1516 this->FTy = FTy;
1519 assert(getType() == FTy->getReturnType());

1234