This patch adds a new !annotation metadata kind which can be used to
attach annotation strings to instructions.
It also adds a new pass that emits summary remarks per function with the
counts for each annotation kind.
The intended uses cases for this new metadata is annotating
'interesting' instructions and the remarks should provide additional
insight into transformations applied to a program.
To motivate this, consider these specific questions we would like to get answered:
- How many stores added for automatic variable initialization remain after optimizations? Where are they?
- How many runtime checks inserted by a frontend could be eliminated? Where are the ones that did not get eliminated?
clang-tidy: warning: header guard does not follow preferred style [llvm-header-guard]
not useful