Inserting C++ code on tablegen to improve code generation statistics

Hello everyone.

I’m working in a project and my task right now is improving LLVM code generation’s statistics for X86 target.

Currently you can show statistics by passing the command-line parameter -stats to any llvm program (I’m using llc to compile .bc to native code) and it’ll show something like this: