/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | TargetLibraryInfo.cpp | 635 bool TargetLibraryInfoImpl::isValidProtoForLibFunc(const FunctionType &FTy, argument 638 LLVMContext &Ctx = FTy.getContext(); 644 unsigned NumParams = FTy.getNumParams(); 650 return (NumParams >= 2 && FTy.getParamType(0)->isPointerTy() && 651 FTy.getParamType(1)->isPointerTy() && 652 FTy.getReturnType()->isIntegerTy(32)); 655 return (NumParams == 2 && FTy.getParamType(0)->isPointerTy() && 656 FTy.getParamType(1)->isPointerTy() && 657 FTy.getReturnType()->isIntegerTy(32)); 661 return (NumParams == 3 && FTy [all...] |
H A D | MemoryBuiltins.cpp | 158 FunctionType *FTy = Callee->getFunctionType(); local 160 if (FTy->getReturnType() == Type::getInt8PtrTy(FTy->getContext()) && 161 FTy->getNumParams() == FnData->NumParams && 163 (FTy->getParamType(FstParam)->isIntegerTy(32) || 164 FTy->getParamType(FstParam)->isIntegerTy(64))) && 166 FTy->getParamType(SndParam)->isIntegerTy(32) || 167 FTy->getParamType(SndParam)->isIntegerTy(64))) 450 FunctionType *FTy = F->getFunctionType(); 451 if (!FTy [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | OrcMCJITReplacement.cpp | 32 FunctionType *FTy = F->getFunctionType(); local 33 Type *RetTy = FTy->getReturnType(); 35 assert((FTy->getNumParams() == ArgValues.size() || 36 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && 38 assert(FTy->getNumParams() == ArgValues.size() && 46 if (FTy->getParamType(0)->isIntegerTy(32) && 47 FTy->getParamType(1)->isPointerTy() && 48 FTy->getParamType(2)->isPointerTy()) { 61 if (FTy [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | InlineAsm.cpp | 30 InlineAsm::InlineAsm(FunctionType *FTy, const std::string &asmString, argument 33 : Value(PointerType::getUnqual(FTy), Value::InlineAsmVal), 34 AsmString(asmString), Constraints(constraints), FTy(FTy), 42 InlineAsm *InlineAsm::get(FunctionType *FTy, StringRef AsmString, argument 45 InlineAsmKeyType Key(AsmString, Constraints, FTy, hasSideEffects, 47 LLVMContextImpl *pImpl = FTy->getContext().pImpl; 48 return pImpl->InlineAsms.getOrCreate(PointerType::getUnqual(FTy), Key); 57 return FTy;
|
H A D | ConstantsContext.h | 415 FunctionType *FTy; member in struct:llvm::InlineAsmKeyType 421 FunctionType *FTy, bool HasSideEffects, bool IsAlignStack, 423 : AsmString(AsmString), Constraints(Constraints), FTy(FTy), 429 FTy(Asm->getFunctionType()), HasSideEffects(Asm->hasSideEffects()), 436 FTy == X.FTy; 445 FTy == Asm->getFunctionType(); 450 AsmDialect, FTy); 456 assert(PointerType::getUnqual(FTy) 420 InlineAsmKeyType(StringRef AsmString, StringRef Constraints, FunctionType *FTy, bool HasSideEffects, bool IsAlignStack, InlineAsm::AsmDialect AsmDialect) argument [all...] |
H A D | Instructions.cpp | 385 void CallInst::init(FunctionType *FTy, Value *Func, ArrayRef<Value *> Args, argument 387 this->FTy = FTy; 393 assert((Args.size() == FTy->getNumParams() || 394 (FTy->isVarArg() && Args.size() > FTy->getNumParams())) && 398 assert((i >= FTy->getNumParams() || 399 FTy->getParamType(i) == Args[i]->getType()) && 412 void CallInst::init(FunctionType *FTy, Value *Func, const Twine &NameStr) { argument 413 this->FTy 716 init(FunctionType *FTy, Value *Fn, BasicBlock *IfNormal, BasicBlock *IfException, ArrayRef<Value *> Args, ArrayRef<OperandBundleDef> Bundles, const Twine &NameStr) argument 783 init(FunctionType *FTy, Value *Fn, BasicBlock *Fallthrough, ArrayRef<BasicBlock *> IndirectDests, ArrayRef<Value *> Args, ArrayRef<OperandBundleDef> Bundles, const Twine &NameStr) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/ |
H A D | MCJIT.cpp | 513 FunctionType *FTy = F->getFunctionType(); local 514 Type *RetTy = FTy->getReturnType(); 516 assert((FTy->getNumParams() == ArgValues.size() || 517 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && 519 assert(FTy->getNumParams() == ArgValues.size() && 527 if (FTy->getParamType(0)->isIntegerTy(32) && 528 FTy->getParamType(1)->isPointerTy() && 529 FTy->getParamType(2)->isPointerTy()) { 542 if (FTy [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | ExtractGV.cpp | 135 if (FunctionType *FTy = dyn_cast<FunctionType>(Ty)) { 136 Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage,
|
H A D | DeadArgumentElimination.cpp | 159 FunctionType *FTy = Fn.getFunctionType(); local 161 std::vector<Type *> Params(FTy->param_begin(), FTy->param_end()); 162 FunctionType *NFTy = FunctionType::get(FTy->getReturnType(), 737 FunctionType *FTy = F->getFunctionType(); 748 SmallVector<bool, 10> ArgAlive(FTy->getNumParams(), false); 770 Type *RetTy = FTy->getReturnType(); 859 FunctionType *NFTy = FunctionType::get(NRetTy, Params, FTy->isVarArg()); 862 if (NFTy == FTy) 897 for (unsigned e = FTy [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroInternal.h | 175 auto FTy = CoroBegin->getFunction()->getFunctionType(); local 178 if (auto STy = dyn_cast<StructType>(FTy->getReturnType())) { 190 auto FTy = RetconLowering.ResumePrototype->getFunctionType(); local 191 return FTy->params().slice(1);
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGCall.h | 87 llvm::FunctionType *FTy; member in struct:clang::CodeGen::CGCallee::SpecialKind::VirtualInfoStorage 144 llvm::FunctionType *FTy) { 149 result.VirtualInfo.FTy = FTy; 208 return VirtualInfo.FTy; 143 forVirtual(const CallExpr *CE, GlobalDecl MD, Address Addr, llvm::FunctionType *FTy) argument
|
H A D | CGDeclCXX.cpp | 337 llvm::FunctionType *FTy, const Twine &Name, const CGFunctionInfo &FI, 340 llvm::Function::Create(FTy, llvm::GlobalValue::InternalLinkage, 456 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); 465 CreateGlobalInitOrDestructFunction(FTy, FnName.str(), 544 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); 569 FTy, "_GLOBAL__I_" + PrioritySuffix, FI); 595 FTy, llvm::Twine("_GLOBAL__sub_I_", FileName), FI); 625 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); 630 CreateGlobalInitOrDestructFunction(FTy, "_GLOBAL__D_a", FI); 769 llvm::FunctionType *FTy local 336 CreateGlobalInitOrDestructFunction( llvm::FunctionType *FTy, const Twine &Name, const CGFunctionInfo &FI, SourceLocation Loc, bool TLS) argument [all...] |
H A D | ItaniumCXXABI.cpp | 603 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType( local 700 VirtualFn = Builder.CreateBitCast(VirtualFn, FTy->getPointerTo(), 711 Builder.CreateBitCast(VFPAddr, FTy->getPointerTo()->getPointerTo()); 752 Builder.CreateIntToPtr(FnAsInt, FTy->getPointerTo(), "memptr.nonvirtualfn"); 793 llvm::PHINode *CalleePtr = Builder.CreatePHI(FTy->getPointerTo(), 2); 1231 llvm::FunctionType *FTy = local 1234 llvm::FunctionCallee Fn = CGM.CreateRuntimeFunction(FTy, "__cxa_rethrow"); 1245 llvm::FunctionType *FTy = local 1248 return CGM.CreateRuntimeFunction(FTy, "__cxa_allocate_exception"); 1256 llvm::FunctionType *FTy local 1308 llvm::FunctionType *FTy = llvm::FunctionType::get(Int8PtrTy, Args, false); local 1321 llvm::FunctionType *FTy = llvm::FunctionType::get(CGF.VoidTy, false); local 1379 llvm::FunctionType *FTy = llvm::FunctionType::get(CGF.VoidTy, false); local 2044 llvm::FunctionType *FTy = local 2138 llvm::FunctionType *FTy = local 2151 llvm::FunctionType *FTy = local 2163 llvm::FunctionType *FTy = local 2440 llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); local 2592 llvm::FunctionType *FTy = local 4043 llvm::FunctionType *FTy = llvm::FunctionType::get( local 4051 llvm::FunctionType *FTy = local 4059 llvm::FunctionType *FTy = llvm::FunctionType::get( local [all...] |
H A D | CGCXXABI.cpp | 52 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType( local 54 llvm::Constant *FnPtr = llvm::Constant::getNullValue(FTy->getPointerTo());
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | GCOVProfiling.cpp | 665 FunctionType *FTy = FunctionType::get(Builder.getInt32Ty(), {}, false); 666 FunctionCallee GCOVFork = M->getOrInsertFunction("__gcov_fork", FTy); 691 FunctionType *FTy = FunctionType::get(Builder.getVoidTy(), {}, false); 693 M->getOrInsertFunction("llvm_writeout_files", FTy); 700 FunctionCallee ResetF = M->getOrInsertFunction("llvm_reset_counters", FTy); 901 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); 902 Function *F = Function::Create(FTy, GlobalValue::InternalLinkage, 913 FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); 914 Type *Params[] = {PointerType::get(FTy, 0), PointerType::get(FTy, [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 331 static std::string getSignature(FunctionType *FTy) { argument 334 OS << *FTy->getReturnType(); 335 for (Type *ParamTy : FTy->params()) 337 if (FTy->isVarArg()) 359 FunctionType *FTy = FunctionType::get(Int8PtrTy, Args, false); local 361 FTy, GlobalValue::ExternalLinkage, 468 FunctionType *FTy = FunctionType::get(CalleeFTy->getReturnType(), ArgTys, local 471 Function::Create(FTy, GlobalValue::ExternalLinkage, "__invoke_" + Sig, M); 694 FunctionType *FTy = local 697 Function::Create(FTy, GlobalValu [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | InjectTLIMappings.cpp | 83 FunctionType *FTy = FunctionType::get(RetTy, Tys, /*isVarArg=*/false); local 85 Function::Create(FTy, Function::ExternalLinkage, VFName, M);
|
H A D | Evaluator.cpp | 289 auto *FTy = F->getFunctionType(); 290 if (FTy->getNumParams() > CS.getNumArgOperands()) { 296 for (auto ParI = FTy->param_begin(), ParE = FTy->param_end(); ParI != ParE;
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetTransformInfoImpl.h | 130 unsigned getCallCost(FunctionType *FTy, int NumArgs, const User *U) { argument 131 assert(FTy && "FunctionType must be provided to this routine."); 140 NumArgs = FTy->getNumParams(); 724 FunctionType *FTy = F->getFunctionType(); local 725 SmallVector<Type *, 8> ParamTys(FTy->param_begin(), FTy->param_end()); 727 ->getIntrinsicCost(IID, FTy->getReturnType(), ParamTys, U); 883 Type *FTy = CS.getCalledValue()->getType()->getPointerElementType(); local 885 ->getCallCost(cast<FunctionType>(FTy), CS.arg_size(), U);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | DwarfEHPrepare.cpp | 211 FunctionType *FTy = FunctionType::get(Type::getVoidTy(Ctx), local 214 RewindFunction = Fn.getParent()->getOrInsertFunction(RewindName, FTy);
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | InstrTypes.h | 1111 FunctionType *FTy; member in class:llvm::CallBase 1115 : Instruction(std::forward<ArgsTy>(Args)...), Attrs(A), FTy(FT) {} 1149 FunctionType *getFunctionType() const { return FTy; } 1151 void mutateFunctionType(FunctionType *FTy) { argument 1152 Value::mutateType(FTy->getReturnType()); 1153 this->FTy = FTy; 1352 void setCalledFunction(FunctionType *FTy, Value *Fn) { 1353 this->FTy = FTy; [all...] |
H A D | Intrinsics.h | 187 matchIntrinsicSignature(FunctionType *FTy, ArrayRef<IITDescriptor> &Infos,
|
H A D | Statepoint.h | 158 auto *FTy = cast<FunctionType>( local 160 return FTy->getReturnType();
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | ExternalFunctions.cpp | 194 FunctionType *FTy = F->getFunctionType(); local 210 Type *ArgTy = FTy->getParamType(ArgNo); 222 Type *ArgTy = FTy->getParamType(ArgNo); 227 Type *RetTy = FTy->getReturnType();
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 3205 Type *FTy = flattenPointerTypes(FullFTy); local 3206 if (!FTy) 3208 if (isa<PointerType>(FTy)) 3209 std::tie(FullFTy, FTy) = getPointerElementTypes(FullFTy); 3211 if (!isa<FunctionType>(FTy)) 3222 Function::Create(cast<FunctionType>(FTy), GlobalValue::ExternalLinkage, 4479 FunctionType *FTy = nullptr; local 4486 FTy = cast<FunctionType>(flattenPointerTypes(FullFTy)); 4496 if (!FTy) { 4501 FTy 4566 FunctionType *FTy = nullptr; local 5006 FunctionType *FTy = nullptr; local [all...] |