aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorOleksandr "Alex" Zinenko <git@ozinenko.com>2025-04-30 09:26:42 +0200
committerGitHub <noreply@github.com>2025-04-30 09:26:42 +0200
commit7318074168e324097b7f6ec93e34915463bf70f1 (patch)
tree11def0e72a43f717ea5e40dbfcfe30f50bdc543d /llvm/lib/CodeGen/MachineModuleInfo.cpp
parentc91c3f930cfc75eb4e8b623ecd59c807863aa6c0 (diff)
downloadllvm-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