[llvm] [GlobalISel] Add immediates to `LegalizerQuery` (PR #211101)

Demetrius Kanios via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 27 09:59:10 PDT 2026


================

----------------
QuantumSegfault wrote:

> I don't know if it's possible/easy to check the actual queries generated 

Not that I saw. It's an internal implementation detail of `getAction` for an MI.

> E.g. if we later change the legalization to not support 8 it would break even though immediates are still carried over to the query.

Why would you? It uses AArch for the target machine (particular RegisterInfo), but otherwise supplies its own mini legalizer, independent of the main/proper one. Why would you change it "to not support 8"?



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


More information about the llvm-commits mailing list