auto generation of proper tags

For context, see:

https://github.com/facebook/libphenom/pull/28
https://github.com/facebook/libphenom/pull/30