summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorSteven Perron <stevenperron@google.com>2025-11-17 12:21:46 -0500
committerGitHub <noreply@github.com>2025-11-17 12:21:46 -0500
commit2b22e9b13330d47ae22cb0aa8016ddbb567bf94f (patch)
tree58ac632ae953637c9d8ef74003cddffd6b61ee0f /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent8c674f04aa57766bbc7fac97c1e42526b22a95a4 (diff)
[SPIRV] Use a worklist in the post-legalizer (#165027)
This commit refactors the SPIRV post-legalizer to use a worklist to process new instructions. Previously, the post-legalizer would iterate through all instructions and try to assign types. This could fail if a new instruction depended on another new instruction that had not been processed yet. The new implementation adds all new instructions that require a SPIR-V type to a worklist. It then iteratively processes the worklist until it is empty. This ensures that all dependencies are met before an instruction is processed. This change makes the post-legalizer more robust and fixes potential ordering issues with newly generated instructions. Existing tests cover existing functionality. More tests will be added as the legalizer is modified. Part of #153091
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions