Lines Matching refs:Function
49 Function *startFunction(Module *M, StringRef Name) { in startFunction()
50 Function *Result = Function::Create( in startFunction()
60 void endFunctionWithRet(Function *Func, Value *RetValue) { in endFunctionWithRet()
67 Function *insertSimpleCallFunction(Module *M, Function *Callee) { in insertSimpleCallFunction()
68 Function *Result = startFunction<Signature>(M, "caller"); in insertSimpleCallFunction()
83 Function *insertMainFunction(Module *M, uint32_t returnCode) { in insertMainFunction()
84 Function *Result = startFunction<int32_t(void)>(M, "main"); in insertMainFunction()
95 Function *insertAddFunction(Module *M, StringRef Name = "add") {
96 Function *Result = startFunction<int32_t(int32_t, int32_t)>(M, Name);
98 Function::arg_iterator args = Result->arg_begin();
110 Function *insertExternalReferenceToFunction(Module *M, StringRef Name) { in insertExternalReferenceToFunction()
111 Function *Result = Function::Create( in insertExternalReferenceToFunction()
118 Function *insertExternalReferenceToFunction(Module *M, StringRef Name, in insertExternalReferenceToFunction()
120 Function *Result = Function::Create(FuncTy, in insertExternalReferenceToFunction()
127 Function *insertExternalReferenceToFunction(Module *M, Function *Func) { in insertExternalReferenceToFunction()
128 Function *Result = Function::Create(Func->getFunctionType(), in insertExternalReferenceToFunction()
160 Function *insertAccumulateFunction(Module *M,
161 Function *Helper = nullptr,
163 Function *Result = startFunction<int32_t(int32_t)>(M, Name);
195 void createCrossModuleRecursiveCase(std::unique_ptr<Module> &A, Function *&FA, in createCrossModuleRecursiveCase()
197 Function *&FB1, Function *&FB2) { in createCrossModuleRecursiveCase()
204 Function *FB1Extern = insertExternalReferenceToFunction(A.get(), FB1); in createCrossModuleRecursiveCase()
210 Function *FAExtern = insertExternalReferenceToFunction(B.get(), FA); in createCrossModuleRecursiveCase()
220 createThreeModuleChainedCallsCase(std::unique_ptr<Module> &A, Function *&FA, in createThreeModuleChainedCallsCase()
221 std::unique_ptr<Module> &B, Function *&FB, in createThreeModuleChainedCallsCase()
222 std::unique_ptr<Module> &C, Function *&FC) { in createThreeModuleChainedCallsCase()
227 Function *FAExtern_in_B = insertExternalReferenceToFunction(B.get(), FA); in createThreeModuleChainedCallsCase()
231 Function *FBExtern_in_C = insertExternalReferenceToFunction(C.get(), FB); in createThreeModuleChainedCallsCase()
238 void createTwoModuleCase(std::unique_ptr<Module> &A, Function *&FA, in createTwoModuleCase()
239 std::unique_ptr<Module> &B, Function *&FB) { in createTwoModuleCase()
249 void createTwoModuleExternCase(std::unique_ptr<Module> &A, Function *&FA, in createTwoModuleExternCase()
250 std::unique_ptr<Module> &B, Function *&FB) { in createTwoModuleExternCase()
255 Function *FAExtern_in_B = insertExternalReferenceToFunction(B.get(), FA); in createTwoModuleExternCase()
263 void createThreeModuleCase(std::unique_ptr<Module> &A, Function *&FA, in createThreeModuleCase()
264 std::unique_ptr<Module> &B, Function *&FB, in createThreeModuleCase()
265 std::unique_ptr<Module> &C, Function *&FC) { in createThreeModuleCase()
270 Function *FAExtern_in_B = insertExternalReferenceToFunction(B.get(), FA); in createThreeModuleCase()
274 Function *FAExtern_in_C = insertExternalReferenceToFunction(C.get(), FA); in createThreeModuleCase()