Add an LLVM-instruction-counting mode to trans.

Pipe to xdu to see a trans call graph of generated insns.
This commit is contained in:
Graydon Hoare
2012-03-22 13:44:20 -07:00
parent dc07280b08
commit b224bcf6e1
14 changed files with 404 additions and 22 deletions

View File

@@ -62,6 +62,7 @@ Options:
--time-passes Time the individual phases of the compiler
--time-llvm-passes Time the individual phases of the LLVM backend
--count-llvm-insns Count and categorize generated LLVM instructions
-v --version Print version info and exit
--warn-unused-imports
Warn about unnecessary imports