Lines Matching refs:Function

245   Function *GetTempRet0Func;
246 Function *SetTempRet0Func;
247 Function *ResumeF;
248 Function *EHTypeIDF;
249 Function *EmLongjmpF;
250 Function *EmLongjmpJmpbufF;
251 Function *SaveSetjmpF;
252 Function *TestSetjmpF;
256 DenseMap<int, Function *> FindMatchingCatches;
258 StringMap<Function *> InvokeWrappers;
266 bool runEHOnFunction(Function &F);
267 bool runSjLjOnFunction(Function &F);
268 Function *getFindMatchingCatch(Module &M, unsigned NumClauses);
274 template <typename CallOrInvoke> Function *getInvokeWrapper(CallOrInvoke *CI);
279 void rebuildSSA(Function &F);
324 if (const auto *F = dyn_cast<const Function>(V)) { in canThrow()
375 Function *
383 Function *F = in getFindMatchingCatch()
384 Function::Create(FTy, GlobalValue::ExternalLinkage, in getFindMatchingCatch()
405 if (auto *F = dyn_cast<Function>(CI->getCalledValue())) in wrapInvoke()
456 Function *WebAssemblyLowerEmscriptenEHSjLj::getInvokeWrapper(CallOrInvoke *CI) { in getInvokeWrapper()
461 if (auto *F = dyn_cast<Function>(Callee)) in getInvokeWrapper()
479 Function *F = Function::Create(FTy, GlobalValue::ExternalLinkage, in getInvokeWrapper()
487 if (auto *CalleeF = dyn_cast<Function>(Callee)) in canLongjmp()
493 Function *SetjmpF = M.getFunction("setjmp"); in canLongjmp()
494 Function *MallocF = M.getFunction("malloc"); in canLongjmp()
495 Function *FreeF = M.getFunction("free"); in canLongjmp()
509 Function *BeginCatchF = M.getFunction("__cxa_begin_catch"); in canLongjmp()
510 Function *EndCatchF = M.getFunction("__cxa_end_catch"); in canLongjmp()
511 Function *AllocExceptionF = M.getFunction("__cxa_allocate_exception"); in canLongjmp()
512 Function *ThrowF = M.getFunction("__cxa_throw"); in canLongjmp()
513 Function *TerminateF = M.getFunction("__clang_call_terminate"); in canLongjmp()
541 Function *F = BB->getParent(); in wrapTestSetjmp()
598 void WebAssemblyLowerEmscriptenEHSjLj::rebuildSSA(Function &F) { in rebuildSSA()
631 Function *SetjmpF = M.getFunction("setjmp"); in runOnModule()
632 Function *LongjmpF = M.getFunction("longjmp"); in runOnModule()
643 Function::Create(FunctionType::get(IRB.getInt32Ty(), false), in runOnModule()
645 SetTempRet0Func = Function::Create( in runOnModule()
658 ResumeF = Function::Create(ResumeFTy, GlobalValue::ExternalLinkage, in runOnModule()
664 EHTypeIDF = Function::Create(EHTypeIDTy, GlobalValue::ExternalLinkage, in runOnModule()
667 for (Function &F : M) { in runOnModule()
681 EmLongjmpJmpbufF = Function::Create(LongjmpF->getFunctionType(), in runOnModule()
696 SaveSetjmpF = Function::Create(FTy, GlobalValue::ExternalLinkage, in runOnModule()
702 TestSetjmpF = Function::Create(FTy, GlobalValue::ExternalLinkage, in runOnModule()
707 EmLongjmpF = Function::Create(FTy, GlobalValue::ExternalLinkage, in runOnModule()
712 SmallPtrSet<Function *, 8> SetjmpUsers; in runOnModule()
717 for (Function *F : SetjmpUsers) in runOnModule()
740 bool WebAssemblyLowerEmscriptenEHSjLj::runEHOnFunction(Function &F) { in runEHOnFunction()
813 const Function *Callee = CI->getCalledFunction(); in runEHOnFunction()
855 Function *FMCF = getFindMatchingCatch(M, FMCArgs.size()); in runEHOnFunction()
873 bool WebAssemblyLowerEmscriptenEHSjLj::runSjLjOnFunction(Function &F) { in runSjLjOnFunction()
905 Function *SetjmpF = M.getFunction("setjmp"); in runSjLjOnFunction()