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
Post a Comment