Closed lzhfromustc closed 4 years ago
I don't like the idea of genkill template. My feeling is it is unnecessary. There are many different implementations of GenKill in LLVM and GCC. Every time we wrote a genkill algorithm we need to change here and there, and thus, I don't think the template is easy to use. I think it is completely fine to have many different genkill implementations in our repo.
OK. The template is deleted. I also think it is very hard and unnecessary to write a template for all genkill algorithms for different functionalities.
I add two comments. Could you address them in your next pull request?
I wrote a template for GenKill algorithm. I tried to write a template that has concrete definition of functions like Shuofei said, but failed because Go doesn't support generic programming. So I think every time we write GenKill, we need to define the four maps, and write functions like
InitGenKillMap()
again.Tested on etcd. The Defer analysis works well.