c++ - How could I use SplitEdge method in llvm -


i need insert basic block edge. tried use splitedge method in following link: http://llvm.org/docs/doxygen/html/basicblockutils_8cpp_source.html found answer here: http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-july/033288.html but, don't want set in runonfunction,, how use without facing problem of pass not equal null thanks

i think simplest way copy implementation of splitedge method own code , modify them work when pass null. in current implementation, means modify call own version of splitblock, , in version add return new before calls on p.

however, if these sorts of operations on llvm ir, consider doing them within proper pass - make code play far more nicely existing passes.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -