diff options
author | Oleksandr "Alex" Zinenko <git@ozinenko.com> | 2025-04-30 09:26:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-30 09:26:42 +0200 |
commit | 7318074168e324097b7f6ec93e34915463bf70f1 (patch) | |
tree | 11def0e72a43f717ea5e40dbfcfe30f50bdc543d /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | c91c3f930cfc75eb4e8b623ecd59c807863aa6c0 (diff) | |
download | llvm-7318074168e324097b7f6ec93e34915463bf70f1.zip llvm-7318074168e324097b7f6ec93e34915463bf70f1.tar.gz llvm-7318074168e324097b7f6ec93e34915463bf70f1.tar.bz2 |
[mlir] allow function type cloning to fail (#137130)
`FunctionOpInterface` assumed the fact that the function type (attribute
of the operation) can be cloned with arbirary lists of function
arguments and results to support argument and result list mutation. This
is not always correct, in particular, LLVM dialect functions require
exactly one result making it impossible to erase the result.
Allow function type cloning to fail and propagate this failure through
various APIs that use it. The common assumption is that existing IR has
not been modified.
Fixes #131142.
Reland a8c7ecdcbc3e89b493b495c6831cc93671c3b844 / #136300.
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions