c++ - Modify CFG in LLVM -


could modify cfg in llvm , these modifications written in ir file? made llvm pass modify basic block , edges sequence , ran pass lli -load emit ir, nothing happened think should use commands manipulate original cfg required one. read in llvmdev cfg manipulated changing basic block terminator.however, main point change edges too.

look @ transformation passes in lib/transforms. of them modify ir. run pass modifies ir , spit modified ir back, use opt tool.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -