llvm-project
c739c40c - [AArch64][llvm] Rewrite the TLBI multiclass to be much clearer (NFC)

Commit
57 days ago
[AArch64][llvm] Rewrite the TLBI multiclass to be much clearer (NFC) The `tlbi` multiclass is really doing four jobs at once: base TLBI, synthesized nXS, optional TLBIP, and synthesized TLBIP nXS. Also, `needsreg` and `optreg` are really just a 3-state operand policy in disguise. Likewise, the PLBI multiclass has this same issue. Change `needsreg` and `optreg` into a combined fake enum, so it's clearer whether the instruction takes no register operand, a required register operand or an optional register operand. This improves on my original change 66e8270e8.
Author
Committer
Parents
Loading