This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Inliner] Add a new hook for checking if it is legal to inline a callable into a call
ClosedPublic

Authored by rriddle on Oct 28 2020, 5:59 PM.

Details

Summary

In certain situations it isn't legal to inline a call operation, but this isn't something that is possible(at least not easily) to prevent with the current hooks. This revision adds a new hook so that dialects with call operations that shouldn't be inlined can prevent it.

Diff Detail