This patch adds a timing capability that shows the clock times and percentages for phases of the TableGen frontend and appropriately instrumented backends. It is requested with the --time-phases option.
I instrumented about five backends and will continue to instrument more of them over time.
I removed an old timing feature that was only used by one backend.
clang-tidy: error: 'llvm/Support/timer.h' file not found [clang-diagnostic-error]
not useful
clang-tidy: error: 'llvm/Support/timer.h' file not found [clang-diagnostic-error]
not useful
clang-tidy: error: 'llvm/Support/timer.h' file not found [clang-diagnostic-error]
not useful
clang-tidy: error: 'llvm/Support/timer.h' file not found [clang-diagnostic-error]
not useful
clang-tidy: error: 'llvm/Support/timer.h' file not found [clang-diagnostic-error]
not useful
clang-tidy: error: 'llvm/Support/timer.h' file not found [clang-diagnostic-error]
not useful
clang-tidy: error: 'llvm/Support/timer.h' file not found [clang-diagnostic-error]
not useful
clang-tidy: error: 'llvm/Support/timer.h' file not found [clang-diagnostic-error]
not useful