[llvm] [llvm][AsmPrinter] Add an option to print instruction latencies (PR #113243)

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 22 02:04:18 PDT 2024


https://github.com/qcolombet commented:

Could we refactor the code to reuse most of the logic between this implementation and what is in the MC layer already?

E.g., templatize the getLatency function on MachineInstr/MCInst and provide a functor to call `SubTargetInfo::resolveSchedClass`.

https://github.com/llvm/llvm-project/pull/113243


More information about the llvm-commits mailing list