search for: globalsret

Displaying 3 results from an estimated 3 matches for "globalsret".

Did you mean: global_ref
2011 Sep 16
2
[LLVMdev] How to duplicate a function?
...// Insert a new load instruction to return. ///////////////////////////////////////////////////////////////////////////////////// HERE, GENERATE ERROR ///////////////////////////////////////////////////////////////////////////////////// Value *Load = new llvm::LoadInst(Globals, "globalsret", RI); ///////////////////////////////////////////////////////////////////////////////////// // Return type is void if ( RetTy->isVoidTy() ) { // ReturnInst::Create(Load, 0, RI); // Return void ReturnInst::Create(F.getContext(), 0, RI...
2011 Sep 16
0
[LLVMdev] How to duplicate a function?
...// Insert a new load instruction to return. ///////////////////////////////////////////////////////////////////////////////////// HERE, GENERATE ERROR ///////////////////////////////////////////////////////////////////////////////////// Value *Load = new llvm::LoadInst(Globals, "globalsret", RI); ///////////////////////////////////////////////////////////////////////////////////// // Return type is void if ( RetTy->isVoidTy() ) { // ReturnInst::Create(Load, 0, RI); // Return void ReturnInst::Create(F.getContext(), 0, RI...
2008 Sep 13
3
[LLVMdev] Duplicate Function with duplicated Arguments
I'm now writing a pass and I wanna ask a question about how to duplicate the function and add duplicated arguments in llvm, for example: func(int a, char *b) -> func(int a, char *b, int a1, char *b1) I'm now stuck at using "getOrInsertFunction" and how to handle "getArgumentList", please share your opinion, thanks a lot! James