search for: optimize_llvm_ir_module

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

2008 Jul 09
0
[LLVMdev] Cloning Functions
...essing next function. If your compiler works like for each function generate_ir optimize then it seems you're doing for each function generate_ir convert_to_llvm_ir optimize_llvm_ir If you're doing this then you may try for each function generate_ir convert_to_llvm_ir optimize_llvm_ir_module Now, you have access to un-optimized functions before you do optimize_llvm_ir_module. Would that work ? > This also means the global symbol table changes as we > process functions. > > So what I need to do is somehow clone the final module (so I capture > all > of the n...
2008 Jul 09
2
[LLVMdev] Cloning Functions
On Wednesday 09 July 2008 12:16, Eli Friedman wrote: > On Wed, Jul 9, 2008 at 9:56 AM, David Greene <dag at cray.com> wrote: > > I seem to recall havbing asked this before but I can't find it by > > searching. > > > > What's the right way to clone a Function? I need to save off the text at > > a certain point and spit it out later, after other
2008 Jul 09
2
[LLVMdev] Cloning Functions
...erate_ir > optimize Yep. > then it seems you're doing > > for each function > generate_ir > convert_to_llvm_ir > optimize_llvm_ir Yep. > If you're doing this then you may try > > for each function > generate_ir > convert_to_llvm_ir > optimize_llvm_ir_module We in fact did used to do it this way. Then we ran out of memory. And there are other issues to. We'd added things in our copy of LLVM that looks to our middle-end for various bits of information. Some of that information goes away after we get each function so delaying optimization means...