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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -