[llvm] [IR][TLI] Cache getLibFunc() result on Function (NFC) (PR #72867)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 21 03:33:05 PST 2023


nikic wrote:

> LGTM, though it may also be possible to use `NumLibFuncs` as the value for `UnknownLibFunc`.

I think this wouldn't work due to layering. To get NumLibFuncs we'd have to pull in the TLI header, which we can't do from IR.

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


More information about the llvm-commits mailing list