reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/TargetTransformInfoImpl.h
  708       FunctionType *FTy = F->getFunctionType();
  718     return static_cast<T *>(this)->getCallCost(F->getFunctionType(), NumArgs, U);
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
  490           return GlobalAlias::create(F->getFunctionType(),
include/llvm/IR/DerivedTypes.h
  176       : FnTy(Fn ? Fn->getFunctionType() : nullptr), Callee(Fn) {}
include/llvm/IR/Function.h
  168   Type *getReturnType() const { return getFunctionType()->getReturnType(); }
  176   bool isVarArg() const { return getFunctionType()->isVarArg(); }
include/llvm/IR/IRBuilder.h
 2445            FnLaunderInvariantGroup->getFunctionType()->getParamType(0) ==
 2473            FnStripInvariantGroup->getFunctionType()->getParamType(0) ==
include/llvm/IR/InstrTypes.h
 1329     setCalledFunction(Fn->getFunctionType(), Fn);
lib/Analysis/Lint.cpp
  237     FunctionType *FT = F->getFunctionType();
lib/Analysis/MemoryBuiltins.cpp
  158   FunctionType *FTy = Callee->getFunctionType();
  450   FunctionType *FTy = F->getFunctionType();
lib/Analysis/TargetLibraryInfo.cpp
 1488          isValidProtoForLibFunc(*FDecl.getFunctionType(), F, DL);
lib/Bitcode/Reader/BitcodeReader.cpp
 3223   assert(Func->getFunctionType() == flattenPointerTypes(FullFTy) &&
lib/Bitcode/Writer/BitcodeWriter.cpp
 1315     Vals.push_back(VE.getTypeID(F.getFunctionType()));
lib/CodeGen/PreISelIntrinsicLowering.cpp
   67   FunctionCallee FCache = M->getOrInsertFunction(NewFn, F.getFunctionType());
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 2533     FunctionType *FnTy = GuardCheckFn->getFunctionType();
lib/ExecutionEngine/ExecutionEngine.cpp
  434   unsigned NumArgs = Fn->getFunctionType()->getNumParams();
  435   FunctionType *FTy = Fn->getFunctionType();
lib/ExecutionEngine/Interpreter/Execution.cpp
 2146          (ArgVals.size() > F->arg_size() && F->getFunctionType()->isVarArg()))&&
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
  104   FunctionType *FT = F->getFunctionType();
  269     return Fn(F->getFunctionType(), ArgVals);
lib/ExecutionEngine/Interpreter/Interpreter.cpp
   91   const size_t ArgCount = F->getFunctionType()->getNumParams();
lib/ExecutionEngine/MCJIT/MCJIT.cpp
  513   FunctionType *FTy = F->getFunctionType();
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
  247   CallInst *Call = Builder.CreateCall(F.getFunctionType(), ImplAddr, CallArgs);
lib/ExecutionEngine/Orc/OrcMCJITReplacement.cpp
   32   FunctionType *FTy = F->getFunctionType();
lib/IR/AsmWriter.cpp
 3445   FunctionType *FT = F->getFunctionType();
lib/IR/AutoUpgrade.cpp
   41   Type *Arg0Type = F->getFunctionType()->getParamType(0);
   56   Type *LastArgType = F->getFunctionType()->getParamType(
   57      F->getFunctionType()->getNumParams() - 1);
  409     if (F->getFunctionType()->getNumParams() == 0)
  463     auto Idx = F->getFunctionType()->getParamType(2);
  527       auto fArgs = F->getFunctionType()->params();
  548       auto fArgs = F->getFunctionType()->params();
  565       auto fArgs = F->getFunctionType()->params();
  611         auto Args = F->getFunctionType()->params();
  612         Type *Tys[] = {F->getFunctionType()->getReturnType(), Args[1]};
  625       auto Args = F->getFunctionType()->params();
  639       auto Args = F->getFunctionType()->params();
  649       auto Args = F->getFunctionType()->params();
  672       auto Args = F->getFunctionType()->params();
  694       auto Args = F->getFunctionType()->params();
  709       ArrayRef<Type *> ParamTypes = F->getFunctionType()->params().slice(0, 3);
  717       ArrayRef<Type *> ParamTypes = F->getFunctionType()->params().slice(0, 3);
  725       const auto *FT = F->getFunctionType();
 3877       FunctionType *NewFuncTy = NewFn->getFunctionType();
lib/IR/DiagnosticInfo.cpp
  337      << *getFunction().getFunctionType() << ": " << Msg << '\n';
lib/IR/Function.cpp
  284   auto *FT = getFunctionType();
 1394   FunctionType *FTy = F->getFunctionType();
 1414   assert(NewDecl->getFunctionType() == FTy && "Shouldn't change the signature");
lib/IR/Mangler.cpp
  169   FunctionType *FT = MSFunc->getFunctionType();
lib/IR/Verifier.cpp
 2138   FunctionType *FT = F.getFunctionType();
 3056   FunctionType *CallerTy = F->getFunctionType();
 4239   FunctionType *IFTy = IF->getFunctionType();
lib/Linker/IRMover.cpp
  658       Function::Create(TypeMap.get(SF->getFunctionType()),
lib/Target/AArch64/AArch64ISelLowering.cpp
12246                                  Val, Stxr->getFunctionType()->getParamType(0)),
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  626   FunctionType *FTy = F.getFunctionType();
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
  358                                               F.getFunctionType()->params(),
lib/Target/AMDGPU/R600OpenCLImageTypeLoweringPass.cpp
  272     FunctionType *FT = F->getFunctionType();
  350         M.getOrInsertFunction(NewF->getName(), NewF->getFunctionType(),
lib/Target/AMDGPU/SIISelLowering.cpp
 2025   FunctionType *FType = MF.getFunction().getFunctionType();
lib/Target/ARM/ARMISelLowering.cpp
16679                   Val, Strex->getFunctionType()->getParamType(0)),
lib/Target/Hexagon/HexagonISelLowering.cpp
  702                         MF.getFunction().getFunctionType()->getNumParams());
lib/Target/Lanai/LanaiISelLowering.cpp
  613       NumFixedArgs = CalleeFn->getFunctionType()->getNumParams();
lib/Target/Mips/Mips16HardFloat.cpp
  111     TypeID ArgTypeID = F.getFunctionType()->getParamType(0)->getTypeID();
  122     TypeID ArgTypeID0 = F.getFunctionType()->getParamType(0)->getTypeID();
  123     TypeID ArgTypeID1 = F.getFunctionType()->getParamType(1)->getTypeID();
  158     Type *ArgType = F.getFunctionType()->getParamType(0);
  271   FStub = Function::Create(F.getFunctionType(),
  456     (F->getFunctionType(),
lib/Target/RISCV/RISCVISelLowering.cpp
 1622   FunctionType *FType = MF.getFunction().getFunctionType();
lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
   81     unsigned NumParams = F.getFunctionType()->getNumParams();
  122       NewType = FunctionType::get(F.getFunctionType()->getReturnType(), false);
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  103       computeSignatureVTs(F.getFunctionType(), F, TM, Params, Results);
  283   computeSignatureVTs(F.getFunctionType(), F, TM, ParamVTs, ResultVTs);
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
  130   FunctionType::param_iterator PI = F->getFunctionType()->param_begin();
  131   FunctionType::param_iterator PE = F->getFunctionType()->param_end();
  135   Type *ExpectedRtnType = F->getFunctionType()->getReturnType();
  138   if ((F->getFunctionType()->getNumParams() != Ty->getNumParams()) ||
  139       (F->getFunctionType()->isVarArg() != Ty->isVarArg()) ||
  179     Type *ExpectedRtnType = F->getFunctionType()->getReturnType();
  260       if (shouldFixMainFunction(F.getFunctionType(), MainTy)) {
  262                           << *F.getFunctionType() << "\n");
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  940   computeSignatureVTs(MF.getFunction().getFunctionType(), MF.getFunction(),
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  452     CalleeFTy = F->getFunctionType();
  680       EmLongjmpJmpbufF = Function::Create(LongjmpF->getFunctionType(),
  689       FunctionType *SetjmpFTy = SetjmpF->getFunctionType();
lib/Target/X86/X86ISelLowering.cpp
24449       FunctionType *FTy = Func->getFunctionType();
lib/Transforms/Coroutines/CoroInternal.h
  166       return RetconLowering.ResumePrototype->getFunctionType();
  174     auto FTy = CoroBegin->getFunction()->getFunctionType();
  189     auto FTy = RetconLowering.ResumePrototype->getFunctionType();
lib/Transforms/Coroutines/Coroutines.cpp
  421           Prototype->getFunctionType()->dump();
  430         Prototype->getFunctionType()->dump();
  449         Prototype->getFunctionType()->dump();
  457           Prototype->getFunctionType()->dump();
  508                                  Alloc->getFunctionType()->getParamType(0),
  529                                 Dealloc->getFunctionType()->getParamType(0));
  559   auto FT = F->getFunctionType();
  577           I->getFunction()->getFunctionType()->getReturnType())
  595   auto FT = F->getFunctionType();
  610   auto FT = F->getFunctionType();
lib/Transforms/IPO/ArgumentPromotion.cpp
  111   FunctionType *FTy = F->getFunctionType();
lib/Transforms/IPO/DeadArgumentElimination.cpp
  123   assert(Fn.getFunctionType()->isVarArg() && "Function isn't varargs!");
  158   FunctionType *FTy = Fn.getFunctionType();
  277   if (Fn.hasLocalLinkage() && !Fn.getFunctionType()->isVarArg())
  441         if (ArgNo >= F->getFunctionType()->getNumParams())
  521           != F.getFunctionType()->getReturnType()) {
  630     if (F.getFunctionType()->isVarArg() || HasMustTailCallers ||
  736   FunctionType *FTy = F->getFunctionType();
 1095     if (F.getFunctionType()->isVarArg())
lib/Transforms/IPO/LowerTypeTests.cpp
 1056       Function *RealF = Function::Create(F->getFunctionType(),
 1070     FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage,
 1076     FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage,
 1087             F->getFunctionType(), GlobalValue::ExternalLinkage,
lib/Transforms/IPO/MergeFunctions.cpp
  697     NewG = Function::Create(G->getFunctionType(), G->getLinkage(),
  707   FunctionType *FFTy = F->getFunctionType();
  812     Function *NewF = Function::Create(F->getFunctionType(), F->getLinkage(),
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  151     if (!F.isDeclaration() || F.getFunctionType() == EmptyFT ||
lib/Transforms/IPO/WholeProgramDevirt.cpp
 1173         Constant::getNullValue(Target.Fn->getFunctionType()->getParamType(0)));
 1176           Target.Fn->getFunctionType()->getParamType(I + 1));
lib/Transforms/InstCombine/InstCombineCalls.cpp
 4332           CalleeF->getFunctionType(),
 4432   FunctionType *FT = Callee->getFunctionType();
 4706   FunctionType *NestFTy = NestF->getFunctionType();
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
 1031   FunctionType *FTy = II->getCalledFunction()->getFunctionType();
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  649   FunctionType *FT = F->getFunctionType();
  812             buildWrapperFunction(F, "", GA->getLinkage(), F->getFunctionType());
  830     FunctionType *FT = F.getFunctionType();
 1523       Type *RT = DFSF.F->getFunctionType()->getReturnType();
 1573         FunctionType *FT = F->getFunctionType();
lib/Transforms/Scalar/TailRecursionElimination.cpp
  763   if (F.getFunctionType()->isVarArg())
lib/Transforms/Utils/CallPromotionUtils.cpp
  337   unsigned NumParams = Callee->getFunctionType()->getNumParams();
  351     Type *FormalTy = Callee->getFunctionType()->getFunctionParamType(I);
  381   if (CS.getFunctionType() == Callee->getFunctionType())
  389   CS.mutateFunctionType(Callee->getFunctionType());
  394   auto CalleeType = Callee->getFunctionType();
lib/Transforms/Utils/CloneFunction.cpp
  249   FunctionType *FTy = FunctionType::get(F->getFunctionType()->getReturnType(),
  250                                     ArgTypes, F->getFunctionType()->isVarArg());
lib/Transforms/Utils/CodeExtractor.cpp
  579   if (AllowVarArgs && F->getFunctionType()->isVarArg()) {
lib/Transforms/Utils/Evaluator.cpp
  289   auto *FTy = F->getFunctionType();
  582         if (Callee->getFunctionType()->isVarArg()) {
lib/Transforms/Utils/FunctionComparator.cpp
  823   if (int Res = cmpTypes(FnL->getFunctionType(), FnR->getFunctionType()))
  823   if (int Res = cmpTypes(FnL->getFunctionType(), FnR->getFunctionType()))
lib/Transforms/Utils/InlineFunction.cpp
 1865   for (unsigned i = CalledFunc->getFunctionType()->getNumParams();
lib/Transforms/Utils/SimplifyLibCalls.cpp
  341   FunctionType *FT = Callee->getFunctionType();
  585   Type *PT = Callee->getFunctionType()->getParamType(0);
  638   Type *PT = Callee->getFunctionType()->getParamType(0);
 2381   FunctionType *FT = Callee->getFunctionType();
 2476   FunctionType *FT = Callee->getFunctionType();
 2649   FunctionType *FT = Callee->getFunctionType();
tools/bugpoint/CrashDebugger.cpp
  249     assert(CMF->getFunctionType() == Funcs[i]->getFunctionType() && "wrong ty");
  249     assert(CMF->getFunctionType() == Funcs[i]->getFunctionType() && "wrong ty");
tools/bugpoint/Miscompilation.cpp
  392         MisCompFunctions.emplace_back(F->getName(), F->getFunctionType());
  418         MisCompFunctions.emplace_back(I->getName(), I->getFunctionType());
  589       MisCompFunctions.emplace_back(I->getName(), I->getFunctionType());
  797           Function::Create(oldMain->getFunctionType(),
  801       Function *oldMainProto = Function::Create(oldMain->getFunctionType(),
  870           FunctionType *FuncTy = F->getFunctionType();
  896               Resolver, PointerType::getUnqual(F->getFunctionType()),
tools/clang/lib/CodeGen/CGBuiltin.cpp
 4025     auto FTy = F->getFunctionType();
 4059     auto FTy = F->getFunctionType();
 4157     llvm::FunctionType *FTy = F->getFunctionType();
 7299     llvm::Type *DataTy = F->getFunctionType()->getParamType(1);
13964     llvm::Type *ParamType = Intrinsic->getFunctionType()->getParamType(1);
14023     llvm::Type *AType = Intrinsic->getFunctionType()->getParamType(0);
14033     llvm::Type *BType = Intrinsic->getFunctionType()->getParamType(MI.NumEltsA);
14043         Intrinsic->getFunctionType()->getParamType(MI.NumEltsA + MI.NumEltsB);
tools/clang/lib/CodeGen/CGCall.cpp
 4250     llvm::FunctionType *OrigFT = OrigFn->getFunctionType();
 4268     IRFuncTy = OrigFn->getFunctionType();
tools/clang/lib/CodeGen/CGGPUBuiltin.cpp
   33     assert(F->getFunctionType() == VprintfFuncType);
tools/clang/lib/CodeGen/CGVTables.cpp
  465   EmitCallAndReturnForThunk(llvm::FunctionCallee(Fn->getFunctionType(), Callee),
  521   if (ThunkFn->getFunctionType() != ThunkFnTy) {
tools/clang/lib/CodeGen/TargetInfo.cpp
 9891   auto *InvokeFT = Invoke->getFunctionType();
 9928   auto *InvokeFT = Invoke->getFunctionType();
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
   94   llvm::FunctionType *orig_type = orig->getFunctionType();
tools/lli/lli.cpp
  623       if (ExitF->getFunctionType() == Exit.getFunctionType()) {
unittests/Analysis/LazyCallGraphTest.cpp
 2071   Function &E = *Function::Create(D.getFunctionType(), D.getLinkage(), "e");
unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
   64     Function *Result = startFunction(M, Callee->getFunctionType(), "caller");
  120     Function *Result = Function::Create(Func->getFunctionType(),
unittests/IR/IRBuilderTest.cpp
  734   Function *G = Function::Create(F->getFunctionType(),