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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -