llvm-project
5823ac0a - [llvm-exegesis] Refactor getting register number from name to LLVMState (#107895)

Commit
1 year ago
[llvm-exegesis] Refactor getting register number from name to LLVMState (#107895) This patch refactors the procedure of getting the register number from a register name to LLVMState rather than having individual users get the values themselves by getting a reference to the map from LLVMState. This is primarily intended to make some downstream usage in Gematria simpler, but also cleans up a little bit upstream by pulling the actual map searching out and just leaving error handling to the clients. The original getter is left to enable downstream migration in Gematria, particularly before it gets imported into google internal.
Parents
Loading