This PR fixes a bug in `RemoveDeadValues` where the `FunctionOpInterface` does not have the `isDeclaration` method. As a result, we should use the `isExternal` method instead. Fixes #116347.
Multi-Level Intermediate Representation
See https://mlir.llvm.org/ for more information.