Closed lyh552506 closed 5 months ago
Do you mean:
BasicBlock
and modify relevant branch inst?(Condition branch -> UnCondition branch)
- now we only have GetParents function in User class ,which is inherit from list_node<BasicBlock,User> , when i do constantprop... sometimes i need to update the val in phi , and so i need this val and its corresponding block , that means we should let value class also have GetParents function
- in lib/CFG.hpp Function class :void InsertBlock(BasicBlock pred,BasicBlock succ,BasicBlock* insert) //TODO
RSUW
api
1.deal with the User* ->GetParents 2.delete a block 3.inserting a instruction anywhere in the block