diff options
| author | adams381 <adams@nvidia.com> | 2025-12-09 17:09:25 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-09 15:09:25 -0800 |
| commit | 84b9e444454a06ddf01f568164e3d5c8d956707d (patch) | |
| tree | 5c89835d63ad44c081859377a0a0b24ef44bcf1f /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
| parent | fb29a6e4075894e799dd2fb29399c478a4df4462 (diff) | |
| download | llvm-84b9e444454a06ddf01f568164e3d5c8d956707d.zip llvm-84b9e444454a06ddf01f568164e3d5c8d956707d.tar.gz llvm-84b9e444454a06ddf01f568164e3d5c8d956707d.tar.bz2 | |
[CIR] Add Function Argument Demotion support (#170915)
This PR migrates the Function Argument Demotion feature from the
incubator repository to upstream. The feature handles K&R-style function
parameters that are promoted (e.g., short->int, float->double) and
demotes them back to their declared types.
## Changes
- Add emitArgumentDemotion helper function for type demotion
- Create emitFunctionProlog function to handle function prologue setup
(addresses existing TODO to move parameter handling logic)
- Move parameter handling logic into emitFunctionProlog
- Add test case kr-func-promote.c to verify the feature
Tested: All CIR tests pass (320/321, 99.69%). The one unsupported test
is an expected failure.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
