Files
clang-p2996/llvm/tools/llvm-exegesis/lib/SnippetFile.cpp
Aiden Grossman 5823ac0a65 [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.
2024-09-10 07:02:13 -07:00

11 KiB