llvm-project
f9db256c - [X86] Hoist getMOVriOpcode to X86InstrInfo.h and share it, NFC (#205187)

Commit
153 days ago
[X86] Hoist getMOVriOpcode to X86InstrInfo.h and share it, NFC (#205187) The x86 backend often needs to materialize potentially 64-bit immediates into registers, and the logic to pick between the available opcodes exists in 3 places at least. Move this to X86InstrInfo.h so we can share it over the x86 backend without copying it. An LLM did the refactoring.
Author
rnk rnk
Parents
Loading