diff options
| author | Matthias Springer <me@m-sp.org> | 2024-06-26 07:59:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-26 07:59:36 +0200 |
| commit | c01ce797619359ee282773dfc4b1e91ff0a30435 (patch) | |
| tree | 537b081df50d113adc10c9d57771601e59649684 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | |
| parent | 2ee2b6aa7a3d9ba6ba13f6881b25e26d7d12c823 (diff) | |
| download | llvm-c01ce797619359ee282773dfc4b1e91ff0a30435.zip llvm-c01ce797619359ee282773dfc4b1e91ff0a30435.tar.gz llvm-c01ce797619359ee282773dfc4b1e91ff0a30435.tar.bz2 | |
[mlir][Transforms][NFC] Dialect Conversion: Move argument materialization logic (#96329)
This commit moves the argument materialization logic from
`legalizeConvertedArgumentTypes` to
`legalizeUnresolvedMaterializations`.
Before this change:
- Argument materializations were created in
`legalizeConvertedArgumentTypes` (which used to call
`materializeLiveConversions`).
After this change:
- `legalizeConvertedArgumentTypes` creates a "placeholder"
`unrealized_conversion_cast`.
- The placeholder `unrealized_conversion_cast` is replaced with an
argument materialization (using the type converter) in
`legalizeUnresolvedMaterializations`.
- All argument and target materializations now take place in the same
location (`legalizeUnresolvedMaterializations`).
This commit brings us closer towards creating all source/target/argument
materializations in one central step, which can then be made optional
(and delegated to the user) in the future. (There is one more source
materialization step that has not been moved yet.)
This commit also consolidates all `build*UnresolvedMaterialization`
functions into a single `buildUnresolvedMaterialization` function.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions
