[llvm] [CodeGen] Make the parameter TRI required in some functions. (PR #85968)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 22 00:03:14 PDT 2024


jayfoad wrote:

> Does anyone have any other comments please?

Is the point of the patch to make it slightly harder to _accidentally_ get the wrong behaviour, because you have to explicitly pass `nullptr` instead of just forgetting to provide a `TRI` pointer at all?

If so then no objections from me, though it doesn't seem like a big improvement.

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


More information about the llvm-commits mailing list