Home
last modified time | relevance | path

Searched refs:getFunctionType (Results 1 – 25 of 413) sorted by relevance

12345678910>>...17

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyFixFunctionBitcasts.cpp130 FunctionType::param_iterator PI = F->getFunctionType()->param_begin(); in createWrapper()
131 FunctionType::param_iterator PE = F->getFunctionType()->param_end(); in createWrapper()
135 Type *ExpectedRtnType = F->getFunctionType()->getReturnType(); in createWrapper()
138 if ((F->getFunctionType()->getNumParams() != Ty->getNumParams()) || in createWrapper()
139 (F->getFunctionType()->isVarArg() != Ty->isVarArg()) || in createWrapper()
179 Type *ExpectedRtnType = F->getFunctionType()->getReturnType(); in createWrapper()
260 if (shouldFixMainFunction(F.getFunctionType(), MainTy)) { in runOnModule()
262 << *F.getFunctionType() << "\n"); in runOnModule()
DWebAssemblyAddMissingPrototypes.cpp81 unsigned NumParams = F.getFunctionType()->getNumParams(); in runOnModule()
122 NewType = FunctionType::get(F.getFunctionType()->getReturnType(), false); in runOnModule()
/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyFixFunctionBitcasts.cpp129 FunctionType::param_iterator PI = F->getFunctionType()->param_begin(); in createWrapper()
130 FunctionType::param_iterator PE = F->getFunctionType()->param_end(); in createWrapper()
134 Type *ExpectedRtnType = F->getFunctionType()->getReturnType(); in createWrapper()
137 if ((F->getFunctionType()->getNumParams() != Ty->getNumParams()) || in createWrapper()
138 (F->getFunctionType()->isVarArg() != Ty->isVarArg()) || in createWrapper()
178 Type *ExpectedRtnType = F->getFunctionType()->getReturnType(); in createWrapper()
263 if (shouldFixMainFunction(F.getFunctionType(), MainTy)) { in runOnModule()
265 << *F.getFunctionType() << "\n"); in runOnModule()
DWebAssemblyAddMissingPrototypes.cpp81 unsigned NumParams = F.getFunctionType()->getNumParams(); in runOnModule()
122 NewType = FunctionType::get(F.getFunctionType()->getReturnType(), false); in runOnModule()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DCallPromotionUtils.cpp337 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote()
351 Type *FormalTy = Callee->getFunctionType()->getFunctionParamType(I); in isLegalToPromote()
381 if (CS.getFunctionType() == Callee->getFunctionType()) in promoteCall()
389 CS.mutateFunctionType(Callee->getFunctionType()); in promoteCall()
394 auto CalleeType = Callee->getFunctionType(); in promoteCall()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroutines.cpp422 Prototype->getFunctionType()->dump(); in buildFrom()
431 Prototype->getFunctionType()->dump(); in buildFrom()
450 Prototype->getFunctionType()->dump(); in buildFrom()
458 Prototype->getFunctionType()->dump(); in buildFrom()
509 Alloc->getFunctionType()->getParamType(0), in emitAlloc()
530 Dealloc->getFunctionType()->getParamType(0)); in emitDealloc()
560 auto FT = F->getFunctionType(); in checkWFRetconPrototype()
578 I->getFunction()->getFunctionType()->getReturnType()) in checkWFRetconPrototype()
596 auto FT = F->getFunctionType(); in checkWFAlloc()
611 auto FT = F->getFunctionType(); in checkWFDealloc()
DCoroInternal.h167 return RetconLowering.ResumePrototype->getFunctionType(); in getResumeFunctionType()
175 auto FTy = CoroBegin->getFunction()->getFunctionType(); in getRetconResultTypes()
190 auto FTy = RetconLowering.ResumePrototype->getFunctionType(); in getRetconResumeTypes()
/external/llvm-project/llvm/lib/Target/Mips/
DMips16HardFloat.cpp111 TypeID ArgTypeID = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded()
122 TypeID ArgTypeID0 = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded()
123 TypeID ArgTypeID1 = F.getFunctionType()->getParamType(1)->getTypeID(); in whichFPParamVariantNeeded()
158 Type *ArgType = F.getFunctionType()->getParamType(0); in needsFPStubFromParams()
271 FStub = Function::Create(F.getFunctionType(), in assureFPCallStub()
420 FunctionType *FT = CI->getFunctionType(); in fixupFPReturnAndCall()
456 (F->getFunctionType(), in createFPFnStub()
/external/llvm/lib/Target/Mips/
DMips16HardFloat.cpp111 TypeID ArgTypeID = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded()
122 TypeID ArgTypeID0 = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded()
123 TypeID ArgTypeID1 = F.getFunctionType()->getParamType(1)->getTypeID(); in whichFPParamVariantNeeded()
159 Type *ArgType = F.getFunctionType()->getParamType(0); in needsFPStubFromParams()
276 FStub = Function::Create(F.getFunctionType(), in assureFPCallStub()
428 FunctionType *FT = CI->getFunctionType(); in fixupFPReturnAndCall()
464 (F->getFunctionType(), in createFPFnStub()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMips16HardFloat.cpp111 TypeID ArgTypeID = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded()
122 TypeID ArgTypeID0 = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded()
123 TypeID ArgTypeID1 = F.getFunctionType()->getParamType(1)->getTypeID(); in whichFPParamVariantNeeded()
158 Type *ArgType = F.getFunctionType()->getParamType(0); in needsFPStubFromParams()
271 FStub = Function::Create(F.getFunctionType(), in assureFPCallStub()
420 FunctionType *FT = CI->getFunctionType(); in fixupFPReturnAndCall()
456 (F->getFunctionType(), in createFPFnStub()
/external/llvm-project/llvm/lib/Transforms/Coroutines/
DCoroutines.cpp449 Prototype->getFunctionType()->dump(); in buildFrom()
458 Prototype->getFunctionType()->dump(); in buildFrom()
477 Prototype->getFunctionType()->dump(); in buildFrom()
485 Prototype->getFunctionType()->dump(); in buildFrom()
536 Alloc->getFunctionType()->getParamType(0), in emitAlloc()
559 Dealloc->getFunctionType()->getParamType(0)); in emitDealloc()
591 auto FT = F->getFunctionType(); in checkWFRetconPrototype()
609 I->getFunction()->getFunctionType()->getReturnType()) in checkWFRetconPrototype()
627 auto FT = F->getFunctionType(); in checkWFAlloc()
642 auto FT = F->getFunctionType(); in checkWFDealloc()
DCoroInternal.h204 return RetconLowering.ResumePrototype->getFunctionType(); in getResumeFunctionType()
215 auto FTy = CoroBegin->getFunction()->getFunctionType(); in getRetconResultTypes()
230 auto FTy = RetconLowering.ResumePrototype->getFunctionType(); in getRetconResumeTypes()
/external/llvm-project/llvm/lib/Transforms/Utils/
DCallPromotionUtils.cpp404 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote()
422 Type *FormalTy = Callee->getFunctionType()->getFunctionParamType(I); in isLegalToPromote()
461 if (CB.getFunctionType() == Callee->getFunctionType()) in promoteCall()
469 CB.mutateFunctionType(Callee->getFunctionType()); in promoteCall()
474 auto CalleeType = Callee->getFunctionType(); in promoteCall()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULibFunc.h347 virtual FunctionType *getFunctionType(Module &M) const = 0;
391 FunctionType *getFunctionType(Module &M) const { in getFunctionType() function
392 return Impl->getFunctionType(M); in getFunctionType()
416 FunctionType *getFunctionType(Module &M) const override;
446 FunctionType *getFunctionType(Module &M) const override { return FuncTy; } in getFunctionType() function
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPULibFunc.h348 virtual FunctionType *getFunctionType(Module &M) const = 0;
392 FunctionType *getFunctionType(Module &M) const { in getFunctionType() function
393 return Impl->getFunctionType(M); in getFunctionType()
417 FunctionType *getFunctionType(Module &M) const override;
447 FunctionType *getFunctionType(Module &M) const override { return FuncTy; } in getFunctionType() function
/external/llvm-project/llvm/include/llvm/IR/
DMatrixBuilder.h82 CallInst *Call = B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name);
105 CallInst *Call = B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name);
125 return B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name);
145 return B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp124 assert(Fn.getFunctionType()->isVarArg() && "Function isn't varargs!"); in DeleteDeadVarargs()
159 FunctionType *FTy = Fn.getFunctionType(); in DeleteDeadVarargs()
278 if (Fn.hasLocalLinkage() && !Fn.getFunctionType()->isVarArg()) in RemoveDeadArgumentsFromCallers()
442 if (ArgNo >= F->getFunctionType()->getNumParams()) in SurveyUse()
522 != F.getFunctionType()->getReturnType()) { in SurveyFunction()
631 if (F.getFunctionType()->isVarArg() || HasMustTailCallers || in SurveyFunction()
737 FunctionType *FTy = F->getFunctionType(); in RemoveDeadStuffFromFunction()
1096 if (F.getFunctionType()->isVarArg()) in run()
/external/llvm-project/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp125 assert(Fn.getFunctionType()->isVarArg() && "Function isn't varargs!"); in DeleteDeadVarargs()
160 FunctionType *FTy = Fn.getFunctionType(); in DeleteDeadVarargs()
275 if (Fn.hasLocalLinkage() && !Fn.getFunctionType()->isVarArg()) in RemoveDeadArgumentsFromCallers()
440 if (ArgNo >= F->getFunctionType()->getNumParams()) in SurveyUse()
520 != F.getFunctionType()->getReturnType()) { in SurveyFunction()
622 if (F.getFunctionType()->isVarArg() || HasMustTailCallers || in SurveyFunction()
739 FunctionType *FTy = F->getFunctionType(); in RemoveDeadStuffFromFunction()
1095 if (F.getFunctionType()->isVarArg()) in run()
/external/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp106 assert(Fn.getFunctionType()->isVarArg() && "Function isn't varargs!"); in DeleteDeadVarargs()
141 FunctionType *FTy = Fn.getFunctionType(); in DeleteDeadVarargs()
259 if (Fn.hasLocalLinkage() && !Fn.getFunctionType()->isVarArg()) in RemoveDeadArgumentsFromCallers()
419 if (ArgNo >= F->getFunctionType()->getNumParams()) in SurveyUse()
495 != F.getFunctionType()->getReturnType()) { in SurveyFunction()
578 if (F.getFunctionType()->isVarArg()) { in SurveyFunction()
677 FunctionType *FTy = F->getFunctionType(); in RemoveDeadStuffFromFunction()
1043 if (F.getFunctionType()->isVarArg()) in run()
/external/llvm-project/mlir/lib/Conversion/GPUCommon/
DOpToFuncCallLowering.h60 LLVMType funcType = getFunctionType(resultType, castedOperands); in matchAndRewrite()
92 LLVM::LLVMType getFunctionType(LLVM::LLVMType resultType, in getFunctionType() function
/external/llvm-project/mlir/unittests/Pass/
DAnalysisManagerTest.cpp60 builder.getFunctionType(llvm::None, llvm::None)); in TEST()
90 builder.getFunctionType(llvm::None, llvm::None)); in TEST()
/external/llvm/lib/IR/
DFunction.cpp234 FunctionType *Function::getFunctionType() const { in getFunctionType() function in Function
239 return getFunctionType()->isVarArg(); in isVarArg()
243 return getFunctionType()->getReturnType(); in getReturnType()
294 FunctionType *FT = getFunctionType(); in BuildLazyArguments()
329 return getFunctionType()->getNumParams(); in arg_size()
332 return getFunctionType()->getNumParams() == 0; in arg_empty()
1086 FunctionType *FTy = F->getFunctionType(); in remangleIntrinsicFunction()
1111 assert(NewDecl->getFunctionType() == FTy && "Shouldn't change the signature"); in remangleIntrinsicFunction()
DInlineAsm.cpp45 assert(Verify(getFunctionType(), constraints) && in InlineAsm()
54 FunctionType *InlineAsm::getFunctionType() const { in getFunctionType() function in InlineAsm
/external/llvm/tools/bugpoint/
DMiscompilation.cpp388 MisCompFunctions.emplace_back(F->getName(), F->getFunctionType()); in ExtractLoops()
413 MisCompFunctions.emplace_back(I->getName(), I->getFunctionType()); in ExtractLoops()
585 MisCompFunctions.emplace_back(I->getName(), I->getFunctionType()); in ExtractBlocks()
783 Function::Create(oldMain->getFunctionType(), in CleanupAndPrepareModules()
787 Function *oldMainProto = Function::Create(oldMain->getFunctionType(), in CleanupAndPrepareModules()
858 FunctionType *FuncTy = F->getFunctionType(); in CleanupAndPrepareModules()
885 PointerType::getUnqual(F->getFunctionType()), in CleanupAndPrepareModules()
/external/llvm-project/llvm/lib/IR/
DInlineAsm.cpp38 assert(Verify(getFunctionType(), constraints) && in InlineAsm()
56 FunctionType *InlineAsm::getFunctionType() const { in getFunctionType() function in InlineAsm

12345678910>>...17